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

block_wedge_modeller(block_wedge)block_wedgeblock_wedge_modeller(block_wedge)

NAME

block_wedge_modeller - a geometric representation of a block_wedge

DESCRIPTION

The block_wedge_modeller class implements a geometric representation of a three-dimensional wedge. It allows the user to manipulate a wedge without seeing the details of its internal representation. The block_wedge_modeller can be rendered directly on the graphics display. The default block_wedge has length and height of 1.0 and its right- angle edge is centered at the origin.

SUPERCLASS

new_modeller

INSTANCE VARIABLES

vertices The six coordinate triplets for the corners of the sphere wedge. By default they have the values and positions shown below:

vertices=( + p6 1.0, 0.0, 0.5, -- p1 /|\ 1.0, 0.0, -0.5, -- p2 / | \ 0.0, 0.0, 0.5, -- p3 p5 + | \ 0.0, 0.0, -0.5, -- p4 |\ |p4 \ 0.0, 1.0, 0.5, -- p5 | \+----+ p2 0.0, 1.0, -0.5 -- p6 | /\ / ); |/ \ / p3 +----+/ p1

MESSAGES

vertices[=?] Set/get the values of the vertices.

open! Sends the geometry to the rendering primitive

renderer_name? Returns the suffix of the class name used to draw the model on the graphics display

generate_data! Builds the geometric representation of the cube required by the rendering primitive.

return_data! Returns the data built by generate_data! instead of sending it to the rendering primitive. This allows another class in the system to use this geometry.

bounds? Returns the minimum and maximum x, y and z values of the wedge's vertices. This is used by the

inherited "bounding_box?" method.

EXAMPLES

The following LYMB script creates a block_wedge model and sets the vertices so that the wedge will be 10 units long

block_wedge_modeller new: block_wedge_model1 vertices=(10.0, 0.0, 0.5, 10.0, 0.0, -0.5, 0.0, 0.0, 0.5, 0.0, 0.0, -0.5, 0.0, 1.0, 0.5, 0.0, 1.0, -0.5 );

actor new: door_jam modeller=block_wedge_model1 ;

SEE ALSO

cube_modeller, actor, modeller, byu, display_polygons


Please send comments and suggestions to
consult@rpi.edu