|
Action:
|
Enables and disables display of tolerant coedges within an OpenGL view.
|
|
|
Filename:
|
gi/gi_scm/view_scm_gi.cxx
|
|
|
Syntax:
|
(view:coedges [view=active] [edges])
|
|
|
Arg Types:
|
view
|
view
|
|
edges
|
boolean
|
|
|
Returns:
|
view
|
|
|
Description:
|
This extension enables (#t) and disables (#f) a model's olerant tolerant coedges within a GL view. When enabled and when shading (view:shaded) is disabled, the result is similar to a wireframe representation only without the silhouette lines.
|
|
|
Limitations:
|
Works only in HOOPS and Visman.
|
|
|
Example:
|
; view:coedges
|
|
; 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:coedges #t view1)
|
|
;; #[view 1075519376]
|
|
; If coedges are not turned on, you won't see
|
|
; anything when shading is turned off.
|
|
; Turn shading off.
|
|
(view:shaded #f view1)
|
|
;; #[view 1075519376]
|
|
; The coedges 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 coedges
|
|
; easier to see
|
|
(view:polygonoffset #t view1)
|
|
;; #[view 1075519376]
|
|
(view:coedges? view1)
|
|
;; #t
|