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

Public Member Functions

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

Detailed Description

Generated from:  MR::MeshDiff

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

Constructor & Destructor Documentation

◆ __init__()

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

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

constructs minimal difference, where applyAndSwap( m ) will produce empty mesh

2. __init__(self: meshlib.mrmeshpy.ConstMeshDiff, from_: meshlib.mrmeshpy.ConstMesh, to: meshlib.mrmeshpy.ConstMesh) -> None

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ any()

bool mrmeshpy.ConstMeshDiff.any ( self)
returns true if this object does contain some difference in point coordinates or in topology;
if (from) mesh has just more points or 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.ConstMeshDiff.heapBytes ( self)
returns the amount of memory this object occupies on heap

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