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

mcubes(visage) Visualization mcubes(visage)

NAME

mcubes - marching cubes iso-surface generator

DESCRIPTION

Mcubes generates triangles that intersect a cube at a given iso-density level. Using this class requires at a minimum four steps: 1) Set the coordinates of the vertices of the cube (coords=). 2) Set the data values at the vertices of the cube (values=). 3) Set the value of the iso surface (cvalue=). 4) Generate the triangles (march!).

SUPERCLASS

object

INSTANCE VARIABLES

coords are the x, y, z coordinates of the eight cube vertices. These must be set prior to issuing the march! message.

values are the eight data values at the cube vertices. These must be set prior to issuing the march! message.

scalars are additional scalar values that are to be interpolated at the triangle vertices. These are optional values.

cvalue is the value of the iso surface that the generated triangles represent. These must be set prior to issuing the march! message.

vertices are the vertices generated by the march! message. These are read only and are changed each time a march! is sent.

int_scalars are the scalar values interpolated to the generated triangle vertices. These are only present if scalars are present. These are read only and are changed each time a march! is sent.

MESSAGES

march! generates the triangles that represent the surface as it intersects the cube at the given iso density value.

no_vertices? returns the number of generated triangle vertices.

vertices? returns the x, y, z vertices of the triangles.

int_scalars? returns the values of the interplated scalars at each vertex the triangles.

EXAMPLE


Please send comments and suggestions to
consult@rpi.edu