Download SIMSCRIPT III 3d Graphics Manual

Transcript
define set_material as a method given
1 3dmaterial reference argument
''pointer to material
When lines are being drawn, the set_pen_size and set_pen_pattern methods can be called
to set the line width and pattern.
define set_pen_size as a method given
1 integer argument
''line width in pixels
define set_pen_pattern as a method given
1 integer argument
''line style
These methods must be called before begin_drawing. The current pen size is always in
pixels. The pattern is one of the following constants: _solid, _long_dash, _dotted,
_dash_dotted, _medium_dash, _dash_dot_dotted, _short_dash, _alternate. (See 3dlines
for more).
The shininess of the surface (used for specular lighting) is set by calling the set_shininess
class method.
define set_shininess as a method given
1 integer argument,
''_front, _back, or _front_and_back
1 double argument
''shininess (0.0 to 1.0)
The first argument must be one of the constants _front, _back, or _front_and_back. The
second “shininess” argument must be a value between 0.0 and 1.0 (see 3dlight).
By default, both the front and back sides of a surface are visible. In some cases, back or
front side of an object is never seen. Faster rendering can be achieved for single sided
drawings by defining which side is to be made visible. The set_visibility method can be
called to accomplish this. The method call must be made before begin_drawing.
define set_visibility as a method given
1 integer argument ''_front, _back or _front_and_back
Individual edges for surfaces specified by calls to draw_vertex are normally visible. For
some edges such as those on the interior of a complicated shape, this visibility can lead to
unwanted artifacts when the 3dgraphic is displayed. The set_edge_visibility method can
be used to hide or show future edges added to the shape by draw_vertex.
define set_edge_visibility as a method given
1 integer ''boolean'' argument
''0=>invisible, 1=>visible
''specifies visibility of future edges of a face
By default the draw method is only called once by the system when the 3dgraphic first
appears. If the geometry or surface has changed, the update_drawing method must be
used to indicate that the 3dgraphic is “old” and that the draw method should be invoked
(the draw method should never be called directly).
define update_drawing as a method given
104