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

Public Member Functions

auto assign_from_another (_other:&meshlib::GridToMeshSettings) -> &mut meshlib::GridToMeshSettings
auto voxel_size () const -> &meshlib::Vector3f
auto voxel_size_mut () -> &mut meshlib::Vector3f
void set_voxel_size (value:meshlib::Vector3f)
auto iso_value () const -> &f32
auto iso_value_mut () -> &mut f32
void set_iso_value (value:f32)
auto adaptivity () const -> &f32
auto adaptivity_mut () -> &mut f32
void set_adaptivity (value:f32)
auto max_faces () const -> &core::ffi::c_int
auto max_faces_mut () -> &mut core::ffi::c_int
void set_max_faces (value:core::ffi::c_int)
auto max_vertices () const -> &core::ffi::c_int
auto max_vertices_mut () -> &mut core::ffi::c_int
void set_max_vertices (value:core::ffi::c_int)
auto relax_disoriented_triangles () const -> &bool
auto relax_disoriented_triangles_mut () -> &mut bool
void set_relax_disoriented_triangles (value:bool)
auto cb () const -> &meshlib::std_function_bool_from_float
auto cb_mut () -> &mut meshlib::std_function_bool_from_float
void set_cb (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::GridToMeshSettings >
static auto construct_from (voxelSize:meshlib::Vector3f, isoValue:f32, adaptivity:f32, maxFaces:core::ffi::c_int, maxVertices:core::ffi::c_int, relaxDisorientedTriangles:bool, cb:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::GridToMeshSettings >
static auto construct_from_another (_other:&meshlib::GridToMeshSettings) -> meshlib::Owned< meshlib::GridToMeshSettings >
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

parameters of OpenVDB Grid to Mesh conversion using Dual Marching Cubes algorithm Generated from class MR::GridToMeshSettings.

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

Member Function Documentation

◆ adaptivity()

auto meshlib::GridToMeshSettings::adaptivity ( ) const -> &f32

adaptivity - [0.0;1.0] ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a pointer to a member variable of class MR::GridToMeshSettings named adaptivity.

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

◆ adaptivity_mut()

auto meshlib::GridToMeshSettings::adaptivity_mut ( ) -> &mut f32

adaptivity - [0.0;1.0] ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named adaptivity.

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

◆ assign_from_another()

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

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

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

◆ cb()

auto meshlib::GridToMeshSettings::cb ( ) const -> &meshlib::std_function_bool_from_float

to receive progress and request cancellation Returns a pointer to a member variable of class MR::GridToMeshSettings named cb.

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

◆ cb_mut()

auto meshlib::GridToMeshSettings::cb_mut ( ) -> &mut meshlib::std_function_bool_from_float

to receive progress and request cancellation Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named cb.

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

◆ construct_from()

auto meshlib::GridToMeshSettings::construct_from ( voxelSize:meshlib::Vector3f ,
isoValue:f32 ,
adaptivity:f32 ,
maxFaces:core::ffi::c_int ,
maxVertices:core::ffi::c_int ,
relaxDisorientedTriangles:bool ,
cb:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::GridToMeshSettings >
static

Constructs MR::GridToMeshSettings elementwise.

Calls MR_GridToMeshSettings_ConstructFrom(). The reference to the parameter voxelSize might be preserved in the constructed object. The reference to the parameter cb might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::GridToMeshSettings::GridToMeshSettings.

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

◆ iso_value()

auto meshlib::GridToMeshSettings::iso_value ( ) const -> &f32

layer of grid with this value would be converted in mesh; isoValue can be negative only in level set grids Returns a pointer to a member variable of class MR::GridToMeshSettings named isoValue.

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

◆ iso_value_mut()

auto meshlib::GridToMeshSettings::iso_value_mut ( ) -> &mut f32

layer of grid with this value would be converted in mesh; isoValue can be negative only in level set grids Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named isoValue.

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

◆ max_faces()

auto meshlib::GridToMeshSettings::max_faces ( ) const -> &core::ffi::c_int

if the mesh exceeds this number of faces, an error returns Returns a pointer to a member variable of class MR::GridToMeshSettings named maxFaces.

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

◆ max_faces_mut()

auto meshlib::GridToMeshSettings::max_faces_mut ( ) -> &mut core::ffi::c_int

if the mesh exceeds this number of faces, an error returns Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named maxFaces.

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

◆ max_vertices()

auto meshlib::GridToMeshSettings::max_vertices ( ) const -> &core::ffi::c_int

if the mesh exceeds this number of vertices, an error returns Returns a pointer to a member variable of class MR::GridToMeshSettings named maxVertices.

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

◆ max_vertices_mut()

auto meshlib::GridToMeshSettings::max_vertices_mut ( ) -> &mut core::ffi::c_int

if the mesh exceeds this number of vertices, an error returns Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named maxVertices.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_GridToMeshSettings_DefaultConstruct().

◆ relax_disoriented_triangles()

auto meshlib::GridToMeshSettings::relax_disoriented_triangles ( ) const -> &bool

Returns a pointer to a member variable of class MR::GridToMeshSettings named relaxDisorientedTriangles.

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

◆ relax_disoriented_triangles_mut()

auto meshlib::GridToMeshSettings::relax_disoriented_triangles_mut ( ) -> &mut bool

Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named relaxDisorientedTriangles.

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

◆ set_adaptivity()

void meshlib::GridToMeshSettings::set_adaptivity ( value:f32 )

adaptivity - [0.0;1.0] ratio of combining small triangles into bigger ones (curvature can be lost on high values) Modifies a member variable of class MR::GridToMeshSettings named adaptivity.

Calls MR_GridToMeshSettings_Set_adaptivity().

◆ set_cb()

void meshlib::GridToMeshSettings::set_cb ( value:&meshlib::std_function_bool_from_float )

to receive progress and request cancellation Modifies a member variable of class MR::GridToMeshSettings named cb.

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

◆ set_iso_value()

void meshlib::GridToMeshSettings::set_iso_value ( value:f32 )

layer of grid with this value would be converted in mesh; isoValue can be negative only in level set grids Modifies a member variable of class MR::GridToMeshSettings named isoValue.

Calls MR_GridToMeshSettings_Set_isoValue().

◆ set_max_faces()

void meshlib::GridToMeshSettings::set_max_faces ( value:core::ffi::c_int )

if the mesh exceeds this number of faces, an error returns Modifies a member variable of class MR::GridToMeshSettings named maxFaces.

Calls MR_GridToMeshSettings_Set_maxFaces().

◆ set_max_vertices()

void meshlib::GridToMeshSettings::set_max_vertices ( value:core::ffi::c_int )

if the mesh exceeds this number of vertices, an error returns Modifies a member variable of class MR::GridToMeshSettings named maxVertices.

Calls MR_GridToMeshSettings_Set_maxVertices().

◆ set_relax_disoriented_triangles()

void meshlib::GridToMeshSettings::set_relax_disoriented_triangles ( value:bool )

Modifies a member variable of class MR::GridToMeshSettings named relaxDisorientedTriangles.

Calls MR_GridToMeshSettings_Set_relaxDisorientedTriangles().

◆ set_voxel_size()

void meshlib::GridToMeshSettings::set_voxel_size ( value:meshlib::Vector3f )

the size of each voxel in the grid Modifies a member variable of class MR::GridToMeshSettings named voxelSize.

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

◆ voxel_size()

auto meshlib::GridToMeshSettings::voxel_size ( ) const -> &meshlib::Vector3f

the size of each voxel in the grid Returns a pointer to a member variable of class MR::GridToMeshSettings named voxelSize.

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

◆ voxel_size_mut()

auto meshlib::GridToMeshSettings::voxel_size_mut ( ) -> &mut meshlib::Vector3f

the size of each voxel in the grid Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named voxelSize.

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


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