I have a canvas3d in Java3D, and I want to add some point.
I try to to this.
private void drawPoints() {
PointArray pti = new PointArray(2,Po intArray.COORDI NATES);
Shape3D shape = new Shape3D();
shape.removeAll Geometries();
BranchGroup ptiGroup = new BranchGroup();
pti.setCoordina te(0, new Point3d(3, 5, 23));
pti.setCoordina te(1, new Point3d(0, 5, 7));
shape.addGeomet ry(pti);
ptiGroup.addChi ld(shape);
ptiGroup.compil e();
universe.addBra nchGraph(ptiGro up);
}
But I don't see nothing. Why ?
____
FleX
I try to to this.
private void drawPoints() {
PointArray pti = new PointArray(2,Po intArray.COORDI NATES);
Shape3D shape = new Shape3D();
shape.removeAll Geometries();
BranchGroup ptiGroup = new BranchGroup();
pti.setCoordina te(0, new Point3d(3, 5, 23));
pti.setCoordina te(1, new Point3d(0, 5, 7));
shape.addGeomet ry(pti);
ptiGroup.addChi ld(shape);
ptiGroup.compil e();
universe.addBra nchGraph(ptiGro up);
}
But I don't see nothing. Why ?
____
FleX