MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.VdbVolume:

Public Member Functions

 VdbVolume (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VdbVolume ()
 VdbVolume (meshlib.VdbVolume _other)
meshlib.VdbVolume assignFromAnother (meshlib.VdbVolume _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.FloatGrid data ()
void setData (meshlib.FloatGrid 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.VoxelsVolume_MR_FloatGrid upcastToVoxelsVolume_MR_FloatGrid ()
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.VdbVolume staticDowncastFromVoxelsVolume_MR_FloatGrid (meshlib.VoxelsVolume_MR_FloatGrid object)
static meshlib.VdbVolume 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::VdbVolume. Base classes: Direct: (non-virtual) MR::VoxelsVolume<MR::FloatGrid> MR::Box1f

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

Constructor & Destructor Documentation

◆ VdbVolume() [1/3]

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

◆ VdbVolume() [2/3]

meshlib.VdbVolume.VdbVolume ( )

Constructs an empty (default-constructed) instance.

Calls MR_VdbVolume_DefaultConstruct().

◆ VdbVolume() [3/3]

meshlib.VdbVolume.VdbVolume ( meshlib.VdbVolume _other)

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

Calls MR_VdbVolume_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.VdbVolume meshlib.VdbVolume.assignFromAnother ( meshlib.VdbVolume _other)

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

Calls MR_VdbVolume_AssignFromAnother().

◆ center()

float meshlib.VdbVolume.center ( )

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

Calls MR_VdbVolume_center().

◆ corner()

float meshlib.VdbVolume.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::VdbVolume::corner.

Calls MR_VdbVolume_corner().

◆ data()

meshlib.FloatGrid meshlib.VdbVolume.data ( )

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

Calls MR_VdbVolume_Get_data().

◆ diagonal()

float meshlib.VdbVolume.diagonal ( )

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

Calls MR_VdbVolume_diagonal().

◆ dims()

meshlib.Vector3i meshlib.VdbVolume.dims ( )

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

Calls MR_VdbVolume_Get_dims().

◆ elements()

int meshlib.VdbVolume.elements ( )
static

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

Calls MR_VdbVolume_Get_elements().

◆ expanded()

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

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

Calls MR_VdbVolume_expanded().

◆ fromMinAndSize()

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

Generated from method MR::VdbVolume::fromMinAndSize.

Calls MR_VdbVolume_fromMinAndSize().

◆ getBoxClosestPointTo()

float meshlib.VdbVolume.getBoxClosestPointTo ( float pt)

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

Calls MR_VdbVolume_getBoxClosestPointTo().

◆ getMaxBoxCorner()

boolean meshlib.VdbVolume.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::VdbVolume::getMaxBoxCorner.

Calls MR_VdbVolume_getMaxBoxCorner().

◆ getMinBoxCorner()

boolean meshlib.VdbVolume.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::VdbVolume::getMinBoxCorner.

Calls MR_VdbVolume_getMinBoxCorner().

◆ getProjection()

float meshlib.VdbVolume.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::VdbVolume::getProjection.

Calls MR_VdbVolume_getProjection().

◆ heapBytes()

long meshlib.VdbVolume.heapBytes ( )

Generated from method MR::VdbVolume::heapBytes.

Calls MR_VdbVolume_heapBytes().

◆ insignificantlyExpanded()

meshlib.Box1f meshlib.VdbVolume.insignificantlyExpanded ( )

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

Calls MR_VdbVolume_insignificantlyExpanded().

◆ intersect()

meshlib.Box1f meshlib.VdbVolume.intersect ( meshlib.Box1f b)

Generated from method MR::VdbVolume::intersect.

Calls MR_VdbVolume_intersect().

◆ intersection()

meshlib.Box1f meshlib.VdbVolume.intersection ( meshlib.Box1f b)

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

Calls MR_VdbVolume_intersection().

◆ intersects()

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

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

Calls MR_VdbVolume_intersects().

◆ max()

float meshlib.VdbVolume.max ( )

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

Calls MR_VdbVolume_Get_max().

◆ min()

float meshlib.VdbVolume.min ( )

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

Calls MR_VdbVolume_Get_min().

◆ opEqual()

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

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

Calls MR_equal_MR_VdbVolume_MR_Box1f().

◆ opNotEqual()

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

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

Calls MR_not_equal_MR_VdbVolume_MR_Box1f().

◆ setData()

void meshlib.VdbVolume.setData ( meshlib.FloatGrid value)

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

Calls MR_VdbVolume_Set_data().

◆ setDims()

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

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

Calls MR_VdbVolume_Set_dims().

◆ setMax()

void meshlib.VdbVolume.setMax ( float value)

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

Calls MR_VdbVolume_Set_max().

◆ setMin()

void meshlib.VdbVolume.setMin ( float value)

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

Calls MR_VdbVolume_Set_min().

◆ setVoxelSize()

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

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

Calls MR_VdbVolume_Set_voxelSize().

◆ size()

float meshlib.VdbVolume.size ( )

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

Calls MR_VdbVolume_size().

◆ staticDowncastFromBox1f()

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

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

Calls MR_VdbVolume_MutableStaticDowncastFrom_MR_Box1f().

◆ staticDowncastFromVoxelsVolume_MR_FloatGrid()

meshlib.VdbVolume meshlib.VdbVolume.staticDowncastFromVoxelsVolume_MR_FloatGrid ( meshlib.VoxelsVolume_MR_FloatGrid object)
static

Static downcast from the base class MR::VoxelsVolume<MR::FloatGrid>. Undefined behavior if the object isn't actually a VdbVolume. The result refers to object.

Calls MR_VdbVolume_MutableStaticDowncastFrom_MR_VoxelsVolume_MR_FloatGrid().

◆ upcastToBox1f()

meshlib.Box1f meshlib.VdbVolume.upcastToBox1f ( )

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

Calls MR_VdbVolume_MutableUpcastTo_MR_Box1f().

◆ upcastToVoxelsVolume_MR_FloatGrid()

meshlib.VoxelsVolume_MR_FloatGrid meshlib.VdbVolume.upcastToVoxelsVolume_MR_FloatGrid ( )

Upcasts to the base class MR::VoxelsVolume<MR::FloatGrid>. The result refers to this object.

Calls MR_VdbVolume_MutableUpcastTo_MR_VoxelsVolume_MR_FloatGrid().

◆ valid()

boolean meshlib.VdbVolume.valid ( )

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

Calls MR_VdbVolume_valid().

◆ volume()

float meshlib.VdbVolume.volume ( )

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

Calls MR_VdbVolume_volume().

◆ voxelSize()

meshlib.Vector3f meshlib.VdbVolume.voxelSize ( )

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

Calls MR_VdbVolume_Get_voxelSize().


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