<<<<<<<<<<<<<<<<<

mcubes_writer(display) Display mcubes_writer(display)

NAME

mcubes_writer - write display data objects (or compatible filters) to Marching Cubes file

DESCRIPTION

Mcubes_writer writes a Marching Cubes file from display data. Marching cubes is an algorithm for generating iso- surfaces from 3D volume (or hexahedral cell data). The output of Marching Cubes is a set of triangles - hence the mcubes_writer only can write triangle data. (General polygons and triangle strips can be converted using triangle_filter.)

The marching cubes file format is as follows. Each triangle is independently defined as three points plus three point normals. The binary file format for each triangle is:

x-y-z coordinate values (first point) (3 4-byte floats) nx-ny-nz normal values (first point) (3 floats) x-y-z coordinate values (second point)(3 floats) nx-ny-nz normal values (second point) (3 floats) x-y-z coordinate values (third point) (3 floats) nx-ny-nz normal values (third point) (3 floats)

(Each triangle totals 18 floats (72 bytes)). The data repeats for each triangle. (Hence shared vertices must be duplicated.)

SUPERCLASS

data_writer

INSTANCE VARIABLES

(inherited from superclasses)

MESSAGES

(see superclasses)

write! method that performs the writing of data to Marching Cubes form.

SEE ALSO

data_writer, sla_writer, byu_writer, data_iso_surface, mcube, triangle_filter


Please send comments and suggestions to
consult@rpi.edu