Open
Description
(decisions and suggestions from IIIF/3d#11 (comment))
If the entirety of a 3D model is to be painted into a Scene
, the painting annotation body is just the content resource:
"body": {
"id": "https://example.org/iiif/my-model.someFormat",
"type": "Model",
"format": "application/something"
}
If only part of the model is required, a SpecificResource with a Selector is required.
From the Napoli workshop, the proposal is a WktSelector:
https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry
"body": {
"type": "SpecificResource",
"source": [
{
"id": "https://example.org/iiif/my-model.someFormat",
"type": "Model",
"format": "application/something"
}
],
"selector": [
{
"type": "WktSelector",
"value": "POLYGONZ(( 0 0 0, 1 0 0, 0 1 0, 0 0 1 ))"
}
]
}
Note that the value uses POLYGONZ not POLYGON: https://gis.stackexchange.com/a/206631
It is up to the client to determine how it extracts the part from the whole.
Note that a full example of a SpecificResource may also have one or more transforms (as #xx) if only part of the model is required.