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

Public Member Functions

auto assign_from_another (_other:&meshlib::VertCoordsDiff) -> &mut meshlib::VertCoordsDiff
void apply_and_swap (m:&mut meshlib::VertCoords)
auto any () const -> bool
auto heap_bytes () const -> usize

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::VertCoordsDiff >
static auto construct_from_another (_other:&meshlib::VertCoordsDiff) -> meshlib::Owned< meshlib::VertCoordsDiff >
static auto construct (from:&meshlib::VertCoords, to:&meshlib::VertCoords) -> meshlib::Owned< meshlib::VertCoordsDiff >
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 vectors with 3D coordinates

if the vectors are similar then this object is small, if the vectors are very distinct then this object will be even larger than one vector itself Generated from class MR::VertCoordsDiff.

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

Member Function Documentation

◆ any()

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

returns true if this object does contain some difference in point coordinates; if (from) vector has just more points and the common elements are the same, then the method will return false since nothing is stored here Generated from method MR::VertCoordsDiff::any.

Calls MR_VertCoordsDiff_any().

◆ apply_and_swap()

void meshlib::VertCoordsDiff::apply_and_swap ( m:&mut meshlib::VertCoords )

given vector-from on input converts it in vector-to, this object is updated to become the reverse difference from original vector-to to original vector-from Generated from method MR::VertCoordsDiff::applyAndSwap.

Calls MR_VertCoordsDiff_applyAndSwap().

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::VertCoordsDiff::construct ( from:&meshlib::VertCoords ,
to:&meshlib::VertCoords  ) -> meshlib::Owned< meshlib::VertCoordsDiff >
static

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

Calls MR_VertCoordsDiff_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::VertCoordsDiff::construct_from_another ( _other:&meshlib::VertCoordsDiff ) -> meshlib::Owned< meshlib::VertCoordsDiff >
static

Generated from constructor MR::VertCoordsDiff::VertCoordsDiff.

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

◆ heap_bytes()

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

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

Calls MR_VertCoordsDiff_heapBytes().

◆ new()

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

constructs minimal difference, where applyAndSwap( v ) will produce empty vector

Calls MR_VertCoordsDiff_DefaultConstruct().


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