|
Action:
|
Writes facets to a file.
|
|
|
Filename:
|
fct/fct_scm/fct_scm.cxx
|
|
|
Syntax:
|
(entity:write-raw-facets entity-list filename)
|
|
|
Arg Types:
|
entity-list
|
entity | (entity ... )
|
|
filename
|
string
|
|
|
Returns:
|
boolean
|
|
|
Description:
|
The argument
entity-list specifies the entity or list of entities to include facet information.
|
|
|
The argument
filename specifies the name of the file to create.
|
|
|
This extension returns #t if the operation is successful. The format of the file is one triangle per line as follows: v1.X v1.Y v1.Z v2.X v2.Y v2.Z v3.X v3.Y v3.Z
|
|
|
Example:
|
; entity:write-raw-facets
|
|
; Create a solid block.
|
|
(define block1(solid:block (position 0 0 0)
|
|
|
(position 15 15 15)))
|
|
;; block1
|
|
; Facet the block.
|
|
(entity:facet block1)
|
|
;; 12
|
|
; Write the list of facets to a file.
|
|
(entity:write-raw-facets block1 "eraseme")
|
|
;; ()
|