forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
136 additions
and
7 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...rimitive_voxels/schema/bounds.schema.json → ...T_primitive_voxels/schema/box.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
extensions/2.0/Vendor/EXT_primitive_voxels/schema/cylinder.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "cylinder.schema.json", | ||
"title": "Cylinder", | ||
"type": "object", | ||
"description": "The cylinder property indicates that the voxels conform to a cylindrical grid. Each sub-property defines the section of the cylinder that the grid actually occupies.", | ||
"allOf": [ | ||
{ | ||
"$ref": "glTFProperty.schema.json" | ||
} | ||
], | ||
"properties": { | ||
"radius": { | ||
"type": "array", | ||
"description": "The radial extents of the cylindrical grid in local space. The elements represent the minimum and maximum values respectively.", | ||
"items": { | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
}, | ||
"height": { | ||
"type": "array", | ||
"description": "The height extents of the cylindrical grid in local space. The elements represent the minimum and maximum values respectively.", | ||
"items": { | ||
"type": "number" | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
}, | ||
"angle": { | ||
"type": "array", | ||
"description": "The angular extents of the cylindrical grid in local space. Values must be in the range [-pi, pi]. The elements represent the minimum and maximum values respectively.", | ||
"items": { | ||
"type": "number" | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
} | ||
}, | ||
"required": [ | ||
"radius", | ||
"height" | ||
] | ||
} |
73 changes: 73 additions & 0 deletions
73
extensions/2.0/Vendor/EXT_primitive_voxels/schema/ellipsoid.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "ellipsoid.schema.json", | ||
"title": "Ellipsoid", | ||
"type": "object", | ||
"description": "The ellipsoid property indicates that the voxels conform to an ellipsoidal grid. Each sub-property defines the section of the ellipsoid that the grid actually occupies.", | ||
"allOf": [ | ||
{ | ||
"$ref": "glTFProperty.schema.json" | ||
} | ||
], | ||
"properties": { | ||
"radii": { | ||
"type": "array", | ||
"description": "The radii of the ellipsoid along the X, Y, and Z axes in the local coordinate system.", | ||
"items": { | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"minItems": 3, | ||
"maxItems": 3 | ||
}, | ||
"longitude": { | ||
"type": "array", | ||
"description": "The range along the longitude of the ellipsoid that the grid occupies. The elements represent the minimum and maximum values (west and east) respectively.", | ||
"items": { | ||
"type": "number", | ||
"minimum": -180.0, | ||
"maximum": 180.0 | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
}, | ||
"latitude": { | ||
"type": "array", | ||
"description": "The range along the latitude of the ellipsoid that the grid occupies. The elements represent the minimum and maximum values (south and north) respectively.", | ||
"items": { | ||
"type": "number", | ||
"minimum": -90.0, | ||
"maximum": 90.0 | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
}, | ||
"ratio": { | ||
"type": "array", | ||
"description": "The ratio along the radii of the ellipsoid that the grid occupies. The elements represent the minimum and maximum values respectively.", | ||
"items": { | ||
"type": "number", | ||
"minimum": 0, | ||
"maximum": 1 | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
}, | ||
"height": { | ||
"type": "array", | ||
"description": "The range of height above or below the ellipsoid that the grid occupies. Negative values are inside the ellipsoid, while positive values are outside. The elements represent the minimum and maximum values respectively.", | ||
"items": { | ||
"type": "number" | ||
}, | ||
"minItems": 2, | ||
"maxItems": 2 | ||
} | ||
}, | ||
"required": [ | ||
"radii" | ||
], | ||
"oneOf": [ | ||
"ratio", | ||
"height" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters