User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.smooth_integer

Table of Contents

ITGIS_Shape.Smooth method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Smooth | Methods | Properties

Smooths the shape using Catmull-Rom spline interpolation.

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

Syntax

// C#
public ITGIS_Shape Smooth(
  int _factor
);
' VisualBasic
Public Function Smooth(
  ByVal _factor As Integer
) As ITGIS_Shape
// Oxygene
public
  function Smooth(
    _factor : Integer
  ) : ITGIS_Shape;

Parameters

Name Type Description
_factor int
Integer
Smoothing factor controlling how many interpolated vertices are added to the result.

Result

Type Description
ITGIS_Shape A newly created smoothed shape.

Remarks

PURPOSE: Produces visually smoother line or polygon geometry for rendering and presentation.

BEHAVIOR: Applies Catmull-Rom spline interpolation to add intermediate vertices between existing vertices and generate a smoother curve.

CONSTRAINTS: Higher _factor values increase vertex count and memory usage. The caller owns the returned shape.

2026/07/05 01:25

Page Tools