User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.smooth_2_integer_wordbool

Table of Contents

ITGIS_Shape.Smooth_2 method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Smooth_2 | Methods | Properties

Smooth shape routine

Available also on: Delphi | .NET | Java.

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
smooth factor, number of points iterations - number of output points = number of input point * _factor
_returnnewobj WordBool if True, then result will be returned in a newly created object; if False, then self object will be returned

Result

Type Description
ITGIS_Shape If _returnnewobj=True, then returns newly created shape. Otherwise returns modified or unmodified self object.

Remarks

Vertex spline smoothing routine based on Catmull-Rom algorithm. Only for arc or polygon shapes. Based on 4 control points.

2020/05/07 01:04

Page Tools