MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::OneMeshContours Struct 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

auto assign_from_another (_other:&meshlib::OneMeshContours) -> &mut meshlib::OneMeshContours
auto size () const -> usize
auto empty () const -> bool
auto intersection (c:usize, i:usize) const -> &meshlib::OneMeshIntersection
auto contour (c:usize) const -> meshlib::Owned< meshlib::OneMeshContour >
void push_back (contour:&meshlib::OneMeshContour)
auto intersections () const -> &meshlib::Vector_MR_OneMeshIntersection
auto intersections_mut () -> &mut meshlib::Vector_MR_OneMeshIntersection
void set_intersections (value:&meshlib::Vector_MR_OneMeshIntersection)
auto offsets () const -> &meshlib::Vector_int
auto offsets_mut () -> &mut meshlib::Vector_int
void set_offsets (value:&meshlib::Vector_int)
auto closed () const -> &meshlib::BitSet
auto closed_mut () -> &mut meshlib::BitSet
void set_closed (value:&meshlib::BitSet)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::OneMeshContours >
static auto construct_from_another (_other:&meshlib::OneMeshContours) -> meshlib::Owned< meshlib::OneMeshContours >
static auto construct (contours:&meshlib::Vector_MR_OneMeshContour) -> meshlib::Owned< meshlib::OneMeshContours >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

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.

Generated from class MR::OneMeshContours. Heap-allocated instances are held in Owned<OneMeshContours>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::OneMeshContours::assign_from_another ( _other:&meshlib::OneMeshContours ) -> &mut meshlib::OneMeshContours

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

Calls MR_OneMeshContours_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ closed()

auto meshlib::OneMeshContours::closed ( ) const -> &meshlib::BitSet

Returns a pointer to a member variable of class MR::OneMeshContours named closed.

Calls MR_OneMeshContours_Get_closed(). The reference to this object might be preserved as the return value.

◆ closed_mut()

auto meshlib::OneMeshContours::closed_mut ( ) -> &mut meshlib::BitSet

Returns a mutable pointer to a member variable of class MR::OneMeshContours named closed.

Calls MR_OneMeshContours_GetMutable_closed(). The reference to this object might be preserved as the return value.

◆ construct()

auto meshlib::OneMeshContours::construct ( contours:&meshlib::Vector_MR_OneMeshContour ) -> meshlib::Owned< meshlib::OneMeshContours >
static

Generated from constructor MR::OneMeshContours::OneMeshContours.

Calls MR_OneMeshContours_Construct(). The reference to the parameter contours might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::OneMeshContours::construct_from_another ( _other:&meshlib::OneMeshContours ) -> meshlib::Owned< meshlib::OneMeshContours >
static

Generated from constructor MR::OneMeshContours::OneMeshContours.

Calls MR_OneMeshContours_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ contour()

auto meshlib::OneMeshContours::contour ( c:usize ) const -> meshlib::Owned< meshlib::OneMeshContour >

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

Calls MR_OneMeshContours_contour().

◆ empty()

auto meshlib::OneMeshContours::empty ( ) const -> bool

Generated from method MR::OneMeshContours::empty.

Calls MR_OneMeshContours_empty().

◆ intersection()

auto meshlib::OneMeshContours::intersection ( c:usize ,
i:usize  ) const -> &meshlib::OneMeshIntersection

Generated from method MR::OneMeshContours::intersection.

Calls MR_OneMeshContours_intersection().

◆ intersections()

auto meshlib::OneMeshContours::intersections ( ) const -> &meshlib::Vector_MR_OneMeshIntersection

Returns a pointer to a member variable of class MR::OneMeshContours named intersections.

Calls MR_OneMeshContours_Get_intersections(). The reference to this object might be preserved as the return value.

◆ intersections_mut()

auto meshlib::OneMeshContours::intersections_mut ( ) -> &mut meshlib::Vector_MR_OneMeshIntersection

Returns a mutable pointer to a member variable of class MR::OneMeshContours named intersections.

Calls MR_OneMeshContours_GetMutable_intersections(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::OneMeshContours::new ( ) -> meshlib::Owned< meshlib::OneMeshContours >
static

Constructs an empty (default-constructed) instance.

Calls MR_OneMeshContours_DefaultConstruct().

◆ offsets()

auto meshlib::OneMeshContours::offsets ( ) const -> &meshlib::Vector_int

< 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.

Calls MR_OneMeshContours_Get_offsets(). The reference to this object might be preserved as the return value.

◆ offsets_mut()

auto meshlib::OneMeshContours::offsets_mut ( ) -> &mut meshlib::Vector_int

< the number of contours + 1 elements: contour c is intersections[offsets[c], offsets[c + 1]) Returns a mutable pointer to a member variable of class MR::OneMeshContours named offsets.

Calls MR_OneMeshContours_GetMutable_offsets(). The reference to this object might be preserved as the return value.

◆ push_back()

void meshlib::OneMeshContours::push_back ( contour:&meshlib::OneMeshContour )

Generated from method MR::OneMeshContours::push_back.

Calls MR_OneMeshContours_push_back().

◆ set_closed()

void meshlib::OneMeshContours::set_closed ( value:&meshlib::BitSet )

Modifies a member variable of class MR::OneMeshContours named closed.

Calls MR_OneMeshContours_Set_closed(). The reference to the parameter value might be preserved in this object in element closed.

◆ set_intersections()

void meshlib::OneMeshContours::set_intersections ( value:&meshlib::Vector_MR_OneMeshIntersection )

Modifies a member variable of class MR::OneMeshContours named intersections.

Calls MR_OneMeshContours_Set_intersections(). The reference to the parameter value might be preserved in this object in element intersections.

◆ set_offsets()

void meshlib::OneMeshContours::set_offsets ( value:&meshlib::Vector_int )

< 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.

Calls MR_OneMeshContours_Set_offsets(). The reference to the parameter value might be preserved in this object in element offsets.

◆ size()

auto meshlib::OneMeshContours::size ( ) const -> usize

Generated from method MR::OneMeshContours::size.

Calls MR_OneMeshContours_size().


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