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

Public Member Functions

auto assign_from_another (_other:&meshlib::MarchingCubesParams) -> &mut meshlib::MarchingCubesParams
auto origin () const -> &meshlib::Vector3f
auto origin_mut () -> &mut meshlib::Vector3f
void set_origin (value:meshlib::Vector3f)
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)
auto iso () const -> &f32
auto iso_mut () -> &mut f32
void set_iso (value:f32)
auto less_inside () const -> &bool
auto less_inside_mut () -> &mut bool
void set_less_inside (value:bool)
auto out_voxel_per_face_map () const -> *const *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId
auto out_voxel_per_face_map_mut () -> *mut *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId
void set_out_voxel_per_face_map (value:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId >)
auto out_grid_to_mesh_xf () const -> *const *mut meshlib::AffineXf3f
auto out_grid_to_mesh_xf_mut () -> *mut *mut meshlib::AffineXf3f
void set_out_grid_to_mesh_xf (value:Option<&mut meshlib::AffineXf3f >)
auto positioner () const -> &meshlib::std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float
auto positioner_mut () -> &mut meshlib::std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float
void set_positioner (value:&meshlib::std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float)
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 caching_mode () const -> &meshlib::MarchingCubesParams_CachingMode
auto caching_mode_mut () -> &mut meshlib::MarchingCubesParams_CachingMode
void set_caching_mode (value:meshlib::MarchingCubesParams_CachingMode)
auto free_volume () const -> &meshlib::std_function_void
auto free_volume_mut () -> &mut meshlib::std_function_void
void set_free_volume (value:&meshlib::std_function_void)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MarchingCubesParams >
static auto construct_from (origin:meshlib::Vector3f, cb:&meshlib::std_function_bool_from_float, iso:f32, lessInside:bool, outVoxelPerFaceMap:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId >, outGridToMeshXf:Option<&mut meshlib::AffineXf3f >, positioner:&meshlib::std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float, maxVertices:core::ffi::c_int, cachingMode:meshlib::MarchingCubesParams_CachingMode, freeVolume:&meshlib::std_function_void) -> meshlib::Owned< meshlib::MarchingCubesParams >
static auto construct_from_another (_other:&meshlib::MarchingCubesParams) -> meshlib::Owned< meshlib::MarchingCubesParams >
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

Generated from class MR::MarchingCubesParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ caching_mode()

auto meshlib::MarchingCubesParams::caching_mode ( ) const -> &meshlib::MarchingCubesParams_CachingMode

Returns a pointer to a member variable of class MR::MarchingCubesParams named cachingMode.

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

◆ caching_mode_mut()

auto meshlib::MarchingCubesParams::caching_mode_mut ( ) -> &mut meshlib::MarchingCubesParams_CachingMode

Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named cachingMode.

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

◆ cb()

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

progress callback Returns a pointer to a member variable of class MR::MarchingCubesParams named cb.

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

◆ cb_mut()

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

progress callback Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named cb.

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

◆ construct_from()

auto meshlib::MarchingCubesParams::construct_from ( origin:meshlib::Vector3f ,
cb:&meshlib::std_function_bool_from_float ,
iso:f32 ,
lessInside:bool ,
outVoxelPerFaceMap:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId > ,
outGridToMeshXf:Option<&mut meshlib::AffineXf3f > ,
positioner:&meshlib::std_function_MR_Vector3f_from_const_MR_Vector3f_ref_const_MR_Vector3f_ref_float_float_float ,
maxVertices:core::ffi::c_int ,
cachingMode:meshlib::MarchingCubesParams_CachingMode ,
freeVolume:&meshlib::std_function_void  ) -> meshlib::Owned< meshlib::MarchingCubesParams >
static

Constructs MR::MarchingCubesParams elementwise.

Calls MR_MarchingCubesParams_ConstructFrom(). The reference to the parameter origin might be preserved in the constructed object. The reference to the parameter cb might be preserved in the constructed object. The reference to the parameter outVoxelPerFaceMap might be preserved in the constructed object. The reference to the parameter outGridToMeshXf might be preserved in the constructed object. The reference to the parameter positioner might be preserved in the constructed object. The reference to the parameter cachingMode might be preserved in the constructed object. The reference to the parameter freeVolume might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MarchingCubesParams::MarchingCubesParams.

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

◆ free_volume()

auto meshlib::MarchingCubesParams::free_volume ( ) const -> &meshlib::std_function_void

this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption Returns a pointer to a member variable of class MR::MarchingCubesParams named freeVolume.

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

◆ free_volume_mut()

auto meshlib::MarchingCubesParams::free_volume_mut ( ) -> &mut meshlib::std_function_void

this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named freeVolume.

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

◆ iso()

auto meshlib::MarchingCubesParams::iso ( ) const -> &f32

target iso-value of the surface to be extracted from volume Returns a pointer to a member variable of class MR::MarchingCubesParams named iso.

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

◆ iso_mut()

auto meshlib::MarchingCubesParams::iso_mut ( ) -> &mut f32

target iso-value of the surface to be extracted from volume Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named iso.

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

◆ less_inside()

auto meshlib::MarchingCubesParams::less_inside ( ) const -> &bool

should be false for dense volumes, and true for distance volume Returns a pointer to a member variable of class MR::MarchingCubesParams named lessInside.

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

