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

3D Selector for model parts #2255

Open
tomcrane opened this issue Jul 14, 2023 · 4 comments
Open

3D Selector for model parts #2255

tomcrane opened this issue Jul 14, 2023 · 4 comments

Comments

@tomcrane
Copy link
Contributor

(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.

@JulieWinchester
Copy link
Contributor

Personally, I think it is likely that this is impractical for many viewer implementers to achieve on a geometry level (e.g., creating a crop or subset of geometry based on a 3D polygon selector).

At the Basel working meeting on October 26 2023, there was general support for either considering selecting parts of models to be out of scope or at least to put this on the back-burner until 3D spec work has progressed significantly further.

However, this style of selector will probably still be very important for allowing text label annotations to target a 3D polygonal region, even if it is not used for selecting parts of 3D models to annotate into a Scene.

@tomcrane
Copy link
Contributor Author

Suggest that this issue should be split - the original issue likely deferred, and a new issue created for targeting specific 3D regions of a scene.

@tomcrane
Copy link
Contributor Author

Split into #2269, propose defer this original issue for now.

@azaroth42
Copy link
Member

+1 to defer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants