MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.MeshTopologyDiff Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, MeshTopology from_, MeshTopology to)
 
bool any (self)
 
None applyAndSwap (self, MeshTopology t)
 
int heapBytes (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
MeshTopologyDiff operator (*args, **kwargs)
 
MeshTopologyDiff operator (*args, **kwargs)
 

Detailed Description

Generated from:  MR::MeshTopologyDiff

this object stores a difference between two topologies: both in coordinates and in topology
\\details if the topologies are similar then this object is small, if the topologies are very distinct then this object will be even larger than one topology itself
\\ingroup MeshAlgorithmGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.MeshTopologyDiff.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.MeshTopologyDiff.__init__ ( self)
constructs minimal difference, where applyAndSwap( t ) will produce empty topology

◆ __init__() [3/3]

None mrmeshpy.MeshTopologyDiff.__init__ ( self,
MeshTopology from_,
MeshTopology to )
computes the difference, that can be applied to topology-from in order to get topology-to

Member Function Documentation

◆ any()

bool mrmeshpy.MeshTopologyDiff.any ( self)
returns true if this object does contain some difference in topology;
if (from) has more topology elements than (to) and the common elements are the same,
then the method will return false since nothing is stored here

◆ applyAndSwap()

None mrmeshpy.MeshTopologyDiff.applyAndSwap ( self,
MeshTopology t )
given topology-from on input converts it in topology-to,
this object is updated to become the reverse difference from original topology-to to original topology-from

◆ heapBytes()

int mrmeshpy.MeshTopologyDiff.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ operator() [1/2]

MeshTopologyDiff mrmeshpy.MeshTopologyDiff.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

MeshTopologyDiff mrmeshpy.MeshTopologyDiff.operator ( * args,
** kwargs )
static

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