How to get all vertex coordinates and triangles of a polygon when clamped to ground?

How to get all vertex coordinates and triangles of a polygon or a corridor after it is clamped to ground?

If you are using entities, they abstract away the lower-level graphics API.

But if you are using groundPrimitves, you should be able to access the underlying geometry instances, and generally have finer control over how the geometries are rendered.

Thanks,

Gabby