GINO Graphics Suite - GINO v9.0  

gDrawBezier

Syntax

[C/C++:]
void gDrawBezierBy2D(int npts, GPOINT *points2);
void gDrawBezierBy3D(int npts, GPOINT3 *points3);
void gDrawBezierTo2D(int npts, GPOINT *points2);
void gDrawBezierTo3D(int npts, GPOINT3 *points3);
[F90:]
subroutine gDrawBezierBy2D(npts, points2)
subroutine gDrawBezierBy3D(npts, points3)
subroutine gDrawBezierTo2D(npts, points2)
subroutine gDrawBezierTo3D(npts, points3)

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

Arguments

npts
Number of coordinate points specified

points2, points3
Array specifying series of relative or absolute points in space coordinates through which the curve is drawn

Description

The routines gDrawBezierBy2D(), gDrawBezierBy3D(), gDrawBezierTo2D()and gDrawBezierTo3D() draw a smooth  curve through the specified number of relative or absolute coordinate points. In the case of gDrawBezierBy2D() and gDrawBezierBy3D(), the curve starts at the current drawing position and is drawn through npts series of vector increments. In the case of gDrawBezierTo2D() and gDrawBezierTo3D() the curve starts at the first element in points and is drawn through the intervening npts points.

The number of sub-increments is controlled by the arc routine gSetArcIncrement(), where the total number of straight-line segments used to draw the curve is defined as the number of data points supplied * number of increments. At least 2 points are required to define a Bezier curve.

See Also

gDrawBezierxx2D Usage
gDrawBezierxx3D Usage
gSetArcIncrement