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 |
Generated from: MR::PointCloud Aliases: std_shared_ptr_PointCloud, std_shared_ptr_const_PointCloud
|
static |
| None mrmeshpy.PointCloud.__init__ | ( | self | ) |
| None mrmeshpy.PointCloud.__init__ | ( | self, | |
| ConstPointCloud | arg0 ) |
Implicit copy constructor.
| 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
| VertId mrmeshpy.PointCloud.addPoint | ( | self, | |
| ConstVector3f | point ) |
appends a point and returns its VertId
| VertId mrmeshpy.PointCloud.addPoint | ( | self, | |
| ConstVector3f | point, | ||
| ConstVector3f | normal ) |
appends a point with normal and returns its VertId
| PointCloud mrmeshpy.PointCloud.assign | ( | self, | |
| ConstPointCloud | other ) |
| None mrmeshpy.PointCloud.flipOrientation | ( | self, | |
| ConstVertBitSet | region = None ) |
flip orientation (normals) of given points (or all valid points is nullptr)
| None mrmeshpy.PointCloud.invalidateCaches | ( | self | ) |
Invalidates caches (e.g. aabb-tree) after a change in point cloud
| None mrmeshpy.PointCloud.mirror | ( | self, | |
| ConstPlane3f | plane ) |
reflects the points from a given plane
| VertCoords mrmeshpy.PointCloud.normals | ( | self | ) |
unit normal directions of points (can be empty if no normals are known)
Reimplemented from mrmeshpy.ConstPointCloud.
| None mrmeshpy.PointCloud.normals | ( | self, | |
| ConstVertCoords | arg1 ) |
unit normal directions of points (can be empty if no normals are known)
Reimplemented from mrmeshpy.ConstPointCloud.
tightly packs all arrays eliminating invalid points, reorders valid points according to given strategy; \\return points mapping: old -> new
| 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
| VertCoords mrmeshpy.PointCloud.points | ( | self | ) |
coordinates of points
Reimplemented from mrmeshpy.ConstPointCloud.
| None mrmeshpy.PointCloud.points | ( | self, | |
| ConstVertCoords | arg1 ) |
coordinates of points
Reimplemented from mrmeshpy.ConstPointCloud.
| 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
| 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
| VertBitSet mrmeshpy.PointCloud.validPoints | ( | self | ) |
only points and normals corresponding to set bits here are valid
Reimplemented from mrmeshpy.ConstPointCloud.
| None mrmeshpy.PointCloud.validPoints | ( | self, | |
| ConstVertBitSet | arg1 ) |
only points and normals corresponding to set bits here are valid
Reimplemented from mrmeshpy.ConstPointCloud.