Classes | |
| class | ProjectionResult |
Public Member Functions | |
| None | __init__ (self, MeshPart mp) |
| None | __init__ (self, PointCloudPart pcp) |
| None | __init__ (self, Mesh mesh) |
| None | __init__ (self, PointCloud pc) |
| None | __init__ (self, MeshOrPoints arg0) |
| None | accumulate (self, PointAccumulator accum, AffineXf3f xf=None) |
| MeshPart | asMeshPart (self) |
| PointCloudPart | asPointCloudPart (self) |
| None | cacheAABBTree (self) |
| Box3f | computeBoundingBox (self, AffineXf3f toWorld=None) |
| Box3f | getObjBoundingBox (self) |
| func_bool_from_Vector3_float_MeshOrPoints_ProjectionResult | limitedProjector (self) |
| func_Vector3_float_from_Id_VertTag | normals (self) |
| VertCoords | points (self) |
| VertBitSet | pointsGridSampling (self, float voxelSize, int maxVoxels=500000, func_bool_from_float cb='{}') |
| func_MeshOrPoints_ProjectionResult_from_Vector3_float | projector (self) |
| VertBitSet | validPoints (self) |
| func_float_from_Id_VertTag | weights (self) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| MeshOrPoints | operator (*args, **kwargs) |
| MeshOrPoints | operator (*args, **kwargs) |
Generated from: MR::MeshOrPoints This class can hold either mesh part or point cloud. It is used for generic algorithms operating with either of them
|
static |
| None mrmeshpy.MeshOrPoints.__init__ | ( | self, | |
| MeshPart | mp ) |
| None mrmeshpy.MeshOrPoints.__init__ | ( | self, | |
| PointCloudPart | pcp ) |
| None mrmeshpy.MeshOrPoints.__init__ | ( | self, | |
| Mesh | mesh ) |
these constructors are redundant for C++, but important for python bindings
| None mrmeshpy.MeshOrPoints.__init__ | ( | self, | |
| PointCloud | pc ) |
| None mrmeshpy.MeshOrPoints.__init__ | ( | self, | |
| MeshOrPoints | arg0 ) |
Implicit copy constructor.
| None mrmeshpy.MeshOrPoints.accumulate | ( | self, | |
| PointAccumulator | accum, | ||
| AffineXf3f | xf = None ) |
Adds in existing PointAccumulator the elements of the contained object
| MeshPart mrmeshpy.MeshOrPoints.asMeshPart | ( | self | ) |
if this object holds a mesh part then returns pointer on it, otherwise returns nullptr
| PointCloudPart mrmeshpy.MeshOrPoints.asPointCloudPart | ( | self | ) |
if this object holds a point cloud part then returns pointer on it, otherwise returns nullptr
| None mrmeshpy.MeshOrPoints.cacheAABBTree | ( | self | ) |
if AABBTree is already built does nothing otherwise builds and caches it
| Box3f mrmeshpy.MeshOrPoints.computeBoundingBox | ( | self, | |
| AffineXf3f | toWorld = None ) |
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
| Box3f mrmeshpy.MeshOrPoints.getObjBoundingBox | ( | self | ) |
returns the minimal bounding box containing all valid vertices of the object (and not only part of mesh); implemented via obj.getAABBTree()
| func_bool_from_Vector3_float_MeshOrPoints_ProjectionResult mrmeshpy.MeshOrPoints.limitedProjector | ( | self | ) |
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.
| func_Vector3_float_from_Id_VertTag mrmeshpy.MeshOrPoints.normals | ( | self | ) |
returns normals generating function: VertId->normal (or empty for point cloud without normals)
|
static |
|
static |
| VertCoords mrmeshpy.MeshOrPoints.points | ( | self | ) |
gives access to points-vector (which can include invalid points as well)
| VertBitSet mrmeshpy.MeshOrPoints.pointsGridSampling | ( | self, | |
| float | voxelSize, | ||
| int | maxVoxels = 500000, | ||
| func_bool_from_float | cb = '{}' ) |
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 \\param maxVoxels; returns std::nullopt if it was terminated by the callback
| func_MeshOrPoints_ProjectionResult_from_Vector3_float mrmeshpy.MeshOrPoints.projector | ( | self | ) |
returns a function that finds projection (closest) points on this: Vector3f->ProjectionResult
| VertBitSet mrmeshpy.MeshOrPoints.validPoints | ( | self | ) |
gives access to bit set of valid points
| func_float_from_Id_VertTag mrmeshpy.MeshOrPoints.weights | ( | self | ) |
returns weights generating function: VertId->float: for mesh it is double area of surrounding triangles, and for point cloud - nothing