/
rubik.x3d
99 lines (99 loc) · 4.46 KB
/
rubik.x3d
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile="Immersive" version="3.3" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="https://www.web3d.org/specifications/x3d-3.3.xsd">
<head>
<meta name='title' content='rubik.x3d'/>
<meta name='creator' content='John Carlson'/>
<meta name='generator' content='manual'/>
<meta name='identifier' content='https://coderextreme.net/X3DJSONLD/src/main/data/rubik.x3d'/>
<meta name='description' content='a kind of rubik cube with spheres'/>
</head>
<Scene>
<NavigationInfo type='"EXAMINE"'/>
<Viewpoint description="Rubiks Cube" position="0 0 12"/>
<ProtoDeclare name="sphereproto">
<ProtoInterface>
<field name="xtranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
</ProtoInterface>
<ProtoBody>
<Transform translation="0 0 0">
<IS>
<connect nodeField="translation" protoField="xtranslation"/>
</IS>
<Shape>
<Sphere/>
<Appearance>
<Material diffuseColor="1 1 1"/>
</Appearance>
</Shape>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoDeclare name="three">
<ProtoInterface>
<field name="ytranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
</ProtoInterface>
<ProtoBody>
<Transform translation="0 0 0">
<IS>
<connect nodeField="translation" protoField="ytranslation"/>
</IS>
<ProtoInstance name="sphereproto">
<fieldValue name="xtranslation" value="0 0 0"/>
</ProtoInstance>
<ProtoInstance name="sphereproto">
<fieldValue name="xtranslation" value="2 0 0"/>
</ProtoInstance>
<ProtoInstance name="sphereproto">
<fieldValue name="xtranslation" value="-2 0 0"/>
</ProtoInstance>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoDeclare name="nine">
<ProtoInterface>
<field name="ztranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
</ProtoInterface>
<ProtoBody>
<Transform translation="0 0 0">
<IS>
<connect nodeField="translation" protoField="ztranslation"/>
</IS>
<ProtoInstance name="three">
<fieldValue name="ytranslation" value="0 0 0"/>
</ProtoInstance>
<ProtoInstance name="three">
<fieldValue name="ytranslation" value="0 2 0"/>
</ProtoInstance>
<ProtoInstance name="three">
<fieldValue name="ytranslation" value="0 -2 0"/>
</ProtoInstance>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoDeclare name="twentyseven">
<ProtoInterface>
<field name="ttranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
</ProtoInterface>
<ProtoBody>
<Transform translation="0 0 0">
<IS>
<connect nodeField="translation" protoField="ttranslation"/>
</IS>
<ProtoInstance name="nine">
<fieldValue name="ztranslation" value="0 0 0"/>
</ProtoInstance>
<ProtoInstance name="nine">
<fieldValue name="ztranslation" value="0 0 2"/>
</ProtoInstance>
<ProtoInstance name="nine">
<fieldValue name="ztranslation" value="0 0 -2"/>
</ProtoInstance>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name="twentyseven">
<fieldValue name="ttranslation" value="0 0 0"/>
</ProtoInstance>
</Scene>
</X3D>