Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.39 KB

geometryFaceRange.cmn.md

File metadata and controls

49 lines (31 loc) · 1.39 KB

geometryFaceRange

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.

Related:

cmn::geometryBuffer

Properties

Property Type Description
type string Data type for the index range
Must be:
  • UInt32
component integer Pair of indices marking first and last triangles for a feature.
encoding string
Must be:
  • none
binding string
Must be:
  • per-feature

Note: properties in bold are required

Examples

Example: FaceRange

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