DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Smooth_2 | Methods | Properties
Smooths the shape using Catmull-Rom spline interpolation, either in place or by creating a new result shape.
// C# public ITGIS_Shape Smooth_2( int _factor, WordBool _returnnewobj );
' VisualBasic Public Function Smooth_2( ByVal _factor As Integer, ByVal _returnnewobj As WordBool ) As ITGIS_Shape
// Oxygene public function Smooth_2( _factor : Integer; _returnnewobj : WordBool ) : ITGIS_Shape;
| Name | Type | Description |
|---|---|---|
| _factor | int Integer | Smoothing factor controlling how many interpolated vertices are added to the result. |
| _returnnewobj | WordBool | If True, returns a new smoothed shape and leaves this shape unchanged; if False, modifies this shape and returns it. |
| Type | Description |
|---|---|
| ITGIS_Shape | The smoothed shape, either as a new object or as the modified source shape, depending on _returnnewobj. |
PURPOSE: Produces smoother geometry while allowing the caller to choose between copy semantics and in-place modification.
BEHAVIOR: Applies the same Catmull-Rom spline smoothing as the overload without the ownership flag. When _returnnewobj is False, this shape is updated and returned.
CONSTRAINTS: Higher _factor values increase vertex count and memory usage. Ownership of the result depends on _returnnewobj.