Difference between revisions of "marching cubes(API)"

From EosPedia
Jump to: navigation, search
(Created page with "DataExpress/openGL/src/'''marching_cubes''' is API. == constant == typedef enum vertex_type{ normal = 0, vertex, begin, begin_strip, end }vertex_type; == struct...")
 
(No difference)

Latest revision as of 05:33, 29 July 2014

DataExpress/openGL/src/marching_cubes is API.

constant

typedef enum vertex_type{
	normal = 0,
	vertex,
	begin,
	begin_strip,
	end
}vertex_type;

struct

typedef struct vertex_coord{
	float x;
	float y;
	float z;
}vertex_coord;
typedef struct marching_one_vertex{
	vertex_type type;
	vertex_coord coord;

	marching_one_vertex* next;
	marching_one_vertex* previous;
}marching_one_vertex;
typedef struct marching_cubes{
	marching_one_vertex* top;
	marching_one_vertex* current;
	marching_one_vertex* bottom;
}marching_cubes;

API