Class xlifepp::subdivision::SurfMeshTriDisk#

class SurfMeshTriDisk : public xlifepp::subdivision::TriangleMesh#

Public Functions

SurfMeshTriDisk(const number_t nbsubdiv = 0, const number_t order = 1, const number_t type = 1, const real_t radius = 1., const Point Center = Point(0., 0.), real_t angmin = 0., real_t angmax = 360., const number_t minVertexNum = 1, const number_t minElementNum = 1)#

main constructor

Build a mesh of triangles by successive subdivisions from an initial mesh of triangles.

Works in 2D and 3D.

Parameters:
  • nbsubdiv – subdivision level (0 by default) nbsubdiv = 0 corresponds to the initial mesh. For nbsubdiv > 0, each triangle is subdivided into 4 triangles with the same orientation as the original one: if the first triangle is (1,2,3), the vector 12x13 defines the exterior normal to the face.

  • order – order of the triangles in the final mesh (1 by default) The default value is 1, which leads to a P1 mesh, in which case each triangle is defined by its 3 vertices. For higher orders, the supplemental vertices correspond to the regular Lagrange mesh.

  • type – type of the subdivision (1 by default) . if type = 0, the algorithm leads to a simple (flat) subdivision of the initial mesh where new vertices are all the midpoints of the edges. . if type = 1, the algorithm leads to a subdivision where the vertices belonging to a prescribed boundary are computed so that they lie on the circle ; they are computed as the radial projections of the vertices of the Lagrange mesh of order k over the chord segment.

  • radius – radius of the circle (1. by default)

  • Center – center of the circle ((0,0,0) by default)

  • angmin – angles defining the sector to be meshed ;

  • angmax – they are measured counterclockwise and given in degrees.

  • minVertexNum – minimum number associated to the vertices of the mesh (1 by default)

  • minElementNum – minimum number associated to the elements of the mesh (1 by default)