view:sil
List of: Scheme Extensions
Subjects: Viewing
Contents: Graphic Interaction

Action: Enables and disables display of silhouettes.

Filename: gi/gi_scm/view_scm_gi.cxx

Syntax: (view:sil [view=active] [sil])

Arg Types: view view

sil boolean

Returns: view

Description: The sil argument enables (#t) and disables (#f) a model's silhouettes within a view. The result is similar to a wireframe representation.

Limitations: This extension is available on all platforms, but produces results only on NT using OpenGL. Works in OpenGL views only.

Example: ; view:sil

; Define a view.

(define view1 (view:gl))

;; #[view 1075519376]

; Define a block.

(define block1


(solid:block (position 0 0 0)


(position 25 20 30)))

;; block1

(define cylinder1


(solid:cylinder (position -10 -10 -10)


(position -10 -10 30) 5))

;; cylinder1

; Verify that edges are turned on

(view:edges #t view1)

;; #[view 1075519376]




; If edges are not turned on, you won't see

; anything when shading is turned off.

; Turn shading off.

(view:shaded #f view1)

;; #[view 1075519376]

; The edges of the model should be visible.

; Note that silhouettes are not visible on the

; cylinder.

; Verify that shading is turned on

(view:shaded #t view1)

;; #[view 1075519376]

; Turn on polygon offset to make edges easier to see

(view:polygonoffset #t view1)

;; #[view 1075519376]

(view:sil #t view1)

;; #[view 1075519376]

(view:sil? view1)

;; #t
PDF/GI/03SCV.PDF
HTM/DATA/GI/GI/03SCV/0034.HTM