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

Public Member Functions

 __init__ (self, *args, **kwargs)
bool any (self)
int heapBytes (self)

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

Constructor & Destructor Documentation

◆ __init__()

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

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

constructs minimal difference, where applyAndSwap( t ) will produce empty topology

2. __init__(self: meshlib.mrmeshpy.ConstMeshTopologyDiff, from_: meshlib.mrmeshpy.ConstMeshTopology, to: meshlib.mrmeshpy.ConstMeshTopology) -> None

computes the difference, that can be applied to topology-from in order to get topology-to

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

Implicit copy constructor.

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

Member Function Documentation

◆ any()

bool mrmeshpy.ConstMeshTopologyDiff.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

◆ heapBytes()

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

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