// Add polygons with tagValue = 42 and height = 12.
// The polygons are in a different spatial reference than the tin editor, so we provide the spatial
// reference of the polygons. The polygons will be projected to the spatial reference of the tin editor.
tinEditor.AddPolygons(polygons, TinSurfaceType.ZLessSoftLine, 42, 12, SpatialReferenceBuilder.CreateSpatialReference(54004));
// Add z-aware polygons with no tag value. The height comes from the z-values of the vertices.
// The polygons are in the same spatial reference as the tin editor, so there is no need to provide it.
tinEditor.AddPolygonsZ(polygonsZ, TinSurfaceType.HardLine, 0);