MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::MeshTopologyDiff Struct Reference
Inheritance diagram for meshlib::MeshTopologyDiff:

Public Member Functions

auto assign_from_another (_other:&meshlib::MeshTopologyDiff) -> &mut meshlib::MeshTopologyDiff
void apply_and_swap (t:&mut meshlib::MeshTopology)
auto any () const -> bool
auto heap_bytes () const -> usize

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshTopologyDiff >
static auto construct_from_another (_other:&meshlib::MeshTopologyDiff) -> meshlib::Owned< meshlib::MeshTopologyDiff >
static auto construct (from:&meshlib::MeshTopology, to:&meshlib::MeshTopology) -> meshlib::Owned< meshlib::MeshTopologyDiff >
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

Detailed Description

this object stores a difference between two topologies: both in coordinates and in topology

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 Generated from class MR::MeshTopologyDiff.

Generated from class MR::MeshTopologyDiff. Heap-allocated instances are held in Owned<MeshTopologyDiff>.

Member Function Documentation

◆ any()

auto meshlib::MeshTopologyDiff::any ( ) const -> bool

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 Generated from method MR::MeshTopologyDiff::any.

Calls MR_MeshTopologyDiff_any().

◆ apply_and_swap()

void meshlib::MeshTopologyDiff::apply_and_swap ( t:&mut meshlib::MeshTopology )

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 Generated from method MR::MeshTopologyDiff::applyAndSwap.

Calls MR_MeshTopologyDiff_applyAndSwap().

◆ assign_from_another()

auto meshlib::MeshTopologyDiff::assign_from_another ( _other:&meshlib::MeshTopologyDiff ) -> &mut meshlib::MeshTopologyDiff

Generated from method MR::MeshTopologyDiff::operator=.

Calls MR_MeshTopologyDiff_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct()

auto meshlib::MeshTopologyDiff::construct ( from:&meshlib::MeshTopology ,
to:&meshlib::MeshTopology  ) -> meshlib::Owned< meshlib::MeshTopologyDiff >
static

computes the difference, that can be applied to topology-from in order to get topology-to Generated from constructor MR::MeshTopologyDiff::MeshTopologyDiff.

Calls MR_MeshTopologyDiff_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.

◆ construct_from_another()

auto meshlib::MeshTopologyDiff::construct_from_another ( _other:&meshlib::MeshTopologyDiff ) -> meshlib::Owned< meshlib::MeshTopologyDiff >
static

Generated from constructor MR::MeshTopologyDiff::MeshTopologyDiff.

Calls MR_MeshTopologyDiff_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ heap_bytes()

auto meshlib::MeshTopologyDiff::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::MeshTopologyDiff::heapBytes.

Calls MR_MeshTopologyDiff_heapBytes().

◆ new()

auto meshlib::MeshTopologyDiff::new ( ) -> meshlib::Owned< meshlib::MeshTopologyDiff >
static

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

Calls MR_MeshTopologyDiff_DefaultConstruct().


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