User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.smooth_2_integer_wordbool

Table of Contents

ITGIS_Shape.Smooth_2 method

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.

Available also on: Delphi | .NET | Java | Python.

Syntax

// 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;

Parameters

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.

Result

Type Description
ITGIS_Shape The smoothed shape, either as a new object or as the modified source shape, depending on _returnnewobj.

Remarks

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.

2026/07/05 01:25

Page Tools