blob: 97072694d09c80e7faec82780ffe6185fee48cb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
VERSION 2
DEMOINIT
ORIG 8.000 0.000 0.000
STRAIGHT 1 DEMO 1
E 1.883214 2.133372 270.000000
E 31.050000 2.133333 90.000000
END
CURVE 2 DEMO 1 29.473372 12.727335 7.625000
E 37.081031 13.241282 356.135245
E 33.769610 6.427894 235.706018
END
REDRAW
RESET
MESSAGE
The <Join> command can also join straight and curved tracks (in either order).
We will enable Cornu easements
END
STEP
PARAMETER misc cmdEasement
PARAMETER easement val -1.0
BIGPAUSE
PARAMETER easement ok
COMMAND JoinTrack
MOUSE 1 34.167 6.917
MOUSE 2 34.167 6.917
MOUSE 4 34.167 6.917
MOUSE 1 23.750 2.167
MOUSE 2 23.750 2.167
MESSAGE
_________________________________________
A connecting cornu track is drawn between the two tracks.
END
STEP
MOUSE 3 23.750 2.083
MOUSE 3 19.417 2.000
MOUSE 4 19.417 2.000
MESSAGE
_________________________________________
Notice that the curved track is extended as the connection point moves past the End-Point.
END
STEP
MOUSE 1 34.167 6.917
MOUSE 2 34.167 6.917
MOUSE 3 19.167 2.000
MOUSE 3 10.917 2.333
BIGPAUSE
MOUSE 3 10.917 2.333
MOUSE 3 28.250 2.250
MESSAGE
_________________________________________
Here the connection makes the curved track wrap around. This is not a useful shape, there is a discontinuity at the end.
Adjusting the end point will fix it.
END
STEP
MOUSE 3 28.250 2.250
MOUSE 4 28.250 2.250
MESSAGE
=========================================
END
REGRESSION START 10 - join curve and straight
STRAIGHT 1 0 0 0 0 DEMO 2
E4 1.883214 2.133372 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000
E4 31.050000 2.133333 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000
END
CURVE 2 0 0 0 0 DEMO 2 29.473372 12.727335 0 7.625000 0 0.000000 0.000000
E4 37.081031 13.241282 356.135245 0 0.0 0.0 0.0 0.0 0 0 0 0.000000
E4 33.769610 6.427894 235.706018 0 0.0 0.0 0.0 0.0 0 0 0 0.000000
END
REGRESSION END
STEP
CLEAR
|