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

Public Member Functions

auto path () const -> &meshlib::Polyline3
auto tool_mesh () const -> &meshlib::MeshPart
auto tool_mesh_mut () -> &mut meshlib::MeshPart
auto tool_spec () const -> *const *const meshlib::ffi::MR_EndMillTool
auto tool_spec_mut () -> *mut *const meshlib::ffi::MR_EndMillTool
void set_tool_spec (value:Option<&meshlib::EndMillTool >)
auto voxel_size () const -> &f32
auto voxel_size_mut () -> &mut f32
void set_voxel_size (value:f32)
auto memory_limit () const -> &usize
auto memory_limit_mut () -> &mut usize
void set_memory_limit (value:usize)
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 construct_from_another (_other:&meshlib::ComputeSweptVolumeParameters) -> meshlib::Owned< meshlib::ComputeSweptVolumeParameters >
static auto construct_from (path:&meshlib::Polyline3, toolMesh:&meshlib::MeshPart, toolSpec:Option<&meshlib::EndMillTool >, voxelSize:f32, memoryLimit:usize, cb:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::ComputeSweptVolumeParameters >
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 for computeSweptVolume* functions Generated from class MR::ComputeSweptVolumeParameters.

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

Member Function Documentation

◆ cb()

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

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

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

◆ cb_mut()

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

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

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

◆ construct_from()

auto meshlib::ComputeSweptVolumeParameters::construct_from ( path:&meshlib::Polyline3 ,
toolMesh:&meshlib::MeshPart ,
toolSpec:Option<&meshlib::EndMillTool > ,
voxelSize:f32 ,
memoryLimit:usize ,
cb:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::ComputeSweptVolumeParameters >
static

Constructs MR::ComputeSweptVolumeParameters elementwise.

Calls MR_ComputeSweptVolumeParameters_ConstructFrom(). The reference to the parameter path might be preserved in the constructed object. The reference to the parameter toolMesh might be preserved in the constructed object. The reference to the parameter toolSpec might be preserved in the constructed object. The reference to the parameter memoryLimit 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::ComputeSweptVolumeParameters::construct_from_another ( _other:&meshlib::ComputeSweptVolumeParameters ) -> meshlib::Owned< meshlib::ComputeSweptVolumeParameters >
static

Generated from constructor MR::ComputeSweptVolumeParameters::ComputeSweptVolumeParameters.

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

◆ memory_limit()

auto meshlib::ComputeSweptVolumeParameters::memory_limit ( ) const -> &usize

(distance volume) max memory amount used for the distance volume, zero for no limits Returns a pointer to a member variable of class MR::ComputeSweptVolumeParameters named memoryLimit.

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

◆ memory_limit_mut()

auto meshlib::ComputeSweptVolumeParameters::memory_limit_mut ( ) -> &mut usize

(distance volume) max memory amount used for the distance volume, zero for no limits Returns a mutable pointer to a member variable of class MR::ComputeSweptVolumeParameters named memoryLimit.

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

◆ path()

auto meshlib::ComputeSweptVolumeParameters::path ( ) const -> &meshlib::Polyline3

toolpath Returns a pointer to a member variable of class MR::ComputeSweptVolumeParameters named path.

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

◆ set_cb()

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

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

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

◆ set_memory_limit()

void meshlib::ComputeSweptVolumeParameters::set_memory_limit ( value:usize )

(distance volume) max memory amount used for the distance volume, zero for no limits Modifies a member variable of class MR::ComputeSweptVolumeParameters named memoryLimit.

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

◆ set_tool_spec()

void meshlib::ComputeSweptVolumeParameters::set_tool_spec ( value:Option<&meshlib::EndMillTool > )

tool specifications, can be used for more precise computations the tool spec and the tool mesh are expected to relate to the same tool if omitted, tool mesh is used Modifies a member variable of class MR::ComputeSweptVolumeParameters named toolSpec.

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

◆ set_voxel_size()

void meshlib::ComputeSweptVolumeParameters::set_voxel_size ( value:f32 )

voxel size for internal voxel volumes TODO: replace with tolerance and make the voxel size implementation-specific Modifies a member variable of class MR::ComputeSweptVolumeParameters named voxelSize.

Calls MR_ComputeSweptVolumeParameters_Set_voxelSize().

◆ tool_mesh()

auto meshlib::ComputeSweptVolumeParameters::tool_mesh ( ) const -> &meshlib::MeshPart

tool mesh Returns a pointer to a member variable of class MR::ComputeSweptVolumeParameters named toolMesh.

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

◆ tool_mesh_mut()

auto meshlib::ComputeSweptVolumeParameters::tool_mesh_mut ( ) -> &mut meshlib::MeshPart

tool mesh Returns a mutable pointer to a member variable of class MR::ComputeSweptVolumeParameters named toolMesh.

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

◆ tool_spec()

auto meshlib::ComputeSweptVolumeParameters::tool_spec ( ) const -> *const *const meshlib::ffi::MR_EndMillTool

tool specifications, can be used for more precise computations the tool spec and the tool mesh are expected to relate to the same tool if omitted, tool mesh is used Returns a pointer to a member variable of class MR::ComputeSweptVolumeParameters named toolSpec.

Calls MR_ComputeSweptVolumeParameters_Get_toolSpec(). 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.

◆ tool_spec_mut()

auto meshlib::ComputeSweptVolumeParameters::tool_spec_mut ( ) -> *mut *const meshlib::ffi::MR_EndMillTool

tool specifications, can be used for more precise computations the tool spec and the tool mesh are expected to relate to the same tool if omitted, tool mesh is used Returns a mutable pointer to a member variable of class MR::ComputeSweptVolumeParameters named toolSpec.

Calls MR_ComputeSweptVolumeParameters_GetMutable_toolSpec(). 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.

◆ voxel_size()

auto meshlib::ComputeSweptVolumeParameters::voxel_size ( ) const -> &f32

voxel size for internal voxel volumes TODO: replace with tolerance and make the voxel size implementation-specific Returns a pointer to a member variable of class MR::ComputeSweptVolumeParameters named voxelSize.

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

◆ voxel_size_mut()

auto meshlib::ComputeSweptVolumeParameters::voxel_size_mut ( ) -> &mut f32

voxel size for internal voxel volumes TODO: replace with tolerance and make the voxel size implementation-specific Returns a mutable pointer to a member variable of class MR::ComputeSweptVolumeParameters named voxelSize.

Calls MR_ComputeSweptVolumeParameters_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: