Surface
A surface made up of triangles.
Attribute Locations
-
Vertices
puts attribute values on the vertices. -
Primitives
puts attribute values on the triangles.
Fields
origin
: 3D vector- Origin of the surface relative to the project coordinate reference system.
triangles
:Array
- Array with
Triangle
type storing each triangle as a triple of indices intovertices
. Triangle winding should be counter-clockwise around an outward-pointing normal. vertices
:Array
-
Array with
Vertex
type storing the vertex locations.Add
origin
and the project origin to get the locations relative to the project coordinate reference system.
Schema
{
"type": "object",
"required": [
"triangles",
"type",
"vertices"
],
"properties": {
"origin": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"maxItems": 3,
"minItems": 3
},
"triangles": {
"$ref": "#/definitions/Array"
},
"type": {
"type": "string",
"enum": [
"Surface"
]
},
"vertices": {
"$ref": "#/definitions/Array"
}
}
}