edge:split-at-proportion
List of: Scheme Extensions
Subjects: Model Topology
Contents: Intersectors

Action: Splits an edge with a new vertex at the defined proportion of the way along the edge.

Filename: intr/intr_scm/icrv_scm.cxx

Syntax: (edge:split-at-proportion edge proportion)

Arg Types: edge edge

proportion real

Returns: vertex

Description: This extension is provided to test sg_split_edge_at_vertex.


proportion argument takes a real range between 0 and 1.

Example: ; edge:split-at-proportion

; create solid block.

(define b (solid:block (position 0 0 0)


(position 10 10 10)))

;; b

(define split (edge:split-at-proportion


(car (entity:edges b)) 0.5))

;; split
PDF/INTR/02SC.PDF
HTM/DATA/INTR/INTR/02SC/0021.HTM