MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.weightedshell.Functions Class Reference

Static Public Member Functions

static meshlib.FunctionVolume pointsToDistanceVolume (meshlib.PointCloud cloud, meshlib.weightedshell.DistanceVolumeCreationParams params)
static meshlib.FunctionVolume meshToDistanceVolume (meshlib.Mesh mesh, meshlib.weightedshell.DistanceVolumeCreationParams params)
static meshlib.Mesh pointsShell (meshlib.PointCloud cloud, meshlib.VertScalars pointWeights, meshlib.weightedshell.ParametersMetric params)
static meshlib.Mesh meshShell (meshlib.Mesh mesh, meshlib.VertScalars vertWeights, meshlib.weightedshell.ParametersMetric params)
static meshlib.VertScalars calculateShellWeightsFromRegions (meshlib.Mesh mesh, meshlib.std_vector_MR_WeightedShell_ParametersRegions_Region regions, float interpolationDist)
static meshlib.Mesh meshShell (meshlib.Mesh mesh, meshlib.weightedshell.ParametersRegions params)
static meshlib.Mesh meshShell (meshlib.Mesh mesh, meshlib.weightedshell.ParametersRegions params, meshlib.std_function_MR_FunctionVolume_from_const_MR_Mesh_ref_const_MR_WeightedShell_DistanceVolumeCreationP__55a104e9 volumeBuilder)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ calculateShellWeightsFromRegions()

meshlib.VertScalars meshlib.weightedshell.Functions.calculateShellWeightsFromRegions ( meshlib.Mesh mesh,
meshlib.std_vector_MR_WeightedShell_ParametersRegions_Region regions,
float interpolationDist )
static

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

Calls MR_WeightedShell_calculateShellWeightsFromRegions().

◆ meshShell() [1/3]

meshlib.Mesh meshlib.weightedshell.Functions.meshShell ( meshlib.Mesh mesh,
meshlib.VertScalars vertWeights,
meshlib.weightedshell.ParametersMetric params )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ meshShell() [2/3]

meshlib.Mesh meshlib.weightedshell.Functions.meshShell ( meshlib.Mesh mesh,
meshlib.weightedshell.ParametersRegions params )
static

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

Calls MR_WeightedShell_meshShell_regions(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ meshShell() [3/3]

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

Calls MR_WeightedShell_meshShell_regionsBuilder(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ meshToDistanceVolume()

meshlib.FunctionVolume meshlib.weightedshell.Functions.meshToDistanceVolume ( meshlib.Mesh mesh,
meshlib.weightedshell.DistanceVolumeCreationParams params )
static

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

Calls MR_WeightedShell_meshToDistanceVolume().

◆ pointsShell()

meshlib.Mesh meshlib.weightedshell.Functions.pointsShell ( meshlib.PointCloud cloud,
meshlib.VertScalars pointWeights,
meshlib.weightedshell.ParametersMetric params )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ pointsToDistanceVolume()

meshlib.FunctionVolume meshlib.weightedshell.Functions.pointsToDistanceVolume ( meshlib.PointCloud cloud,
meshlib.weightedshell.DistanceVolumeCreationParams params )
static

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

Calls MR_WeightedShell_pointsToDistanceVolume().


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