MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshToDistanceVolume.h
Go to the documentation of this file.
1#pragma once
2
4#include "MRVoxelsVolume.h"
5#include "MRMesh/MRExpected.h"
7#include <memory>
8
9namespace MR
10{
11
13{
15
17
18 std::shared_ptr<IFastWindingNumber> fwn;
19};
20
23
25MRVOXELS_API FunctionVolume meshToDistanceFunctionVolume( const MeshPart& mp, const MeshToDistanceVolumeParams& params = {} );
26
30 float offset, const DistanceVolumeParams& params );
31
32
34{
36 DistanceToMeshOptions dist; // note that signMode is ignored in this algorithm
37 std::shared_ptr<IPointsToMeshProjector> projector;
38};
39
44
45} //namespace MR
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API Expected< SimpleVolumeMinMax > meshRegionToIndicatorVolume(const Mesh &mesh, const FaceBitSet &region, float offset, const DistanceVolumeParams &params)
MRVOXELS_API FunctionVolume meshToDistanceFunctionVolume(const MeshPart &mp, const MeshToDistanceVolumeParams &params={})
makes FunctionVolume representing (signed or unsigned) distances from Mesh with given settings
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRVOXELS_API Expected< std::array< SimpleVolumeMinMax, 3 > > meshToDirectionVolume(const MeshToDirectionVolumeParams &params)
MRVOXELS_API Expected< SimpleVolumeMinMax > meshToDistanceVolume(const MeshPart &mp, const MeshToDistanceVolumeParams &params={})
makes SimpleVolume filled with (signed or unsigned) distances from Mesh with given settings
Definition MRMeshDistance.h:36
Definition MRDistanceVolumeParams.h:10
Definition MRMeshToDistanceVolume.h:34
DistanceVolumeParams vol
Definition MRMeshToDistanceVolume.h:35
std::shared_ptr< IPointsToMeshProjector > projector
Definition MRMeshToDistanceVolume.h:37
DistanceToMeshOptions dist
Definition MRMeshToDistanceVolume.h:36
Definition MRMeshToDistanceVolume.h:13
DistanceVolumeParams vol
Definition MRMeshToDistanceVolume.h:14
DistanceToMeshOptions dist
Definition MRMeshToDistanceVolume.h:16
std::shared_ptr< IFastWindingNumber > fwn
Definition MRMeshToDistanceVolume.h:18
Definition MRMesh/MRMesh.h:23