MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.PointCloud:

Public Member Functions

None __init__ (self)
None __init__ (self, ConstPointCloud arg0)
None addPartByMask (self, ConstPointCloud from_, ConstVertBitSet fromVerts, ConstCloudPartMapping outMap=..., ConstVertCoords extNormals=None)
VertId addPoint (self, ConstVector3f point)
VertId addPoint (self, ConstVector3f point, ConstVector3f normal)
PointCloud assign (self, ConstPointCloud other)
None flipOrientation (self, ConstVertBitSet region=None)
None invalidateCaches (self)
None mirror (self, ConstPlane3f plane)
bool pack (self, VertMap outNew2Old=None)
VertBMap pack (self, Reorder reoder)
None transform (self, ConstAffineXf3f xf, ConstVertBitSet region=None)
None updateCaches (self, ConstVertBitSet changedVerts)
VertCoords normals (self)
None normals (self, ConstVertCoords arg1)
VertCoords points (self)
None points (self, ConstVertCoords arg1)
VertBitSet validPoints (self)
None validPoints (self, ConstVertBitSet arg1)
Public Member Functions inherited from mrmeshpy.ConstPointCloud
 __init__ (self, *args, **kwargs)
int calcNumValidPoints (self)
Box3f computeBoundingBox (self, ConstAffineXf3f toWorld=None)
Box3f computeBoundingBox (self, ConstVertBitSet region, ConstAffineXf3f toWorld=None)
Vector3f findCenterFromBBox (self)
Vector3f findCenterFromPoints (self)
ConstAABBTreePoints getAABBTree (self)
ConstAABBTreePoints getAABBTreeNotCreate (self)
Box3f getBoundingBox (self)
std_vector_Id_VertTag getLexicographicalOrder (self)
ConstVertBitSet getVertIds (self, ConstVertBitSet region)
bool hasNormals (self)
int heapBytes (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstPointCloud
typing _offsetof_normals = 24
typing _offsetof_points = 0
typing _offsetof_validPoints = 48

Detailed Description

Generated from:  MR::PointCloud
Aliases:  std_shared_ptr_PointCloud, std_shared_ptr_const_PointCloud

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.PointCloud.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.PointCloud.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.PointCloud.__init__ ( self,
ConstPointCloud arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addPartByMask()

None mrmeshpy.PointCloud.addPartByMask ( self,
ConstPointCloud from_,
ConstVertBitSet fromVerts,
ConstCloudPartMapping outMap = ...,
ConstVertCoords extNormals = None )
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
\\param extNormals if given then they will be copied instead of from.normals

◆ addPoint() [1/2]

VertId mrmeshpy.PointCloud.addPoint ( self,
ConstVector3f point )
appends a point and returns its VertId

◆ addPoint() [2/2]

VertId mrmeshpy.PointCloud.addPoint ( self,
ConstVector3f point,
ConstVector3f normal )
appends a point with normal and returns its VertId

◆ assign()

PointCloud mrmeshpy.PointCloud.assign ( self,
ConstPointCloud other )

◆ flipOrientation()

None mrmeshpy.PointCloud.flipOrientation ( self,
ConstVertBitSet region = None )
flip orientation (normals) of given points (or all valid points is nullptr)

◆ invalidateCaches()

None mrmeshpy.PointCloud.invalidateCaches ( self)
Invalidates caches (e.g. aabb-tree) after a change in point cloud

◆ mirror()

None mrmeshpy.PointCloud.mirror ( self,
ConstPlane3f plane )
reflects the points from a given plane

◆ normals() [1/2]

VertCoords mrmeshpy.PointCloud.normals ( self)
unit normal directions of points (can be empty if no normals are known)

Reimplemented from mrmeshpy.ConstPointCloud.

◆ normals() [2/2]

None mrmeshpy.PointCloud.normals ( self,
ConstVertCoords arg1 )
unit normal directions of points (can be empty if no normals are known)

Reimplemented from mrmeshpy.ConstPointCloud.

◆ pack() [1/2]

VertBMap mrmeshpy.PointCloud.pack ( self,
Reorder reoder )
tightly packs all arrays eliminating invalid points, reorders valid points according to given strategy;
\\return points mapping: old -> new

◆ pack() [2/2]

bool mrmeshpy.PointCloud.pack ( self,
VertMap outNew2Old = None )
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

◆ points() [1/2]

VertCoords mrmeshpy.PointCloud.points ( self)
coordinates of points

Reimplemented from mrmeshpy.ConstPointCloud.

◆ points() [2/2]

None mrmeshpy.PointCloud.points ( self,
ConstVertCoords arg1 )
coordinates of points

Reimplemented from mrmeshpy.ConstPointCloud.

◆ transform()

None mrmeshpy.PointCloud.transform ( self,
ConstAffineXf3f xf,
ConstVertBitSet region = None )
applies given transformation to specified points and corresponding transformation to their normals if present;
if region is nullptr, all valid points are modified

◆ updateCaches()

None mrmeshpy.PointCloud.updateCaches ( self,
ConstVertBitSet changedVerts )
updates existing caches in case of few points were changed insignificantly,
and validPoints remained unchanged;
it shall be considered as a faster alternative to invalidateCaches() and following rebuild of trees
\\param changedVerts points with modified coordinates, nullptr means all valid points

◆ validPoints() [1/2]

VertBitSet mrmeshpy.PointCloud.validPoints ( self)
only points and normals corresponding to set bits here are valid

Reimplemented from mrmeshpy.ConstPointCloud.

◆ validPoints() [2/2]

None mrmeshpy.PointCloud.validPoints ( self,
ConstVertBitSet arg1 )
only points and normals corresponding to set bits here are valid

Reimplemented from mrmeshpy.ConstPointCloud.


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