The 3D ACIS® Modeler (ACIS) is Spatial’s prominent 3D solid modeling engine. 3D InterOp is a CAD data translation framework (Interoperability)
HowTo:Determine if a WIRE is closed?
From DocR19
Call the function api_closed_wire in cstrapi.hxx.
The corresponding Scheme extension is wire:closed?.
Contents |
Signatures
outcome api_closed_wire(BODY *body, AcisOptions *ao = NULL); outcome api_closed_wire(WIRE *wire, AcisOptions *ao = NULL); outcome api_closed_wire(WIRE *wire, logical &is_closed, AcisOptions *ao = NULL);
Header Files
#include "cstrapi.hxx"
Example
logical open_wire = !api_closed_wire(given_wire).ok();
Scheme Commands
; wire:closed? ; create an edge (define edge1 (edge:circular (position 0 0 0) 25 180 270)) ; ; create a wire-body from the edge (define wirebody1 (wire-body edge1)) ; ; check to see if the wire-body is closed (wire:closed? wirebody1) ;; #f
Related Content
- See also: Category:FAQs
