geometryFaceRange
December 17, 2019 ยท View on GitHub
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:
featureIDattribute 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.
Related:
Properties
| 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
Examples
Example: FaceRange
{
"type": "UInt32",
"component": 2
}