MeshLib C# Docs
Loading...
Searching...
No Matches
MR.PointCloud Class Reference

Generated from class MR.PointCloud. This is the non-const half of the class. More...

+ Inheritance diagram for MR.PointCloud:

Public Member Functions

unsafe PointCloud ()
 Constructs an empty (default-constructed) instance.
 
unsafe PointCloud (MR._ByValue_PointCloud _other)
 Generated from constructor MR.PointCloud.PointCloud.
 
 PointCloud (Const_PointCloud _other)
 Generated from constructor MR.PointCloud.PointCloud.
 
 PointCloud (PointCloud _other)
 Generated from constructor MR.PointCloud.PointCloud.
 
unsafe MR.PointCloud assign (MR._ByValue_PointCloud _other)
 Generated from method MR.PointCloud.operator=.
 
unsafe void transform (in MR.AffineXf3f xf, MR.Const_VertBitSet? region=null)
 applies given transformation to specified points and corresponding transformation to their normals if present; if region is nullptr, all valid points are modified Generated from method MR.PointCloud.transform.
 
unsafe void addPartByMask (MR.Const_PointCloud from, MR.Const_VertBitSet fromVerts, MR.Const_CloudPartMapping? outMap=null, MR.Const_VertCoords? extNormals=null)
 appends points (and normals if it possible) (from) in addition to this points if this obj have normals and from obj has not it then don't do anything
 
unsafe MR.VertId addPoint (in MR.Vector3f point)
 appends a point and returns its VertId Generated from method MR.PointCloud.addPoint.
 
unsafe MR.VertId addPoint (in MR.Vector3f point, in MR.Vector3f normal)
 appends a point with normal and returns its VertId Generated from method MR.PointCloud.addPoint.
 
unsafe void mirror (MR.Const_Plane3f plane)
 reflects the points from a given plane Generated from method MR.PointCloud.mirror.
 
unsafe void flipOrientation (MR.Const_VertBitSet? region=null)
 flip orientation (normals) of given points (or all valid points is nullptr) Generated from method MR.PointCloud.flipOrientation.
 
unsafe bool pack (MR.VertMap? outNew2Old=null)
 tightly packs all arrays eliminating invalid points, but relative order of valid points is preserved; returns false if the cloud was packed before the call and nothing has been changed; if pack is done optionally returns mappings: new.id -> old.id Generated from method MR.PointCloud.pack.
 
unsafe MR.VertBMap pack (MR.Reorder reoder)
 tightly packs all arrays eliminating invalid points, reorders valid points according to given strategy;
 
unsafe void invalidateCaches ()
 Invalidates caches (e.g. aabb-tree) after a change in point cloud Generated from method MR.PointCloud.invalidateCaches.
 

Properties

new unsafe MR.VertCoords points [get, protected set]
 coordinates of points
 
new unsafe MR.VertCoords normals [get, protected set]
 unit normal directions of points (can be empty if no normals are known)
 
new unsafe MR.VertBitSet validPoints [get, protected set]
 only points and normals corresponding to set bits here are valid
 

Detailed Description

Generated from class MR.PointCloud. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ PointCloud() [1/4]

unsafe MR.PointCloud.PointCloud ( )
inline

Constructs an empty (default-constructed) instance.

◆ PointCloud() [2/4]

unsafe MR.PointCloud.PointCloud ( MR._ByValue_PointCloud _other)
inline

Generated from constructor MR.PointCloud.PointCloud.

◆ PointCloud() [3/4]

MR.PointCloud.PointCloud ( Const_PointCloud _other)
inline

Generated from constructor MR.PointCloud.PointCloud.

◆ PointCloud() [4/4]

MR.PointCloud.PointCloud ( PointCloud _other)
inline

Generated from constructor MR.PointCloud.PointCloud.

Member Function Documentation

◆ addPartByMask()

unsafe void MR.PointCloud.addPartByMask ( MR.Const_PointCloud from,
MR.Const_VertBitSet fromVerts,
MR.Const_CloudPartMapping? outMap = null,
MR.Const_VertCoords? extNormals = null )
inline

appends points (and normals if it possible) (from) in addition to this points if this obj have normals and from obj has not it then don't do anything

Parameters
extNormalsif given then they will be copied instead of from.normals Generated from method MR.PointCloud.addPartByMask. Parameter outMap defaults to {}.

◆ addPoint() [1/2]

unsafe MR.VertId MR.PointCloud.addPoint ( in MR.Vector3f point)
inline

appends a point and returns its VertId Generated from method MR.PointCloud.addPoint.

◆ addPoint() [2/2]

unsafe MR.VertId MR.PointCloud.addPoint ( in MR.Vector3f point,
in MR.Vector3f normal )
inline

appends a point with normal and returns its VertId Generated from method MR.PointCloud.addPoint.

◆ assign()

unsafe MR.PointCloud MR.PointCloud.assign ( MR._ByValue_PointCloud _other)
inline

Generated from method MR.PointCloud.operator=.

◆ flipOrientation()

unsafe void MR.PointCloud.flipOrientation ( MR.Const_VertBitSet? region = null)
inline

flip orientation (normals) of given points (or all valid points is nullptr) Generated from method MR.PointCloud.flipOrientation.

◆ invalidateCaches()

unsafe void MR.PointCloud.invalidateCaches ( )
inline

Invalidates caches (e.g. aabb-tree) after a change in point cloud Generated from method MR.PointCloud.invalidateCaches.

◆ mirror()

unsafe void MR.PointCloud.mirror ( MR.Const_Plane3f plane)
inline

reflects the points from a given plane Generated from method MR.PointCloud.mirror.

◆ pack() [1/2]

unsafe MR.VertBMap MR.PointCloud.pack ( MR.Reorder reoder)
inline

tightly packs all arrays eliminating invalid points, reorders valid points according to given strategy;

Returns
points mapping: old -> new Generated from method MR.PointCloud.pack.

◆ pack() [2/2]

unsafe bool MR.PointCloud.pack ( MR.VertMap? outNew2Old = null)
inline

tightly packs all arrays eliminating invalid points, but relative order of valid points is preserved; returns false if the cloud was packed before the call and nothing has been changed; if pack is done optionally returns mappings: new.id -> old.id Generated from method MR.PointCloud.pack.

◆ transform()

unsafe void MR.PointCloud.transform ( in MR.AffineXf3f xf,
MR.Const_VertBitSet? region = null )
inline

applies given transformation to specified points and corresponding transformation to their normals if present; if region is nullptr, all valid points are modified Generated from method MR.PointCloud.transform.

Property Documentation

◆ normals

new unsafe MR.VertCoords MR.PointCloud.normals
getprotected set

unit normal directions of points (can be empty if no normals are known)

◆ points

new unsafe MR.VertCoords MR.PointCloud.points
getprotected set

coordinates of points

◆ validPoints

new unsafe MR.VertBitSet MR.PointCloud.validPoints
getprotected set

only points and normals corresponding to set bits here are valid


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