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

Public Member Functions

 SimpleVolumeMinMax (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SimpleVolumeMinMax ()
 SimpleVolumeMinMax (meshlib.SimpleVolumeMinMax _other)
meshlib.SimpleVolumeMinMax assignFromAnother (meshlib.SimpleVolumeMinMax _other)
long heapBytes ()
boolean valid ()
float center ()
float corner (boolean c)
float size ()
float diagonal ()
float volume ()
float getBoxClosestPointTo (float pt)
boolean intersects (meshlib.Box1f b)
meshlib.Box1f intersection (meshlib.Box1f b)
meshlib.Box1f intersect (meshlib.Box1f b)
float getProjection (float pt)
meshlib.Box1f expanded (float expansion)
meshlib.Box1f insignificantlyExpanded ()
boolean opEqual (meshlib.Box1f a)
boolean opNotEqual (meshlib.Box1f a)
meshlib.VoxelScalars data ()
void setData (meshlib.VoxelScalars value)
meshlib.Vector3i dims ()
void setDims (meshlib.Vector3i value)
meshlib.Vector3f voxelSize ()
void setVoxelSize (meshlib.Vector3f value)
float min ()
void setMin (float value)
float max ()
void setMax (float value)
meshlib.SimpleVolume upcastToSimpleVolume ()
meshlib.Box1f upcastToBox1f ()
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 ()

Static Public Member Functions

static meshlib.Box1f fromMinAndSize (float min, float size)
static boolean getMinBoxCorner (float n)
static boolean getMaxBoxCorner (float n)
static int elements ()
static meshlib.SimpleVolumeMinMax staticDowncastFromSimpleVolume (meshlib.SimpleVolume object)
static meshlib.SimpleVolumeMinMax staticDowncastFromBox1f (meshlib.Box1f object)

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

represents a box in 3D space subdivided on voxels stored in T; and stores minimum and maximum values among all valid voxels Generated from class MR::SimpleVolumeMinMax. Base classes: Direct: (non-virtual) MR::SimpleVolume MR::Box1f

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

Constructor & Destructor Documentation

◆ SimpleVolumeMinMax() [1/3]

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

◆ SimpleVolumeMinMax() [2/3]

meshlib.SimpleVolumeMinMax.SimpleVolumeMinMax ( )

Constructs an empty (default-constructed) instance.

Calls MR_SimpleVolumeMinMax_DefaultConstruct().

◆ SimpleVolumeMinMax() [3/3]

meshlib.SimpleVolumeMinMax.SimpleVolumeMinMax ( meshlib.SimpleVolumeMinMax _other)

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

Calls MR_SimpleVolumeMinMax_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SimpleVolumeMinMax meshlib.SimpleVolumeMinMax.assignFromAnother ( meshlib.SimpleVolumeMinMax _other)

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

Calls MR_SimpleVolumeMinMax_AssignFromAnother().

◆ center()

float meshlib.SimpleVolumeMinMax.center ( )

computes center of the box Generated from method MR::SimpleVolumeMinMax::center.

Calls MR_SimpleVolumeMinMax_center().

◆ corner()

float meshlib.SimpleVolumeMinMax.corner ( boolean c)

returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate Generated from method MR::SimpleVolumeMinMax::corner.

Calls MR_SimpleVolumeMinMax_corner().

◆ data()

meshlib.VoxelScalars meshlib.SimpleVolumeMinMax.data ( )

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

Calls MR_SimpleVolumeMinMax_Get_data().

◆ diagonal()

float meshlib.SimpleVolumeMinMax.diagonal ( )

computes length from min to max Generated from method MR::SimpleVolumeMinMax::diagonal.

Calls MR_SimpleVolumeMinMax_diagonal().

◆ dims()

meshlib.Vector3i meshlib.SimpleVolumeMinMax.dims ( )

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

Calls MR_SimpleVolumeMinMax_Get_dims().

◆ elements()

int meshlib.SimpleVolumeMinMax.elements ( )
static

Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named elements.

Calls MR_SimpleVolumeMinMax_Get_elements().

◆ expanded()

meshlib.Box1f meshlib.SimpleVolumeMinMax.expanded ( float expansion)

decreases min and increased max on given value Generated from method MR::SimpleVolumeMinMax::expanded.

Calls MR_SimpleVolumeMinMax_expanded().

◆ fromMinAndSize()

meshlib.Box1f meshlib.SimpleVolumeMinMax.fromMinAndSize ( float min,
float size )
static

Generated from method MR::SimpleVolumeMinMax::fromMinAndSize.

Calls MR_SimpleVolumeMinMax_fromMinAndSize().

◆ getBoxClosestPointTo()

float meshlib.SimpleVolumeMinMax.getBoxClosestPointTo ( float pt)

returns closest point in the box to given point Generated from method MR::SimpleVolumeMinMax::getBoxClosestPointTo.

Calls MR_SimpleVolumeMinMax_getBoxClosestPointTo().

◆ getMaxBoxCorner()

boolean meshlib.SimpleVolumeMinMax.getMaxBoxCorner ( float n)
static

considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal Generated from method MR::SimpleVolumeMinMax::getMaxBoxCorner.

Calls MR_SimpleVolumeMinMax_getMaxBoxCorner().

◆ getMinBoxCorner()

boolean meshlib.SimpleVolumeMinMax.getMinBoxCorner ( float n)
static

considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal Generated from method MR::SimpleVolumeMinMax::getMinBoxCorner.

Calls MR_SimpleVolumeMinMax_getMinBoxCorner().

◆ getProjection()

float meshlib.SimpleVolumeMinMax.getProjection ( float pt)

returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo Generated from method MR::SimpleVolumeMinMax::getProjection.

Calls MR_SimpleVolumeMinMax_getProjection().

◆ heapBytes()

long meshlib.SimpleVolumeMinMax.heapBytes ( )

Generated from method MR::SimpleVolumeMinMax::heapBytes.

Calls MR_SimpleVolumeMinMax_heapBytes().

◆ insignificantlyExpanded()

meshlib.Box1f meshlib.SimpleVolumeMinMax.insignificantlyExpanded ( )

decreases min and increases max to their closest representable value Generated from method MR::SimpleVolumeMinMax::insignificantlyExpanded.

Calls MR_SimpleVolumeMinMax_insignificantlyExpanded().

◆ intersect()

meshlib.Box1f meshlib.SimpleVolumeMinMax.intersect ( meshlib.Box1f b)

Generated from method MR::SimpleVolumeMinMax::intersect.

Calls MR_SimpleVolumeMinMax_intersect().

◆ intersection()

meshlib.Box1f meshlib.SimpleVolumeMinMax.intersection ( meshlib.Box1f b)

computes intersection between this and other box Generated from method MR::SimpleVolumeMinMax::intersection.

Calls MR_SimpleVolumeMinMax_intersection().

◆ intersects()

boolean meshlib.SimpleVolumeMinMax.intersects ( meshlib.Box1f b)

checks whether this box intersects or touches given box Generated from method MR::SimpleVolumeMinMax::intersects.

Calls MR_SimpleVolumeMinMax_intersects().

◆ max()

float meshlib.SimpleVolumeMinMax.max ( )

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

Calls MR_SimpleVolumeMinMax_Get_max().

◆ min()

float meshlib.SimpleVolumeMinMax.min ( )

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

Calls MR_SimpleVolumeMinMax_Get_min().

◆ opEqual()

boolean meshlib.SimpleVolumeMinMax.opEqual ( meshlib.Box1f a)

Generated from method MR::SimpleVolumeMinMax::operator==.

Calls MR_equal_MR_SimpleVolumeMinMax_MR_Box1f().

◆ opNotEqual()

boolean meshlib.SimpleVolumeMinMax.opNotEqual ( meshlib.Box1f a)

Generated from method MR::SimpleVolumeMinMax::operator!=.

Calls MR_not_equal_MR_SimpleVolumeMinMax_MR_Box1f().

◆ setData()

void meshlib.SimpleVolumeMinMax.setData ( meshlib.VoxelScalars value)

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

Calls MR_SimpleVolumeMinMax_Set_data().

◆ setDims()

void meshlib.SimpleVolumeMinMax.setDims ( meshlib.Vector3i value)

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

Calls MR_SimpleVolumeMinMax_Set_dims().

◆ setMax()

void meshlib.SimpleVolumeMinMax.setMax ( float value)

Modifies a member variable of class MR::SimpleVolumeMinMax named max.

Calls MR_SimpleVolumeMinMax_Set_max().

◆ setMin()

void meshlib.SimpleVolumeMinMax.setMin ( float value)

Modifies a member variable of class MR::SimpleVolumeMinMax named min.

Calls MR_SimpleVolumeMinMax_Set_min().

◆ setVoxelSize()

void meshlib.SimpleVolumeMinMax.setVoxelSize ( meshlib.Vector3f value)

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

Calls MR_SimpleVolumeMinMax_Set_voxelSize().

◆ size()

float meshlib.SimpleVolumeMinMax.size ( )

computes size of the box in all dimensions Generated from method MR::SimpleVolumeMinMax::size.

Calls MR_SimpleVolumeMinMax_size().

◆ staticDowncastFromBox1f()

meshlib.SimpleVolumeMinMax meshlib.SimpleVolumeMinMax.staticDowncastFromBox1f ( meshlib.Box1f object)
static

Static downcast from the base class MR::Box1f. Undefined behavior if the object isn't actually a SimpleVolumeMinMax. The result refers to object.

Calls MR_SimpleVolumeMinMax_MutableStaticDowncastFrom_MR_Box1f().

◆ staticDowncastFromSimpleVolume()

meshlib.SimpleVolumeMinMax meshlib.SimpleVolumeMinMax.staticDowncastFromSimpleVolume ( meshlib.SimpleVolume object)
static

Static downcast from the base class MR::SimpleVolume. Undefined behavior if the object isn't actually a SimpleVolumeMinMax. The result refers to object.

Calls MR_SimpleVolumeMinMax_MutableStaticDowncastFrom_MR_SimpleVolume().

◆ upcastToBox1f()

meshlib.Box1f meshlib.SimpleVolumeMinMax.upcastToBox1f ( )

Upcasts to the base class MR::Box1f. The result refers to this object.

Calls MR_SimpleVolumeMinMax_MutableUpcastTo_MR_Box1f().

◆ upcastToSimpleVolume()

meshlib.SimpleVolume meshlib.SimpleVolumeMinMax.upcastToSimpleVolume ( )

Upcasts to the base class MR::SimpleVolume. The result refers to this object.

Calls MR_SimpleVolumeMinMax_MutableUpcastTo_MR_SimpleVolume().

◆ valid()

boolean meshlib.SimpleVolumeMinMax.valid ( )

true if the box contains at least one point Generated from method MR::SimpleVolumeMinMax::valid.

Calls MR_SimpleVolumeMinMax_valid().

◆ volume()

float meshlib.SimpleVolumeMinMax.volume ( )

computes the volume of this box Generated from method MR::SimpleVolumeMinMax::volume.

Calls MR_SimpleVolumeMinMax_volume().

◆ voxelSize()

meshlib.Vector3f meshlib.SimpleVolumeMinMax.voxelSize ( )

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

Calls MR_SimpleVolumeMinMax_Get_voxelSize().


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