Skip to content

Commit 8f0ae2f

Browse files
flat selections fields with typename
1 parent 13ae213 commit 8f0ae2f

File tree

1 file changed

+69
-10
lines changed

1 file changed

+69
-10
lines changed

data/default_rules.json

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,35 +184,94 @@
184184
{
185185
"pointer": "/geometry/*/surface_selection/*",
186186
"type": "object",
187-
"required":["id"],
188-
"optional":["axis", "position","box", "relative"],
189-
"default": null
187+
"required":["id","box"],
188+
"optional":["relative"],
189+
"default": null,
190+
"typename": "box"
191+
},
192+
{
193+
"pointer": "/geometry/*/surface_selection/*",
194+
"type": "object",
195+
"required":["id","radius", "center"],
196+
"optional":["relative"],
197+
"default": null,
198+
"typename": "sphere"
199+
},
200+
{
201+
"pointer": "/geometry/*/surface_selection/*",
202+
"type": "object",
203+
"required":["id","point", "normal"],
204+
"optional":["relative", "offset"],
205+
"default": null,
206+
"typename": "plane"
207+
},
208+
{
209+
"pointer": "/geometry/*/surface_selection/*",
210+
"type": "object",
211+
"required":["id", "axis", "position"],
212+
"default": null,
213+
"typename": "axis"
190214
},
191215
{
192216
"pointer": "/geometry/*/surface_selection/*/id",
193217
"type": "int"
194218
},
219+
{
220+
"pointer": "/geometry/*/surface_selection/*/radius",
221+
"type": "float"
222+
},
223+
{
224+
"pointer": "/geometry/*/surface_selection/*/center",
225+
"type": "list",
226+
"min": 2,
227+
"max": 3
228+
},
229+
{
230+
"pointer": "/geometry/*/surface_selection/*/center/*",
231+
"type": "float"
232+
},
195233
{
196234
"pointer": "/geometry/*/surface_selection/*/axis",
197-
"type": "int",
198-
"default": null
235+
"type": "int"
236+
},
237+
{
238+
"pointer": "/geometry/*/surface_selection/*/offset",
239+
"type": "float"
199240
},
200241
{
201242
"pointer": "/geometry/*/surface_selection/*/position",
202-
"type": "float",
203-
"default": null
243+
"type": "float"
204244
},
205245
{
206246
"pointer": "/geometry/*/surface_selection/*/relative",
207247
"type": "bool",
208-
"default": "//TODO"
248+
"default": false
249+
},
250+
{
251+
"pointer": "/geometry/*/surface_selection/*/point",
252+
"type": "list",
253+
"min": 2,
254+
"max": 3
255+
},
256+
{
257+
"pointer": "/geometry/*/surface_selection/*/point/*",
258+
"type": "float"
259+
},
260+
{
261+
"pointer": "/geometry/*/surface_selection/*/normal",
262+
"type": "list",
263+
"min": 2,
264+
"max": 3
265+
},
266+
{
267+
"pointer": "/geometry/*/surface_selection/*/normal/*",
268+
"type": "float"
209269
},
210270
{
211271
"pointer": "/geometry/*/surface_selection/*/box",
212272
"type": "list",
213273
"min":2,
214-
"max":2,
215-
"default": [[],[]]
274+
"max":2
216275
},
217276
{
218277
"pointer": "/geometry/*/surface_selection/*/box/*",

0 commit comments

Comments
 (0)