Previous Next Up Title Contents Index Functions Index Top Library

7
Points Fields


A field of points, in the XY plane, or in 3D space, can be represented using the PHIGURE functions specific to this type of data. The data itself is defined by a list of points.

The structure used to describe a field of points in a plane XY is defined as follows :

typedef struct {
	Pint	num_points;
	Ppoint	*points;
} Ppoint_list;

with
typedef struct {
	Pfloat	x;
	Pfloat	y;
} Ppoint;


The structure used to describe a field of points in 3D space is defined as follows :

typedef struct {
	Pint	num_points;
	Ppoint3	*points;
} Ppoint_list3;

with
typedef struct {
	Pfloat	x;
	Pfloat	y;
	Pfloat	z;
} Ppoint3;


Previous Next Up Title Contents Index Functions Index Top Library