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

Public Member Functions

 Box_unsigned_short (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Box_unsigned_short ()
 Box_unsigned_short (meshlib.Box_unsigned_short _other)
 Box_unsigned_short (short min, short max)
 Box_unsigned_short (meshlib.NoInit _1)
meshlib.Box_unsigned_short assignFromAnother (meshlib.Box_unsigned_short _other)
short index (int e)
java.lang.foreign.MemorySegment index_mut (int e)
boolean valid ()
short center ()
short corner (boolean c)
short size ()
short diagonal ()
short volume ()
void include (short pt)
void include (meshlib.Box_unsigned_short b)
boolean contains (short pt)
boolean contains (meshlib.Box_unsigned_short otherbox)
short getBoxClosestPointTo (short pt)
boolean intersects (meshlib.Box_unsigned_short b)
meshlib.Box_unsigned_short intersection (meshlib.Box_unsigned_short b)
meshlib.Box_unsigned_short intersect (meshlib.Box_unsigned_short b)
short getDistanceSq (meshlib.Box_unsigned_short b)
short getDistanceSq (short pt)
short getProjection (short pt)
meshlib.Box_unsigned_short expanded (short expansion)
meshlib.Box_unsigned_short insignificantlyExpanded ()
boolean opEqual (meshlib.Box_unsigned_short a)
boolean opNotEqual (meshlib.Box_unsigned_short a)
short min ()
void setMin (short value)
short max ()
void setMax (short 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 ()

Static Public Member Functions

static meshlib.Box_unsigned_short fromMinAndSize (short min, short size)
static boolean getMinBoxCorner (short n)
static boolean getMaxBoxCorner (short n)
static int elements ()

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

Box given by its min- and max- corners Generated from class MR::Box<unsigned short>. Derived classes: Direct: (non-virtual) MR::SimpleVolumeMinMaxU16

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

Constructor & Destructor Documentation

◆ Box_unsigned_short() [1/5]

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

◆ Box_unsigned_short() [2/5]

meshlib.Box_unsigned_short.Box_unsigned_short ( )

create invalid box by default

Calls MR_Box_unsigned_short_DefaultConstruct().

◆ Box_unsigned_short() [3/5]

meshlib.Box_unsigned_short.Box_unsigned_short ( meshlib.Box_unsigned_short _other)

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

Calls MR_Box_unsigned_short_ConstructFromAnother().

◆ Box_unsigned_short() [4/5]

meshlib.Box_unsigned_short.Box_unsigned_short ( short min,
short max )

Generated from constructor MR::Box<unsigned short>::Box. The reference to the parameter min might be preserved in the constructed object. The reference to the parameter max might be preserved in the constructed object.

Calls MR_Box_unsigned_short_Construct_2().

◆ Box_unsigned_short() [5/5]

meshlib.Box_unsigned_short.Box_unsigned_short ( meshlib.NoInit _1)

Generated from constructor MR::Box<unsigned short>::Box. The reference to the parameter _1 might be preserved in the constructed object.

Calls MR_Box_unsigned_short_Construct_1().

Member Function Documentation

◆ assignFromAnother()

meshlib.Box_unsigned_short meshlib.Box_unsigned_short.assignFromAnother ( meshlib.Box_unsigned_short _other)

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

Calls MR_Box_unsigned_short_AssignFromAnother().

◆ center()

short meshlib.Box_unsigned_short.center ( )

computes center of the box Generated from method MR::Box<unsigned short>::center.

Calls MR_Box_unsigned_short_center().

◆ contains() [1/2]

boolean meshlib.Box_unsigned_short.contains ( meshlib.Box_unsigned_short otherbox)

checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box<unsigned short>::contains.

Calls MR_Box_unsigned_short_contains_MR_Box_unsigned_short().

◆ contains() [2/2]

boolean meshlib.Box_unsigned_short.contains ( short pt)

checks whether given point is inside (including the surface) of this box Generated from method MR::Box<unsigned short>::contains.

Calls MR_Box_unsigned_short_contains_unsigned_short().

◆ corner()

short meshlib.Box_unsigned_short.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::Box<unsigned short>::corner.

Calls MR_Box_unsigned_short_corner().

◆ diagonal()

short meshlib.Box_unsigned_short.diagonal ( )

computes length from min to max Generated from method MR::Box<unsigned short>::diagonal.

Calls MR_Box_unsigned_short_diagonal().

◆ elements()

int meshlib.Box_unsigned_short.elements ( )
static

Returns a pointer to a member variable of class MR::Box<unsigned short> named elements.

Calls MR_Box_unsigned_short_Get_elements().

◆ expanded()

meshlib.Box_unsigned_short meshlib.Box_unsigned_short.expanded ( short expansion)

decreases min and increased max on given value Generated from method MR::Box<unsigned short>::expanded.

Calls MR_Box_unsigned_short_expanded().

◆ fromMinAndSize()

meshlib.Box_unsigned_short meshlib.Box_unsigned_short.fromMinAndSize ( short min,
short size )
static

Generated from method MR::Box<unsigned short>::fromMinAndSize.

Calls MR_Box_unsigned_short_fromMinAndSize().

◆ getBoxClosestPointTo()

short meshlib.Box_unsigned_short.getBoxClosestPointTo ( short pt)

returns closest point in the box to given point Generated from method MR::Box<unsigned short>::getBoxClosestPointTo.

Calls MR_Box_unsigned_short_getBoxClosestPointTo().

◆ getDistanceSq() [1/2]

short meshlib.Box_unsigned_short.getDistanceSq ( meshlib.Box_unsigned_short b)

returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR::Box<unsigned short>::getDistanceSq.

Calls MR_Box_unsigned_short_getDistanceSq_MR_Box_unsigned_short().

◆ getDistanceSq() [2/2]

short meshlib.Box_unsigned_short.getDistanceSq ( short pt)

returns squared distance between this box and given point; returns zero if the point is inside or on the boundary of the box Generated from method MR::Box<unsigned short>::getDistanceSq.

Calls MR_Box_unsigned_short_getDistanceSq_unsigned_short().

◆ getMaxBoxCorner()

boolean meshlib.Box_unsigned_short.getMaxBoxCorner ( short 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::Box<unsigned short>::getMaxBoxCorner.

Calls MR_Box_unsigned_short_getMaxBoxCorner().

◆ getMinBoxCorner()

boolean meshlib.Box_unsigned_short.getMinBoxCorner ( short 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::Box<unsigned short>::getMinBoxCorner.

Calls MR_Box_unsigned_short_getMinBoxCorner().

◆ getProjection()

short meshlib.Box_unsigned_short.getProjection ( short 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::Box<unsigned short>::getProjection.

Calls MR_Box_unsigned_short_getProjection().

◆ include() [1/2]

void meshlib.Box_unsigned_short.include ( meshlib.Box_unsigned_short b)

minimally increases the box to include another box Generated from method MR::Box<unsigned short>::include.

Calls MR_Box_unsigned_short_include_MR_Box_unsigned_short().

◆ include() [2/2]

void meshlib.Box_unsigned_short.include ( short pt)

minimally increases the box to include given point Generated from method MR::Box<unsigned short>::include.

Calls MR_Box_unsigned_short_include_unsigned_short().

◆ index()

short meshlib.Box_unsigned_short.index ( int e)

min/max access by 0/1 index Generated from method MR::Box<unsigned short>::operator[].

Calls MR_Box_unsigned_short_index().

◆ index_mut()

java.lang.foreign.MemorySegment meshlib.Box_unsigned_short.index_mut ( int e)

Generated from method MR::Box<unsigned short>::operator[].

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

◆ insignificantlyExpanded()

meshlib.Box_unsigned_short meshlib.Box_unsigned_short.insignificantlyExpanded ( )

decreases min and increases max to their closest representable value Generated from method MR::Box<unsigned short>::insignificantlyExpanded.

Calls MR_Box_unsigned_short_insignificantlyExpanded().

◆ intersect()

meshlib.Box_unsigned_short meshlib.Box_unsigned_short.intersect ( meshlib.Box_unsigned_short b)

Generated from method MR::Box<unsigned short>::intersect.

Calls MR_Box_unsigned_short_intersect().

◆ intersection()

meshlib.Box_unsigned_short meshlib.Box_unsigned_short.intersection ( meshlib.Box_unsigned_short b)

computes intersection between this and other box Generated from method MR::Box<unsigned short>::intersection.

Calls MR_Box_unsigned_short_intersection().

◆ intersects()

boolean meshlib.Box_unsigned_short.intersects ( meshlib.Box_unsigned_short b)

checks whether this box intersects or touches given box Generated from method MR::Box<unsigned short>::intersects.

Calls MR_Box_unsigned_short_intersects().

◆ max()

short meshlib.Box_unsigned_short.max ( )

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

Calls MR_Box_unsigned_short_Get_max().

◆ min()

short meshlib.Box_unsigned_short.min ( )

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

Calls MR_Box_unsigned_short_Get_min().

◆ opEqual()

boolean meshlib.Box_unsigned_short.opEqual ( meshlib.Box_unsigned_short a)

Generated from method MR::Box<unsigned short>::operator==.

Calls MR_equal_MR_Box_unsigned_short().

◆ opNotEqual()

boolean meshlib.Box_unsigned_short.opNotEqual ( meshlib.Box_unsigned_short a)

Generated from method MR::Box<unsigned short>::operator!=.

Calls MR_not_equal_MR_Box_unsigned_short().

◆ setMax()

void meshlib.Box_unsigned_short.setMax ( short value)

Modifies a member variable of class MR::Box<unsigned short> named max. The reference to the parameter value might be preserved in this object in element max.

Calls MR_Box_unsigned_short_Set_max().

◆ setMin()

void meshlib.Box_unsigned_short.setMin ( short value)

Modifies a member variable of class MR::Box<unsigned short> named min. The reference to the parameter value might be preserved in this object in element min.

Calls MR_Box_unsigned_short_Set_min().

◆ size()

short meshlib.Box_unsigned_short.size ( )

computes size of the box in all dimensions Generated from method MR::Box<unsigned short>::size.

Calls MR_Box_unsigned_short_size().

◆ valid()

boolean meshlib.Box_unsigned_short.valid ( )

true if the box contains at least one point Generated from method MR::Box<unsigned short>::valid.

Calls MR_Box_unsigned_short_valid().

◆ volume()

short meshlib.Box_unsigned_short.volume ( )

computes the volume of this box Generated from method MR::Box<unsigned short>::volume.

Calls MR_Box_unsigned_short_volume().


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