Public Member Functions | |
| None | __init__ (self, ConstMesh mesh, ConstVertBitSet region) |
| None | __init__ (self, ConstMesh mesh, ConstVector3f target, ConstVertBitSet region) |
| None | __init__ (self, ConstSurfaceDistanceBuilder arg0) |
| None | addStart (self, ConstMeshTriPoint start) |
| None | addStartEdgesAndPoints (self, ConstUndirectedEdgeBitSet startEdges, ConstVertBitSet startPoints, float startDistance) |
| None | addStartRegion (self, ConstVertBitSet region, float startDistance) |
| None | addStartVertices (self, Const_phmap_flat_hash_map_Id_VertTag_float_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_float startVertices) |
| VertId | growOne (self) |
| None | setMaxVertUpdates (self, int v) |
| None | setNoLocalMinima (self, bool on) |
| VertScalars | takeDistanceMap (self) |
| Public Member Functions inherited from mrmeshpy.ConstSurfaceDistanceBuilder | |
| __init__ (self, *args, **kwargs) | |
| bool | done (self) |
| float | doneDistance (self) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
Generated from: MR::SurfaceDistanceBuilder this class is responsible for iterative construction of distance map along the surface
|
static |
| None mrmeshpy.SurfaceDistanceBuilder.__init__ | ( | self, | |
| ConstMesh | mesh, | ||
| ConstVertBitSet | region ) |
| None mrmeshpy.SurfaceDistanceBuilder.__init__ | ( | self, | |
| ConstMesh | mesh, | ||
| ConstVector3f | target, | ||
| ConstVertBitSet | region ) |
| None mrmeshpy.SurfaceDistanceBuilder.__init__ | ( | self, | |
| ConstSurfaceDistanceBuilder | arg0 ) |
Implicit copy constructor.
| None mrmeshpy.SurfaceDistanceBuilder.addStart | ( | self, | |
| ConstMeshTriPoint | start ) |
initiates distance construction from triangle vertices surrounding given start point (they all will be returned by growOne); the distances are from this point, each call adds a separate point
| None mrmeshpy.SurfaceDistanceBuilder.addStartEdgesAndPoints | ( | self, | |
| ConstUndirectedEdgeBitSet | startEdges, | ||
| ConstVertBitSet | startPoints, | ||
| float | startDistance ) |
initiates distance construction from given start edges and start points with known start distance in all of them (their vertices will NOT be returned by growOne); the start edges connected by vertices make lines or regions; each start point is a point never united with other starts, even if it is one edge away from them, unless it is an end of a start edge
| None mrmeshpy.SurfaceDistanceBuilder.addStartRegion | ( | self, | |
| ConstVertBitSet | region, | ||
| float | startDistance ) |
initiates distance construction from given vertices with known start distance in all of them (region vertices will NOT be returned by growOne); the vertices connected by mesh edges make lines or regions, each isolated vertex is a point
| None mrmeshpy.SurfaceDistanceBuilder.addStartVertices | ( | self, | |
| Const_phmap_flat_hash_map_Id_VertTag_float_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_float | startVertices ) |
initiates distance construction from given start vertices with values in them (these vertices will NOT be returned by growOne if values in them are not decreased); the vertices connected by mesh edges make lines or regions (a line with different values is handled as a region), each isolated vertex is a point
| VertId mrmeshpy.SurfaceDistanceBuilder.growOne | ( | self | ) |
processes one more candidate vertex, which is returned
| None mrmeshpy.SurfaceDistanceBuilder.setMaxVertUpdates | ( | self, | |
| int | v ) |
the maximum amount of times vertex distance can be updated in [1,255], 3 by default; the more the better obtuse triangles are handled
| None mrmeshpy.SurfaceDistanceBuilder.setNoLocalMinima | ( | self, | |
| bool | on ) |
if true, then a distance computed in a triangle is always larger than the smaller distance in its other two vertices, so every reached vertex except the vertices around the start has a neighbor with smaller distance, and the steepest descent from any reached point arrives to the start; distances near the start and near obtuse or thin triangles become larger, and some distances computed from them can become a bit smaller
| VertScalars mrmeshpy.SurfaceDistanceBuilder.takeDistanceMap | ( | self | ) |
takes ownership over constructed distance map