User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.smooth_integer_boolean

Table of Contents

TGIS_Shape.Smooth(int, bool) method

DK11 for .NET | TatukGIS.NDK.TGIS_Shape.Smooth | Overloads | Constructors | Fields | Methods | Properties

Smooth shape routine

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public TGIS_Shape Smooth(
  int _factor,
  bool _returnnewobj
);
' VisualBasic
Public Function Smooth(
  ByVal _factor As Integer,
  ByVal _returnnewobj As Boolean
) As TGIS_Shape
// Oxygene
public
  function Smooth(
    _factor : Integer;
    _returnnewobj : Boolean
  ) : TGIS_Shape;

Parameters

Name Type Description
_factor int
Integer
smooth factor, number of points iterations - number of output points = number of input point * _factor
_returnnewobj bool
Boolean
if True, then result will be returned in a newly created object; if False, then self object will be returned

Result

Type Description
TGIS_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:18

Page Tools