marching cubes(API)

From EosPedia
Revision as of 05:33, 29 July 2014 by Kinoshita (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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