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:

  • 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

Thematic 3D Object Scene Layer without textures

Mesh with 2 features.

Thematic 3D Object Scene Layer without textures

Grouped vertices in the geometry buffer.

cmn::geometryBuffer

Properties

PropertyTypeDescription
typestringData type for the index range
Must be:
  • UInt32
componentintegerPair of indices marking first and last triangles for a feature.
encodingstring
Must be:
  • none
bindingstring
Must be:
  • per-feature

Note: properties in bold are required

Examples

Example: FaceRange

 {
  "type": "UInt32",
  "component": 2
}