void tcolr_map_cut_plane (struct_id, mesh, data, plane)
PInt struct_id; TMesh3D *mesh; TScalar3D_data *data; TPlane *plane;
typedef struct {
Tplane_type type;
Tref_type ref;
Pfloat distance;
Ppoint3 reference_point;
union {
struct {
Pvec3 vector;
} orthogonal;
struct {
Pvec3 v1;
Pvec3 v2;
} vector;
struct {
Ppoint3 p1;
Ppoint3 p2;
} point;
struct {
Pfloat teta;
Pfloat phi;
} angle;
} geometry;
} Tplane;
typedef enum {
TPLANE_ORTHOGONAL_VECTOR,
TPLANE_2_VECTORS,
TPLANE_3_POINTS,
TPLANE_ANGLE_X,
TPLANE_ANGLE_Y,
TPLANE_ANGLE_Z
} Tplane_type;
typedef enum {
TRELATIVE_WC,
TRELATIVE_01
} Tref_type;
The tcolr_map_cut_plane function fills areas using Gouraud shading.
A colormap is to be initialized before drawing the structure struct_id. tset_hls_colr_tab. function may be called for this purpose.
Chapter "Cut Plane and Modelling Clipping" gives a full description of Tplane structure.