Hi - j3d newbie here. I have a class to
plot a collection of points; I'd like them to be anti-aliased, but setting the
property doesn't seem to have any effect. Does the flag get overridden
somewhere possibly?
Here is an example using Shape3D; for me, these
points are not Anti-Aliased.
TIA,
Cliff
public class ScatterBox extends Shape3D
{
private PointArray pa = new PointArray(100,
GeometryArray.COORDINATES
| GeometryArray.COLOR_3);
{
for (int i = 0; i < 100; i++) {
float x = (float) (Math.random() - 0.5);
float y = (float) (Math.random() - 0.5);
float z = (float) (Math.random() - 0.5);
Point3f p3f = new Point3f(x, y, z);
pa.setCoordinate(i, p3f);
pa.setColor(i, new Color3f(1f, 0f, 0f));
}
}
| GeometryArray.COLOR_3);
{
for (int i = 0; i < 100; i++) {
float x = (float) (Math.random() - 0.5);
float y = (float) (Math.random() - 0.5);
float z = (float) (Math.random() - 0.5);
Point3f p3f = new Point3f(x, y, z);
pa.setCoordinate(i, p3f);
pa.setColor(i, new Color3f(1f, 0f, 0f));
}
}
private Appearance app = new
Appearance();
{
app.setPointAttributes(new PointAttributes(5, true));
}
{
app.setPointAttributes(new PointAttributes(5, true));
}
public ScatterBox()
{
super();
this.setGeometry(pa);
this.setAppearance(app);
}
super();
this.setGeometry(pa);
this.setAppearance(app);
}
public Shape3D getShape()
{
return this;
}
}
return this;
}
}