User Tools

Site Tools


geometry_instance

Description

Instantiates a geometry asset based on a geometry asset definition.

Parent Objects

Properties

Name Description Default Required
id A string representing the unique identifier for this instance within the file. None no
url A string representing the URI of the geometry asset definition to instantiate. None yes

Details

If the id property is not present, the geometry_instance becomes a reference used to look up a geometry instance within the currently loaded scene that uses the geometry definition given in the url field. Otherwise, it creates a new instance in the scene using the definition of the geometry asset given in the url field.

A geometry_instance may override any of the properties of the geometry asset it is based on, with the exception of the id property.

Example

{
    "id" : "myfigure",
    "url" : "#speedy"
}