Represents a 3D meshed object. More...
#include <eVision/Easy3D/EMesh.h>
Public Member Functions | |
| EMesh () | |
| Creates an EMesh object. | |
| EMesh (const eVision::Easy3D::EPointCloud &pointCloud, const std::vector< int32_t > &triangleIndexes) | |
| Creates an EMesh object. | |
| EMesh (const eVision::Easy3D::EPointCloud &pointCloud, const std::vector< int32_t > &triangleIndexes, const std::vector< eVision::Easy3D::E3DPoint > &normals) | |
| Creates an EMesh object. | |
| EMesh (const eVision::Easy3D::EMesh &other) | |
| Creates an EMesh object. | |
| virtual | ~EMesh () throw () |
| eVision::Easy3D::EMesh & | operator= (const eVision::Easy3D::EMesh &other) |
| Assignment operator. | |
| const eVision::Easy3D::EPointCloud & | GetPointCloud () const |
| Returns the point cloud of the EMesh object. | |
| const void * | GetTriangleIndexes () const |
| Returns a pointer to the index array (an array of 32 bit signed integers) representing the list of triangles. Indexes are referring to the array of E3DPoint. | |
| const void * | GetNormals () const |
| Returns a pointer to the array (of E3DPoint) representing the list of normals. If the EMesh object has no triangle mesh data, this method returns NULL. | |
| int32_t | GetTriangleCount () const |
| Returns the number of triangles. | |
| void | Clear () |
| Empties the Mesh. | |
| void | Load (const std::string &path) |
| Loads the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for writing. | |
| void | SaveSTL (const std::string &path, bool binary) const |
| Saves the triangle mesh to an STL file. | |
| void | SaveSTL (const std::string &path) const |
| Saves the triangle mesh to an STL file. | |
| void | LoadSTL (const std::string &path) |
| Loads a triangle mesh from an STL file. | |
| eVision::Easy3D::E3DPlane | ComputePlaneBehind (eVision::Easy3D::E3DPoint normal, float margin) const |
| Returns the E3DPlane with given normal on which the EMesh lays. This is useful when projecting an EMesh on an EZMap. | |
| eVision::Easy3D::E3DPlane | ComputePlaneBehind (eVision::Easy3D::E3DPoint normal) const |
| Returns the E3DPlane with given normal on which the EMesh lays. This is useful when projecting an EMesh on an EZMap. | |
| EMesh (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a 3D meshed object.
License(s): Easy3D
| eVision::Easy3D::EMesh::EMesh | ( | ) |
Creates an EMesh object.
| eVision::Easy3D::EMesh::EMesh | ( | const eVision::Easy3D::EPointCloud & | pointCloud, |
| const std::vector< int32_t > & | triangleIndexes ) |
Creates an EMesh object.
| pointCloud | A point cloud |
| triangleIndexes | The triangle mesh is a list of indexes, referring to the array contained in "pointCloud". |
A triangle is defined by 3 indexes (T1a T1b T1c T2a T2b T2c T3a ....). Index values must be in [0, N[ with N the number of points in the EPointCloud. The triangle index array size is a multiple of 3.
| eVision::Easy3D::EMesh::EMesh | ( | const eVision::Easy3D::EPointCloud & | pointCloud, |
| const std::vector< int32_t > & | triangleIndexes, | ||
| const std::vector< eVision::Easy3D::E3DPoint > & | normals ) |
Creates an EMesh object.
| pointCloud | A point cloud |
| triangleIndexes | The triangle mesh is a list of indexes, referring to the array contained in "pointCloud". |
A triangle is defined by 3 indexes (T1a T1b T1c T2a T2b T2c T3a ....). Index values must be in [0, N[ with N the number of points in the EPointCloud. The triangle index array size is a multiple of 3.
| normals | Normals of each of the faces of the mesh. Must be the third of the size of "triangleIndexes". |
If not provided, they will be computed automatically from the faces by assuming the vertices are listed in counter-clock-wise order from outside (which is the convention used by the stl file format).
| eVision::Easy3D::EMesh::EMesh | ( | const eVision::Easy3D::EMesh & | other | ) |
|
virtual | ||||||||||||
| eVision::Easy3D::EMesh::EMesh | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::Easy3D::EMesh::Clear | ( | ) |
Empties the Mesh.
| eVision::Easy3D::E3DPlane eVision::Easy3D::EMesh::ComputePlaneBehind | ( | eVision::Easy3D::E3DPoint | normal | ) | const |
| eVision::Easy3D::E3DPlane eVision::Easy3D::EMesh::ComputePlaneBehind | ( | eVision::Easy3D::E3DPoint | normal, |
| float | margin ) const |
| const void * eVision::Easy3D::EMesh::GetNormals | ( | ) | const |
| const eVision::Easy3D::EPointCloud & eVision::Easy3D::EMesh::GetPointCloud | ( | ) | const |
Returns the point cloud of the EMesh object.
| int32_t eVision::Easy3D::EMesh::GetTriangleCount | ( | ) | const |
Returns the number of triangles.
If the EMesh object has no triangle mesh data, the method returns 0.
| const void * eVision::Easy3D::EMesh::GetTriangleIndexes | ( | ) | const |
Returns a pointer to the index array (an array of 32 bit signed integers) representing the list of triangles. Indexes are referring to the array of E3DPoint.
A triangle is defined by 3 indexes (T1a T1b T1c T2a T2b T2c T3a ....). The triangle index array size is a multiple of 3.
Index values must be in [0, N[ where N is the number of points in the point cloud. If the EMesh object has no triangle mesh data, this method returns NULL.
| void eVision::Easy3D::EMesh::Load | ( | const std::string & | path | ) |
Loads the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Easy3D::EMesh::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| void eVision::Easy3D::EMesh::LoadSTL | ( | const std::string & | path | ) |
Loads a triangle mesh from an STL file.
| path | The path to the STL file. |
| eVision::Easy3D::EMesh & eVision::Easy3D::EMesh::operator= | ( | const eVision::Easy3D::EMesh & | other | ) |
Assignment operator.
| other | The other EMesh that we will copy into this one. |
| void eVision::Easy3D::EMesh::Save | ( | const std::string & | path | ) |
Saves the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Easy3D::EMesh::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EMesh. Supported formats are eVision proprietary and STL. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| void eVision::Easy3D::EMesh::SaveSTL | ( | const std::string & | path | ) | const |
Saves the triangle mesh to an STL file.
| path | The path to the STL file. |
| void eVision::Easy3D::EMesh::SaveSTL | ( | const std::string & | path, |
| bool | binary ) const |
Saves the triangle mesh to an STL file.
| path | The path to the STL file. |
| binary | Optional parameter, activates the binary file format (default is true). |
| CppWrapperInternal::WrappedClass eVision::Easy3D::EMesh::wrappedClass_ |