Previous Next Up Title Contents Index Functions Index Top Library

COLOR MAPPING ON A CROSS SECTION OF A 3D MESH

tcolr_map_cut_plane


CALL SEQUENCE

void tcolr_map_cut_plane (struct_id, mesh, data, plane)

INPUT PARAMETERS

PInt	struct_id;
TMesh3D	*mesh;
TScalar3D_data	*data;
TPlane	*plane;

ARGUMENTS

struct_id
Structure identifier.
mesh
3D mesh
data
Value for each node of the mesh
plane
Cross section definition

TYPES

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;

EFFECT

This function creates color mapping visualization on the cross section of a 3D mesh. The color mapping is defined by 1 of the 3 functions tset_isoval_list, tset_homog_isoval_list, tset_regul_isoval_list. Computing and drawing of color mapping is faster with this function than with tisoline_plane function but graphical aspect is quite different due to 2 different approach in the algorithm.

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.


Previous Next Up Title Contents Index Functions Index Top Library