|
Action:
|
Draws interactive hidden line data.
|
|
|
Filename:
|
ihl/ihl_scm/ihl_scm.cxx
|
|
|
Syntax:
|
(ihl:draw ihl-data [view=active] [clear])
|
|
|
Arg Types:
|
ihl-data
|
ihl-data
|
|
view
|
view
|
|
clear
|
boolean
|
|
|
Returns:
|
ihl-data
|
|
|
Description:
|
This extension draws
ihl-data returned from the
ihl:compute or
ihl:retrieve extensions.
|
|
|
The optional
view specifies the view to print. Prior to the image being written out to a file, the eye, target, and projection mode of the specified (or, active if none is specified) view are internally changed by the system to agree with those of the view in the context of which
ihl-data was generated.
|
|
|
If the optional
clear is
#t, the screen is cleared before drawing. If
clear is not specified or is
#f, the screen is not cleared before drawing.
|
|
|
Example:
|
; ihl:draw
|
|
; Compute and draw hidden lines for a view.
|
|
(define block1
|
|
|
(solid:block (position -10 -25 -35)
|
|
|
(position 10 25 35)))
|
|
;; block1
|
|
(define cyl1
|
|
|
(solid:cylinder (position 0 0 -20)
|
|
|
(position 0 0 20) 30))
|
|
;; cyl1
|
|
(define combo (bool:unite block1 cyl1))
|
|
;; combo
|
|
(define ihldata1 (ihl:compute 1 combo))
|
|
;; ihldata1
|
|
(ihl:draw ihldata1)
|
|
;; #[ihl-data 40248f40]
|