User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.smooth_integer_boolean

Table of Contents

TGIS_Shape.Smooth(Integer; Boolean) method

Syntax

// Delphi
public
  function Smooth(
    const _factor : Integer;
    const _returnnewobj : Boolean
  ) : TGIS_Shape; overload;
// C++ Builder
public:
  TGIS_Shape* Smooth(
    const int _factor,
    const bool _returnnewobj
  ) /* overload */;

Parameters

Name Type Description
_factor Integer smooth factor, number of points iterations - number of output points = number of input point * _factor
_returnnewobj 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.

2022/11/16 01:22

Page Tools