Geometry > Working with a Geometry Sequence > Adding a Geometry Feature

Adding a Geometry Feature
To add a feature to a geometry tagged <tag>, enter
model.geom(<tag>).create(<ftag>,ftype);
where <ftag> is the feature’s tag (an identifier of your choice), and ftype is the feature’s type. Feature types are capitalized and case-sensitive, for example Rectangle.
When you add a feature, it is inserted after the current feature. You can get the tag of the current feature type by entering
String ftag = model.geom(<tag>).current();
If ftag is the empty string, the current feature is the beginning of the geometry sequence, that is, the empty state before all features. When the feature has been added, it automatically becomes current, but it is not built automatically.
All properties in a new feature get a default value.