1pub const BASE_SCHEMA: &str = "13006";
14
15#[derive(Clone, Copy, Debug, PartialEq, Eq)]
17pub enum Kind {
18 Int,
21 Real,
23 Vector,
25 Interval,
27 Box,
29 Char,
31 Unknown,
33}
34
35#[derive(Clone, Copy, Debug, PartialEq, Eq)]
37pub enum Count {
38 Scalar,
39 Variable,
40 Fixed(usize),
41}
42
43#[derive(Clone, Debug, PartialEq, Eq)]
44pub struct FieldDef {
45 pub name: String,
46 pub kind: Kind,
47 pub count: Count,
48 pub code: u8,
52}
53
54pub fn kind_of(code: u8) -> Option<Kind> {
56 Some(match code {
57 b'd' | b'u' | b'n' | b'w' | b'p' | b't' => Kind::Int,
58 b'f' => Kind::Real,
59 b'v' | b'h' => Kind::Vector,
60 b'i' => Kind::Interval,
61 b'b' => Kind::Box,
62 b'c' | b'l' => Kind::Char,
63 b'X' => Kind::Unknown,
64 _ => return None,
65 })
66}
67
68pub const V30_SCHEMA: &str = "30100";
72
73pub const V25_SCHEMA: &str = "25001";
76
77pub const V26_SCHEMA: &str = "26105";
80
81pub const V12_SCHEMA: &str = "12006";
84
85pub const STORED_SCHEMAS: [&str; 4] = [V12_SCHEMA, V25_SCHEMA, V26_SCHEMA, V30_SCHEMA];
88
89pub fn stored_delta(schema: &str, node_type: u16) -> Option<&'static str> {
93 let find = |table: &[(u16, &'static str)]| table.iter().find(|(t, _)| *t == node_type).map(|(_, d)| *d);
94 match schema {
95 V30_SCHEMA => v30_delta(node_type),
96 V25_SCHEMA => find(V25_DELTAS).or_else(|| {
97 v30_delta(node_type).filter(|d| *d == "255 " || V25_AS_V30.contains(&node_type))
101 }),
102 V26_SCHEMA => find(V26_DELTAS).or_else(|| stored_delta(V25_SCHEMA, node_type)),
105 V12_SCHEMA => find(V12_DELTAS),
106 _ => None,
107 }
108}
109
110#[rustfmt::skip]
117const V25_DELTAS: &[(u16, &str)] = &[
118 (12, "29 CCCCCCCCCCCCCDI5 owner12 0 CCCCCCCCCA16 index_map_offset0 0 1 dA9 index_map82 0 A17 node_id_index_map82 0 A20 schema_embedding_map82 0 A5 child12 0 A14 lowest_node_id0 0 1 dZ"),
119 (38, "255 "),
120 (41, "255 "),
121];
122
123#[rustfmt::skip]
128const V26_DELTAS: &[(u16, &str)] = &[
129 (10, "255 "), (11, "255 "), (100, "255 "),
130 (12, "30 CCCCCCCCCCCCCDI5 owner12 0 CCCCCCCCCA16 index_map_offset0 0 1 dA9 index_map82 0 A17 node_id_index_map82 0 A20 schema_embedding_map82 0 A5 child12 0 A14 lowest_node_id0 0 1 dA16 mesh_offset_data206 0 Z"),
131];
132
133const V25_AS_V30: [u16; 3] = [19, 70, 74];
136
137#[rustfmt::skip]
145const V12_DELTAS: &[(u16, &str)] = &[
146 (12, "255 "), (13, "255 "), (14, "255 "), (15, "255 "), (16, "255 "), (17, "255 "), (18, "255 "), (19, "255 "),
147 (29, "255 "), (30, "255 "), (31, "255 "), (50, "255 "), (51, "255 "),
148 (70, "12 CCCCDI9 list_type0 0 1 uCCDI10 last_block1012 0 CA12 finger_block1012 0 A12 finger_index0 0 1 dA10 notransmit0 0 1 lZ"),
149 (74, "255 "), (79, "255 "),
150 (80, "6 CCCCDDI12 legal_owners0 13 1 lDI6 fields0 1 1 cTZ"),
151 (81, "255 "), (84, "255 "),
152];
153
154pub fn v30_delta(node_type: u16) -> Option<&'static str> {
161 V30_DELTAS.iter().find(|(t, _)| *t == node_type).map(|(_, d)| *d)
162}
163
164#[rustfmt::skip]
165const V30_DELTAS: &[(u16, &str)] = &[
166 (12, "34 CCCCCCI4 mesh1006 0 I8 polyline1008 0 CCCCCCCDI5 owner1040 0 CCCCCCI13 boundary_mesh1006 0 I17 boundary_polyline1008 0 CCCA16 index_map_offset0 0 1 dA9 index_map82 0 A17 node_id_index_map82 0 A20 schema_embedding_map82 0 A5 child12 0 A14 lowest_node_id0 0 1 dA16 mesh_offset_data206 0 Z"),
167 (13, "255 "),
168 (14, "255 "),
169 (15, "255 "),
170 (16, "255 "),
171 (17, "255 "),
172 (18, "255 "),
173 (19, "8 CCCCCCCA5 owner12 0 Z"),
174 (29, "255 "),
175 (30, "255 "),
176 (31, "255 "),
177 (32, "255 "),
178 (38, "12 CCCCCCCCCCCA17 intersection_data204 0 Z"),
179 (40, "255 "),
180 (41, "3 CI8 term_use0 0 1 cCZ"),
181 (45, "255 "),
182 (50, "255 "),
183 (51, "255 "),
184 (52, "255 "),
185 (53, "255 "),
186 (54, "255 "),
187 (56, "255 "),
188 (59, "255 "),
189 (60, "255 "),
190 (67, "255 "),
191 (68, "255 "),
192 (70, "11 CI9 list_type0 0 1 uI10 notransmit0 0 1 lCCCDCCDI12 finger_index0 0 1 dI12 finger_block1012 0 CZ"),
193 (74, "4 CI16 index_map_offset0 0 1 dCCZ"),
194 (79, "255 "),
195 (80, "255 "),
196 (81, "255 "),
197 (82, "255 "),
198 (83, "255 "),
199 (84, "255 "),
200 (89, "255 "),
201 (98, "255 "),
202 (124, "255 "),
203 (125, "255 "),
204 (126, "255 "),
205 (127, "255 "),
206 (128, "255 "),
207 (133, "255 "),
208 (134, "255 "),
209 (135, "255 "),
210 (136, "255 "),
211 (137, "255 "),
212 (141, "255 "),
213 (163, "255 "),
214 (184, "255 "),
215 (204, "2 17 INTERSECTION_DATA17 Intersection data7 uv_type0 0 1 u6 values0 1 1 fT"),
216];
217
218pub fn base(node_type: u16) -> Option<(&'static str, Vec<FieldDef>)> {
220 let (_, name, fields) = BASE.iter().find(|(t, _, _)| *t == node_type)?;
221 let fields = fields
222 .iter()
223 .map(|&(name, code, n)| FieldDef {
224 name: name.to_string(),
225 kind: kind_of(code).expect("base schema type codes are known"),
226 code,
227 count: match n {
228 0 => Count::Scalar,
229 1 => Count::Variable,
230 n => Count::Fixed(n),
231 },
232 })
233 .collect();
234 Some((name, fields))
235}
236
237type BaseNode = (u16, &'static str, &'static [(&'static str, u8, usize)]);
240
241#[rustfmt::skip]
242const BASE: &[BaseNode] = &[
243 (10, "ASSEMBLY", &[("highest_node_id", b'd', 0), ("attributes_features", b'p', 0), ("attribute_chains", b'p', 0), ("list", b'p', 0), ("surface", b'p', 0), ("curve", b'p', 0), ("point", b'p', 0), ("key", b'p', 0), ("res_size", b'f', 0), ("res_linear", b'f', 0), ("ref_instance", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("state", b'u', 0), ("owner", b'p', 0), ("type", b'u', 0), ("sub_instance", b'p', 0)]),
248 (11, "INSTANCE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("type", b'u', 0), ("part", b'p', 0), ("transform", b'p', 0), ("assembly", b'p', 0), ("next_in_part", b'p', 0), ("prev_in_part", b'p', 0), ("next_of_part", b'p', 0), ("prev_of_part", b'p', 0)]),
249 (12, "BODY", &[("highest_node_id", b'd', 0), ("attributes_features", b'p', 0), ("attribute_chains", b'p', 0), ("surface", b'p', 0), ("curve", b'p', 0), ("point", b'p', 0), ("key", b'p', 0), ("res_size", b'f', 0), ("res_linear", b'f', 0), ("ref_instance", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("state", b'u', 0), ("base_owner", b'p', 0), ("body_type", b'u', 0), ("nom_geom_state", b'u', 0), ("shell", b'p', 0), ("boundary_surface", b'p', 0), ("boundary_curve", b'p', 0), ("boundary_point", b'p', 0), ("region", b'p', 0), ("edge", b'p', 0), ("vertex", b'p', 0)]),
250 (13, "SHELL", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("body", b'p', 0), ("next", b'p', 0), ("face", b'p', 0), ("edge", b'p', 0), ("vertex", b'p', 0), ("region", b'p', 0), ("front_face", b'p', 0)]),
251 (14, "FACE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("tolerance", b'f', 0), ("next", b'p', 0), ("previous", b'p', 0), ("loop", b'p', 0), ("shell", b'p', 0), ("surface", b'p', 0), ("sense", b'c', 0), ("next_on_surface", b'p', 0), ("previous_on_surface", b'p', 0), ("next_front", b'p', 0), ("previous_front", b'p', 0), ("front_shell", b'p', 0)]),
252 (15, "LOOP", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("halfedge", b'p', 0), ("face", b'p', 0), ("next", b'p', 0)]),
253 (16, "EDGE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("tolerance", b'f', 0), ("halfedge", b'p', 0), ("previous", b'p', 0), ("next", b'p', 0), ("curve", b'p', 0), ("next_on_curve", b'p', 0), ("previous_on_curve", b'p', 0), ("owner", b'p', 0)]),
254 (17, "HALFEDGE", &[("attributes_features", b'p', 0), ("loop", b'p', 0), ("forward", b'p', 0), ("backward", b'p', 0), ("vertex", b'p', 0), ("other", b'p', 0), ("edge", b'p', 0), ("curve", b'p', 0), ("next_at_vx", b'p', 0), ("sense", b'c', 0)]),
255 (18, "VERTEX", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("halfedge", b'p', 0), ("previous", b'p', 0), ("next", b'p', 0), ("point", b'p', 0), ("tolerance", b'f', 0), ("owner", b'p', 0)]),
256 (19, "REGION", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("body", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("shell", b'p', 0), ("type", b'c', 0)]),
257 (29, "POINT", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("pvec", b'v', 0)]),
258 (30, "LINE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("pvec", b'v', 0), ("direction", b'v', 0)]),
259 (31, "CIRCLE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("centre", b'v', 0), ("normal", b'v', 0), ("x_axis", b'v', 0), ("radius", b'f', 0)]),
260 (32, "ELLIPSE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("centre", b'v', 0), ("normal", b'v', 0), ("x_axis", b'v', 0), ("major_radius", b'f', 0), ("minor_radius", b'f', 0)]),
261 (38, "INTERSECTION", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("surface", b'p', 2), ("chart", b'p', 0), ("start", b'p', 0), ("end", b'p', 0)]),
262 (40, "CHART", &[("base_parameter", b'f', 0), ("base_scale", b'f', 0), ("chart_count", b'd', 0), ("chordal_error", b'f', 0), ("angular_error", b'f', 0), ("parameter_error", b'f', 2), ("hvec", b'h', 1)]),
263 (41, "LIMIT", &[("type", b'c', 0), ("hvec", b'h', 1)]),
264 (45, "BSPLINE_VERTICES", &[("vertices", b'f', 1)]),
265 (50, "PLANE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("pvec", b'v', 0), ("normal", b'v', 0), ("x_axis", b'v', 0)]),
266 (51, "CYLINDER", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("pvec", b'v', 0), ("axis", b'v', 0), ("radius", b'f', 0), ("x_axis", b'v', 0)]),
267 (52, "CONE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("pvec", b'v', 0), ("axis", b'v', 0), ("radius", b'f', 0), ("sin_half_angle", b'f', 0), ("cos_half_angle", b'f', 0), ("x_axis", b'v', 0)]),
268 (53, "SPHERE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("centre", b'v', 0), ("radius", b'f', 0), ("axis", b'v', 0), ("x_axis", b'v', 0)]),
269 (54, "TORUS", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("centre", b'v', 0), ("axis", b'v', 0), ("major_radius", b'f', 0), ("minor_radius", b'f', 0), ("x_axis", b'v', 0)]),
270 (56, "BLENDED_EDGE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("blend_type", b'c', 0), ("surface", b'p', 2), ("spine", b'p', 0), ("range", b'f', 2), ("thumb_weight", b'f', 2), ("boundary", b'p', 2), ("start", b'p', 0), ("end", b'p', 0)]),
271 (59, "BLEND_BOUND", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("boundary", b'n', 0), ("blend", b'p', 0)]),
272 (60, "OFFSET_SURF", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("check", b'c', 0), ("true_offset", b'l', 0), ("surface", b'p', 0), ("offset", b'f', 0), ("scale", b'f', 0)]),
273 (67, "SWEPT_SURF", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("section", b'p', 0), ("sweep", b'v', 0), ("scale", b'f', 0)]),
274 (68, "SPUN_SURF", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("profile", b'p', 0), ("base", b'v', 0), ("axis", b'v', 0), ("start", b'v', 0), ("end", b'v', 0), ("start_param", b'f', 0), ("end_param", b'f', 0), ("x_axis", b'v', 0), ("scale", b'f', 0)]),
275 (70, "LIST", &[("node_id", b'd', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("base_del1", b'X', 0), ("list_length", b'd', 0), ("block_length", b'd', 0), ("base_del2", b'X', 0), ("list_block", b'p', 0)]),
276 (74, "POINTER_LIS_BLOCK", &[("n_entries", b'd', 0), ("next_block", b'p', 0), ("entries", b'p', 1)]),
277 (79, "ATT_DEF_ID", &[("string", b'c', 1)]),
278 (80, "ATTRIB_DEF", &[("next", b'p', 0), ("identifier", b'p', 0), ("type_id", b'd', 0), ("actions", b'u', 8), ("field_names", b'p', 0), ("legal_owners", b'l', 14), ("fields", b'u', 1)]),
279 (81, "ATTRIBUTE", &[("node_id", b'd', 0), ("definition", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("next_of_type", b'p', 0), ("previous_of_type", b'p', 0), ("fields", b'p', 1)]),
280 (82, "INT_VALUES", &[("values", b'd', 1)]),
281 (83, "REAL_VALUES", &[("values", b'f', 1)]),
282 (84, "CHAR_VALUES", &[("values", b'c', 1)]),
283 (85, "POINT_VALUES", &[("values", b'v', 1)]),
284 (86, "VECTOR_VALUES", &[("values", b'v', 1)]),
285 (87, "AXIS_VALUES", &[("values", b'v', 1)]),
286 (88, "TAG_VALUES", &[("values", b't', 1)]),
287 (89, "DIRECTION_VALUES", &[("values", b'v', 1)]),
288 (90, "FEATURE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("type", b'u', 0), ("first_member", b'p', 0)]),
289 (91, "MEMBER_OF_FEATURE", &[("dummy_node_id", b'd', 0), ("owning_feature", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("next_member", b'p', 0), ("previous_member", b'p', 0)]),
290 (98, "UNICODE_VALUES", &[("values", b'w', 1)]),
291 (99, "FIELD_NAMES", &[("names", b'p', 1)]),
292 (100, "TRANSFORM", &[("node_id", b'd', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("rotation_matrix", b'f', 9), ("translation_vector", b'v', 0), ("scale", b'f', 0), ("flag", b'd', 0), ("perspective_vector", b'v', 0)]),
293 (101, "WORLD", &[("assembly", b'p', 0), ("attribute", b'p', 0), ("body", b'p', 0), ("transform", b'p', 0), ("surface", b'p', 0), ("curve", b'p', 0), ("point", b'p', 0), ("alive", b'l', 0), ("attrib_def", b'p', 0), ("highest_id", b'd', 0), ("current_id", b'd', 0)]),
298 (120, "PE_SURF", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("type", b'c', 0), ("data", b'p', 0), ("tf", b'p', 0), ("internal_geom", b'p', 1)]),
299 (121, "INT_PE_DATA", &[("geom_type", b'd', 0), ("real_array", b'p', 0), ("int_array", b'p', 0)]),
300 (122, "EXT_PE_DATA", &[("key", b'p', 0), ("real_array", b'p', 0), ("int_array", b'p', 0)]),
301 (124, "B_SURFACE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("nurbs", b'p', 0), ("data", b'p', 0)]),
302 (125, "SURFACE_DATA", &[("original_uint", b'i', 0), ("original_vint", b'i', 0), ("extended_uint", b'i', 0), ("extended_vint", b'i', 0), ("self_int", b'u', 0), ("original_u_start", b'c', 0), ("original_u_end", b'c', 0), ("original_v_start", b'c', 0), ("original_v_end", b'c', 0), ("extended_u_start", b'c', 0), ("extended_u_end", b'c', 0), ("extended_v_start", b'c', 0), ("extended_v_end", b'c', 0), ("analytic_form_type", b'c', 0), ("swept_form_type", b'c', 0), ("spun_form_type", b'c', 0), ("blend_form_type", b'c', 0), ("analytic_form", b'p', 0), ("swept_form", b'p', 0), ("spun_form", b'p', 0), ("blend_form", b'p', 0)]),
303 (126, "NURBS_SURF", &[("u_periodic", b'l', 0), ("v_periodic", b'l', 0), ("u_degree", b'n', 0), ("v_degree", b'n', 0), ("n_u_vertices", b'd', 0), ("n_v_vertices", b'd', 0), ("u_knot_type", b'u', 0), ("v_knot_type", b'u', 0), ("n_u_knots", b'd', 0), ("n_v_knots", b'd', 0), ("rational", b'l', 0), ("u_closed", b'l', 0), ("v_closed", b'l', 0), ("surface_form", b'u', 0), ("vertex_dim", b'n', 0), ("bspline_vertices", b'p', 0), ("u_knot_mult", b'p', 0), ("v_knot_mult", b'p', 0), ("u_knots", b'p', 0), ("v_knots", b'p', 0)]),
304 (127, "KNOT_MULT", &[("mult", b'n', 1)]),
305 (128, "KNOT_SET", &[("knots", b'f', 1)]),
306 (130, "PE_CURVE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("type", b'c', 0), ("data", b'p', 0), ("tf", b'p', 0), ("internal_geom", b'p', 1)]),
307 (133, "TRIMMED_CURVE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("basis_curve", b'p', 0), ("point_1", b'v', 0), ("point_2", b'v', 0), ("parm_1", b'f', 0), ("parm_2", b'f', 0)]),
308 (134, "B_CURVE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("nurbs", b'p', 0), ("data", b'p', 0)]),
309 (135, "CURVE_DATA", &[("self_int", b'u', 0), ("analytic_form", b'p', 0)]),
310 (136, "NURBS_CURVE", &[("degree", b'n', 0), ("n_vertices", b'd', 0), ("vertex_dim", b'n', 0), ("n_knots", b'd', 0), ("knot_type", b'u', 0), ("periodic", b'l', 0), ("closed", b'l', 0), ("rational", b'l', 0), ("curve_form", b'u', 0), ("bspline_vertices", b'p', 0), ("knot_mult", b'p', 0), ("knots", b'p', 0)]),
311 (137, "SP_CURVE", &[("node_id", b'd', 0), ("attributes_features", b'p', 0), ("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("geometric_owner", b'p', 0), ("sense", b'c', 0), ("surface", b'p', 0), ("b_curve", b'p', 0), ("original", b'p', 0), ("tolerance_to_original", b'f', 0)]),
312 (141, "GEOMETRIC_OWNER", &[("owner", b'p', 0), ("next", b'p', 0), ("previous", b'p', 0), ("shared_geometry", b'p', 0)]),
313 (163, "HELIX_SU_FORM", &[("axis_pt", b'v', 0), ("axis_dir", b'v', 0), ("hand", b'c', 0), ("turns", b'i', 0), ("pitch", b'f', 0), ("gap", b'f', 0), ("tol", b'f', 0)]),
314 (176, "PART_XMT_BLOCK", &[("n_entries", b'd', 0), ("index_map_offset", b'd', 0), ("index_map", b'p', 0), ("schema_embedding_map", b'p', 0), ("mesh_offset_data", b'p', 0), ("entries", b'p', 1)]),
315 (184, "HELIX_CU_FORM", &[("axis_pt", b'v', 0), ("axis_dir", b'v', 0), ("point", b'v', 0), ("hand", b'c', 0), ("turns", b'i', 0), ("pitch", b'f', 0), ("tol", b'f', 0)]),
316 (185, "POLYLINE_DATA", &[("n_pvecs", b'd', 0), ("base_parm", b'f', 0), ("pvec", b'p', 0)]),
317];