3D mesh object consisting of polygons. More...
#include <cvb/mesh.hpp>
Public Member Functions | |
| std::size_t | NumPolygons () const noexcept |
| Get the number of polygons in this mesh. | |
| Polygon3D< T > | PolygonAt (std::size_t index) const |
| Gets polygons for this mesh. | |
| std::vector< std::uint32_t > | PolygonIndicesAt (std::size_t index) const |
| Gets point indices for a polygon. | |
| std::size_t | NumPoints () const noexcept |
| Get the number of points in the mesh. | |
| T | PointAt (std::size_t index) const noexcept |
| Gets the point at the specified index. | |
| Cuboid | CalculateBoundingBox () const |
| Calculates the minimum and maximum extent of the mesh. | |
| void | RasterDensePointCloudToDst (const Matrix3D &cameraRotation, Vector3D< double > cameraTranslation, DensePointCloud &denseCloud) |
| Rasters this mesh into a dense point cloud and stores the result. | |
| DensePointCloudPtr | RasterDensePointCloud (const Matrix3D &cameraRotation, Vector3D< double > cameraTranslation, double xResIncrement, double yResIncrement) |
| Rasters this mesh into a dense point cloud and stores the result. | |
Static Public Member Functions | |
| static MeshPtr< T > | FromFile (const String &fileName) |
| Loads a mesh from file. | |
| static MeshPtr< T > | FromPointCloud (const SparsePointCloudPtr &pointCloud) |
| Creates a mesh from a point cloud containing mesh information. | |
3D mesh object consisting of polygons.
|
inline |
Calculates the minimum and maximum extent of the mesh.
| Any | exception derived from std::exception including CvbException. |
Loads a mesh from file.
Use a 3D point as type.
| [in] | fileName | File to load. |
| Any | exception derived from std::exception including CvbException. |
|
inlinestatic |
Creates a mesh from a point cloud containing mesh information.
Use a 3D point as type.
| [in] | pointCloud | Shared pointer to point cloud with mesh information. |
| Any | exception derived from std::exception including CvbException and if mesh could not be created. |
|
inlinenoexcept |
Get the number of points in the mesh.
| Does | not throw any exception. |
|
inlinenoexcept |
Get the number of polygons in this mesh.
| Does | not throw any exception. |
|
inlinenoexcept |
Gets the point at the specified index.
| [in] | index | The index. |
| Does | not throw any exception. |
|
inline |
Gets polygons for this mesh.
| [in] | index | The index. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Gets point indices for a polygon.
| [in] | index | The index. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Rasters this mesh into a dense point cloud and stores the result.
| [in] | cameraRotation | Rotation matrix for the camera. |
| [in] | cameraTranslation | Translation vector for the camera. |
| [in] | xResIncrement | The pixel size in x-direction. |
| [in] | yResIncrement | The pixel size in y-direction. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Rasters this mesh into a dense point cloud and stores the result.
| [in] | cameraRotation | Rotation matrix for the camera. |
| [in] | cameraTranslation | Translation vector for the camera. |
| [in] | denseCloud | Dense point cloud to store the rastered mesh in. |
| Any | exception derived from std::exception including CvbException. |