Element
Defines a single "object" or "shape" within the OMF file.
Each shape has a name plus other optional metadata, a "geometry" that describes a point-set, surface, etc., and a list of attributes that that exist on that geometry.
Fields
attributes
: array ofAttribute
- List of attributes, if any.
color
: array of integer, 4 items- Optional solid color.
description
: string- Optional element description.
geometry
:Geometry
- The geometry of the element.
metadata
: object- Arbitrary metadata.
name
: string- The element name. Names should be non-empty and unique.
Schema
{
"type": "object",
"required": [
"geometry",
"name"
],
"properties": {
"attributes": {
"type": "array",
"items": {
"$ref": "#/definitions/Attribute"
}
},
"color": {
"type": [
"array",
"null"
],
"items": {
"type": "integer",
"format": "uint8",
"maximum": 255.0,
"minimum": 0.0
},
"maxItems": 4,
"minItems": 4
},
"description": {
"type": "string"
},
"geometry": {
"$ref": "#/definitions/Geometry"
},
"metadata": {
"type": "object",
"additionalProperties": true
},
"name": {
"type": "string"
}
}
}