iMSTK
Interactive Medical Simulation Toolkit
|
This filter smoothes the input SurfaceMesh currently only laplacian smoothing is provided. More...
#include <imstkSurfaceMeshSmoothen.h>
Public Member Functions | |
imstkGetMacro (NumberOfIterations, int) | |
imstkGetMacro (RelaxationFactor, double) | |
imstkGetMacro (Convergence, double) | |
imstkGetMacro (FeatureAngle, double) | |
imstkGetMacro (EdgeAngle, double) | |
imstkGetMacro (FeatureEdgeSmoothing, bool) | |
imstkGetMacro (BoundarySmoothing, bool) | |
void | setInputMesh (std::shared_ptr< SurfaceMesh > inputMesh) |
Required input, port 0. | |
imstkSetMacro (NumberOfIterations, int) | |
imstkSetMacro (RelaxationFactor, double) | |
imstkSetMacro (Convergence, double) | |
imstkSetMacro (FeatureAngle, double) | |
imstkSetMacro (EdgeAngle, double) | |
imstkSetMacro (FeatureEdgeSmoothing, bool) | |
imstkSetMacro (BoundarySmoothing, bool) | |
![]() | |
std::shared_ptr< Geometry > | getInput (size_t port=0) const |
Returns input geometry given port, returns nullptr if doesn't exist. | |
std::shared_ptr< Geometry > | getOutput (size_t port=0) const |
Returns output geometry given port, returns nullptr if doesn't exist. | |
void | setInput (std::shared_ptr< Geometry > inputGeometry, size_t port=0) |
Set the input at the port. | |
void | update () |
Do the actual algorithm. | |
Protected Member Functions | |
void | requestUpdate () override |
Users can implement this for the logic to be run. | |
![]() | |
void | setOutput (std::shared_ptr< Geometry > inputGeometry, const size_t port=0) |
Set the output at the port. | |
template<typename T > | |
void | setRequiredInputType (const size_t port) |
Declares the type for the port with the given number, also defines that the give port is required for the filter to run correctly. | |
template<typename T > | |
void | setOptionalInputType (const size_t port) |
Declares the type for the port with the given number, the data for this port is optional and may be omitted. | |
virtual bool | areInputsValid () |
Check inputs are correct. More... | |
void | setNumInputPorts (const size_t numPorts) |
Get/Set the amount of input ports. | |
imstkGetMacro (NumInputPorts, size_t) | |
void | setNumOutputPorts (const size_t numPorts) |
Get/Set the amount of output ports. | |
imstkGetMacro (NumOutputPorts, size_t) | |
Additional Inherited Members | |
![]() | |
using | GeometryCheck = std::function< bool(Geometry *)> |
using | TypeCheckContainer = std::unordered_map< size_t, GeometryCheck > |
![]() | |
TypeCheckContainer | m_requiredTypeChecks |
TypeCheckContainer | m_optionalTypeChecks |
This filter smoothes the input SurfaceMesh currently only laplacian smoothing is provided.
Definition at line 21 of file imstkSurfaceMeshSmoothen.h.