◆ less_inside_mut()

auto meshlib::MarchingCubesParams::less_inside_mut ( ) -> &mut bool

should be false for dense volumes, and true for distance volume Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named lessInside.

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

◆ max_vertices()

auto meshlib::MarchingCubesParams::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::MarchingCubesParams named maxVertices.

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

◆ max_vertices_mut()

auto meshlib::MarchingCubesParams::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::MarchingCubesParams named maxVertices.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MarchingCubesParams_DefaultConstruct().

◆ origin()

auto meshlib::MarchingCubesParams::origin ( ) const -> &meshlib::Vector3f

origin point of voxels box in 3D space with output mesh Returns a pointer to a member variable of class MR::MarchingCubesParams named origin.

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

◆ origin_mut()

auto meshlib::MarchingCubesParams::origin_mut ( ) -> &mut meshlib::Vector3f

origin point of voxels box in 3D space with output mesh Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named origin.

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

◆ out_grid_to_mesh_xf()

auto meshlib::MarchingCubesParams::out_grid_to_mesh_xf ( ) const -> *const *mut meshlib::AffineXf3f

optional output transform from integer grid locations to mesh reference frame: the node with integer coordinates (i,j,k) is located in (*outGridToMeshXf)( Vector3f( i, j, k ) ); every vertex of output mesh is located on a grid edge Returns a pointer to a member variable of class MR::MarchingCubesParams named outGridToMeshXf.

Calls MR_MarchingCubesParams_Get_outGridToMeshXf(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ out_grid_to_mesh_xf_mut()

auto meshlib::MarchingCubesParams::out_grid_to_mesh_xf_mut ( ) -> *mut *mut meshlib::AffineXf3f

optional output transform from integer grid locations to mesh reference frame: the node with integer coordinates (i,j,k) is located in (*outGridToMeshXf)( Vector3f( i, j, k ) ); every vertex of output mesh is located on a grid edge Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named outGridToMeshXf.

Calls MR_MarchingCubesParams_GetMutable_outGridToMeshXf(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ out_voxel_per_face_map()

auto meshlib::MarchingCubesParams::out_voxel_per_face_map ( ) const -> *const *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId

optional output map FaceId->VoxelId Returns a pointer to a member variable of class MR::MarchingCubesParams named outVoxelPerFaceMap.

Calls MR_MarchingCubesParams_Get_outVoxelPerFaceMap(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ out_voxel_per_face_map_mut()

auto meshlib::MarchingCubesParams::out_voxel_per_face_map_mut ( ) -> *mut *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId

optional output map FaceId->VoxelId Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named outVoxelPerFaceMap.

Calls MR_MarchingCubesParams_GetMutable_outVoxelPerFaceMap(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ positioner()

function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads Returns a pointer to a member variable of class MR::MarchingCubesParams named positioner.

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

◆ positioner_mut()

function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads Returns a mutable pointer to a member variable of class MR::MarchingCubesParams named positioner.

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

◆ set_caching_mode()

void meshlib::MarchingCubesParams::set_caching_mode ( value:meshlib::MarchingCubesParams_CachingMode )

Modifies a member variable of class MR::MarchingCubesParams named cachingMode.

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

◆ set_cb()

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

progress callback Modifies a member variable of class MR::MarchingCubesParams named cb.

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

◆ set_free_volume()

void meshlib::MarchingCubesParams::set_free_volume ( value:&meshlib::std_function_void )

this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption Modifies a member variable of class MR::MarchingCubesParams named freeVolume.

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

◆ set_iso()

void meshlib::MarchingCubesParams::set_iso ( value:f32 )

target iso-value of the surface to be extracted from volume Modifies a member variable of class MR::MarchingCubesParams named iso.

Calls MR_MarchingCubesParams_Set_iso().

◆ set_less_inside()

void meshlib::MarchingCubesParams::set_less_inside ( value:bool )

should be false for dense volumes, and true for distance volume Modifies a member variable of class MR::MarchingCubesParams named lessInside.

Calls MR_MarchingCubesParams_Set_lessInside().

◆ set_max_vertices()

void meshlib::MarchingCubesParams::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::MarchingCubesParams named maxVertices.

Calls MR_MarchingCubesParams_Set_maxVertices().

◆ set_origin()

void meshlib::MarchingCubesParams::set_origin ( value:meshlib::Vector3f )

origin point of voxels box in 3D space with output mesh Modifies a member variable of class MR::MarchingCubesParams named origin.

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

◆ set_out_grid_to_mesh_xf()

void meshlib::MarchingCubesParams::set_out_grid_to_mesh_xf ( value:Option<&mut meshlib::AffineXf3f > )

optional output transform from integer grid locations to mesh reference frame: the node with integer coordinates (i,j,k) is located in (*outGridToMeshXf)( Vector3f( i, j, k ) ); every vertex of output mesh is located on a grid edge Modifies a member variable of class MR::MarchingCubesParams named outGridToMeshXf.

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

◆ set_out_voxel_per_face_map()

void meshlib::MarchingCubesParams::set_out_voxel_per_face_map ( value:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId > )

optional output map FaceId->VoxelId Modifies a member variable of class MR::MarchingCubesParams named outVoxelPerFaceMap.

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

◆ set_positioner()

function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads Modifies a member variable of class MR::MarchingCubesParams named positioner.

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


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