Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ext mesh features id clarifications #66

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/2.0/Vendor/EXT_mesh_features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Features are identified within a 3D asset by **Feature IDs**. A mesh primitive m

Each feature ID set is defined as a set of values that are associated with the conceptual parts of the model. The definition of the feature ID set may include a `nullFeatureId`, which is a value that indicates that a certain part is not considered to be an identifiable object. The definition also includes a `featureCount` value, which is the number of unique features that are identified.

> **Implementation note:** The `featureCount` is a _global_ number of unique features. The actual feature IDs that appear in one model will often only be a subset of a global set of possible IDs. So the `featureCount` will often be larger than the number of unique IDs that appear in one given model.
>
> The `nullFeatureId` does not contribute to the `featureCount`. When the `nullFeatureId` is defined, then there may be up to `featureCount+1` unique feature ID values in one model, if one of these values is the `nullFeatureId`.

The feature ID set may also include a `label`, an alphanumeric string used to identify feature ID sets across different glTF primitives. Labels must match the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.

Feature IDs can be associated with parts of a model in one of three ways:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"$ref": "featureIdTexture.schema.json"
},
"propertyTable": {
"type": "integer",
"minimum": 0,
"allOf": [ { "$ref": "glTFid.schema.json" } ],
"description": "The index of the property table containing per-feature property values. Only applicable when using the `EXT_structural_metadata` extension."
},
"extensions": {},
Expand Down
Loading