VARKON Version 1.15 1997-12-29


cur_comp - Geometric procedure

Creates a curve


Description

Creates a curve by copying one or many lines, arcs or curves into a new "composite" curve. cur_comp requires that the entities used to create the new curve are connected in the order they are specified. The first entity must be connected in either end to an end the second entity and the other end of the second entity must be connected to either end of the third entity and so on. Entities may be connected start-to-end or end-to-end or end-to-start or start-to-start (any of the 4 possible ways). Varkon automatically reverses all entities with the wrong sense of direction so that the parametrisation of the resulting new curve becomes continous. Continuity in slope (tangent direction) is not required.

Syntax

cur_comp(id, ref1, ref2,...refn:attributes);

REF id;
REF ref1;
REF ref2;
REF refn;


Principal parameters

id - Local identity
ref1 - Identity of line, arc or curve


Optional parameters

ref2 - Identity of second line, arc or curve
refn - Identity of last line, arc or curve


Attributes

PEN - Pen or colour number
LEVEL - Level number
BLANK - Visible(0) or invisible(1)
CFONT - Solid(0), dashed(1) or centerline(2)
CDASHL - Dashlength
WIDTH - Linewidth


Example

cur_comp(#5,#4,#3,#2);

Combines #4, #3 and #2 into a new curve #5.

cur_comp(#2,#1);

Creates a new curve #2 equal to #1.

Comments

If lines or arcs are used in a cur_comp they will be converted to curve segments. One segment for a line and maximum four segments for an arc.


Copyright © Microform AB Henningholmsgatan 4  S-703 69 Örebro SWEDEN  E-mail:  info@microform.se

VARKON Homepage Index