MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.OneMeshContours Class Reference

Special data type for MR::cutMesh: the intersections of all contours in one array, one contour after another. More...

Inheritance diagram for meshlib.OneMeshContours:

Public Member Functions

 OneMeshContours (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 OneMeshContours ()
 OneMeshContours (meshlib.OneMeshContours _other)
 OneMeshContours (meshlib.Vector_MR_OneMeshContour contours)
meshlib.OneMeshContours assignFromAnother (meshlib.OneMeshContours _other)
long size ()
boolean empty ()
meshlib.OneMeshIntersection intersection (long c, long i)
meshlib.OneMeshContour contour (long c)
void push_back (meshlib.OneMeshContour contour)
meshlib.Vector_MR_OneMeshIntersection intersections ()
void setIntersections (meshlib.Vector_MR_OneMeshIntersection value)
meshlib.Vector_int offsets ()
void setOffsets (meshlib.Vector_int value)
meshlib.BitSet closed ()
void setClosed (meshlib.BitSet 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

Special data type for MR::cutMesh: the intersections of all contours in one array, one contour after another.

This is special data for MR::cutMesh, you can convert some other contours representation to it by:
MR::surfaceLineToClosedMeshContour MR::surfacePathsToMeshContours

Generated from class MR::OneMeshContours.

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

Constructor & Destructor Documentation

◆ OneMeshContours() [1/4]

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

◆ OneMeshContours() [2/4]

meshlib.OneMeshContours.OneMeshContours ( )

Constructs an empty (default-constructed) instance.

Calls MR_OneMeshContours_DefaultConstruct().

◆ OneMeshContours() [3/4]

meshlib.OneMeshContours.OneMeshContours ( meshlib.OneMeshContours _other)

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

Calls MR_OneMeshContours_ConstructFromAnother().

◆ OneMeshContours() [4/4]

meshlib.OneMeshContours.OneMeshContours ( meshlib.Vector_MR_OneMeshContour contours)

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

Calls MR_OneMeshContours_Construct().

Member Function Documentation

◆ assignFromAnother()

meshlib.OneMeshContours meshlib.OneMeshContours.assignFromAnother ( meshlib.OneMeshContours _other)

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

Calls MR_OneMeshContours_AssignFromAnother().

◆ closed()

meshlib.BitSet meshlib.OneMeshContours.closed ( )

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

Calls MR_OneMeshContours_Get_closed().

Reimplemented from meshlib.CppObject.

◆ contour()

meshlib.OneMeshContour meshlib.OneMeshContours.contour ( long c)

returns a copy of contour c Generated from method MR::OneMeshContours::contour.

Calls MR_OneMeshContours_contour().

◆ empty()

boolean meshlib.OneMeshContours.empty ( )

Generated from method MR::OneMeshContours::empty.

Calls MR_OneMeshContours_empty().

◆ intersection()

meshlib.OneMeshIntersection meshlib.OneMeshContours.intersection ( long c,
long i )

Generated from method MR::OneMeshContours::intersection.

Calls MR_OneMeshContours_intersection().

◆ intersections()

meshlib.Vector_MR_OneMeshIntersection meshlib.OneMeshContours.intersections ( )

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

Calls MR_OneMeshContours_Get_intersections().

◆ offsets()

meshlib.Vector_int meshlib.OneMeshContours.offsets ( )

< the number of contours + 1 elements: contour c is intersections[offsets[c], offsets[c + 1]) Returns a pointer to a member variable of class MR::OneMeshContours named offsets. The reference to this object might be preserved as the return value.

Calls MR_OneMeshContours_Get_offsets().

◆ push_back()

void meshlib.OneMeshContours.push_back ( meshlib.OneMeshContour contour)

Generated from method MR::OneMeshContours::push_back.

Calls MR_OneMeshContours_push_back().

◆ setClosed()

void meshlib.OneMeshContours.setClosed ( meshlib.BitSet value)

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

Calls MR_OneMeshContours_Set_closed().

◆ setIntersections()

void meshlib.OneMeshContours.setIntersections ( meshlib.Vector_MR_OneMeshIntersection value)

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

Calls MR_OneMeshContours_Set_intersections().

◆ setOffsets()

void meshlib.OneMeshContours.setOffsets ( meshlib.Vector_int value)

< the number of contours + 1 elements: contour c is intersections[offsets[c], offsets[c + 1]) Modifies a member variable of class MR::OneMeshContours named offsets. The reference to the parameter value might be preserved in this object in element offsets.

Calls MR_OneMeshContours_Set_offsets().

◆ size()

long meshlib.OneMeshContours.size ( )

Generated from method MR::OneMeshContours::size.

Calls MR_OneMeshContours_size().


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