curve:from-edge
List of: Scheme Extensions
Subjects: Construction Geometry
Contents: Kernel

Action: Creates a curve from an edge entity.

Filename: kern/kern_scm/qgom_scm.cxx

Syntax: (curve:from-edge edge)

Arg Types: edge edge

Returns: curve

Description: This extension creates a scheme-object containing an ACIS geometry curve class from an ENTITY class item (e.g., edge).


Geometry classes must be attached to derived ENTITY class items (e.g., edge) to be displayed and saved. By themselves, curve scheme-objects are useful for evaluating positional, directional, or curvature information without creating a (topology) entity.


edge specifies an edge.

Example: ; curve:from-edge

; Create a linear edge.

(define edge1


(edge:linear (position 0 0 0)


(position 30 30 30)))

;; edge1

; Convert the edge to a curve data structure.

(curve:from-edge edge1)

;; #[curve 1075640854]
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0036.HTM