MeshLib
 
Loading...
Searching...
No Matches
MRDotNet/MRPointCloud.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshOrPoints.h"
4
6public ref class PointCloud : public MeshOrPoints
7{
8internal:
10
11public:
14
15 virtual property VertCoordsReadOnly^ Points { VertCoordsReadOnly^ get(); }
17 virtual property Box3f^ BoundingBox { Box3f^ get(); }
18
20
22 static PointCloud^ FromAnySupportedFormat( System::String^ path );
24 static void ToAnySupportedFormat( PointCloud^ mesh, System::String^ path );
26 void AddPoint( Vector3f^ point );
28 void AddPoint( Vector3f^ point, Vector3f^ normal );
29
30private:
31 MR::PointCloud* pc_;
32 VertCoords^ points_;
33 VertCoords^ normals_;
34 VertBitSet^ validPoints_;
35 Box3f^ boundingBox_;
36
37internal:
38 MR::PointCloud* getPointCloud() { return pc_; }
39 void clearManagedResources();
40};
41
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
BitSetReadOnly VertBitSetReadOnly
Definition MRDotNet/MRMeshFwd.h:78
ReadOnlyCollection< Vector3f^> VertCoordsReadOnly
Definition MRDotNet/MRMeshFwd.h:96
List< Vector3f^> VertCoords
Definition MRDotNet/MRMeshFwd.h:95
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
Definition MRDotNet/MRBitSet.h:39
Box given by its min- and max- corners.
Definition MRBox3.h:8
represents a point cloud
Definition MRDotNet/MRPointCloud.h:7
static PointCloud FromAnySupportedFormat(System::String^ path)
loads point cloud from file of any supported format
property VertCoordsReadOnly Normals
Definition MRDotNet/MRPointCloud.h:19
void AddPoint(Vector3f^ point)
adds a point
virtual property Box3f BoundingBox
Definition MRDotNet/MRPointCloud.h:17
void AddPoint(Vector3f^ point, Vector3f^ normal)
adds a point with a normal
static void ToAnySupportedFormat(PointCloud^ mesh, System::String^ path)
saves point cloud to file of any supported format
virtual property VertBitSetReadOnly ValidPoints
Definition MRDotNet/MRPointCloud.h:16
virtual property VertCoordsReadOnly Points
Definition MRDotNet/MRPointCloud.h:15
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
represents a point cloud or a mesh
Definition MRDotNet/MRMeshOrPoints.h:12
Definition MRMesh/MRPointCloud.h:16