MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.SurfaceDistanceBuilder Class Reference

Public Member Functions

None __init__ (self, Mesh mesh, VertBitSet region)
 
None __init__ (self, Mesh mesh, Vector3f target, VertBitSet region)
 
None __init__ (self, SurfaceDistanceBuilder arg0)
 
None addStart (self, MeshTriPoint start)
 
None addStartRegion (self, VertBitSet region, float startDistance)
 
None addStartVertices (self, phmap_flat_hash_map_Id_VertTag_float startVertices)
 
bool done (self)
 
float doneDistance (self)
 
VertId growOne (self)
 
None setMaxVertUpdates (self, int v)
 
VertScalars takeDistanceMap (self)
 

Detailed Description

Generated from:  MR::SurfaceDistanceBuilder

this class is responsible for iterative construction of distance map along the surface

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.SurfaceDistanceBuilder.__init__ ( self,
Mesh mesh,
VertBitSet region )

◆ __init__() [2/3]

None meshlib.mrmeshpy.SurfaceDistanceBuilder.__init__ ( self,
Mesh mesh,
Vector3f target,
VertBitSet region )

◆ __init__() [3/3]

None meshlib.mrmeshpy.SurfaceDistanceBuilder.__init__ ( self,
SurfaceDistanceBuilder arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addStart()

None meshlib.mrmeshpy.SurfaceDistanceBuilder.addStart ( self,
MeshTriPoint start )
initiates distance construction from triangle vertices surrounding given start point (they all will be returned by growOne)

◆ addStartRegion()

None meshlib.mrmeshpy.SurfaceDistanceBuilder.addStartRegion ( self,
VertBitSet 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)

◆ addStartVertices()

None meshlib.mrmeshpy.SurfaceDistanceBuilder.addStartVertices ( self,
phmap_flat_hash_map_Id_VertTag_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)

◆ done()

bool meshlib.mrmeshpy.SurfaceDistanceBuilder.done ( self)
returns true if further growth is impossible

◆ doneDistance()

float meshlib.mrmeshpy.SurfaceDistanceBuilder.doneDistance ( self)
returns path length till the next candidate vertex or maximum float value if all vertices have been reached

◆ growOne()

VertId meshlib.mrmeshpy.SurfaceDistanceBuilder.growOne ( self)
processes one more candidate vertex, which is returned

◆ setMaxVertUpdates()

None meshlib.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

◆ takeDistanceMap()

VertScalars meshlib.mrmeshpy.SurfaceDistanceBuilder.takeDistanceMap ( self)
takes ownership over constructed distance map

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