|
Action:
|
Removes the attributes and extra coedges present on a wire body generated by the section or slice operation.
|
|
|
Filename:
|
bool/bool_scm/bool_scm.cxx
|
|
|
APIs:
|
api_clean_wire
|
|
|
Syntax:
|
(wire:clean wire [acis-opts])
|
|
|
Arg Types:
|
wire
|
wire-body
|
|
acis-opts
|
acis-options
|
|
|
Returns:
|
wire-body
|
|
|
Description:
|
This extension removes the attributes and extra coedges present on a wire body generated by the section or slice operation. The optional
acis-opts contains parameters for versioning and journaling.
|
|
|
wire is an input wire body.
|
|
|
acis-opts contains parameters for versioning and journaling.
|
|
|
Example:
|
; wire:clean
|
|
; Define a solid sphere
|
|
(define b1 (solid:sphere (position 0 0 0) 1))
|
|
;; b1
|
|
; Define a solid block
|
|
(define b2 (solid:block (position 0 0 0) (position 1 1 1)))
|
|
;; b2
|
|
; compute the slice keeping all attributes
|
|
(define sli1 (solid:inter-graph b1 b2))
|
|
;; sli1
|
|
; check that we have the attributes
|
|
(entity:debug sli1 3)
|
|
;; 1 body record, 40 bytes
|
|
;; 21 attrib records, 1460 bytes
|
|
;; 1 wire record, 48 bytes
|
|
;; 1 transform record, 144 bytes
|
|
;; 12 coedge records, 672 bytes
|
|
;; 3 edge records, 240 bytes
|
|
;; 3 vertex records, 108 bytes
|
|
;; 3 curve records, 672 bytes
|
|
;; 3 point records, 216 bytes
|
|
;; Total storage 3600 bytes
|
|
;; "wire body"
|
|
(wire:clean sli1)
|
|
;; #[entity 3 1]
|
|
; check that only display_attribute and id_attribute remain
|
|
(entity:debug sli1 3)
|
|
;; 1 body record, 40 bytes
|
|
;; 2 attrib records, 108 bytes
|
|
;; 1 wire record, 48 bytes
|
|
;; 1 transform record, 144 bytes
|
|
;; 3 coedge records, 168 bytes
|
|
;; 3 edge records, 240 bytes
|
|
;; 3 vertex records, 108 bytes
|
|
;; 3 curve records, 672 bytes
|
|
;; 3 point records, 216 bytes
|
|
;; Total storage 1744 bytes
|
|
;; "wire body"
|