Model Symbol Layer
Creates a model symbol layer from a well-known 3D primitive shape. This creates a new model symbol layer and sets up the following default properties:
anchor defaults to null, which is the origin of the ModelShape. The origin is located at the center of the ModelShape for ModelShape.Sphere, ModelShape.Cube, and ModelShape.Diamond, and at the bottom center for ModelShape.Cylinder, ModelShape.Cone, and ModelShape.Tetrahedron.
fully opaque white (RGBA(255, 255, 255, 255))
height, width, and depth of 10.0 DIPs
heading, pitch, and roll of 0.0 degrees
an empty URI
After creating, the load status of ModelSymbolLayer will be set to LoadStatus.Loaded.
Since
300.0.0
Parameters
Primitive shape.
Creates a model symbol layer from a URI that references a 3D model. This creates a new model symbol layer and sets up the following default properties:
anchor defaults to null, which is the origin of the 3D model.
fully transparent black (RGBA(0, 0, 0, 0))
height, width, and depth of 0.0 DIPs
heading, pitch, and roll of 0.0 degrees
URI set to the specified URI
After creating, call ModelSymbolLayer.load to load the 3D model from the URI asynchronously. Once the model is loaded, its properties will be populated using the values defined in the model if not set explicitly.
By default, if not explicitly specified, the color of a loaded model symbol layer is reported as transparent black.
The URI can be a local file path or a web address. The URI must point to a 3D model in one of the supported formats: COLLADA (.dae), 3ds Max (.3ds), Filmbox (.fbx), Wavefront (.obj), GL Transmission Format (.glTF), or Binary GL Transmission Format (.glb).
Since
300.0.0
Parameters
The URI location of the 3D model to use in the symbol layer.