「marching cubes(API)」の版間の差分
提供: Eospedia
(ページの作成:「DataExpress/openGL/src/'''marching_cubes'''はAPI です。 == 定数 == typedef enum vertex_type{ normal = 0, vertex, begin, begin_strip, end }vertex_type; ...」) |
(相違点なし)
|
2014年5月20日 (火) 07:08時点における版
DataExpress/openGL/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;