MeshLib C++ Docs
Loading...
Searching...
No Matches

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

#include <MRMesh/MROneMeshContours.h>

Classes

struct  ConstIterator
 not in the bindings: they would get an iterator over the views, which they lack (MR_BIND_IGNORE does not stop pybind11 from that) More...

Public Member Functions

 OneMeshContours ()=default
 OneMeshContours (std::initializer_list< OneMeshContour > contours)
 OneMeshContours (const Vector< OneMeshContour > &contours)
size_t size () const
bool empty () const
OneMeshContourView operator[] (size_t c) const
const OneMeshIntersection & intersection (size_t c, size_t i) const
ConstIterator begin () const
ConstIterator end () const
OneMeshContour contour (size_t c) const
 returns a copy of contour c
void push_back (const OneMeshContourView &contour)
 appends a contour
void push_back (const OneMeshContour &contour)

Public Attributes

Vector< OneMeshIntersection > intersections
Vector< int > offsets { 0 }
 the number of contours + 1 elements: contour c is intersections[offsets[c], offsets[c + 1])
BitSet closed

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


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