SchemeExt:Body:edge-regions
From DocR21
Contents |
Action
Repairs coplanar edge vertices within point coincident tolerance to form regions. Regions are separated into sheet bodies.
Filename
scm/scmext/covr/wire_heal_scm.cpp
APIs
Syntax
(body:edge-regions edge-list [coin-tol] [min-length] [ao])
Argument Types
| Argument | Scheme Data Type |
|---|---|
| edge-list | edge | edge ... |
| coin-tol | real |
| min-length | real |
| ao | acis-options |
Returns
entity | (entity...)
Description
This extension takes the list of noncontinuous edges defined in the first argument (edge-list), snaps the vertices to the edges, and unites the edges to create sheet bodies.
Arguments
- edge-list calls the defined edge or edge list for repair.
- coin-tol defines the minimum tolerance allowed for coincidence. All vertices within the coincident tolerance are joined.
- min-length defines the minimum length allowed.
- ao contains journaling and versioning information.
Example
; body:edge-regions ; Define geometry to demonstrate command. ; Use planar edges to create faces bounded by them. (define edge1 (edge:linear (position 0 0 0)(position 10 0 0))) ;; edge1 (define edge2 (edge:linear (position 10 0 0)(position 10 5 0))) ;; edge2 (define edge3 (edge:linear (position 0 5 0)(position 0 0 0))) ;; edge3 (define edge4 (edge:linear (position 0 5 0)(position 10 5 0))) ;; edge4 (define edge5 (edge:linear (position 5 0 0)(position 5 5 0))) ;; edge5 (define eds (part:entities)) ;; eds ; create two bodies from the edges (body:edge-regions eds) ; stage 1: verify input edge set (5 edges). ; stage 2: cleanup overlapping edges ; (5 edges) 4 ; stage 3: unite edges into wire body. ; (5 edges) 5 ; no short edge. ; stage 4: create regions from edges. ; Review edge regions. ;; (#[entity 7 1] #[entity 8 1])
