MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstOneMeshContours Class Reference
Inheritance diagram for mrmeshpy.ConstOneMeshContours:

Public Member Functions

 __init__ (self, *args, **kwargs)
OneMeshContour contour (self, int c)
bool empty (self)
ConstOneMeshIntersection intersection (self, int c, int i)
int size (self)
ConstBitSet closed (self)
ConstVector_OneMeshIntersection intersections (self)
ConstVector_int offsets (self)

Static Protected Attributes

typing _offsetof_closed = 48
typing _offsetof_intersections = 0
typing _offsetof_offsets = 24

Detailed Description

Generated from:  MR::OneMeshContours

\\brief 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:\\n
\\ref MR::surfaceLineToClosedMeshContour
\\ref MR::surfacePathsToMeshContours

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstOneMeshContours.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstOneMeshContours) -> None

2. __init__(self: meshlib.mrmeshpy.ConstOneMeshContours, contours: meshlib.mrmeshpy.ConstVector_OneMeshContour) -> None

3. __init__(self: meshlib.mrmeshpy.ConstOneMeshContours, arg0: meshlib.mrmeshpy.ConstOneMeshContours) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstOneMeshContours, : meshlib.mrmeshpy.ConstOneMeshContours) -> None

Member Function Documentation

◆ closed()

ConstBitSet mrmeshpy.ConstOneMeshContours.closed ( self)

◆ contour()

OneMeshContour mrmeshpy.ConstOneMeshContours.contour ( self,
int c )
returns a copy of contour c

◆ empty()

bool mrmeshpy.ConstOneMeshContours.empty ( self)

◆ intersection()

ConstOneMeshIntersection mrmeshpy.ConstOneMeshContours.intersection ( self,
int c,
int i )

◆ intersections()

ConstVector_OneMeshIntersection mrmeshpy.ConstOneMeshContours.intersections ( self)

◆ offsets()

ConstVector_int mrmeshpy.ConstOneMeshContours.offsets ( self)
the number of contours + 1 elements: contour c is intersections[offsets[c], offsets[c + 1])

Reimplemented in mrmeshpy.OneMeshContours, and mrmeshpy.OneMeshContours.

◆ size()

int mrmeshpy.ConstOneMeshContours.size ( self)

Member Data Documentation

◆ _offsetof_closed

typing mrmeshpy.ConstOneMeshContours._offsetof_closed = 48
staticprotected

◆ _offsetof_intersections

typing mrmeshpy.ConstOneMeshContours._offsetof_intersections = 0
staticprotected

◆ _offsetof_offsets

typing mrmeshpy.ConstOneMeshContours._offsetof_offsets = 24
staticprotected

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