1. A concise explanation of the problem you’re experiencing.
How to create polygons that float in 3d?
When I create a polygon geometry with the perPositionHeight, what is rendered on the screen is a polygon which goes down to the ground. I only want the top of the extruded polygon.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
I think you’re on the right track! There are many ways to optimize an application. In terms of graphics, often times the bottleneck is the amount of calls you’re making between the CPU and GPU, so combining things (whether that’s putting all your textures into one big image, so you only send one instead of many) or putting a bunch of different geometries into one primitive are all good ideas. This page on Geometry and Appearances talks a bit about efficiently rendering a large amount of polygons under the “Combining Geometry” section: