MeshLib C# Docs
Loading...
Searching...
No Matches

This class can hold either mesh part or point cloud. It is used for generic algorithms operating with either of them Generated from class MR.MeshOrPoints. This is the const half of the class. More...

Inheritance diagram for MR.Const_MeshOrPoints:

Classes

class  _InOptConst_ProjectionResult
 This is used for optional parameters of class ProjectionResult with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_ProjectionResult. Usage:
class  _InOptMut_ProjectionResult
 This is used for optional parameters of class ProjectionResult with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_ProjectionResult. Usage:
struct  _Underlying
class  Const_ProjectionResult
 Generated from class MR.MeshOrPoints.ProjectionResult. This is the const half of the class. More...
class  ProjectionResult
 Generated from class MR.MeshOrPoints.ProjectionResult. This is the non-const half of the class. More...

Public Member Functions

virtual void Dispose ()
unsafe Const_MeshOrPoints (MR.Const_MeshOrPoints _other)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
 Const_MeshOrPoints (MeshOrPoints _other)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
unsafe Const_MeshOrPoints (MR.Const_MeshPart mp)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
unsafe Const_MeshOrPoints (MR.Const_PointCloudPart pcp)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
unsafe Const_MeshOrPoints (MR.Const_Mesh mesh)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
unsafe Const_MeshOrPoints (MR.Const_PointCloud pc)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
unsafe MR.? Const_MeshPart asMeshPart ()
 if this object holds a mesh part then returns pointer on it, otherwise returns nullptr Generated from method MR.MeshOrPoints.asMeshPart.
unsafe MR.? Const_PointCloudPart asPointCloudPart ()
 if this object holds a point cloud part then returns pointer on it, otherwise returns nullptr Generated from method MR.MeshOrPoints.asPointCloudPart.
unsafe MR.Box3f getObjBoundingBox ()
 returns the minimal bounding box containing all valid vertices of the object (and not only part of mesh); implemented via obj.getAABBTree() Generated from method MR.MeshOrPoints.getObjBoundingBox.
unsafe void cacheAABBTree ()
 if AABBTree is already built does nothing otherwise builds and caches it Generated from method MR.MeshOrPoints.cacheAABBTree.
unsafe MR.Box3f computeBoundingBox (MR.AffineXf3f? toWorld=null)
 passes through all valid vertices and finds the minimal bounding box containing all of them; if toWorld transformation is given then returns minimal bounding box in world space Generated from method MR.MeshOrPoints.computeBoundingBox.
unsafe void accumulate (MR.PointAccumulator accum, MR.AffineXf3f? xf=null)
 Adds in existing PointAccumulator the elements of the contained object Generated from method MR.MeshOrPoints.accumulate.
unsafe MR.Std.Optional_MRVertBitSet pointsGridSampling (float voxelSize, ulong? maxVoxels=null, MR.Std.Const_Function_Bool_From_Float? cb=null)
 performs sampling of vertices or points; subdivides bounding box of the object on voxels of approximately given size and returns at most one vertex per voxel; voxelSize is automatically increased to avoid more voxels than
unsafe MR.Const_VertCoords points ()
 gives access to points-vector (which can include invalid points as well) Generated from method MR.MeshOrPoints.points.
unsafe MR.Const_VertBitSet validPoints ()
 gives access to bit set of valid points Generated from method MR.MeshOrPoints.validPoints.
unsafe MR.Std.Function_MRVector3f_From_MRVertId normals ()
 returns normals generating function: VertId->normal (or empty for point cloud without normals) Generated from method MR.MeshOrPoints.normals.
unsafe MR.Std.Function_Float_From_MRVertId weights ()
 returns weights generating function: VertId->float: for mesh it is double area of surrounding triangles, and for point cloud - nothing Generated from method MR.MeshOrPoints.weights.
unsafe MR.Std.Function_MRMeshOrPointsProjectionResult_From_ConstMRVector3fRef projector ()
 returns a function that finds projection (closest) points on this: Vector3f->ProjectionResult Generated from method MR.MeshOrPoints.projector.
unsafe MR.Std.Function_Bool_From_ConstMRVector3fRef_MRMeshOrPointsProjectionResultRef limitedProjector ()
 returns a function that updates previously known projection (closest) points on this, the update takes place only if newly found closest point is closer to p than sqrt(res.distSq) given on input The function returns true if the update has taken place. Generated from method MR.MeshOrPoints.limitedProjector.

Static Public Member Functions

static unsafe implicit operator Const_MeshOrPoints (MR.Const_MeshPart mp)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
static unsafe implicit operator Const_MeshOrPoints (MR.Const_PointCloudPart pcp)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
static unsafe implicit operator Const_MeshOrPoints (MR.Const_Mesh mesh)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.
static unsafe implicit operator Const_MeshOrPoints (MR.Const_PointCloud pc)
 Generated from constructor MR.MeshOrPoints.MeshOrPoints.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Detailed Description

This class can hold either mesh part or point cloud. It is used for generic algorithms operating with either of them Generated from class MR.MeshOrPoints. This is the const half of the class.

Constructor & Destructor Documentation

◆ Const_MeshOrPoints() [1/6]

unsafe MR.Const_MeshOrPoints.Const_MeshOrPoints ( MR.Const_MeshOrPoints _other)
inline

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ Const_MeshOrPoints() [2/6]

MR.Const_MeshOrPoints.Const_MeshOrPoints ( MeshOrPoints _other)
inline

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ Const_MeshOrPoints() [3/6]

unsafe MR.Const_MeshOrPoints.Const_MeshOrPoints ( MR.Const_MeshPart mp)
inline

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ Const_MeshOrPoints() [4/6]

unsafe MR.Const_MeshOrPoints.Const_MeshOrPoints ( MR.Const_PointCloudPart pcp)
inline

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ Const_MeshOrPoints() [5/6]

