if (pg.getVertices()!=null) {
Vertex3d[] verts = new Vertex3d[pg.getVertices().length];
double height = getSceneGraphGeometry().getBoundingBox().getHeight()/(double)lineCount;
for (int i=0; i<verts.length; i++) {
verts[i] = new Vertex3d((Point3d)pg.getVertices()[i].position.clone(), pg.getVertices()[i].normal, null, null, new TexCoord2f());
verts[i].scale(1.0/height,1.0/height,1);
}
((IndexedTriangleArray)this.getSceneGraphGeometry()).setVertices(verts);
}
}