~flypig/functy/trunk

« back to all changes in this revision

Viewing changes to examples/Ring02.xml

  • Committer: David Llewellyn-Jones
  • Date: 2012-07-19 23:02:58 UTC
  • Revision ID: git-v1:4601f49c8e2bf40cbbe519f29bb9c2f00c9a9774
Added a few new example files for Functy and slightly offset the default 'up' direction from the z-axis for rendering curves (so that curves running along the z-axis can actually be rendered).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8' ?>
 
2
 
 
3
<functy>
 
4
        <settings>
 
5
                <show-axes bool="0"/>
 
6
                <invert bool="0"/>
 
7
                <wireframe bool="0"/>
 
8
        </settings>
 
9
        <range>
 
10
                <min>
 
11
                        <coord x="-18.000000" y="-18.000000" z="-18.000000"/>
 
12
                </min>
 
13
                <width>
 
14
                        <coord x="36.000000" y="36.000000" z="36.000000"/>
 
15
                </width>
 
16
        </range>
 
17
        <function type="curve">
 
18
                <equation>0.5</equation>
 
19
                <red>1</red>
 
20
                <green>1</green>
 
21
                <blue>1</blue>
 
22
                <alpha>1</alpha>
 
23
                <accuracy double="0.005000"/>
 
24
                <accuracy-radius double="0.020000"/>
 
25
                <equation-x>8.5*cos(a*(2*3.1415926535897932))</equation-x>
 
26
                <equation-y>8.5*sin(a*(2*3.1415926535897932))</equation-y>
 
27
                <equation-z>0</equation-z>
 
28
                <centre-x>0.000</centre-x>
 
29
                <centre-y>0</centre-y>
 
30
                <centre-z>2.5</centre-z>
 
31
                <texture-file></texture-file>
 
32
                <texture-x-scale>1.0</texture-x-scale>
 
33
                <texture-y-scale>1.0</texture-y-scale>
 
34
                <texture-x-offset>0.0</texture-x-offset>
 
35
                <texture-y-offset>0.0</texture-y-offset>
 
36
        </function>
 
37
        <function type="curve">
 
38
                <equation>0.5</equation>
 
39
                <red>1</red>
 
40
                <green>1</green>
 
41
                <blue>1</blue>
 
42
                <alpha>1</alpha>
 
43
                <accuracy double="0.005000"/>
 
44
                <accuracy-radius double="0.020000"/>
 
45
                <equation-x>8.5*cos(a*(2*3.1415926535897932))</equation-x>
 
46
                <equation-y>8.5*sin(a*(2*3.1415926535897932))</equation-y>
 
47
                <equation-z>0</equation-z>
 
48
                <centre-x>0.000</centre-x>
 
49
                <centre-y>0.000</centre-y>
 
50
                <centre-z>-2.5</centre-z>
 
51
                <texture-file></texture-file>
 
52
                <texture-x-scale>1.0</texture-x-scale>
 
53
                <texture-y-scale>1.0</texture-y-scale>
 
54
                <texture-x-offset>0.0</texture-x-offset>
 
55
                <texture-y-offset>0.0</texture-y-offset>
 
56
        </function>
 
57
        <function type="curve">
 
58
                <equation>0.5</equation>
 
59
                <red>1</red>
 
60
                <green>1</green>
 
61
                <blue>1</blue>
 
62
                <alpha>1</alpha>
 
63
                <accuracy double="0.002000"/>
 
64
                <accuracy-radius double="0.020000"/>
 
65
                <equation-x>(8.5+((1-cos(8*a*(2*3.1415926535897932)))/2))*cos(a*(2*3.1415926535897932))</equation-x>
 
66
                <equation-y>(8.5+((1-cos(8*a*(2*3.1415926535897932)))/2))*sin(a*(2*3.1415926535897932))</equation-y>
 
67
                <equation-z>2.5*cos(4*a*(2*3.1415926535897932))</equation-z>
 
68
                <centre-x>0.000</centre-x>
 
69
                <centre-y>0.000</centre-y>
 
70
                <centre-z>0.000</centre-z>
 
71
                <texture-file></texture-file>
 
72
                <texture-x-scale>1.0</texture-x-scale>
 
73
                <texture-y-scale>1.0</texture-y-scale>
 
74
                <texture-x-offset>0.0</texture-x-offset>
 
75
                <texture-y-offset>0.0</texture-y-offset>
 
76
        </function>
 
77
        <function type="curve">
 
78
                <equation>0.5</equation>
 
79
                <red>1</red>
 
80
                <green>1</green>
 
81
                <blue>1</blue>
 
82
                <alpha>1</alpha>
 
83
                <accuracy double="0.002000"/>
 
84
                <accuracy-radius double="0.020000"/>
 
85
                <equation-x>(8.5+((1-cos(8*(a/2)*(2*3.1415926535897932)))/2))*cos(a*(2*3.1415926535897932))</equation-x>
 
86
                <equation-y>(8.5+((1-cos(8*(a/2)*(2*3.1415926535897932)))/2))*sin(a*(2*3.1415926535897932))</equation-y>
 
87
                <equation-z>2.5*cos(4*(a/2)*(2*3.1415926535897932))</equation-z>
 
88
                <centre-x>0.000</centre-x>
 
89
                <centre-y>0.000</centre-y>
 
90
                <centre-z>0.000</centre-z>
 
91
                <texture-file></texture-file>
 
92
                <texture-x-scale>1.0</texture-x-scale>
 
93
                <texture-y-scale>1.0</texture-y-scale>
 
94
                <texture-x-offset>0.0</texture-x-offset>
 
95
                <texture-y-offset>0.0</texture-y-offset>
 
96
        </function>
 
97
        <function type="curve">
 
98
                <equation>0.5</equation>
 
99
                <red>1</red>
 
100
                <green>1</green>
 
101
                <blue>1</blue>
 
102
                <alpha>1</alpha>
 
103
                <accuracy double="0.002000"/>
 
104
                <accuracy-radius double="0.020000"/>
 
105
                <equation-x>(8.5+((1+cos(8*a*(2*3.1415926535897932)))/2))*cos(a*(2*3.1415926535897932))</equation-x>
 
106
                <equation-y>(8.5+((1+cos(8*a*(2*3.1415926535897932)))/2))*sin(a*(2*3.1415926535897932))</equation-y>
 
107
                <equation-z>-2.5*cos(4*a*(2*3.1415926535897932))</equation-z>
 
108
                <centre-x>0.000</centre-x>
 
109
                <centre-y>0.000</centre-y>
 
110
                <centre-z>0.000</centre-z>
 
111
                <texture-file></texture-file>
 
112
                <texture-x-scale>1.0</texture-x-scale>
 
113
                <texture-y-scale>1.0</texture-y-scale>
 
114
                <texture-x-offset>0.0</texture-x-offset>
 
115
                <texture-y-offset>0.0</texture-y-offset>
 
116
        </function>
 
117
        <function type="curve">
 
118
                <equation>0.5</equation>
 
119
                <red>1</red>
 
120
                <green>1</green>
 
121
                <blue>1</blue>
 
122
                <alpha>1</alpha>
 
123
                <accuracy double="0.002000"/>
 
124
                <accuracy-radius double="0.020000"/>
 
125
                <equation-x>(8.5+((1+cos(8*(a/2)*(2*3.1415926535897932)))/2))*cos(a*(2*3.1415926535897932))</equation-x>
 
126
                <equation-y>(8.5+((1+cos(8*(a/2)*(2*3.1415926535897932)))/2))*sin(a*(2*3.1415926535897932))</equation-y>
 
127
                <equation-z>-2.5*cos(4*(a/2)*(2*3.1415926535897932))</equation-z>
 
128
                <centre-x>0.000</centre-x>
 
129
                <centre-y>0.000</centre-y>
 
130
                <centre-z>0.000</centre-z>
 
131
                <texture-file></texture-file>
 
132
                <texture-x-scale>1.0</texture-x-scale>
 
133
                <texture-y-scale>1.0</texture-y-scale>
 
134
                <texture-x-offset>0.0</texture-x-offset>
 
135
                <texture-y-offset>0.0</texture-y-offset>
 
136
        </function>
 
137
</functy>
 
138