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

Public Member Functions

 PolylineSubdivideSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 PolylineSubdivideSettings ()
 PolylineSubdivideSettings (float maxEdgeLen, int maxEdgeSplits, meshlib.VertBitSet region, meshlib.VertBitSet newVerts, boolean useCurvature, meshlib.std_function_void_from_MR_VertId onVertCreated, meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId onEdgeSplit, meshlib.std_function_bool_from_float progressCallback)
 PolylineSubdivideSettings (meshlib.PolylineSubdivideSettings _other)
meshlib.PolylineSubdivideSettings assignFromAnother (meshlib.PolylineSubdivideSettings _other)
float maxEdgeLen ()
void setMaxEdgeLen (float value)
int maxEdgeSplits ()
void setMaxEdgeSplits (int value)
java.lang.foreign.MemorySegment region ()
void setRegion (meshlib.VertBitSet value)
java.lang.foreign.MemorySegment newVerts ()
void setNewVerts (meshlib.VertBitSet value)
boolean useCurvature ()
void setUseCurvature (boolean value)
meshlib.std_function_void_from_MR_VertId onVertCreated ()
void setOnVertCreated (meshlib.std_function_void_from_MR_VertId value)
meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId onEdgeSplit ()
void setOnEdgeSplit (meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId value)
meshlib.std_function_bool_from_float progressCallback ()
void setProgressCallback (meshlib.std_function_bool_from_float value)
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

Generated from class MR::PolylineSubdivideSettings.

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

Constructor & Destructor Documentation

◆ PolylineSubdivideSettings() [1/4]

