modelFileURL(for:)
Provides a URL to the 3D model for the given category.
Declaration
func modelFileURL(for category: CapturedRoom.Object.Category) throws -> URL?Parameters
- category:
An object type that represents criteria for the model-URL query.
Return Value
The 3D model that the app associates to the given object’s category via setModelFileURL(_:for:); or, nil if no 3D model URL associates to the given category.
Discussion
This function throws CapturedRoom.ModelProvider.Error.nonExistingFile(url:) if a 3D model doesn’t exist at the given URL.