G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsMesh< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsMesh< T >

Class Representing a triangle mesh with 3D vertices.

+ Inheritance diagram for gsMesh< T >:
+ Collaboration diagram for gsMesh< T >:

Public Member Functions

void addLine (gsMatrix< T > const &points)
 
void addLine (VertexHandle v0, VertexHandle v1, int midPts=0)
 
gsMeshcleanMesh ()
 reorders the vertices of all faces of an .stl mesh, such that only 1 vertex is used instead of #(adjacent triangles) vertices
 
 gsMesh (const gsBasis< T > &basis, int midPts=0)
 

Constructor & Destructor Documentation

gsMesh ( const gsBasis< T > &  basis,
int  midPts = 0 
)
explicit

Create a mesh corresponding to the parametric domain of the basis basis.

Parameters
basisBasis whose parametric domain should be meshed.
midPtsNumber of intermediate vertices to be inserted to each element side. Cf. gsMesh::addLine(VertexHandle, VertexHandle, int).

Member Function Documentation

void addLine ( gsMatrix< T > const &  points)

Add to the mesh a list of vertices connected with edges One edges are added between two successive vertices in the input. Vertices of the edges are assumed to be inexistent vertices.

Parameters
pointsmatrix containing in the columns a list of points
void addLine ( VertexHandle  v0,
VertexHandle  v1,
int  midPts = 0 
)

Inserts a straight line in the mesh, between v0 and v1, with midPts intermediate vertices distributed linearly between v0 and v1 (used for plotting).