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

Public Member Functions

 Box1i (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Box1i copy ()
void set (Box1i other)
int min ()
void setMin (int value)
int max ()
void setMax (int value)
 Box1i ()
 Box1i (int min, int max)
 Box1i (meshlib.NoInit _1)
int index (int e)
java.lang.foreign.MemorySegment index_mut (int e)
boolean valid ()
int center ()
int corner (boolean c)
int size ()
int diagonal ()
int volume ()
void include (int pt)
void include (meshlib.Box1i b)
boolean contains (int pt)
boolean contains (meshlib.Box1i otherbox)
int getBoxClosestPointTo (int pt)
boolean intersects (meshlib.Box1i b)
meshlib.Box1i intersection (meshlib.Box1i b)
meshlib.Box1i intersect (meshlib.Box1i b)
int getDistanceSq (meshlib.Box1i b)
int getDistanceSq (int pt)
int getProjection (int pt)
meshlib.Box1i expanded (int expansion)
meshlib.Box1i insignificantlyExpanded ()
boolean opEqual (meshlib.Box1i a)
boolean opNotEqual (meshlib.Box1i a)
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

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

Static Public Attributes

static final java.lang.foreign.StructLayout LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"min", "max"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.ValueLayout.JAVA_INT, java.lang.foreign.ValueLayout.JAVA_INT})
static final long OFF_min = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("min"))
static final long OFF_max = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("max"))

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppStruct
 CppStruct (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Protected Attributes inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment segment

Detailed Description

Box given by its min- and max- corners Generated from class MR::Box1i.

Has the same layout as the C++ struct, the fields are accessed in place in native memory.

Constructor & Destructor Documentation

◆ Box1i() [1/4]

meshlib.Box1i.Box1i ( java.lang.foreign.MemorySegment segment,
java.lang.Object owner )

Wraps a segment holding the struct. owner is kept alive as long as this wrapper is. Not for normal use.

◆ Box1i() [2/4]

meshlib.Box1i.Box1i ( )

create invalid box by default

Calls MR_Box1i_DefaultConstruct().

◆ Box1i() [3/4]

meshlib.Box1i.Box1i ( int min,
int max )

Generated from constructor MR::Box1i::Box1i. 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_Box1i_Construct_2().

◆ Box1i() [4/4]

meshlib.Box1i.Box1i ( meshlib.NoInit _1)

Generated from constructor MR::Box1i::Box1i. The reference to the parameter _1 might be preserved in the constructed object.

Calls MR_Box1i_Construct_1().

Member Function Documentation

◆ center()

int meshlib.Box1i.center ( )

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

Calls MR_Box1i_center().

◆ contains() [1/2]

boolean meshlib.Box1i.contains ( int pt)

checks whether given point is inside (including the surface) of this box Generated from method MR::Box1i::contains.

Calls MR_Box1i_contains_int().

◆ contains() [2/2]

boolean meshlib.Box1i.contains ( meshlib.Box1i otherbox)

checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box1i::contains.

Calls MR_Box1i_contains_MR_Box1i().

◆ copy()

Box1i meshlib.Box1i.copy ( )

A copy of the struct, in its own memory.

◆ corner()

int meshlib.Box1i.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::Box1i::corner.

Calls MR_Box1i_corner().

◆ diagonal()

int meshlib.Box1i.diagonal ( )

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

Calls MR_Box1i_diagonal().

◆ elements()

int meshlib.Box1i.elements ( )
static

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

Calls MR_Box1i_Get_elements().

◆ expanded()

meshlib.Box1i meshlib.Box1i.expanded ( int expansion)

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

Calls MR_Box1i_expanded().

◆ fromMinAndSize()

meshlib.Box1i meshlib.Box1i.fromMinAndSize ( int min,
int size )
static

Generated from method MR::Box1i::fromMinAndSize.

Calls MR_Box1i_fromMinAndSize().

◆ getBoxClosestPointTo()

int meshlib.Box1i.getBoxClosestPointTo ( int pt)

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

Calls MR_Box1i_getBoxClosestPointTo().

◆ getDistanceSq() [1/2]

int meshlib.Box1i.getDistanceSq ( int 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::Box1i::getDistanceSq.

Calls MR_Box1i_getDistanceSq_int().

◆ getDistanceSq() [2/2]

int meshlib.Box1i.getDistanceSq ( meshlib.Box1i b)

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

Calls MR_Box1i_getDistanceSq_MR_Box1i().

◆ getMaxBoxCorner()

boolean meshlib.Box1i.getMaxBoxCorner ( int 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::Box1i::getMaxBoxCorner.

Calls MR_Box1i_getMaxBoxCorner().

◆ getMinBoxCorner()

boolean meshlib.Box1i.getMinBoxCorner ( int 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::Box1i::getMinBoxCorner.

Calls MR_Box1i_getMinBoxCorner().

◆ getProjection()

int meshlib.Box1i.getProjection ( int 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::Box1i::getProjection.

Calls MR_Box1i_getProjection().

◆ include() [1/2]

void meshlib.Box1i.include ( int pt)

minimally increases the box to include given point Generated from method MR::Box1i::include.

Calls MR_Box1i_include_int().

◆ include() [2/2]

void meshlib.Box1i.include ( meshlib.Box1i b)

minimally increases the box to include another box Generated from method MR::Box1i::include.

Calls MR_Box1i_include_MR_Box1i().

◆ index()

int meshlib.Box1i.index ( int e)

min/max access by 0/1 index Generated from method MR::Box1i::operator[].

Calls MR_Box1i_index().

◆ index_mut()

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

Generated from method MR::Box1i::operator[].

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

◆ insignificantlyExpanded()

meshlib.Box1i meshlib.Box1i.insignificantlyExpanded ( )

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

Calls MR_Box1i_insignificantlyExpanded().

◆ intersect()

meshlib.Box1i meshlib.Box1i.intersect ( meshlib.Box1i b)

Generated from method MR::Box1i::intersect.

Calls MR_Box1i_intersect().

◆ intersection()

meshlib.Box1i meshlib.Box1i.intersection ( meshlib.Box1i b)

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

Calls MR_Box1i_intersection().

◆ intersects()

boolean meshlib.Box1i.intersects ( meshlib.Box1i b)

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

Calls MR_Box1i_intersects().

◆ max()

int meshlib.Box1i.max ( )

◆ min()

int meshlib.Box1i.min ( )

◆ opEqual()

boolean meshlib.Box1i.opEqual ( meshlib.Box1i a)

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

Calls MR_equal_MR_Box1i().

◆ opNotEqual()

boolean meshlib.Box1i.opNotEqual ( meshlib.Box1i a)

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

Calls MR_not_equal_MR_Box1i().

◆ set()

void meshlib.Box1i.set ( Box1i other)

Overwrites the contents with those of another struct.

◆ setMax()

void meshlib.Box1i.setMax ( int value)

◆ setMin()

void meshlib.Box1i.setMin ( int value)

◆ size()

int meshlib.Box1i.size ( )

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

Calls MR_Box1i_size().

◆ valid()

boolean meshlib.Box1i.valid ( )

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

Calls MR_Box1i_valid().

◆ volume()

int meshlib.Box1i.volume ( )

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

Calls MR_Box1i_volume().

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.Box1i.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"min", "max"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.ValueLayout.JAVA_INT, java.lang.foreign.ValueLayout.JAVA_INT})
static

The native layout of the struct.

◆ OFF_max

final long meshlib.Box1i.OFF_max = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("max"))
static

◆ OFF_min

final long meshlib.Box1i.OFF_min = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("min"))
static

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