meshlib.PolylineSubdivideSettings.PolylineSubdivideSettings ( 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.

◆ PolylineSubdivideSettings() [2/4]

meshlib.PolylineSubdivideSettings.PolylineSubdivideSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_PolylineSubdivideSettings_DefaultConstruct().

◆ PolylineSubdivideSettings() [3/4]

meshlib.PolylineSubdivideSettings.PolylineSubdivideSettings ( float maxEdgeLen,
int maxEdgeSplits,
meshlib.VertBitSet region,
meshlib.VertBitSet newVerts,
boolean useCurvature,
meshlib.std_function_void_from_MR_VertId onVertCreated,
meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId onEdgeSplit,
meshlib.std_function_bool_from_float progressCallback )

Constructs MR::PolylineSubdivideSettings elementwise. The reference to the parameter region might be preserved in the constructed object. The reference to the parameter newVerts might be preserved in the constructed object. The reference to the parameter onVertCreated might be preserved in the constructed object. The reference to the parameter onEdgeSplit might be preserved in the constructed object. The reference to the parameter progressCallback might be preserved in the constructed object.

Calls MR_PolylineSubdivideSettings_ConstructFrom().

◆ PolylineSubdivideSettings() [4/4]

meshlib.PolylineSubdivideSettings.PolylineSubdivideSettings ( meshlib.PolylineSubdivideSettings _other)

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

Calls MR_PolylineSubdivideSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.PolylineSubdivideSettings meshlib.PolylineSubdivideSettings.assignFromAnother ( meshlib.PolylineSubdivideSettings _other)

Generated from method MR::PolylineSubdivideSettings::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_PolylineSubdivideSettings_AssignFromAnother().

◆ maxEdgeLen()

float meshlib.PolylineSubdivideSettings.maxEdgeLen ( )

Subdivision is stopped when all edges are not longer than this value Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named maxEdgeLen. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_maxEdgeLen().

◆ maxEdgeSplits()

int meshlib.PolylineSubdivideSettings.maxEdgeSplits ( )

Maximum number of edge splits allowed Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named maxEdgeSplits. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_maxEdgeSplits().

◆ newVerts()

java.lang.foreign.MemorySegment meshlib.PolylineSubdivideSettings.newVerts ( )

New vertices appeared during subdivision will be added here Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named newVerts. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_newVerts(). Some types are raw C types, see the C bindings for the details.

◆ onEdgeSplit()

meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId meshlib.PolylineSubdivideSettings.onEdgeSplit ( )

this function is called each time edge (e) is split into (e1->e) Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named onEdgeSplit. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_onEdgeSplit().

◆ onVertCreated()

meshlib.std_function_void_from_MR_VertId meshlib.PolylineSubdivideSettings.onVertCreated ( )

this function is called each time a new vertex has been created Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named onVertCreated. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_onVertCreated().

◆ progressCallback()

meshlib.std_function_bool_from_float meshlib.PolylineSubdivideSettings.progressCallback ( )

callback to report algorithm progress and cancel it by user request Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named progressCallback. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_progressCallback().

◆ region()

java.lang.foreign.MemorySegment meshlib.PolylineSubdivideSettings.region ( )

Region on polyline to be subdivided: both edge vertices must be there to allow spitting, it is updated during the operation Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named region. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_region(). Some types are raw C types, see the C bindings for the details.

◆ setMaxEdgeLen()

void meshlib.PolylineSubdivideSettings.setMaxEdgeLen ( float value)

Subdivision is stopped when all edges are not longer than this value Modifies a member variable of class MR::PolylineSubdivideSettings named maxEdgeLen.

Calls MR_PolylineSubdivideSettings_Set_maxEdgeLen().

◆ setMaxEdgeSplits()

void meshlib.PolylineSubdivideSettings.setMaxEdgeSplits ( int value)

Maximum number of edge splits allowed Modifies a member variable of class MR::PolylineSubdivideSettings named maxEdgeSplits.

Calls MR_PolylineSubdivideSettings_Set_maxEdgeSplits().

◆ setNewVerts()

void meshlib.PolylineSubdivideSettings.setNewVerts ( meshlib.VertBitSet value)

New vertices appeared during subdivision will be added here Modifies a member variable of class MR::PolylineSubdivideSettings named newVerts. The reference to the parameter value might be preserved in this object in element newVerts.

Calls MR_PolylineSubdivideSettings_Set_newVerts().

◆ setOnEdgeSplit()

void meshlib.PolylineSubdivideSettings.setOnEdgeSplit ( meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId value)

this function is called each time edge (e) is split into (e1->e) Modifies a member variable of class MR::PolylineSubdivideSettings named onEdgeSplit. The reference to the parameter value might be preserved in this object in element onEdgeSplit.

Calls MR_PolylineSubdivideSettings_Set_onEdgeSplit().

◆ setOnVertCreated()

void meshlib.PolylineSubdivideSettings.setOnVertCreated ( meshlib.std_function_void_from_MR_VertId value)

this function is called each time a new vertex has been created Modifies a member variable of class MR::PolylineSubdivideSettings named onVertCreated. The reference to the parameter value might be preserved in this object in element onVertCreated.

Calls MR_PolylineSubdivideSettings_Set_onVertCreated().

◆ setProgressCallback()

void meshlib.PolylineSubdivideSettings.setProgressCallback ( meshlib.std_function_bool_from_float value)

callback to report algorithm progress and cancel it by user request Modifies a member variable of class MR::PolylineSubdivideSettings named progressCallback. The reference to the parameter value might be preserved in this object in element progressCallback.

Calls MR_PolylineSubdivideSettings_Set_progressCallback().

◆ setRegion()

void meshlib.PolylineSubdivideSettings.setRegion ( meshlib.VertBitSet value)

Region on polyline to be subdivided: both edge vertices must be there to allow spitting, it is updated during the operation Modifies a member variable of class MR::PolylineSubdivideSettings named region. The reference to the parameter value might be preserved in this object in element region.

Calls MR_PolylineSubdivideSettings_Set_region().

◆ setUseCurvature()

void meshlib.PolylineSubdivideSettings.setUseCurvature ( boolean value)

This option works best for natural lines, where all segments have similar size, and no sharp angles in between Modifies a member variable of class MR::PolylineSubdivideSettings named useCurvature.

Calls MR_PolylineSubdivideSettings_Set_useCurvature().

◆ useCurvature()

boolean meshlib.PolylineSubdivideSettings.useCurvature ( )

This option works best for natural lines, where all segments have similar size, and no sharp angles in between Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named useCurvature. The reference to this object might be preserved as the return value.

Calls MR_PolylineSubdivideSettings_Get_useCurvature().


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