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 planar?

From DocR19

Jump to: navigation, search

Call function is_planar_wire with wire as a function parameter or is_planar_wire to accept wire as chain of coedges.

The Scheme extension is wire:planar?.

Contents

Signature

logical is_planar_wire(WIRE* this_wire, 
                       SPAposition& centroid, 
                       SPAunit_vector& normal,
		       logical apply_transf = TRUE,
                       logical use_winding_number = TRUE);
 
 
logical is_planar_wire(COEDGE* this_coedge, 
                       SPAposition& centroid, 
                       SPAunit_vector& normal,
		       logical apply_transf = TRUE,
                       logical use_winding_number = TRUE);

Header Files

#include "wire_qry.hxx"

Example

logical planar = is_planar_wire(this_wire, centroid, normal);

Scheme Commands

;
; wire:planar?
;
; create edge 1
(define edge1 (edge:linear (position -20 -10 0) (position 10 -10 0)))
;
; create edge 2
(define edge2 (edge:circular (position 10 0 0) 10 270 360))
;
; create a wire-body from the edges
(define wirebody (wire-body (list edge1 edge2)))
;
; planar?
(wire:planar? wirebody)
;
; #f

Related content

See also: :Category:FAQs
Personal tools