GINO Graphics Suite - GINO v9.0  

gReduceBezier

Syntax

[C/C++:]
void gReduceBezier2D(int *npts, GPOINT *points2);
void gReduceBezier3D(int *npts, GPOINT3 *points3);
[F90:]
subroutine gReduceBezier2D(npts, points2)
subroutine gReduceBezier3D(npts, points3)

integer, intent(inout) :: npts
type (GPOINT), intent(inout) :: points2(*)
type (GPOINT3), intent(inout) :: points3(*)

Arguments

npts
Number of points in Bezier curve, decremented by one on return.

points2,points3
Array holding absolute coordinates of Bezier curve control points.

Description

The gReduceBezier set of routines takes a set of Bezier curve control points in 2D or 3D and generates a new set, with one less control point, that represents an approximation of the same curve.

Note that the value passed in npts will be decremented by one on return and the arrays points2 or points3 will contain one less significant control point in them.

See Also

gReduceBezier2D Usage
gReduceBezier3D Usage
gElevateBezier2D
gElevateBezier3D