Hello everybody,
I have constructed a PointArray with several points in it. The points
appear like small squares, while I would like them to look like small
circles. How can I achieve that?
Thanks Desiree
This is the relevant piece of code:
PointArray points = new
PointArray(eastValues.length,PointArray.COORDINATES);
points.setCapability(Geometry.ALLOW_INTERSECT);
points.setCoordinates(0,point3f);
Shape3D pointLayer = new Shape3D();
Appearance app = new Appearance();
PointAttributes pointAtt = new PointAttributes();
pointAtt.setPointSize(4);
pointAtt.setPointAntialiasingEnable(true);
app.setPointAttributes(pointAtt);
pointLayer.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
pointLayer.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
app.setCapability(Appearance.ALLOW_COLORING_ATTRIBUTES_READ);
app.setCapability(Appearance.ALLOW_COLORING_ATTRIBUTES_WRITE);
app.setCapability(Appearance.ALLOW_MATERIAL_WRITE);
app.setCapability(Appearance.ALLOW_MATERIAL_READ);
app.setCapability(Appearance.ALLOW_TRANSPARENCY_ATTRIBUTES_READ);
app.setCapability(Appearance.ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE);
ColoringAttributes colatt2 = new
ColoringAttributes(1.0f,0.0f,0.0f,ColoringAttributes.SHADE_GOURAUD);
colatt2.setCapability(ColoringAttributes.ALLOW_COLOR_READ);
colatt2.setCapability(ColoringAttributes.ALLOW_COLOR_WRITE);
app.setColoringAttributes(colatt2);
pointLayer.setGeometry(points);
pointLayer.setAppearance(app);
I am attaching a screenshot of such a point.
o------------------------------------------------------------------------o
| Desiree Hilbring Institut fuer Photogrammetrie und Fernerkundung |
| Universitaet Karlsruhe, Germany |
| |
| email: [EMAIL PROTECTED] |
| # 0721 6083676 |
o------------------------------------------------------------------------o
point