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

Public Member Functions

 Triangulation (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Triangulation ()
 Triangulation (meshlib.Triangulation _other)
 Triangulation (long size)
 Triangulation (long size, meshlib.std_array_MR_VertId_3 val)
meshlib.Triangulation assignFromAnother (meshlib.Triangulation _other)
void assign (long count, meshlib.std_array_MR_VertId_3 val)
boolean opEqual (meshlib.Triangulation b)
boolean opNotEqual (meshlib.Triangulation b)
void clear ()
boolean empty ()
long size ()
long max_size ()
void resize (long newSize)
void resize (long newSize, meshlib.std_array_MR_VertId_3 t)
long capacity ()
void reserve (long capacity)
void shrink_to_fit ()
meshlib.std_array_MR_VertId_3 index (meshlib.FaceId i)
meshlib.std_array_MR_VertId_3 index_mut (meshlib.FaceId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, meshlib.std_array_MR_VertId_3 value)
void autoResizeSet (meshlib.FaceId pos, long len, meshlib.std_array_MR_VertId_3 val)
void autoResizeSet (meshlib.FaceId i, meshlib.std_array_MR_VertId_3 val)
meshlib.std_array_MR_VertId_3 autoResizeAt (meshlib.FaceId i)
void push_back_const_std_array_MR_VertId_3_ref (meshlib.std_array_MR_VertId_3 t)
void push_back_std_array_MR_VertId_3_rvalue_ref (meshlib.std_array_MR_VertId_3 t)
void pop_back ()
meshlib.std_array_MR_VertId_3 front ()
meshlib.std_array_MR_VertId_3 front_mut ()
meshlib.std_array_MR_VertId_3 back ()
meshlib.std_array_MR_VertId_3 back_mut ()
meshlib.FaceId beginId ()
meshlib.FaceId backId ()
meshlib.FaceId endId ()
meshlib.std_array_MR_VertId_3 data_mut ()
meshlib.std_array_MR_VertId_3 data ()
void swap (meshlib.Triangulation b)
long heapBytes ()
meshlib.std_vector_std_array_MR_VertId_3_MR_Allocator_std_array_MR_VertId_3 vec ()
void setVec (meshlib.std_vector_std_array_MR_VertId_3_MR_Allocator_std_array_MR_VertId_3 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

Vector<T> is indexed by size_t Generated from class MR::Triangulation.

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

Constructor & Destructor Documentation

◆ Triangulation() [1/5]

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

◆ Triangulation() [2/5]

meshlib.Triangulation.Triangulation ( )

creates empty vector

Calls MR_Triangulation_DefaultConstruct().

◆ Triangulation() [3/5]

meshlib.Triangulation.Triangulation ( meshlib.Triangulation _other)

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

Calls MR_Triangulation_ConstructFromAnother().

◆ Triangulation() [4/5]

meshlib.Triangulation.Triangulation ( long size)

creates a vector with size elements with default value Generated from constructor MR::Triangulation::Triangulation. The reference to the parameter size might be preserved in the constructed object.

Calls MR_Triangulation_Construct().

◆ Triangulation() [5/5]

meshlib.Triangulation.Triangulation ( long size,
meshlib.std_array_MR_VertId_3 val )

creates a vector with size elements with the given value Generated from constructor MR::Triangulation::Triangulation. The reference to the parameter size might be preserved in the constructed object. The reference to the parameter val might be preserved in the constructed object.

Calls MR_Triangulation_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.Triangulation.assign ( long count,
meshlib.std_array_MR_VertId_3 val )

replaces the contents with count copies of val Generated from method MR::Triangulation::assign. The reference to things referred to by the parameter val (if any) might be preserved in this object.

Calls MR_Triangulation_assign().

◆ assignFromAnother()

meshlib.Triangulation meshlib.Triangulation.assignFromAnother ( meshlib.Triangulation _other)

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

Calls MR_Triangulation_AssignFromAnother().

◆ autoResizeAt()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.autoResizeAt ( meshlib.FaceId i)

this accessor automatically adjusts the size of the vector Generated from method MR::Triangulation::autoResizeAt.

Calls MR_Triangulation_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.Triangulation.autoResizeSet ( meshlib.FaceId i,
meshlib.std_array_MR_VertId_3 val )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::Triangulation::autoResizeSet.

Calls MR_Triangulation_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.Triangulation.autoResizeSet ( meshlib.FaceId pos,
long len,
meshlib.std_array_MR_VertId_3 val )

sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR::Triangulation::autoResizeSet.

Calls MR_Triangulation_autoResizeSet_3().

◆ back()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.back ( )

Generated from method MR::Triangulation::back. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_back().

◆ back_mut()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.back_mut ( )

Generated from method MR::Triangulation::back. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_back_mut().

◆ backId()

meshlib.FaceId meshlib.Triangulation.backId ( )

returns the identifier of the back() element Generated from method MR::Triangulation::backId.

Calls MR_Triangulation_backId().

◆ beginId()

meshlib.FaceId meshlib.Triangulation.beginId ( )

returns the identifier of the first element Generated from method MR::Triangulation::beginId.

Calls MR_Triangulation_beginId().

◆ capacity()

long meshlib.Triangulation.capacity ( )

Generated from method MR::Triangulation::capacity.

Calls MR_Triangulation_capacity().

◆ clear()

void meshlib.Triangulation.clear ( )

Generated from method MR::Triangulation::clear.

Calls MR_Triangulation_clear().

◆ data()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.data ( )

Generated from method MR::Triangulation::data. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_data().

◆ data_mut()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.data_mut ( )

Generated from method MR::Triangulation::data. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_data_mut().

◆ empty()

boolean meshlib.Triangulation.empty ( )

Generated from method MR::Triangulation::empty.

Calls MR_Triangulation_empty().

◆ endId()

meshlib.FaceId meshlib.Triangulation.endId ( )

returns backId() + 1 Generated from method MR::Triangulation::endId.

Calls MR_Triangulation_endId().

◆ front()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.front ( )

Generated from method MR::Triangulation::front. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_front().

◆ front_mut()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.front_mut ( )

Generated from method MR::Triangulation::front. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_front_mut().

◆ heapBytes()

long meshlib.Triangulation.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::Triangulation::heapBytes.

Calls MR_Triangulation_heapBytes().

◆ index()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.index ( meshlib.FaceId i)

Generated from method MR::Triangulation::operator[]. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_index().

◆ index_mut()

meshlib.std_array_MR_VertId_3 meshlib.Triangulation.index_mut ( meshlib.FaceId i)

Generated from method MR::Triangulation::operator[]. The reference to this object might be preserved in the return value.

Calls MR_Triangulation_index_mut().

◆ max_size()

long meshlib.Triangulation.max_size ( )

Generated from method MR::Triangulation::max_size.

Calls MR_Triangulation_max_size().

◆ opEqual()

boolean meshlib.Triangulation.opEqual ( meshlib.Triangulation b)

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

Calls MR_equal_MR_Triangulation().

◆ opNotEqual()

boolean meshlib.Triangulation.opNotEqual ( meshlib.Triangulation b)

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

Calls MR_not_equal_MR_Triangulation().

◆ pop_back()

void meshlib.Triangulation.pop_back ( )

Generated from method MR::Triangulation::pop_back.

Calls MR_Triangulation_pop_back().

◆ push_back_const_std_array_MR_VertId_3_ref()

void meshlib.Triangulation.push_back_const_std_array_MR_VertId_3_ref ( meshlib.std_array_MR_VertId_3 t)

Generated from method MR::Triangulation::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_Triangulation_push_back_const_std_array_MR_VertId_3_ref().

◆ push_back_std_array_MR_VertId_3_rvalue_ref()

void meshlib.Triangulation.push_back_std_array_MR_VertId_3_rvalue_ref ( meshlib.std_array_MR_VertId_3 t)

Generated from method MR::Triangulation::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_Triangulation_push_back_std_array_MR_VertId_3_rvalue_ref().

◆ reserve()

void meshlib.Triangulation.reserve ( long capacity)

Generated from method MR::Triangulation::reserve.

Calls MR_Triangulation_reserve().

◆ resize() [1/2]

void meshlib.Triangulation.resize ( long newSize)

Generated from method MR::Triangulation::resize.

Calls MR_Triangulation_resize_1().

◆ resize() [2/2]

void meshlib.Triangulation.resize ( long newSize,
meshlib.std_array_MR_VertId_3 t )

Generated from method MR::Triangulation::resize.

Calls MR_Triangulation_resize_2().

◆ resizeWithReserve() [1/2]

void meshlib.Triangulation.resizeWithReserve ( long newSize)

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::Triangulation::resizeWithReserve.

Calls MR_Triangulation_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.Triangulation.resizeWithReserve ( long newSize,
meshlib.std_array_MR_VertId_3 value )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::Triangulation::resizeWithReserve.

Calls MR_Triangulation_resizeWithReserve_2().

◆ setVec()

The user can directly manipulate the vector, they can't break anything anyway. Modifies a member variable of class MR::Triangulation named vec. The reference to the parameter value might be preserved in this object in element vec.

Calls MR_Triangulation_Set_vec().

◆ shrink_to_fit()

void meshlib.Triangulation.shrink_to_fit ( )

Generated from method MR::Triangulation::shrink_to_fit.

Calls MR_Triangulation_shrink_to_fit().

◆ size()

long meshlib.Triangulation.size ( )

Generated from method MR::Triangulation::size.

Calls MR_Triangulation_size().

◆ swap()

void meshlib.Triangulation.swap ( meshlib.Triangulation b)

Generated from method MR::Triangulation::swap.

Calls MR_Triangulation_swap().

◆ vec()

The user can directly manipulate the vector, they can't break anything anyway. Returns a pointer to a member variable of class MR::Triangulation named vec. The reference to this object might be preserved as the return value.

Calls MR_Triangulation_Get_vec().


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