MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkSetClampMacro

Function vtkSetClampMacro

Filters/Geometry/vtkAttributeSmoothingFilter.h:130–157  ·  view source on GitHub ↗

@{ * Specify the relaxation factor for smoothing. As in all iterative * methods, the stability of the process is sensitive to this parameter. In * general, small relaxation factors and large numbers of iterations are * more stable than larger relaxation factors and smaller numbers of * iterations. The default value is 0.10. */

Source from the content-addressed store, hash-verified

128 * iterations. The default value is 0.10.
129 */
130 vtkSetClampMacro(RelaxationFactor, double, 0.0, 1.0);
131 vtkGetMacro(RelaxationFactor, double);
132 ///@}
133
134 enum SmoothingStrategyType
135 {
136 ALL_POINTS = 0,
137 ALL_BUT_BOUNDARY = 1,
138 ADJACENT_TO_BOUNDARY = 2,
139 SMOOTHING_MASK = 3
140 };
141
142 ///@{
143 /**
144 * Indicate how to constrain smoothing of the attribute data. By default,
145 * all point data attributes are smoothed (ALL_POINTS). If ALL_BUT_BOUNDARY
146 * is selected, then all point attribute data except those on the boundary
147 * of the mesh are smoothed. If ADJACENT_TO_BOUNDARY is selected, then
148 * only point data connected to a boundary point are smoothed, but boundary
149 * and interior points are not. (ALL_BUT_BOUNDARY and ADJACENT_TO_BOUNDARY
150 * are useful for transitioning from fixed boundary conditions to interior
151 * data.) If desired, it is possible to explicitly specify a smoothing mask
152 * controlling which points are smoothed and not smoothed. The default
153 * constraint strategy is ALL_POINTS.
154 */
155 vtkSetClampMacro(SmoothingStrategy, int, ALL_POINTS, SMOOTHING_MASK);
156 vtkGetMacro(SmoothingStrategy, int);
157 void SetSmoothingStrategyToAllPoints() { this->SetSmoothingStrategy(ALL_POINTS); }
158 void SetSmoothingStrategyToAllButBoundary() { this->SetSmoothingStrategy(ALL_BUT_BOUNDARY); }
159 void SetSmoothingStrategyToAdjacentToBoundary()
160 {

Calls

no outgoing calls

Tested by

no test coverage detected