I'm new here, so HELLO @ all
I want to draw a rectangle on the imageplate of the canvas3d and pick all objects which are in the rectangle.
I wrote this code:
BoundingBox box = new BoundingBox();
Point3d lower = new Point3d(-0d,-0d,-100d); //just test coordinates
Point3d upper = new Point3d(1d,1d,100d); //just test coordinates
PickShape p = new PickBounds();
pickCanvas.setShape(p, new Point3d(0, 0, 0));
PickInfo pickInfo = ro.pickAll(PickInfo.PICK_GEOMETRY , PickInfo.SCENEGRAPHPATH, p);
it works, but my question is how to get the coordinates of the rectangle (start and endpoint) from the 2d into the 3d world? they should be set as lower and upper corner of the box. (vworld can rotate and translate) also the box must be aligned to the imageplate of the canvas3d...
Has anyone an idea how to do that?
or any other possibilty to get done what I want?
thanks for your help