MeshLib C++ Docs
Loading...
Searching...
No Matches
MROffsetVerts.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
5#include <cfloat>
6#include <optional>
7
8namespace MR
9{
10
13MRMESH_API bool offsetVerts( Mesh& mesh, const VertMetric& offset, const ProgressCallback& cb = {} );
14
15struct ThickenParams
16{
18 float outsideOffset = 0;
19
21 float insideOffset = 0;
22
26 float normalsTrustFactor = 1;
27};
28
32MRMESH_API Mesh makeThickMesh( const Mesh & m, const ThickenParams & params );
33
35{
38 float maxShift = 0;
39
41 bool reduceSelfIntersections = false;
42
44 float minThickness = 0;
45
47 ProgressCallback progress;
48};
49
53MRMESH_API bool zCompensate( Mesh& mesh, const ZCompensateParams& params );
54
56[[nodiscard]] MRMESH_API std::optional<VertScalars> findZcompensationShifts( const Mesh& mesh, const ZCompensateParams& params );
57
59[[nodiscard]] MRMESH_API std::optional<VertCoords> findZcompensatedPositions( const Mesh& mesh, const ZCompensateParams& params );
60
61} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMesh/MRMesh.h:23
Definition MROffsetVerts.h:16
new unsafe ref float insideOffset
new unsafe ref float outsideOffset
new unsafe ref float normalsTrustFactor
Definition MROffsetVerts.h:35
new unsafe MR.Std.Function_BoolFuncFromFloat progress
new unsafe ref float minThickness
new unsafe ref bool reduceSelfIntersections
new unsafe ref float maxShift
Definition MRCameraOrientationPlugin.h:8
MRMESH_API bool zCompensate(Mesh &mesh, const ZCompensateParams &params)
MRMESH_API std::optional< VertCoords > findZcompensatedPositions(const Mesh &mesh, const ZCompensateParams &params)
finds vertices positions of the mesh after z-compensation without modifying the mesh
MRMESH_API Mesh makeThickMesh(const Mesh &m, const ThickenParams &params)
MRMESH_API bool offsetVerts(Mesh &mesh, const VertMetric &offset, const ProgressCallback &cb={})
MRMESH_API std::optional< VertScalars > findZcompensationShifts(const Mesh &mesh, const ZCompensateParams &params)
finds the shift along z-axis for each vertex without modifying the mesh