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

Public Member Functions

auto assign_from_another (_other:&meshlib::DecimateResult) -> &mut meshlib::DecimateResult
auto verts_deleted () const -> &core::ffi::c_int
auto verts_deleted_mut () -> &mut core::ffi::c_int
void set_verts_deleted (value:core::ffi::c_int)
auto faces_deleted () const -> &core::ffi::c_int
auto faces_deleted_mut () -> &mut core::ffi::c_int
void set_faces_deleted (value:core::ffi::c_int)
auto error_introduced () const -> &f32
auto error_introduced_mut () -> &mut f32
void set_error_introduced (value:f32)
auto cancelled () const -> &bool
auto cancelled_mut () -> &mut bool
void set_cancelled (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DecimateResult >
static auto construct_from (vertsDeleted:core::ffi::c_int, facesDeleted:core::ffi::c_int, errorIntroduced:f32, cancelled:bool) -> meshlib::Owned< meshlib::DecimateResult >
static auto construct_from_another (_other:&meshlib::DecimateResult) -> meshlib::Owned< meshlib::DecimateResult >
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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ cancelled()

auto meshlib::DecimateResult::cancelled ( ) const -> &bool

whether the algorithm was cancelled by the callback Returns a pointer to a member variable of class MR::DecimateResult named cancelled.

Calls MR_DecimateResult_Get_cancelled(). The reference to this object might be preserved as the return value.

◆ cancelled_mut()

auto meshlib::DecimateResult::cancelled_mut ( ) -> &mut bool

whether the algorithm was cancelled by the callback Returns a mutable pointer to a member variable of class MR::DecimateResult named cancelled.

Calls MR_DecimateResult_GetMutable_cancelled(). The reference to this object might be preserved as the return value.

◆ construct_from()

auto meshlib::DecimateResult::construct_from ( vertsDeleted:core::ffi::c_int ,
facesDeleted:core::ffi::c_int ,
errorIntroduced:f32 ,
cancelled:bool  ) -> meshlib::Owned< meshlib::DecimateResult >
static

Constructs MR::DecimateResult elementwise.

Calls MR_DecimateResult_ConstructFrom().

◆ construct_from_another()

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

Generated from constructor MR::DecimateResult::DecimateResult.

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

◆ error_introduced()

auto meshlib::DecimateResult::error_introduced ( ) const -> &f32

for DecimateStrategy::MinimizeError: estimated distance deviation of decimated mesh from the original mesh for DecimateStrategy::ShortestEdgeFirst: the shortest remaining edge in the mesh Returns a pointer to a member variable of class MR::DecimateResult named errorIntroduced.

Calls MR_DecimateResult_Get_errorIntroduced(). The reference to this object might be preserved as the return value.

◆ error_introduced_mut()

auto meshlib::DecimateResult::error_introduced_mut ( ) -> &mut f32

for DecimateStrategy::MinimizeError: estimated distance deviation of decimated mesh from the original mesh for DecimateStrategy::ShortestEdgeFirst: the shortest remaining edge in the mesh Returns a mutable pointer to a member variable of class MR::DecimateResult named errorIntroduced.

Calls MR_DecimateResult_GetMutable_errorIntroduced(). The reference to this object might be preserved as the return value.

◆ faces_deleted()

auto meshlib::DecimateResult::faces_deleted ( ) const -> &core::ffi::c_int

< Number deleted faces Returns a pointer to a member variable of class MR::DecimateResult named facesDeleted.

Calls MR_DecimateResult_Get_facesDeleted(). The reference to this object might be preserved as the return value.

◆ faces_deleted_mut()

auto meshlib::DecimateResult::faces_deleted_mut ( ) -> &mut core::ffi::c_int

< Number deleted faces Returns a mutable pointer to a member variable of class MR::DecimateResult named facesDeleted.

Calls MR_DecimateResult_GetMutable_facesDeleted(). The reference to this object might be preserved as the return value.

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DecimateResult_DefaultConstruct().

◆ set_cancelled()

void meshlib::DecimateResult::set_cancelled ( value:bool )

whether the algorithm was cancelled by the callback Modifies a member variable of class MR::DecimateResult named cancelled.

Calls MR_DecimateResult_Set_cancelled().

◆ set_error_introduced()

void meshlib::DecimateResult::set_error_introduced ( value:f32 )

for DecimateStrategy::MinimizeError: estimated distance deviation of decimated mesh from the original mesh for DecimateStrategy::ShortestEdgeFirst: the shortest remaining edge in the mesh Modifies a member variable of class MR::DecimateResult named errorIntroduced.

Calls MR_DecimateResult_Set_errorIntroduced().

◆ set_faces_deleted()

void meshlib::DecimateResult::set_faces_deleted ( value:core::ffi::c_int )

< Number deleted faces Modifies a member variable of class MR::DecimateResult named facesDeleted.

Calls MR_DecimateResult_Set_facesDeleted().

◆ set_verts_deleted()

void meshlib::DecimateResult::set_verts_deleted ( value:core::ffi::c_int )

< Number deleted verts. Same as the number of performed collapses Modifies a member variable of class MR::DecimateResult named vertsDeleted.

Calls MR_DecimateResult_Set_vertsDeleted().

◆ verts_deleted()

auto meshlib::DecimateResult::verts_deleted ( ) const -> &core::ffi::c_int

< Number deleted verts. Same as the number of performed collapses Returns a pointer to a member variable of class MR::DecimateResult named vertsDeleted.

Calls MR_DecimateResult_Get_vertsDeleted(). The reference to this object might be preserved as the return value.

◆ verts_deleted_mut()

auto meshlib::DecimateResult::verts_deleted_mut ( ) -> &mut core::ffi::c_int

< Number deleted verts. Same as the number of performed collapses Returns a mutable pointer to a member variable of class MR::DecimateResult named vertsDeleted.

Calls MR_DecimateResult_GetMutable_vertsDeleted(). The reference to this object might be preserved as the return value.


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