Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jul 16, 2022
1 parent 4484f25 commit 0eefbe8
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "bounds.schema.json",
"title": "Bounds",
"type": "object",
"description": "The bounds property describes which section of the primitive is mapped to the voxel grid. bounds.min and bounds.max specify a rectangular region of the voxel grid in the appropriate coordinate system.",
"allOf": [
{
"$ref": "glTFProperty.schema.json"
}
],
"properties": {
"min": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 3,
"maxItems": 3
},
"max": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 3,
"maxItems": 3
}
},
"required": [
"min",
"max"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"properties": {
"dimensions": {
"type": "array",
"description": "Dimensions of the voxel grid. x/y/z for a box, r/theta/z for a cylinder, lat/lon/height for an ellipsoid.",
"description": "Dimensions of the voxel grid. x/y/z for a box, r/z/theta for a cylinder, lon/lat/height for an ellipsoid.",
"items": {
"type": "integer",
"minimum": 1
Expand All @@ -21,56 +21,14 @@
"maxItems": 3
},
"bounds": {
"type": {
"properties": {
"minimum": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 3,
"maxItems": 3
},
"maximum": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 3,
"maxItems": 3
}
}
}
"$ref": "bounds.schema.json"
},
"neighboringEdges": {
"type": {
"properties": {
"beforeCount": {
"type": "array",
"description": "Number of neighboring data values before each dimension of the grid.",
"items": {
"type": "integer",
"minimum": 0,
"default": 0
},
"minItems": 3,
"maxItems": 3
},
"afterCount": {
"type": "array",
"description": "Number of neighboring data values after each dimension of the grid.",
"items": {
"type": "integer",
"minimum": 0,
"default": 0
},
"minItems": 3,
"maxItems": 3
}
}
},
"description": "The number of rows of neighboring tiles' voxel data."
"padding": {
"$ref": "padding.schema.json"
}
},
"required": ["dimensions"]
}
"required": [
"dimension",
"bounds"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "padding.schema.json",
"title": "Padding",
"type": "object",
"description": "The padding property specifies how many rows of attribute data in each dimension come from neighboring grids.",
"allOf": [
{
"$ref": "glTFProperty.schema.json"
}
],
"properties": {
"before": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"minItems": 3,
"maxItems": 3
},
"after": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"minItems": 3,
"maxItems": 3
}
},
"required": [
"before",
"after"
]
}

0 comments on commit 0eefbe8

Please sign in to comment.