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

Public Member Functions

None __init__ (self)
 
None __init__ (self, Mesh from_, Mesh to)
 
bool any (self)
 
None applyAndSwap (self, Mesh m)
 
int heapBytes (self)
 

Static Public Member Functions

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

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
\\ingroup MeshAlgorithmGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.MeshDiff.__init__ ( self)
constructs minimal difference, where applyAndSwap( m ) will produce empty mesh

◆ __init__() [3/3]

None mrmeshpy.MeshDiff.__init__ ( self,
Mesh from_,
Mesh to )
computes the difference, that can be applied to mesh-from in order to get mesh-to

Member Function Documentation

◆ any()

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

◆ applyAndSwap()

None mrmeshpy.MeshDiff.applyAndSwap ( self,
Mesh m )
given mesh-from on input converts it in mesh-to,
this object is updated to become the reverse difference from original mesh-to to original mesh-from

◆ heapBytes()

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

◆ operator() [1/2]

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

◆ operator() [2/2]

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

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