Maptitude GISDK Help

FitBezier()

Summary

Fits a Bezier curve to an array of points.

 

Syntax

a = FitBezier(array points, double error)

 

Argument Contents
points An array of coordinates
error The largest acceptable error in user units, i.e., the distance of the curve to each of the points

 

Returns

An array of two arrays: 1) an array of coordinates that describe the curve; and 2) an array of coordinates that describe the control points.

 

Example

a = FitBezier({Coord(357392,51508861), Coord(1793138, 52209585), Coord(1072717, 52827482),

Coord(385920, 52604657)}, 0.5) 

ShowArray(a)

 

Error Codes

Error Type Meaning
Error Either an invalid coordinate was used, or fewer than two points were passed to the function

 

See Also

Function Summary
GenerateBezier() Takes an array of Bezier control points and returns the Bezier curve

 

 

©2025 Caliper Corporation www.caliper.com