Geometry > Working with a Geometry Sequence > Adding a Model Component (Geometry)

Adding a Model Component (Geometry)
To add a new geometry to the model object model, enter
model.geom().create(<tag>,sDim);
where <tag> is the geometry’s tag (an identifier of your choice), and sDim is its space dimension (1, 2, or 3).
The geometry is added to the last created model component (modelNode). If no model component exists in the model, a model component node tagged mod1 is automatically created for you. A physics interface using the geometry must belong to the same model component as the geometry.
You can change the model component of a geometry by entering
model.geom(<tag>).model(<mtag>);
where <mtag> is the tag of a model node.