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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::VoxelLocation) -> &mut meshlib::VoxelLocation
auto id () const -> &meshlib::VoxelId
auto id_mut () -> &mut meshlib::VoxelId
void set_id (value:meshlib::VoxelId)
auto pos () const -> &meshlib::Vector3i
auto pos_mut () -> &mut meshlib::Vector3i
void set_pos (value:meshlib::Vector3i)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::VoxelLocation >
static auto construct_from (id:meshlib::VoxelId, pos:meshlib::Vector3i) -> meshlib::Owned< meshlib::VoxelLocation >
static auto construct_from_another (_other:&meshlib::VoxelLocation) -> meshlib::Owned< meshlib::VoxelLocation >
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

contains both linear Id and 3D coordinates of the same voxel Generated from class MR::VoxelLocation.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::VoxelLocation::construct_from ( id:meshlib::VoxelId ,
pos:meshlib::Vector3i  ) -> meshlib::Owned< meshlib::VoxelLocation >
static

Constructs MR::VoxelLocation elementwise.

Calls MR_VoxelLocation_ConstructFrom(). The reference to the parameter id might be preserved in the constructed object. The reference to the parameter pos might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::VoxelLocation::VoxelLocation.

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

◆ convert_to_bool()

auto meshlib::VoxelLocation::convert_to_bool ( ) const -> bool

check for validity Generated from conversion operator MR::VoxelLocation::operator bool.

Calls MR_VoxelLocation_ConvertTo_bool().

◆ id()

auto meshlib::VoxelLocation::id ( ) const -> &meshlib::VoxelId

Returns a pointer to a member variable of class MR::VoxelLocation named id.

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

◆ id_mut()

auto meshlib::VoxelLocation::id_mut ( ) -> &mut meshlib::VoxelId

Returns a mutable pointer to a member variable of class MR::VoxelLocation named id.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_VoxelLocation_DefaultConstruct().

◆ pos()

auto meshlib::VoxelLocation::pos ( ) const -> &meshlib::Vector3i

Returns a pointer to a member variable of class MR::VoxelLocation named pos.

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

◆ pos_mut()

auto meshlib::VoxelLocation::pos_mut ( ) -> &mut meshlib::Vector3i

Returns a mutable pointer to a member variable of class MR::VoxelLocation named pos.

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

◆ set_id()

void meshlib::VoxelLocation::set_id ( value:meshlib::VoxelId )

Modifies a member variable of class MR::VoxelLocation named id.

Calls MR_VoxelLocation_Set_id(). The reference to the parameter value might be preserved in this object in element id.

◆ set_pos()

void meshlib::VoxelLocation::set_pos ( value:meshlib::Vector3i )

Modifies a member variable of class MR::VoxelLocation named pos.

Calls MR_VoxelLocation_Set_pos(). The reference to the parameter value might be preserved in this object in element pos.


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