faceRange
is an inclusive range of faces in this geometry that belongs to this feature.
For each feature, faceRange
indicates its first and last triangles as a pair of integer indices in the face list.
Notes:
featureID
attribute is required- This attributes is only supported when topology is
triangle
- Vertices in the geometry buffer must be grouped by
feature_id
- for un-indexed triangle meshes,
vertex_index = face_index * 3
Example
Mesh with 2 features.
Grouped vertices in the geometry buffer.
Property | Type | Description |
---|---|---|
type | string | Data type for the index range Must be:
|
component | integer | Pair of indices marking first and last triangles for a feature. |
encoding | string | Must be:
|
binding | string | Must be:
|
Note: properties in bold are required
{
"type": "UInt32",
"component": 2
}