@Override
protected void _assembleVertexControlPoints_(DrawContext dc)
{
Terrain terrain = dc.getTerrain();
ExtrudedPolygon pol = (ExtrudedPolygon) super._pol_;
Position refPos = pol.getReferencePosition();
Vec4 refPoint = terrain.getSurfacePoint(refPos.getLatitude(), refPos.getLongitude(), 0);
int altitudeMode = pol.getAltitudeMode();
double height = pol.getHeight();
Vec4 vaa = null;
double vaaLength = 0; // used to compute independent length of each cap vertex
double vaLength = 0;
int i = 0;
for (LatLon location : pol.getOuterBoundary())
{
Vec4 vert;
// Compute the top/cap point.
if (altitudeMode == WorldWind.CONSTANT || !(location instanceof Position))