Represents a 3D meshed object. More...


Public Member Functions | |
| EMesh () | |
| Creates an EMesh object. | |
| EMesh (eVision.Easy3D.EPointCloud pointCloud, int[] triangleIndexes) | |
| Creates an EMesh object. | |
| EMesh (eVision.Easy3D.EPointCloud pointCloud, int[] triangleIndexes, eVision.Easy3D.E3DPoint[] normals) | |
| Creates an EMesh object. | |
| EMesh (eVision.Easy3D.EMesh other) | |
| Creates an EMesh object. | |
| void | Clear () |
| Empties the Mesh. | |
| void | Load (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 (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 (string path, bool binary) |
| Saves the triangle mesh to an STL file. | |
| void | SaveSTL (string path) |
| Saves the triangle mesh to an STL file. | |
| void | LoadSTL (string path) |
| Loads a triangle mesh from an STL file. | |
| eVision.Easy3D.E3DPlane | ComputePlaneBehind (eVision.Easy3D.E3DPoint normal, float margin) |
| 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) |
| Returns the E3DPlane with given normal on which the EMesh lays. This is useful when projecting an EMesh on an EZMap. | |
Properties | |
| eVision.Easy3D.EPointCloud | PointCloud [get] |
| Returns the point cloud of the EMesh object. | |
| IntPtr | TriangleIndexes [get] |
| 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. | |
| IntPtr | Normals [get] |
| 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. | |
| int | TriangleCount [get] |
| Returns the number of triangles. | |
Represents a 3D meshed object.
License(s): Easy3D
| eVision.Easy3D.EMesh.EMesh | ( | ) |
Creates an EMesh object.
| eVision.Easy3D.EMesh.EMesh | ( | eVision.Easy3D.EPointCloud | pointCloud, |
| int[] | 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 | ( | eVision.Easy3D.EPointCloud | pointCloud, |
| int[] | triangleIndexes, | ||
| 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 | ( | eVision.Easy3D.EMesh | other | ) |
| void eVision.Easy3D.EMesh.Clear | ( | ) |
Empties the Mesh.
| eVision.Easy3D.E3DPlane eVision.Easy3D.EMesh.ComputePlaneBehind | ( | eVision.Easy3D.E3DPoint | normal | ) |
| eVision.Easy3D.E3DPlane eVision.Easy3D.EMesh.ComputePlaneBehind | ( | eVision.Easy3D.E3DPoint | normal, |
| float | margin ) |
| 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.Load | ( | 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.LoadSTL | ( | string | path | ) |
Loads a triangle mesh from an STL file.
| path | The path to the STL file. |
| 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.Save | ( | 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.SaveSTL | ( | string | path | ) |
Saves the triangle mesh to an STL file.
| path | The path to the STL file. |
| void eVision.Easy3D.EMesh.SaveSTL | ( | string | path, |
| bool | binary ) |
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). |
|
get |
|
get |
Returns the point cloud of the EMesh object.
|
get |
Returns the number of triangles.
If the EMesh object has no triangle mesh data, the method returns 0.
|
get |
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.