entity:set-render-sides
List of: Scheme Extensions
Subjects: Rendering Control
Contents: Rendering Base

Action: Sets the sidedness of an entity or list of entities.

Filename: rbase/rnd_scm/avh_scm.cxx

APIs: api_rh_set_sidedness

Syntax: (entity:set-render-sides [entity-list] sides)

Arg Types: entity-list entity | (entity ... )

sides integer

Returns: unspecified


entity-list specifies any entity or a list of entities.


sides specifies the number of sides to render, which include 0 (undefined sidedness), 1 (single-sided), and 2 (double-sided).

Example: ; entity:set-render-sides

; Create a solid cylinder.

(define cyl1


(solid:cylinder (position 0 0 0)


(position 8 8 0) 20))

;; cyl1

; Set the number of sides for rendering.

(entity:set-render-sides cyl1 2)

;; ()

; Get the number of sides for rendering.

(entity:render-sides cyl1)

;; 2
PDF/RBASE/02SCA.PDF
HTM/DATA/RBASE/RBASE/02SCA/0020.HTM