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>;
164 int getNumFaces()
const;
166 int getNumVertices()
const;
172 const Vec3& getVertexPosition(
int vertex)
const;
175 int getNumVerticesForFace(
int face)
const;
182 int getFaceVertex(
int face,
int vertex)
const;
188 int addVertex(
const Vec3& position);
221 void loadObjFile(std::istream& file);
226 void loadVtpFile(
const String& pathname);
229 explicit PolygonalMesh(PolygonalMeshImpl* impl) : HandleBase(impl) {}
230 void initializeHandleIfEmpty();
235 #endif // SimTK_SimTKCOMMON_POLYGONAL_MESH_H_
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:202
This class provides a description of a mesh made of polygonal faces (not limited to triangles)...
Definition: PolygonalMesh.h:71
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:62
This is the header which should be included in user programs that would like to make use of all the S...
PolygonalMesh()
Create an empty PolygonalMesh, with no vertices or faces.
Definition: PolygonalMesh.h:75
This header provides declarations of the user-visible portion of the PIMPLHandle template classes tha...