Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_POLYGONAL_MESH_H_
2 #define SimTK_SimTKCOMMON_POLYGONAL_MESH_H_
33 class PolygonalMeshImpl;
38 #ifndef SimTK_SIMTKCOMMON_DEFINING_POLYGONALMESH
39 extern template class PIMPLHandle<PolygonalMesh, PolygonalMeshImpl, true>;
163 int getNumFaces()
const;
165 int getNumVertices()
const;
171 const Vec3& getVertexPosition(
int vertex)
const;
174 int getNumVerticesForFace(
int face)
const;
181 int getFaceVertex(
int face,
int vertex)
const;
187 int addVertex(
const Vec3& position);
227 void loadFile(
const String& pathname);
233 void loadObjFile(
const String& pathname);
240 void loadObjFile(std::istream& file);
246 void loadVtpFile(
const String& pathname);
256 void loadStlFile(
const String& pathname);
259 explicit PolygonalMesh(PolygonalMeshImpl* impl) : HandleBase(impl) {}
260 void initializeHandleIfEmpty();
265 #endif // SimTK_SimTKCOMMON_POLYGONAL_MESH_H_
PolygonalMesh()
Create an empty PolygonalMesh, with no vertices or faces.
Definition: PolygonalMesh.h:74
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
This class provides a description of a mesh made of polygonal faces (not limited to triangles).
Definition: PolygonalMesh.h:70
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:62