The 3D ACIS® Modeler (ACIS) is Spatial’s prominent 3D solid modeling engine. 3D InterOp is a CAD data translation framework (Interoperability)

HowTo:Evaluate the start or end point of an EDGE?

From DocR19

Jump to: navigation, search

There are two interfaces edge_start_pos and edge_end_pos that do not require obtaining the curve from the EDGE. Both interfaces will take the BODY transformation as input if desired, and both properly handle reverse bits. Alternatively, the two EDGE class member functions can be used : start_pos and end_pos.

Contents

Signatures

edge_start_pos(EDGE *, SPAtransf const & = *(SPAtransf *)NULL_REF);
edge_end_pos(EDGE *, SPAtransf const & = *(SPAtransf *)NULL_REF);
 
SPAposition EDGE::start_pos()const;
SPAposition EDGE::end_pos()const;

Header Files

#include "geometry.hxx"
#include "edge.hxx"

Example

SPAposition spos = edge_start_pos(edge);
SPAposition epos = edge->end_pos();

Scheme Commands

The following Scheme extensions are available :

  • edge:start - returns the starting position from the edge;
  • edge:end - returns the ending position from the edge.

Scheme Example

; edge:start
; create a circle.
(define circle (edge:ellipse (position 0 0 0)(gvector 0 0 1) (gvector 10 0 0) 1 0 360))
;; circle
; define the starting point.
(define start-point (edge:start circle))
;; start-point
; Create/define a line.
(define line (edge:linear start-point (position 0 0 10)))
;; line
;Get the start point of the line.
(edge:start line)
;; #[position 10 0 0]
Personal tools