SchemeExt:Sheet:cover-wire-loops
From DocR21
Contents |
Action
Covers coplanar wires into sheet body having a single planar face.
Filename
scm/scmext/covr/covr_scm.cpp
APIs
Syntax
(sheet:cover-wire-loops (list w1 w2 ...))
Argument Types
| Argument | Scheme Data Type |
|---|---|
| w1 | wire-body |
| w2 | wire-body |
Returns
body
Description
Covers multiple coplanar wire bodies into a sheet body having a single planar face. This is done by converting the first wire in the list into the peripheral loop and the rest of the wires in the list into the hole loops.
Arguments
- w1 is a wire body to be converted into the peripheral loop of the face.
- w2 is zero or more wire bodies to be converted into the hole loops of the face.
Limitations
- Each wire body must have only one wire.
- Each wire must be closed, unbranched, and non-self-intersecting.
Example
; sheet:cover-wire-loops ; Create geometry to demonstrate command: create ; 3 wire bodies. (define wire1 (wire-body (edge:circular (position 0 0 0) 10 0 360))) ;; wire1 (define wire2 (wire-body (edge:circular (position 5 0 0) 3 0 360))) ;; wire2 (define wire3 (wire-body (edge:circular (position -5 0 0) 3 0 360))) ;; wire3 ; Cover the wires so wire1 becomes the peripheral ; loop and wire2 becomes the hole loop. (define sheet (sheet:cover-wire-loops (list wire1 wire2 wire3))) ;; sheet

