home *** CD-ROM | disk | FTP | other *** search
- ' This simple macro shows how to shade or hide all views
- '
- ' Toggle out of 2D Drafting Mode
- if Sys(344) Then
- >2DMode
- {
- }
- end if
- ' Draw 3D Shapes
- >Box
- {
- <Pointxyz 0, 0, 0
- <Pointxyz 10, 10, 10
- }
- >Cylinder
- {
- <Pointxyz 5, -5, 5
- <Pointxyz 8, -5, 5
- <Pointxyz 8, 15, 5
- }
- >FitToWindow
- {
- }
- ' Hidden Line Removal in all views
- ' Sys71 is the current view,
- ' Sys2 is the mode, 0-4
- '0 = wireframe
- '1 = OpenGL Hidden
- '2 = OpenGL Flat Shade
- '3 = OpenGL Smooth Shade
- '4 = OpenGl Hidden (no surface intersections)
- for a = 0 to 3
- Sys(71) = a
- Sys(2) = 1
- next a
- ' Make large perspective view the active view again
- Sys(71) = 1
- >Regenerate
- {
- }
- End
-