9 #include "imstkGeometryAlgorithm.h" 28 imstkGetMacro(NumberOfIterations,
int);
29 imstkGetMacro(RelaxationFactor,
double);
30 imstkGetMacro(Convergence,
double);
31 imstkGetMacro(FeatureAngle,
double);
32 imstkGetMacro(EdgeAngle,
double);
33 imstkGetMacro(FeatureEdgeSmoothing,
bool);
34 imstkGetMacro(BoundarySmoothing,
bool);
39 void setInputMesh(std::shared_ptr<SurfaceMesh> inputMesh);
41 imstkSetMacro(NumberOfIterations,
int);
42 imstkSetMacro(RelaxationFactor,
double);
43 imstkSetMacro(Convergence,
double);
44 imstkSetMacro(FeatureAngle,
double);
45 imstkSetMacro(EdgeAngle,
double);
46 imstkSetMacro(FeatureEdgeSmoothing,
bool);
47 imstkSetMacro(BoundarySmoothing,
bool);
53 int m_NumberOfIterations = 20;
54 double m_RelaxationFactor = 0.01;
55 double m_Convergence = 0.0;
56 double m_FeatureAngle = 45.0;
57 double m_EdgeAngle = 15.0;
58 bool m_FeatureEdgeSmoothing =
false;
59 bool m_BoundarySmoothing =
true;
void requestUpdate() override
Users can implement this for the logic to be run.
Abstract base class for geometry algorithms. GeometryAlgorithms take N input geometries and produce N...
void setInputMesh(std::shared_ptr< SurfaceMesh > inputMesh)
Required input, port 0.
This filter smoothes the input SurfaceMesh currently only laplacian smoothing is provided.