unsafe MR.Const_MeshOrPoints.Const_MeshOrPoints ( MR.Const_Mesh mesh)
inline

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ Const_MeshOrPoints() [6/6]

unsafe MR.Const_MeshOrPoints.Const_MeshOrPoints ( MR.Const_PointCloud pc)
inline

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

Member Function Documentation

◆ accumulate()

unsafe void MR.Const_MeshOrPoints.accumulate ( MR.PointAccumulator accum,
MR.AffineXf3f? xf = null )
inline

Adds in existing PointAccumulator the elements of the contained object Generated from method MR.MeshOrPoints.accumulate.

◆ asMeshPart()

unsafe MR.? Const_MeshPart MR.Const_MeshOrPoints.asMeshPart ( )
inline

if this object holds a mesh part then returns pointer on it, otherwise returns nullptr Generated from method MR.MeshOrPoints.asMeshPart.

◆ asPointCloudPart()

unsafe MR.? Const_PointCloudPart MR.Const_MeshOrPoints.asPointCloudPart ( )
inline

if this object holds a point cloud part then returns pointer on it, otherwise returns nullptr Generated from method MR.MeshOrPoints.asPointCloudPart.

◆ cacheAABBTree()

unsafe void MR.Const_MeshOrPoints.cacheAABBTree ( )
inline

if AABBTree is already built does nothing otherwise builds and caches it Generated from method MR.MeshOrPoints.cacheAABBTree.

◆ computeBoundingBox()

unsafe MR.Box3f MR.Const_MeshOrPoints.computeBoundingBox ( MR.AffineXf3f? toWorld = null)
inline

passes through all valid vertices and finds the minimal bounding box containing all of them; if toWorld transformation is given then returns minimal bounding box in world space Generated from method MR.MeshOrPoints.computeBoundingBox.

◆ Dispose() [1/2]

virtual void MR.Const_MeshOrPoints.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_MeshOrPoints.Dispose ( bool disposing)
inlineprotectedvirtual

◆ getObjBoundingBox()

unsafe MR.Box3f MR.Const_MeshOrPoints.getObjBoundingBox ( )
inline

returns the minimal bounding box containing all valid vertices of the object (and not only part of mesh); implemented via obj.getAABBTree() Generated from method MR.MeshOrPoints.getObjBoundingBox.

◆ limitedProjector()

unsafe MR.Std.Function_Bool_From_ConstMRVector3fRef_MRMeshOrPointsProjectionResultRef MR.Const_MeshOrPoints.limitedProjector ( )
inline

returns a function that updates previously known projection (closest) points on this, the update takes place only if newly found closest point is closer to p than sqrt(res.distSq) given on input The function returns true if the update has taken place. Generated from method MR.MeshOrPoints.limitedProjector.

◆ normals()

unsafe MR.Std.Function_MRVector3f_From_MRVertId MR.Const_MeshOrPoints.normals ( )
inline

returns normals generating function: VertId->normal (or empty for point cloud without normals) Generated from method MR.MeshOrPoints.normals.

◆ operator Const_MeshOrPoints() [1/4]

unsafe implicit MR.Const_MeshOrPoints.operator Const_MeshOrPoints ( MR.Const_Mesh mesh)
inlinestatic

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ operator Const_MeshOrPoints() [2/4]

unsafe implicit MR.Const_MeshOrPoints.operator Const_MeshOrPoints ( MR.Const_MeshPart mp)
inlinestatic

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ operator Const_MeshOrPoints() [3/4]

unsafe implicit MR.Const_MeshOrPoints.operator Const_MeshOrPoints ( MR.Const_PointCloud pc)
inlinestatic

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ operator Const_MeshOrPoints() [4/4]

unsafe implicit MR.Const_MeshOrPoints.operator Const_MeshOrPoints ( MR.Const_PointCloudPart pcp)
inlinestatic

Generated from constructor MR.MeshOrPoints.MeshOrPoints.

◆ points()

unsafe MR.Const_VertCoords MR.Const_MeshOrPoints.points ( )
inline

gives access to points-vector (which can include invalid points as well) Generated from method MR.MeshOrPoints.points.

◆ pointsGridSampling()

unsafe MR.Std.Optional_MRVertBitSet MR.Const_MeshOrPoints.pointsGridSampling ( float voxelSize,
ulong? maxVoxels = null,
MR.Std.Const_Function_Bool_From_Float? cb = null )
inline

performs sampling of vertices or points; subdivides bounding box of the object on voxels of approximately given size and returns at most one vertex per voxel; voxelSize is automatically increased to avoid more voxels than

Parameters
maxVoxels;if voxelSize == 0 then all valid points are returned; returns std::nullopt if it was terminated by the callback Generated from method MR.MeshOrPoints.pointsGridSampling. Parameter maxVoxels defaults to 500000. Parameter cb defaults to {}.

◆ projector()

unsafe MR.Std.Function_MRMeshOrPointsProjectionResult_From_ConstMRVector3fRef MR.Const_MeshOrPoints.projector ( )
inline

returns a function that finds projection (closest) points on this: Vector3f->ProjectionResult Generated from method MR.MeshOrPoints.projector.

◆ validPoints()

unsafe MR.Const_VertBitSet MR.Const_MeshOrPoints.validPoints ( )
inline

gives access to bit set of valid points Generated from method MR.MeshOrPoints.validPoints.

◆ weights()

unsafe MR.Std.Function_Float_From_MRVertId MR.Const_MeshOrPoints.weights ( )
inline

returns weights generating function: VertId->float: for mesh it is double area of surrounding triangles, and for point cloud - nothing Generated from method MR.MeshOrPoints.weights.


The documentation for this class was generated from the following file: