MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.SurfaceDistanceBuilder Class Reference
Inheritance diagram for meshlib.SurfaceDistanceBuilder:

Public Member Functions

 SurfaceDistanceBuilder (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SurfaceDistanceBuilder (meshlib.SurfaceDistanceBuilder _other)
 SurfaceDistanceBuilder (meshlib.Mesh mesh, meshlib.VertBitSet region)
 SurfaceDistanceBuilder (meshlib.Mesh mesh, meshlib.Vector3f target, meshlib.VertBitSet region)
void addStartRegion (meshlib.VertBitSet region, float startDistance)
void addStartVertices (meshlib.phmap.phmap_flat_hash_map_MR_VertId_float_phmap_Hash_MR_VertId_phmap_EqualTo_MR_VertId_MR_Allocator_std_pa__ec65138f startVertices)
void addStartEdgesAndPoints (meshlib.UndirectedEdgeBitSet startEdges, meshlib.VertBitSet startPoints, float startDistance)
void addStart (meshlib.MeshTriPoint start)
void setMaxVertUpdates (int v)
meshlib.VertId growOne ()
meshlib.VertScalars takeDistanceMap ()
boolean done ()
float doneDistance ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

this class is responsible for iterative construction of distance map along the surface Generated from class MR::SurfaceDistanceBuilder.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ SurfaceDistanceBuilder() [1/4]

meshlib.SurfaceDistanceBuilder.SurfaceDistanceBuilder ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ SurfaceDistanceBuilder() [2/4]

meshlib.SurfaceDistanceBuilder.SurfaceDistanceBuilder ( meshlib.SurfaceDistanceBuilder _other)

Generated from constructor MR::SurfaceDistanceBuilder::SurfaceDistanceBuilder. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_SurfaceDistanceBuilder_ConstructFromAnother().

◆ SurfaceDistanceBuilder() [3/4]

meshlib.SurfaceDistanceBuilder.SurfaceDistanceBuilder ( meshlib.Mesh mesh,
meshlib.VertBitSet region )

Generated from constructor MR::SurfaceDistanceBuilder::SurfaceDistanceBuilder. The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter region might be preserved in the constructed object.

Calls MR_SurfaceDistanceBuilder_Construct_2().

◆ SurfaceDistanceBuilder() [4/4]

meshlib.SurfaceDistanceBuilder.SurfaceDistanceBuilder ( meshlib.Mesh mesh,
meshlib.Vector3f target,
meshlib.VertBitSet region )

Generated from constructor MR::SurfaceDistanceBuilder::SurfaceDistanceBuilder. The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter target might be preserved in the constructed object. The reference to the parameter region might be preserved in the constructed object.

Calls MR_SurfaceDistanceBuilder_Construct_3().

Member Function Documentation

◆ addStart()

void meshlib.SurfaceDistanceBuilder.addStart ( meshlib.MeshTriPoint 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 Generated from method MR::SurfaceDistanceBuilder::addStart.

Calls MR_SurfaceDistanceBuilder_addStart().

◆ addStartEdgesAndPoints()

void meshlib.SurfaceDistanceBuilder.addStartEdgesAndPoints ( meshlib.UndirectedEdgeBitSet startEdges,
meshlib.VertBitSet 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 Generated from method MR::SurfaceDistanceBuilder::addStartEdgesAndPoints.

Calls MR_SurfaceDistanceBuilder_addStartEdgesAndPoints().

◆ addStartRegion()

void meshlib.SurfaceDistanceBuilder.addStartRegion ( meshlib.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); the vertices connected by mesh edges make lines or regions, each isolated vertex is a point Generated from method MR::SurfaceDistanceBuilder::addStartRegion.

Calls MR_SurfaceDistanceBuilder_addStartRegion().

◆ addStartVertices()

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 Generated from method MR::SurfaceDistanceBuilder::addStartVertices.

Calls MR_SurfaceDistanceBuilder_addStartVertices().

◆ done()

boolean meshlib.SurfaceDistanceBuilder.done ( )

returns true if further growth is impossible Generated from method MR::SurfaceDistanceBuilder::done.

Calls MR_SurfaceDistanceBuilder_done().

◆ doneDistance()

float meshlib.SurfaceDistanceBuilder.doneDistance ( )

returns path length till the next candidate vertex or maximum float value if all vertices have been reached Generated from method MR::SurfaceDistanceBuilder::doneDistance.

Calls MR_SurfaceDistanceBuilder_doneDistance().

◆ growOne()

meshlib.VertId meshlib.SurfaceDistanceBuilder.growOne ( )

processes one more candidate vertex, which is returned Generated from method MR::SurfaceDistanceBuilder::growOne.

Calls MR_SurfaceDistanceBuilder_growOne().

◆ setMaxVertUpdates()

void meshlib.SurfaceDistanceBuilder.setMaxVertUpdates ( 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 Generated from method MR::SurfaceDistanceBuilder::setMaxVertUpdates.

Calls MR_SurfaceDistanceBuilder_setMaxVertUpdates().

◆ takeDistanceMap()

meshlib.VertScalars meshlib.SurfaceDistanceBuilder.takeDistanceMap ( )

takes ownership over constructed distance map Generated from method MR::SurfaceDistanceBuilder::takeDistanceMap.

Calls MR_SurfaceDistanceBuilder_takeDistanceMap().


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