Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::MeshDiff) -> &mut meshlib::MeshDiff |
| void | apply_and_swap (m:&mut meshlib::Mesh) |
| auto | any () const -> bool |
| auto | heap_bytes () const -> usize |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::MeshDiff > |
| static auto | construct_from_another (_other:&meshlib::MeshDiff) -> meshlib::Owned< meshlib::MeshDiff > |
| static auto | construct (from:&meshlib::Mesh, to:&meshlib::Mesh) -> meshlib::Owned< meshlib::MeshDiff > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
this object stores a difference between two meshes: both in coordinates and in topology
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 Generated from class MR::MeshDiff.
Generated from class MR::MeshDiff. Heap-allocated instances are held in Owned<MeshDiff>.
| auto meshlib::MeshDiff::any | ( | ) | const -> bool |
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 Generated from method MR::MeshDiff::any.
Calls MR_MeshDiff_any().
| void meshlib::MeshDiff::apply_and_swap | ( | m:&mut meshlib::Mesh | ) |
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 Generated from method MR::MeshDiff::applyAndSwap.
Calls MR_MeshDiff_applyAndSwap().
| auto meshlib::MeshDiff::assign_from_another | ( | _other:&meshlib::MeshDiff | ) | -> &mut meshlib::MeshDiff |
Generated from method MR::MeshDiff::operator=.
Calls MR_MeshDiff_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
computes the difference, that can be applied to mesh-from in order to get mesh-to Generated from constructor MR::MeshDiff::MeshDiff.
Calls MR_MeshDiff_Construct(). The reference to the parameter from might be preserved in the constructed object. The reference to the parameter to might be preserved in the constructed object.
|
static |
Generated from constructor MR::MeshDiff::MeshDiff.
Calls MR_MeshDiff_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::MeshDiff::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::MeshDiff::heapBytes.
Calls MR_MeshDiff_heapBytes().
|
static |
constructs minimal difference, where applyAndSwap( m ) will produce empty mesh
Calls MR_MeshDiff_DefaultConstruct().