-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlowerTrefoil_doublecolor.nom
106 lines (83 loc) · 2.94 KB
/
FlowerTrefoil_doublecolor.nom
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
###############################
##### 07.2024 Charles Cai #####
##### Flower valknut ######
###############################
include colours.nom endinclude
### bank b
### set z0 10 -1 12 0.5
### set z1 -2 -10 -2 0.5
### set z2 3 2 10 0.5
### set z3 -5 -10 2 0.5
### set z4 2 -2 10 0.5
### set z5 -4 -10 -2 0.5
### list (z0 z1 z2 z3 z4 z5)
### endbank
backgroundcolor (0 0 0) endbackgroundcolor
### Build a valknut triangle
point p1 (4 8 -1) endpoint
point op1 (3.8 7.5 -5) endpoint
point dp1 (3.5 7 -1) endpoint
point p3 (2 3.4641 -1) endpoint
point dp3 (1 3.4641 -1)endpoint
point op3 (2 3.4641 -5) endpoint
point p5 (6 3.3 -1) endpoint
point dp5 (5.7 4 -0.8)endpoint
point op5 (6.5 3.3 -5) endpoint
point p0_2 (0 0 2) endpoint
point p1_2 (6 12 -2) endpoint
point p2_2 (10 3.4641 2) endpoint
point p3_2 (-2 3.4641 -2) endpoint
point p4_2 (1.5 10.3923 2) endpoint
point p_ctrl (3 3 0) endpoint
point p5_2 (8 0 -2) endpoint
circle c0 (0.3 5) endcircle
### You can use comment to switch between different path types: the first one is the curvy bspline, the second one is the sticky polyline
### bspline l0 order (4) (p0_2 p1_2 p2_2 p3_2 p4_2 p_ctrl p5_2 p0_2 p1_2 p2_2 p3_2 p4_2 p_ctrl p5_2) segs (100) endbspline
### polyline l0 (p0_2 p1_2 p2_2 p3_2 p4_2 p_ctrl p5_2 p0_2) endpolyline
polyline l0 (op1 p1 p1_2 p2_2 p3 op5) endpolyline
polyline l1 (op3 dp3 p3_2 p4_2 dp5 op1) endpolyline
polyline l2 (op5 p5 p5_2 p0_2 dp1 op3) endpolyline
polyline l0 (p1 p1_2 p2_2 p3) endpolyline
polyline l1 (dp3 p3_2 p4_2 dp5) endpolyline
polyline l2 (p5 p5_2 p0_2 dp1) endpolyline
polyline l3 (dp5 op1 p1) endpolyline
polyline l4 (dp1 op3 dp3) endpolyline
polyline l5 (p3 op5 p5) endpolyline
polyline loop (op1 p1 p1_2 p2_2 p3 op5 p5 p5_2 p0_2 dp1 op3 dp3 p3_2 p4_2 dp5 op1) endpolyline
sweep sw0
crosssection c0 begincap endcap endcrosssection
path l0 mintorsion twist (0) endpath
endsweep
sweep sw1
crosssection c0 begincap endcap endcrosssection
path l1 mintorsion twist (0) endpath
endsweep
sweep sw2
crosssection c0 begincap endcap endcrosssection
path l2 mintorsion twist (0) endpath
endsweep
sweep sw3
crosssection c0 begincap endcap endcrosssection
path l3 mintorsion twist (0) endpath
endsweep
sweep sw4
crosssection c0 begincap endcap endcrosssection
path l4 mintorsion twist (0) endpath
endsweep
sweep sw5
crosssection c0 begincap endcap endcrosssection
path l5 mintorsion twist (0) endpath
endsweep
sweep swloop
crosssection c0 begincap endcap endcrosssection
path loop mintorsion twist (0) endpath
endsweep
### petal
instance i0 sw0 surface LR endinstance
instance i1 sw1 surface LR endinstance
instance i2 sw2 surface LR endinstance
### Pistil
instance i3 sw3 surface O endinstance
instance i4 sw4 surface O endinstance
instance i5 sw5 surface O endinstance
### instance iloop swloop surface LR endinstance