LCOV - code coverage report
Current view: top level - algs/AdvFront/meshkit - AF2RuleNewTriangle.hpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 1 1 100.0 %
Date: 2020-07-01 15:24:36 Functions: 1 1 100.0 %
Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * AF2RuleNewElement.hpp
       3                 :            :  *
       4                 :            :  * A specification of a new triangle that would be created by applying some
       5                 :            :  * 2-dimensional advancing front rule.
       6                 :            :  */
       7                 :            : #ifndef AF2RULENEWTRIANGLE_HPP
       8                 :            : #define AF2RULENEWTRIANGLE_HPP
       9                 :            : 
      10                 :            : #include "meshkit/AF2RuleNewFace.hpp"
      11                 :            : 
      12         [ -  + ]:       1560 : class AF2RuleNewTriangle : public AF2RuleNewFace
      13                 :            : {
      14                 :            :   private:
      15                 :            : 
      16                 :            :     unsigned int triVtxIndices[3];
      17                 :            : 
      18                 :            :   public:
      19                 :            : 
      20                 :            :     /**
      21                 :            :      * \brief Constructor
      22                 :            :      *
      23                 :            :      * The constructor requires arguments for the indices of the three
      24                 :            :      * vertices of the triangle that the rule would create.  The indices
      25                 :            :      * must index into the list of vertices associated with whichever
      26                 :            :      * rules this AF2RuleNewTriangle is a member of.  The list of vertices
      27                 :            :      * associated with the rule is the concatenation of the list of
      28                 :            :      * existing vertices in the rule and the list of new vertices
      29                 :            :      * that the rule would create.
      30                 :            :      *
      31                 :            :      * \param firstIndex the index of a vertex of the triangle
      32                 :            :      * \param secondIndex the index of the next vertex of the triangle after
      33                 :            :      *   the firstIndex traversing the vertices counterclockwise
      34                 :            :      * \param thirdIndex the index of the remaining vertex of the element
      35                 :            :      */
      36                 :            :     AF2RuleNewTriangle(unsigned int firstIndex,
      37                 :            :         unsigned int secondIndex, unsigned int thirdIndex);
      38                 :            : 
      39                 :            :     unsigned int getNumVertices() const;
      40                 :            : 
      41                 :            :     unsigned int getVertexIndex(unsigned int vtxNum) const;
      42                 :            : };
      43                 :            : 
      44                 :            : #endif

Generated by: LCOV version 1.11