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

Public Member Functions

 MarchingCubesParams (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MarchingCubesParams ()
 MarchingCubesParams (meshlib.Vector3f origin, meshlib.std_function_bool_from_float cb, float iso, boolean lessInside, meshlib.Vector_MR_VoxelId_MR_FaceId outVoxelPerFaceMap, meshlib.AffineXf3f outGridToMeshXf, meshlib.std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float positioner, int maxVertices, meshlib.MarchingCubesParams_CachingMode cachingMode, meshlib.std_function_void freeVolume)
 MarchingCubesParams (meshlib.MarchingCubesParams _other)
meshlib.MarchingCubesParams assignFromAnother (meshlib.MarchingCubesParams _other)
meshlib.Vector3f origin ()
void setOrigin (meshlib.Vector3f value)
meshlib.std_function_bool_from_float cb ()
void setCb (meshlib.std_function_bool_from_float value)
float iso ()
void setIso (float value)
boolean lessInside ()
void setLessInside (boolean value)
java.lang.foreign.MemorySegment outVoxelPerFaceMap ()
void setOutVoxelPerFaceMap (meshlib.Vector_MR_VoxelId_MR_FaceId value)
java.lang.foreign.MemorySegment outGridToMeshXf ()
void setOutGridToMeshXf (meshlib.AffineXf3f value)
meshlib.std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float positioner ()
void setPositioner (meshlib.std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float value)
int maxVertices ()
void setMaxVertices (int value)
meshlib.MarchingCubesParams_CachingMode cachingMode ()
void setCachingMode (meshlib.MarchingCubesParams_CachingMode value)
meshlib.std_function_void freeVolume ()
void setFreeVolume (meshlib.std_function_void 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::MarchingCubesParams.

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

Constructor & Destructor Documentation

◆ MarchingCubesParams() [1/4]

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

◆ MarchingCubesParams() [2/4]

meshlib.MarchingCubesParams.MarchingCubesParams ( )

Constructs an empty (default-constructed) instance.

Calls MR_MarchingCubesParams_DefaultConstruct().

◆ MarchingCubesParams() [3/4]

meshlib.MarchingCubesParams.MarchingCubesParams ( meshlib.Vector3f origin,
meshlib.std_function_bool_from_float cb,
float iso,
boolean lessInside,
meshlib.Vector_MR_VoxelId_MR_FaceId outVoxelPerFaceMap,
meshlib.AffineXf3f outGridToMeshXf,
meshlib.std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float positioner,
int maxVertices,
meshlib.MarchingCubesParams_CachingMode cachingMode,
meshlib.std_function_void freeVolume )

Constructs MR::MarchingCubesParams elementwise. The reference to the parameter origin might be preserved in the constructed object. The reference to the parameter cb might be preserved in the constructed object. The reference to the parameter outVoxelPerFaceMap might be preserved in the constructed object. The reference to the parameter outGridToMeshXf might be preserved in the constructed object. The reference to the parameter positioner might be preserved in the constructed object. The reference to the parameter cachingMode might be preserved in the constructed object. The reference to the parameter freeVolume might be preserved in the constructed object.

Calls MR_MarchingCubesParams_ConstructFrom().

◆ MarchingCubesParams() [4/4]

meshlib.MarchingCubesParams.MarchingCubesParams ( meshlib.MarchingCubesParams _other)

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

Calls MR_MarchingCubesParams_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MarchingCubesParams meshlib.MarchingCubesParams.assignFromAnother ( meshlib.MarchingCubesParams _other)

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

Calls MR_MarchingCubesParams_AssignFromAnother().

◆ cachingMode()

meshlib.MarchingCubesParams_CachingMode meshlib.MarchingCubesParams.cachingMode ( )

Returns a pointer to a member variable of class MR::MarchingCubesParams named cachingMode. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_cachingMode().

◆ cb()

meshlib.std_function_bool_from_float meshlib.MarchingCubesParams.cb ( )

progress callback Returns a pointer to a member variable of class MR::MarchingCubesParams named cb. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_cb().

◆ freeVolume()

meshlib.std_function_void meshlib.MarchingCubesParams.freeVolume ( )

this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption Returns a pointer to a member variable of class MR::MarchingCubesParams named freeVolume. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_freeVolume().

◆ iso()

float meshlib.MarchingCubesParams.iso ( )

target iso-value of the surface to be extracted from volume Returns a pointer to a member variable of class MR::MarchingCubesParams named iso. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_iso().

◆ lessInside()

boolean meshlib.MarchingCubesParams.lessInside ( )

should be false for dense volumes, and true for distance volume Returns a pointer to a member variable of class MR::MarchingCubesParams named lessInside. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_lessInside().

◆ maxVertices()

int meshlib.MarchingCubesParams.maxVertices ( )

if the mesh exceeds this number of vertices, an error returns Returns a pointer to a member variable of class MR::MarchingCubesParams named maxVertices. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_maxVertices().

◆ origin()

meshlib.Vector3f meshlib.MarchingCubesParams.origin ( )

origin point of voxels box in 3D space with output mesh Returns a pointer to a member variable of class MR::MarchingCubesParams named origin. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_origin().

◆ outGridToMeshXf()

java.lang.foreign.MemorySegment meshlib.MarchingCubesParams.outGridToMeshXf ( )

optional output transform from integer grid locations to mesh reference frame: the node with integer coordinates (i,j,k) is located in (*outGridToMeshXf)( Vector3f( i, j, k ) ); every vertex of output mesh is located on a grid edge Returns a pointer to a member variable of class MR::MarchingCubesParams named outGridToMeshXf. The reference to this object might be preserved as the return value.

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

◆ outVoxelPerFaceMap()

java.lang.foreign.MemorySegment meshlib.MarchingCubesParams.outVoxelPerFaceMap ( )

optional output map FaceId->VoxelId Returns a pointer to a member variable of class MR::MarchingCubesParams named outVoxelPerFaceMap. The reference to this object might be preserved as the return value.

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

◆ positioner()

function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads Returns a pointer to a member variable of class MR::MarchingCubesParams named positioner. The reference to this object might be preserved as the return value.

Calls MR_MarchingCubesParams_Get_positioner().

◆ setCachingMode()

void meshlib.MarchingCubesParams.setCachingMode ( meshlib.MarchingCubesParams_CachingMode value)

Modifies a member variable of class MR::MarchingCubesParams named cachingMode. The reference to the parameter value might be preserved in this object in element cachingMode.

Calls MR_MarchingCubesParams_Set_cachingMode().

◆ setCb()

void meshlib.MarchingCubesParams.setCb ( meshlib.std_function_bool_from_float value)

progress callback Modifies a member variable of class MR::MarchingCubesParams named cb. The reference to the parameter value might be preserved in this object in element cb.

Calls MR_MarchingCubesParams_Set_cb().

◆ setFreeVolume()

void meshlib.MarchingCubesParams.setFreeVolume ( meshlib.std_function_void value)

this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption Modifies a member variable of class MR::MarchingCubesParams named freeVolume. The reference to the parameter value might be preserved in this object in element freeVolume.

Calls MR_MarchingCubesParams_Set_freeVolume().

◆ setIso()

void meshlib.MarchingCubesParams.setIso ( float value)

target iso-value of the surface to be extracted from volume Modifies a member variable of class MR::MarchingCubesParams named iso.

Calls MR_MarchingCubesParams_Set_iso().

◆ setLessInside()

void meshlib.MarchingCubesParams.setLessInside ( boolean value)

should be false for dense volumes, and true for distance volume Modifies a member variable of class MR::MarchingCubesParams named lessInside.

Calls MR_MarchingCubesParams_Set_lessInside().

◆ setMaxVertices()

void meshlib.MarchingCubesParams.setMaxVertices ( int value)

if the mesh exceeds this number of vertices, an error returns Modifies a member variable of class MR::MarchingCubesParams named maxVertices.

Calls MR_MarchingCubesParams_Set_maxVertices().

◆ setOrigin()

void meshlib.MarchingCubesParams.setOrigin ( meshlib.Vector3f value)

origin point of voxels box in 3D space with output mesh Modifies a member variable of class MR::MarchingCubesParams named origin. The reference to the parameter value might be preserved in this object in element origin.

Calls MR_MarchingCubesParams_Set_origin().

◆ setOutGridToMeshXf()

void meshlib.MarchingCubesParams.setOutGridToMeshXf ( meshlib.AffineXf3f value)

optional output transform from integer grid locations to mesh reference frame: the node with integer coordinates (i,j,k) is located in (*outGridToMeshXf)( Vector3f( i, j, k ) ); every vertex of output mesh is located on a grid edge Modifies a member variable of class MR::MarchingCubesParams named outGridToMeshXf. The reference to the parameter value might be preserved in this object in element outGridToMeshXf.

Calls MR_MarchingCubesParams_Set_outGridToMeshXf().

◆ setOutVoxelPerFaceMap()

void meshlib.MarchingCubesParams.setOutVoxelPerFaceMap ( meshlib.Vector_MR_VoxelId_MR_FaceId value)

optional output map FaceId->VoxelId Modifies a member variable of class MR::MarchingCubesParams named outVoxelPerFaceMap. The reference to the parameter value might be preserved in this object in element outVoxelPerFaceMap.

Calls MR_MarchingCubesParams_Set_outVoxelPerFaceMap().

◆ setPositioner()

function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads Modifies a member variable of class MR::MarchingCubesParams named positioner. The reference to the parameter value might be preserved in this object in element positioner.

Calls MR_MarchingCubesParams_Set_positioner().


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