MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::weighted_shell Namespace Reference

Classes

struct  DistanceVolumeCreationParams
struct  ParametersBase
struct  ParametersMetric
struct  ParametersRegions
struct  ParametersRegions_Region

Functions

auto points_to_distance_volume (cloud:&meshlib::PointCloud, params:&meshlib::weighted_shell::DistanceVolumeCreationParams) -> meshlib::Owned< meshlib::FunctionVolume >
auto mesh_to_distance_volume (mesh:&meshlib::Mesh, params:&meshlib::weighted_shell::DistanceVolumeCreationParams) -> meshlib::Owned< meshlib::FunctionVolume >
auto points_shell (cloud:&meshlib::PointCloud, pointWeights:&meshlib::VertScalars, params:&meshlib::weighted_shell::ParametersMetric) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto mesh_shell (mesh:&meshlib::Mesh, vertWeights:&meshlib::VertScalars, params:&meshlib::weighted_shell::ParametersMetric) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto calculate_shell_weights_from_regions (mesh:&meshlib::Mesh, regions:&meshlib::std_vector_MR_WeightedShell_ParametersRegions_Region, interpolationDist:f32) -> meshlib::Owned< meshlib::VertScalars >
auto mesh_shell_regions (mesh:&meshlib::Mesh, params:&meshlib::weighted_shell::ParametersRegions) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto mesh_shell_regions_builder (mesh:&meshlib::Mesh, params:&meshlib::weighted_shell::ParametersRegions, volumeBuilder:&meshlib::std_function_MR_FunctionVolume_from_const_MR_Mesh_ref_const_MR_WeightedShell_DistanceVolumeCreationParams_ref) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

Function Documentation

◆ calculate_shell_weights_from_regions()

auto meshlib::weighted_shell::calculate_shell_weights_from_regions ( mesh:&meshlib::Mesh ,
regions:&meshlib::std_vector_MR_WeightedShell_ParametersRegions_Region ,
interpolationDist:f32  ) -> meshlib::Owned< meshlib::VertScalars >

interpolate set of regions and assign weight to each vertex of the mesh Generated from function MR::WeightedShell::calculateShellWeightsFromRegions.

Calls MR_WeightedShell_calculateShellWeightsFromRegions().

◆ mesh_shell()

auto meshlib::weighted_shell::mesh_shell ( mesh:&meshlib::Mesh ,
vertWeights:&meshlib::VertScalars ,
params:&meshlib::weighted_shell::ParametersMetric  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

consider a mesh where each vertex has additive weight (taken from vertWeights and not from params), and this weight is linearly interpolated in mesh triangles, and the distance to a point is considered equal to (euclidean distance - weight), constructs iso-surface of such distance field corresponding to params.offset value using marching cubes Generated from function MR::WeightedShell::meshShell.

Calls MR_WeightedShell_meshShell().

◆ mesh_shell_regions()

auto meshlib::weighted_shell::mesh_shell_regions ( mesh:&meshlib::Mesh ,
params:&meshlib::weighted_shell::ParametersRegions  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

this overload supports linear interpolation between the regions with different weight Generated from function MR::WeightedShell::meshShell.

Calls MR_WeightedShell_meshShell_regions().

◆ mesh_shell_regions_builder()

this overload allows to control how distance volume is build during the offset Generated from function MR::WeightedShell::meshShell.

Calls MR_WeightedShell_meshShell_regionsBuilder().

◆ mesh_to_distance_volume()

auto meshlib::weighted_shell::mesh_to_distance_volume ( mesh:&meshlib::Mesh ,
params:&meshlib::weighted_shell::DistanceVolumeCreationParams  ) -> meshlib::Owned< meshlib::FunctionVolume >

makes FunctionVolume representing minimal distance to mesh with weighted vertices Generated from function MR::WeightedShell::meshToDistanceVolume.

Calls MR_WeightedShell_meshToDistanceVolume().

◆ points_shell()

auto meshlib::weighted_shell::points_shell ( cloud:&meshlib::PointCloud ,
pointWeights:&meshlib::VertScalars ,
params:&meshlib::weighted_shell::ParametersMetric  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

consider a point cloud where each point has additive weight (taken from pointWeights and not from params), and the distance to a point is considered equal to (euclidean distance - weight), constructs iso-surface of such distance field corresponding to params.offset value using marching cubes Generated from function MR::WeightedShell::pointsShell.

Calls MR_WeightedShell_pointsShell().

◆ points_to_distance_volume()

auto meshlib::weighted_shell::points_to_distance_volume ( cloud:&meshlib::PointCloud ,
params:&meshlib::weighted_shell::DistanceVolumeCreationParams  ) -> meshlib::Owned< meshlib::FunctionVolume >

makes FunctionVolume representing minimal distance to weighted points Generated from function MR::WeightedShell::pointsToDistanceVolume.

Calls MR_WeightedShell_pointsToDistanceVolume().