Represents a 3D meshed object. More...
Public Member Functions | |
| None | __init__ (self) |
| Creates an eVision.Easy3D.EMesh object. | |
| None | __init__ (self, eVision.Easy3D.EPointCloud pointCloud, list[int] triangleIndexes) |
| Creates an eVision.Easy3D.EMesh object. | |
| None | __init__ (self, eVision.Easy3D.EPointCloud pointCloud, list[int] triangleIndexes, list[eVision._eVision.Easy3D.E3DPoint] normals) |
| Creates an eVision.Easy3D.EMesh object. | |
| None | __init__ (self, eVision.Easy3D.EMesh other) |
| Creates an eVision.Easy3D.EMesh object. | |
| None | Clear (self) |
| Empties the Mesh. | |
| None | Load (self, str path) |
| Loads the eVision.Easy3D.EMesh. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads the eVision.Easy3D.EMesh. | |
| None | Save (self, str path) |
| Saves the eVision.Easy3D.EMesh. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the eVision.Easy3D.EMesh. | |
| None | SaveSTL (self, str path, bool binary) |
| Saves the triangle mesh to an STL file. | |
| None | SaveSTL (self, str path) |
| Saves the triangle mesh to an STL file. | |
| None | LoadSTL (self, str path) |
| Loads a triangle mesh from an STL file. | |
| eVision.Easy3D.E3DPlane | ComputePlaneBehind (self, eVision.Easy3D.E3DPoint normal, float margin) |
| Returns the eVision.Easy3D.E3DPlane with given normal on which the eVision.Easy3D.EMesh lays. | |
| eVision.Easy3D.E3DPlane | ComputePlaneBehind (self, eVision.Easy3D.E3DPoint normal) |
| Returns the eVision.Easy3D.E3DPlane with given normal on which the eVision.Easy3D.EMesh lays. | |
| eVision.Easy3D.EPointCloud | PointCloud (self) |
| Returns the point cloud of the eVision.Easy3D.EMesh object. | |
| ctypes.c_void_p | TriangleIndexes (self) |
| Returns a pointer to the index array (an array of 32 bit signed integers) representing the list of triangles. | |
| ctypes.c_void_p | Normals (self) |
| Returns a pointer to the array (of eVision.Easy3D.E3DPoint) representing the list of normals. | |
| int | TriangleCount (self) |
| Returns the number of triangles. | |
| None eVision.Easy3D.EMesh.__init__ | ( | self | ) |
Creates an eVision.Easy3D.EMesh object.
| None eVision.Easy3D.EMesh.__init__ | ( | self, | |
| eVision.Easy3D.EPointCloud | pointCloud, | ||
| list[int] | triangleIndexes ) |
Creates an eVision.Easy3D.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 eVision.Easy3D.EPointCloud. The triangle index array size is a multiple of 3.
| None eVision.Easy3D.EMesh.__init__ | ( | self, | |
| eVision.Easy3D.EPointCloud | pointCloud, | ||
| list[int] | triangleIndexes, | ||
| list[eVision._eVision.Easy3D.E3DPoint] | normals ) |
Creates an eVision.Easy3D.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 eVision.Easy3D.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).
| None eVision.Easy3D.EMesh.__init__ | ( | self, | |
| eVision.Easy3D.EMesh | other ) |
Creates an eVision.Easy3D.EMesh object.
| other | Another eVision.Easy3D.EMesh. |
| None eVision.Easy3D.EMesh.Clear | ( | self | ) |
Empties the Mesh.
| eVision.Easy3D.E3DPlane eVision.Easy3D.EMesh.ComputePlaneBehind | ( | self, | |
| eVision.Easy3D.E3DPoint | normal ) |
Returns the eVision.Easy3D.E3DPlane with given normal on which the eVision.Easy3D.EMesh lays.
This is useful when projecting an eVision.Easy3D.EMesh on an eVision.Easy3D.EZMap.
| normal | The normal of the plane. |
| eVision.Easy3D.E3DPlane eVision.Easy3D.EMesh.ComputePlaneBehind | ( | self, | |
| eVision.Easy3D.E3DPoint | normal, | ||
| float | margin ) |
Returns the eVision.Easy3D.E3DPlane with given normal on which the eVision.Easy3D.EMesh lays.
This is useful when projecting an eVision.Easy3D.EMesh on an eVision.Easy3D.EZMap.
| normal | The normal of the plane. |
| margin | Let P be the plane, A point of the eVision.Easy3D.EMesh closest to P and B the of the eVision.Easy3D.EMesh furthest to B. margin = dist(P, A) / dist(P, B). Must be positive. Default: 0.02. |
| None eVision.Easy3D.EMesh.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads the eVision.Easy3D.EMesh.
Supported formats are eVision proprietary and STL. The given eVision.ESerializer must have been created for reading.
| serializer | The serializer. |
| None eVision.Easy3D.EMesh.Load | ( | self, | |
| str | path ) |
Loads the eVision.Easy3D.EMesh.
Supported formats are eVision proprietary and STL. The given eVision.ESerializer must have been created for reading.
| path | The file path. |
| None eVision.Easy3D.EMesh.LoadSTL | ( | self, | |
| str | path ) |
Loads a triangle mesh from an STL file.
| path | The path to the STL file. |
| ctypes.c_void_p eVision.Easy3D.EMesh.Normals | ( | self | ) |
Returns a pointer to the array (of eVision.Easy3D.E3DPoint) representing the list of normals.
If the eVision.Easy3D.EMesh object has no triangle mesh data, this method returns NULL.
| eVision.Easy3D.EPointCloud eVision.Easy3D.EMesh.PointCloud | ( | self | ) |
Returns the point cloud of the eVision.Easy3D.EMesh object.
| None eVision.Easy3D.EMesh.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves the eVision.Easy3D.EMesh.
Supported formats are eVision proprietary and STL. The given eVision.ESerializer must have been created for writing.
| serializer | The eVision.ESerializer object that is written to. |
| None eVision.Easy3D.EMesh.Save | ( | self, | |
| str | path ) |
Saves the eVision.Easy3D.EMesh.
Supported formats are eVision proprietary and STL. The given eVision.ESerializer must have been created for writing.
| path | The file path. |
| None eVision.Easy3D.EMesh.SaveSTL | ( | self, | |
| str | path ) |
Saves the triangle mesh to an STL file.
| path | The path to the STL file. |
| None eVision.Easy3D.EMesh.SaveSTL | ( | self, | |
| str | 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). |
| int eVision.Easy3D.EMesh.TriangleCount | ( | self | ) |
Returns the number of triangles.
If the eVision.Easy3D.EMesh object has no triangle mesh data, the method returns 0.
| ctypes.c_void_p eVision.Easy3D.EMesh.TriangleIndexes | ( | self | ) |
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 eVision.Easy3D.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 eVision.Easy3D.EMesh object has no triangle mesh data, this method returns NULL.