marching cubes(API)

提供: Eospedia
移動: 案内検索

DataExpress/eosOpenGL/src/marching_cubesはAPI です。

定数

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

構造体

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