Struct ModelPrimitive¶
Defined in File schemas.hpp
Struct Documentation¶
-
struct ModelPrimitive¶
A primitive representing a 3D model file loaded from an external URL or embedded data.
Public Members
-
bool override_color = false¶
Whether to use the color specified in
color
instead of any materials embedded in the original model.
-
std::string url¶
URL pointing to model file. One of
url
ordata
should be provided.
-
std::string media_type¶
Media type of embedded model (e.g.
model/gltf-binary
). Required ifdata
is provided instead ofurl
. Overrides the inferred media type ifurl
is provided.
-
std::vector<std::byte> data¶
Embedded model. One of
url
ordata
should be provided. Ifdata
is provided,media_type
must be set to indicate the type of the data.
-
bool override_color = false¶