cisst-saw
Loading...
Searching...
No Matches
msh3Mesh Class Reference

#include <msh3Mesh.h>

Public Types

enum  VertexIndex {
  V1 = 1 , V2 = 2 , V3 = 3 , V1V2 = 4 ,
  V1V3 = 5 , V2V3 = 6 , IN = -1 , VOID =0
}

Public Member Functions

 msh3Mesh (double robotResolution, bool convertMMtoM)
 msh3Mesh (bool convertMMtoM)
 msh3Mesh (double robotResolution)
 msh3Mesh ()
 ~msh3Mesh ()
void ResetMesh ()
size_t NumVertices (void) const
size_t NumTriangles (void) const
void InitializeNoiseModel ()
void InitializeNoiseModel (double noiseInPlaneVar, double noisePerpPlaneVar)
void SaveTriangleCovariances (std::string &filePath)
void FaceCoords (int ti, vct3 &v0, vct3 &v1, vct3 &v2) const
vct3FaceCoord (int ti, int vi)
int LoadMesh (const vctDynamicVector< vct3 > *vertices, const vctDynamicVector< vctInt3 > *faces, const vctDynamicVector< vct3 > *face_normals=NULL, const vctDynamicVector< vctInt3 > *face_neighbors=NULL, const vctDynamicVector< vct3 > *vertex_normals=NULL)
void LoadPLY (const std::string &input_file)
void SavePLY (const std::string &output_file)
int LoadMesh (const vctDynamicVector< vct3 > &V, const vctDynamicVector< vctInt3 > &T, const vctDynamicVector< vct3 > &N)
int LoadMeshFile (const std::string &meshFilePath)
int LoadMeshFileMultiple (const std::vector< std::string > &meshFilePaths)
int SaveMeshFile (const std::string &filePath)
int LoadMeshFromSTLFile (const std::string &stlFilePath)
void MergeEdgePoint (std::vector< int > &faceIdx, vct3 &target)
void ResetMeshConstraintValues ()
void TransformTriangle (const vctFrm4x4 &transformation)
void ReadMeshFile (const char *fn)
void ReadMeshMeshFile (const std::string &meshFilePath)
void ReadSURMeshFile (const char *fn)
void ReadSFCMeshFile (const char *fn)
void WriteMeshFile (const char *fn)
void WriteSURMeshFile (const char *fn)

Public Attributes

vctDynamicVector< vct3vertices
vctDynamicVector< vctInt3faces
vctDynamicVector< vct3faceNormals
vctDynamicVector< vct3vertexNormals
vctDynamicVector< vctInt3faceNeighbors
vctDynamicVector< vct3closestPoint
vctDynamicVector< int > cpLocation
vctDynamicVector< vct3activeNormal
vctDynamicVector< double > distance
vctDynamicVector< vct3x3TriangleCov
vctDynamicVector< vct3TriangleCovEig
int edgeOffset = 4
int vertexOffset = 1

Member Enumeration Documentation

◆ VertexIndex

Enumerator
V1 
V2 
V3 
V1V2 
V1V3 
V2V3 
IN 
VOID 

Constructor & Destructor Documentation

◆ msh3Mesh() [1/4]

msh3Mesh::msh3Mesh ( double robotResolution,
bool convertMMtoM )

◆ msh3Mesh() [2/4]

msh3Mesh::msh3Mesh ( bool convertMMtoM)

◆ msh3Mesh() [3/4]

msh3Mesh::msh3Mesh ( double robotResolution)

◆ msh3Mesh() [4/4]

msh3Mesh::msh3Mesh ( )

◆ ~msh3Mesh()

msh3Mesh::~msh3Mesh ( )
inline

Member Function Documentation

◆ FaceCoord()

vct3 & msh3Mesh::FaceCoord ( int ti,
int vi )
inline

◆ FaceCoords()

void msh3Mesh::FaceCoords ( int ti,
vct3 & v0,
vct3 & v1,
vct3 & v2 ) const
inline

◆ InitializeNoiseModel() [1/2]

void msh3Mesh::InitializeNoiseModel ( )

◆ InitializeNoiseModel() [2/2]

void msh3Mesh::InitializeNoiseModel ( double noiseInPlaneVar,
double noisePerpPlaneVar )

◆ LoadMesh() [1/2]

int msh3Mesh::LoadMesh ( const vctDynamicVector< vct3 > & V,
const vctDynamicVector< vctInt3 > & T,
const vctDynamicVector< vct3 > & N )

◆ LoadMesh() [2/2]

int msh3Mesh::LoadMesh ( const vctDynamicVector< vct3 > * vertices,
const vctDynamicVector< vctInt3 > * faces,
const vctDynamicVector< vct3 > * face_normals = NULL,
const vctDynamicVector< vctInt3 > * face_neighbors = NULL,
const vctDynamicVector< vct3 > * vertex_normals = NULL )

◆ LoadMeshFile()

int msh3Mesh::LoadMeshFile ( const std::string & meshFilePath)

◆ LoadMeshFileMultiple()

int msh3Mesh::LoadMeshFileMultiple ( const std::vector< std::string > & meshFilePaths)

◆ LoadMeshFromSTLFile()

int msh3Mesh::LoadMeshFromSTLFile ( const std::string & stlFilePath)

◆ LoadPLY()

void msh3Mesh::LoadPLY ( const std::string & input_file)

◆ MergeEdgePoint()

void msh3Mesh::MergeEdgePoint ( std::vector< int > & faceIdx,
vct3 & target )

◆ NumTriangles()

size_t msh3Mesh::NumTriangles ( void ) const
inline

◆ NumVertices()

size_t msh3Mesh::NumVertices ( void ) const
inline

◆ ReadMeshFile()

void msh3Mesh::ReadMeshFile ( const char * fn)

◆ ReadMeshMeshFile()

void msh3Mesh::ReadMeshMeshFile ( const std::string & meshFilePath)

◆ ReadSFCMeshFile()

void msh3Mesh::ReadSFCMeshFile ( const char * fn)

◆ ReadSURMeshFile()

void msh3Mesh::ReadSURMeshFile ( const char * fn)

◆ ResetMesh()

void msh3Mesh::ResetMesh ( )

◆ ResetMeshConstraintValues()

void msh3Mesh::ResetMeshConstraintValues ( )

◆ SaveMeshFile()

int msh3Mesh::SaveMeshFile ( const std::string & filePath)

◆ SavePLY()

void msh3Mesh::SavePLY ( const std::string & output_file)

◆ SaveTriangleCovariances()

void msh3Mesh::SaveTriangleCovariances ( std::string & filePath)

◆ TransformTriangle()

void msh3Mesh::TransformTriangle ( const vctFrm4x4 & transformation)

◆ WriteMeshFile()

void msh3Mesh::WriteMeshFile ( const char * fn)

◆ WriteSURMeshFile()

void msh3Mesh::WriteSURMeshFile ( const char * fn)

Member Data Documentation

◆ activeNormal

vctDynamicVector<vct3> msh3Mesh::activeNormal

◆ closestPoint

vctDynamicVector<vct3> msh3Mesh::closestPoint

◆ cpLocation

vctDynamicVector<int> msh3Mesh::cpLocation

◆ distance

vctDynamicVector<double> msh3Mesh::distance

◆ edgeOffset

int msh3Mesh::edgeOffset = 4

◆ faceNeighbors

vctDynamicVector<vctInt3> msh3Mesh::faceNeighbors

◆ faceNormals

vctDynamicVector<vct3> msh3Mesh::faceNormals

◆ faces

vctDynamicVector<vctInt3> msh3Mesh::faces

◆ TriangleCov

vctDynamicVector<vct3x3> msh3Mesh::TriangleCov

◆ TriangleCovEig

vctDynamicVector<vct3> msh3Mesh::TriangleCovEig

◆ vertexNormals

vctDynamicVector<vct3> msh3Mesh::vertexNormals

◆ vertexOffset

int msh3Mesh::vertexOffset = 1

◆ vertices

vctDynamicVector<vct3> msh3Mesh::vertices

The documentation for this class was generated from the following file: