-
Notifications
You must be signed in to change notification settings - Fork 1
/
volumetric.xsd
231 lines (210 loc) · 9.99 KB
/
volumetric.xsd
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://schemas.3mf.io/3dmanufacturing/volumetric/2022/01" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xml="http://www.w3.org/XML/1998/namespace" targetNamespace="http://schemas.3mf.io/3dmanufacturing/volumetric/2022/01"
elementFormDefault="unqualified" attributeFormDefault="unqualified" blockDefault="#all">
<xs:annotation>
<xs:documentation>
<![CDATA[
Schema notes:
Items within this schema follow a simple naming convention of appending a prefix indicating the type of element for references:
Unprefixed: Element names
CT_: Complex types
ST_: Simple types
]]>
</xs:documentation>
</xs:annotation>
<!-- Complex Types -->
<xs:complexType name="CT_Resources">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647" />
<xs:element ref="volumedata" minOccurs="0" maxOccurs="2147483647" />
<xs:element ref="image3d" minOccurs="0" maxOccurs="2147483647" />
<xs:element ref="functionfromimage3d" minOccurs="0" maxOccurs="2147483647" />
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:complexType>
<xs:complexType name="CT_Object">
<xs:sequence>
<xs:choice>
<xs:element ref="levelset" />
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CT_Image3D">
<xs:sequence>
<xs:choice>
<xs:element ref="imagestack" />
<xs:any namespace="##other" processContents="lax" />
</xs:choice>
</xs:sequence>
<xs:attribute name="id" type="ST_ResourceID" use="required" />
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
<xs:complexType name="CT_ImageStack">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647" />
<xs:element ref="imagesheet" minOccurs="1" maxOccurs="1073741824" />
</xs:sequence>
<xs:attribute name="rowcount" type="xs:positiveInteger" use="required" />
<xs:attribute name="columncount" type="xs:positiveInteger" use="required" />
<xs:attribute name="sheetcount" type="xs:positiveInteger" use="required" />
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:complexType>
<xs:complexType name="CT_ImageSheet">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647" />
</xs:sequence>
<xs:attribute name="path" type="ST_UriReference" use="required" />
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:complexType>
<xs:complexType name="CT_Function">
<xs:attribute name="id" type="ST_ResourceID" use="required" />
<xs:attribute name="displayname" type="xs:string" />
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:complexType>
<xs:complexType name="CT_FunctionFromImage3D">
<xs:complexContent>
<xs:extension base="CT_Function">
<xs:attribute name="image3did" type="ST_ResourceID" use="required" />
<xs:attribute name="filter" type="ST_Filter" default="linear" />
<xs:attribute name="valueoffset" type="ST_Number" default="0.0" />
<xs:attribute name="valuescale" type="ST_Number" default="1.0" />
<xs:attribute name="tilestyleu" type="ST_TileStyle" default="wrap" />
<xs:attribute name="tilestylev" type="ST_TileStyle" default="wrap" />
<xs:attribute name="tilestylew" type="ST_TileStyle" default="wrap" />
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CT_VolumeData">
<xs:sequence>
<xs:element ref="composite" minOccurs="0" maxOccurs="1"/>
<xs:element ref="color" minOccurs="0" maxOccurs="1"/>
<xs:element ref="property" minOccurs="0" maxOccurs="2147483647"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647"/>
</xs:sequence>
<xs:attribute name="id" type="ST_ResourceID" use="required" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="CT_Mesh">
<xs:attribute name="volumeid" type="ST_ResourceID" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="CT_LevelSet">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647"/>
</xs:sequence>
<xs:attribute name="functionid" type="ST_ResourceID" use="required" />
<xs:attribute name="channel" type="xs:QName" use="required" />
<xs:attribute name="transform" type="ST_Matrix3D" />
<xs:attribute name="minfeaturesize" type="ST_PositiveNumber" default="0" />
<xs:attribute name="meshbboxonly" type="xs:boolean" default="false" />
<xs:attribute name="fallbackvalue" type="ST_Number" default="0" />
<xs:attribute name="meshid" type="ST_ResourceID" use="required"/>
<xs:attribute name="volumeid" type="ST_ResourceID" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="CT_Color">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647" />
</xs:sequence>
<xs:attribute name="functionid" type="ST_ResourceID" use="required" />
<xs:attribute name="channel" type="xs:QName" use="required" />
<xs:attribute name="transform" type="ST_Matrix3D" />
<xs:attribute name="minfeaturesize" type="ST_PositiveNumber" default="0" />
<xs:attribute name="fallbackvalue" type="ST_Number" default="0" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="CT_Composite">
<xs:sequence>
<xs:element ref="materialmapping" minOccurs="1" maxOccurs="2147483647"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647"/>
</xs:sequence>
<xs:attribute name="basematerialid" type="ST_ResourceID" use="required"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="CT_MaterialMapping">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647" />
</xs:sequence>
<xs:attribute name="functionid" type="ST_ResourceID" use="required" />
<xs:attribute name="channel" type="xs:QName" use="required" />
<xs:attribute name="transform" type="ST_Matrix3D" />
<xs:attribute name="minfeaturesize" type="ST_PositiveNumber" default="0" />
<xs:attribute name="fallbackvalue" type="ST_Number" default="0" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="CT_Property">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="2147483647" />
</xs:sequence>
<xs:attribute name="functionid" type="ST_ResourceID" use="required" />
<xs:attribute name="channel" type="xs:QName" use="required" />
<xs:attribute name="transform" type="ST_Matrix3D" />
<xs:attribute name="name" type="xs:QName" use="required" />
<xs:attribute name="required" type="xs:boolean" use="required" />
<xs:attribute name="minfeaturesize" type="ST_PositiveNumber" default="0" />
<xs:attribute name="fallbackvalue" type="ST_Number" default="0" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<!-- Simple Types -->
<xs:simpleType name="ST_TileStyle">
<xs:restriction base="xs:string">
<xs:enumeration value="wrap"/>
<xs:enumeration value="mirror"/>
<xs:enumeration value="clamp"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_Filter">
<xs:restriction base="xs:string">
<xs:enumeration value="linear"/>
<xs:enumeration value="nearest"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_CompositionSpace">
<xs:restriction base="xs:string">
<xs:enumeration value="raw"/>
<xs:enumeration value="linearcolor"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_ResourceID">
<xs:restriction base="xs:positiveInteger">
<xs:maxExclusive value="2147483648"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_UriReference">
<xs:restriction base="xs:anyURI">
<xs:pattern value="/.*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_Number">
<xs:restriction base="xs:double">
<xs:whiteSpace value="collapse"/>
<xs:pattern value="((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?)"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_PositiveNumber">
<xs:restriction base="xs:double">
<xs:whiteSpace value="collapse"/>
<xs:pattern value="((\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?)"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ST_Matrix3D">
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xs:pattern value="((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?) ((\-|\+)?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+))((e|E)(\-|\+)?[0-9]+)?)"/>
</xs:restriction>
</xs:simpleType>
<!-- Elements -->
<xs:element name="image3d" type="CT_Image3D"/>
<xs:element name="imagestack" type="CT_ImageStack"/>
<xs:element name="imagesheet" type="CT_ImageSheet"/>
<xs:element name="functionfromimage3d" type="CT_FunctionFromImage3D"/>
<xs:element name="volumedata" type="CT_VolumeData"/>
<xs:element name="composite" type="CT_Composite"/>
<xs:element name="materialmapping" type="CT_MaterialMapping"/>
<xs:element name="color" type="CT_Color"/>
<xs:element name="property" type="CT_Property"/>
<xs:element name="mesh" type="CT_Mesh"/>
<xs:element name="levelset" type="CT_LevelSet"/>
</xs:schema>