public Coord3d projectMouse(int x, int y) {
GL2 gl = getCurrentGL();
Coord3d p = cam.screenToModel(gl, glu, new Coord3d((float) x, (float) y, 0));
getCurrentContext().release();
return p;
}
我正在使用Jzy3d库,我希望在用鼠标点击时获得实际的3d坐标。当模型仅在90度时,以下方法工作,如果我旋转我给出错误的结果。 有什么想法吗?