MeshLib Python Docs
Loading...
Searching...
No Matches

Public Member Functions

None __init__ (self)
None __init__ (self, MeshBuilder.VertInfo arg0)
bool areTwinChains (self, int numTris)
bool duplicationNeeded (self)
bool hasRepeatedVerts (self)
int maxVertRepetitions (self)
int numChains (self)
int numClosedChains (self)
int numOpenChains (self)
int numRepeatedVerts (self)
None setNumChains (self, int openChains, int closedChains)
None setNumRepeatedVerts (self, int repeatedVerts, int maxVertRepetitions)

Static Public Member Functions

None __init__ (*args, **kwargs)
MeshBuilder.VertInfo operator (*args, **kwargs)
MeshBuilder.VertInfo operator (*args, **kwargs)

Static Public Attributes

typing maxMaxVertRepetitions = 32767
typing maxNumClosedChains = 32767
typing maxNumOpenChains = 65535
typing maxNumRepeatedVerts = 65535

Detailed Description

Generated from:  MR::MeshBuilder::VertInfo

classification of the triangles around one vertex, packed in 32 bits;
it stores 1-bit flag (hasRepeatedVerts) and either 31-bit numRepeatedVerts (if the flag is on),
or 16-bit numOpenChains and 15-bit numClosedChains (if the flag is off)

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.MeshBuilder.VertInfo.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.MeshBuilder.VertInfo.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.MeshBuilder.VertInfo.__init__ ( self,
MeshBuilder.VertInfo arg0 )
Implicit copy constructor.

Member Function Documentation

◆ areTwinChains()

bool mrmeshpy.MeshBuilder.VertInfo.areTwinChains ( self,
int numTris )
tests for the case when every triangle around central vertex is present twice,
if the chains are closed, the copy triangles have always same or always opposite orientation,
if the chains are open, the copy triangles have always same orientation,
so every neighbour vertex is repeated

◆ duplicationNeeded()

bool mrmeshpy.MeshBuilder.VertInfo.duplicationNeeded ( self)
true if the triangles around the vertex do not form a configuration MeshBuilder accepts as is
(a single chain or ring, no triangles at all, or two open chains), so the vertex must be duplicated

◆ hasRepeatedVerts()

bool mrmeshpy.MeshBuilder.VertInfo.hasRepeatedVerts ( self)
true if some neighbor vertex is present in more than one triangle-pair around the vertex

◆ maxVertRepetitions()

int mrmeshpy.MeshBuilder.VertInfo.maxVertRepetitions ( self)
the maximum number of a neighbor vertex repetitions; 0 if !hasRepeatedVerts()

◆ numChains()

int mrmeshpy.MeshBuilder.VertInfo.numChains ( self)
the total number of open and closed chains of connected triangles around the vertex; 0 if hasRepeatedVerts()

◆ numClosedChains()

int mrmeshpy.MeshBuilder.VertInfo.numClosedChains ( self)
the number of closed chains (rings) of connected triangles around the vertex; 0 if hasRepeatedVerts()

◆ numOpenChains()

int mrmeshpy.MeshBuilder.VertInfo.numOpenChains ( self)
the number of open chains of connected triangles around the vertex; 0 if hasRepeatedVerts()

◆ numRepeatedVerts()

int mrmeshpy.MeshBuilder.VertInfo.numRepeatedVerts ( self)
the total number of neighbor vertex repetitions; 0 if !hasRepeatedVerts()

◆ operator() [1/2]

MeshBuilder.VertInfo mrmeshpy.MeshBuilder.VertInfo.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

MeshBuilder.VertInfo mrmeshpy.MeshBuilder.VertInfo.operator ( * args,
** kwargs )
static

◆ setNumChains()

None mrmeshpy.MeshBuilder.VertInfo.setNumChains ( self,
int openChains,
int closedChains )

◆ setNumRepeatedVerts()

None mrmeshpy.MeshBuilder.VertInfo.setNumRepeatedVerts ( self,
int repeatedVerts,
int maxVertRepetitions )

Member Data Documentation

◆ maxMaxVertRepetitions

typing mrmeshpy.MeshBuilder.VertInfo.maxMaxVertRepetitions = 32767
static

◆ maxNumClosedChains

typing mrmeshpy.MeshBuilder.VertInfo.maxNumClosedChains = 32767
static

◆ maxNumOpenChains

typing mrmeshpy.MeshBuilder.VertInfo.maxNumOpenChains = 65535
static

◆ maxNumRepeatedVerts

typing mrmeshpy.MeshBuilder.VertInfo.maxNumRepeatedVerts = 65535
static

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