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

Public Member Functions

 VoxelMetricParameters (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VoxelMetricParameters ()
 VoxelMetricParameters (long start, long stop, float maxDistRatio, meshlib.SlicePlane plane, meshlib.QuarterBit quatersMask)
 VoxelMetricParameters (meshlib.VoxelMetricParameters _other)
meshlib.VoxelMetricParameters assignFromAnother (meshlib.VoxelMetricParameters _other)
long start ()
void setStart (long value)
long stop ()
void setStop (long value)
float maxDistRatio ()
void setMaxDistRatio (float value)
meshlib.SlicePlane plane ()
void setPlane (meshlib.SlicePlane value)
meshlib.QuarterBit quatersMask ()
void setQuatersMask (meshlib.QuarterBit 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

Parameters for building metric function Generated from class MR::VoxelMetricParameters.

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

Constructor & Destructor Documentation

◆ VoxelMetricParameters() [1/4]

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

◆ VoxelMetricParameters() [2/4]

meshlib.VoxelMetricParameters.VoxelMetricParameters ( )

Constructs an empty (default-constructed) instance.

Calls MR_VoxelMetricParameters_DefaultConstruct().

◆ VoxelMetricParameters() [3/4]

meshlib.VoxelMetricParameters.VoxelMetricParameters ( long start,
long stop,
float maxDistRatio,
meshlib.SlicePlane plane,
meshlib.QuarterBit quatersMask )

Constructs MR::VoxelMetricParameters elementwise. The reference to the parameter start might be preserved in the constructed object. The reference to the parameter stop might be preserved in the constructed object. The reference to the parameter plane might be preserved in the constructed object. The reference to the parameter quatersMask might be preserved in the constructed object.

Calls MR_VoxelMetricParameters_ConstructFrom().

◆ VoxelMetricParameters() [4/4]

meshlib.VoxelMetricParameters.VoxelMetricParameters ( meshlib.VoxelMetricParameters _other)

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

Calls MR_VoxelMetricParameters_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.VoxelMetricParameters meshlib.VoxelMetricParameters.assignFromAnother ( meshlib.VoxelMetricParameters _other)

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

Calls MR_VoxelMetricParameters_AssignFromAnother().

◆ maxDistRatio()

float meshlib.VoxelMetricParameters.maxDistRatio ( )

< max distance ratio: if (dist^2(next,start) + dist^2(next,stop) > maxDistRatio^2*dist^2(start,stop)) - candidate is not processed Returns a pointer to a member variable of class MR::VoxelMetricParameters named maxDistRatio. The reference to this object might be preserved as the return value.

Calls MR_VoxelMetricParameters_Get_maxDistRatio().

◆ plane()

meshlib.SlicePlane meshlib.VoxelMetricParameters.plane ( )

< if not None - builds path in one slice of voxels (make sure start and stop has same main axis coordinate) Returns a pointer to a member variable of class MR::VoxelMetricParameters named plane. The reference to this object might be preserved as the return value.

Calls MR_VoxelMetricParameters_Get_plane().

◆ quatersMask()

meshlib.QuarterBit meshlib.VoxelMetricParameters.quatersMask ( )

< quarter of building path, if plane is selected, it should be (LeftLeft | LeftRigth) or (RigthLeft | RightRight) or All Returns a pointer to a member variable of class MR::VoxelMetricParameters named quatersMask. The reference to this object might be preserved as the return value.

Calls MR_VoxelMetricParameters_Get_quatersMask().

◆ setMaxDistRatio()

void meshlib.VoxelMetricParameters.setMaxDistRatio ( float value)

< max distance ratio: if (dist^2(next,start) + dist^2(next,stop) > maxDistRatio^2*dist^2(start,stop)) - candidate is not processed Modifies a member variable of class MR::VoxelMetricParameters named maxDistRatio.

Calls MR_VoxelMetricParameters_Set_maxDistRatio().

◆ setPlane()

void meshlib.VoxelMetricParameters.setPlane ( meshlib.SlicePlane value)

< if not None - builds path in one slice of voxels (make sure start and stop has same main axis coordinate) Modifies a member variable of class MR::VoxelMetricParameters named plane. The reference to the parameter value might be preserved in this object in element plane.

Calls MR_VoxelMetricParameters_Set_plane().

◆ setQuatersMask()

void meshlib.VoxelMetricParameters.setQuatersMask ( meshlib.QuarterBit value)

< quarter of building path, if plane is selected, it should be (LeftLeft | LeftRigth) or (RigthLeft | RightRight) or All Modifies a member variable of class MR::VoxelMetricParameters named quatersMask. The reference to the parameter value might be preserved in this object in element quatersMask.

Calls MR_VoxelMetricParameters_Set_quatersMask().

◆ setStart()

void meshlib.VoxelMetricParameters.setStart ( long value)

< start voxel index Modifies a member variable of class MR::VoxelMetricParameters named start. The reference to the parameter value might be preserved in this object in element start.

Calls MR_VoxelMetricParameters_Set_start().

◆ setStop()

void meshlib.VoxelMetricParameters.setStop ( long value)

< stop voxel index Modifies a member variable of class MR::VoxelMetricParameters named stop. The reference to the parameter value might be preserved in this object in element stop.

Calls MR_VoxelMetricParameters_Set_stop().

◆ start()

long meshlib.VoxelMetricParameters.start ( )

< start voxel index Returns a pointer to a member variable of class MR::VoxelMetricParameters named start. The reference to this object might be preserved as the return value.

Calls MR_VoxelMetricParameters_Get_start().

◆ stop()

long meshlib.VoxelMetricParameters.stop ( )

< stop voxel index Returns a pointer to a member variable of class MR::VoxelMetricParameters named stop. The reference to this object might be preserved as the return value.

Calls MR_VoxelMetricParameters_Get_stop().


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