SPLINE2_A is an extension of SPLINE2 and creates a Bezier spline based on n control points. Tangent's angle direction in and tangent's length before and after the spline control points must be stated.

Syntax
SPLINE2 n, status, x1, y1, angle1, length_previous1, length_next1, ..., xn, yn, anglen, length_previousn
Parameters
n (integer, ³ 2): number of nodes
status (integer): defines the spline type
0: default
1: closed spline, with connected first and last control point
2: spline is smoothed automatically (angle, length_previousi and length_nexti parameter values of the nodes between the first and the last node are not used)
x(n) (decimal): X coordinate of control point n
y(n) (decimal): Y coordinate of control point n
angle (n) (decimal): angle of tangent in control point (in degrees)
length_previous (n) (decimal): length of tangent before control point
length_next (n) (decimal): length of tangent before control point
Remarks
The angular offset is based on the (local) X axis; positive direction is counterclockwise.
Autosmoothing algorithm is used, angle, length_previousi and length_nexti parameter values of the nodes between the first and the last node are omitted.
Usable since script version 1.1 (Allplan 2012-1).
|
(C) ALLPLAN GmbH |
Privacy policy |