3D mesh object consisting of polygons. More...
Inherits INativeHandle.
Public Member Functions | |
void | Dispose () |
IDisposable implementation. | |
IEnumerable< PointType > | TryGetPointsAs< PointType > () |
Tries to get the points of this mesh. More... | |
IEnumerable< int[]> | GetPolygonIndices () |
Gets the point indices of the polygons in this mesh. More... | |
IEnumerable< Polygon3D< T > > | GetPolygons () |
Gets the polygons of this mesh. More... | |
unsafe void | RasterToDensePointCloud (Matrix3D cameraRotation, Point3Dd cameraTranslation, DensePointCloud denseCloud) |
Rasters this mesh into a zbuffer and stores the result into the given denseCloud . More... | |
unsafe DensePointCloud | RasterToDensePointCloud (Matrix3D cameraRotation, Point3Dd cameraTranslation, double xResIncrement, double yResIncrement) |
Rasters this mesh into a zbuffer and stores the result in a newly created DensePointCloud. More... | |
Static Public Member Functions | |
static Mesh< T > | FromFile (string file) |
Loads a mesh from file. More... | |
static Mesh< T > | FromHandle (IntPtr handle) |
Creates a mesh from the given handle . More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
IDisposable helper function. More... | |
Properties | |
long | NumPolygons [get] |
Number of polygons this mesh has. | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Properties inherited from INativeHandle | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Events | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Events inherited from INativeHandle | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
3D mesh object consisting of polygons.
T | : | struct |
|
protectedvirtual |
IDisposable helper function.
disposing |
|
static |
Loads a mesh from file.
file | File to load. |
|
static |
Creates a mesh from the given handle .
handle |
IEnumerable< int[]> GetPolygonIndices | ( | ) |
Gets the point indices of the polygons in this mesh.
IEnumerable< Polygon3D< T > > GetPolygons | ( | ) |
Gets the polygons of this mesh.
unsafe void RasterToDensePointCloud | ( | Matrix3D | cameraRotation, |
Point3Dd | cameraTranslation, | ||
DensePointCloud | denseCloud | ||
) |
Rasters this mesh into a zbuffer and stores the result into the given denseCloud .
cameraRotation | Rotation matrix for the camera. |
cameraTranslation | Translation vector for the camera. |
denseCloud | Dense point cloud to store the rastered mesh in. |
unsafe DensePointCloud RasterToDensePointCloud | ( | Matrix3D | cameraRotation, |
Point3Dd | cameraTranslation, | ||
double | xResIncrement, | ||
double | yResIncrement | ||
) |
Rasters this mesh into a zbuffer and stores the result in a newly created DensePointCloud.
cameraRotation | Rotation matrix for the camera. |
cameraTranslation | Translation vector for the camera. |
xResIncrement | The pixel size in x-direction. |
yResIncrement | The pixel size in y-direction. |
IEnumerable< PointType > TryGetPointsAs< PointType > | ( | ) |
Tries to get the points of this mesh.
PointType | Type of the points to get. |
PointType | : | struct |
NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.