Axis aj = fj.getAxis(); if (ai!=aj) { Point3 pmini = fi.getCornerMin(); Point3 pmaxi = fi.getCornerMax(); Point3 pminj = fj.getCornerMin(); Point3 pmaxj = fj.getCornerMax(); double xmin = max(pmini.x,pminj.x);
Axis aj = fj.getAxis(); if (ai!=aj) { Point3 pmini = fi.getCornerMin(); Point3 pmaxi = fi.getCornerMax(); Point3 pminj = fj.getCornerMin(); Point3 pmaxj = fj.getCornerMax(); double xmin = max(pmini.x,pminj.x);
int jzc = (int)(fzc/dz); xmin = aaf.getCornerMin().x; xmax = aaf.getCornerMax().x; ymin = aaf.getCornerMin().y; ymax = aaf.getCornerMax().y; zmin = aaf.getCornerMin().z; zmax = aaf.getCornerMax().z; int jzc = (int)(fzc/dz); xmin = aaf.getCornerMin().x; xmax = aaf.getCornerMax().x; ymin = aaf.getCornerMin().y; ymax = aaf.getCornerMax().y; zmin = aaf.getCornerMin().z; zmax = aaf.getCornerMax().z; int jyc = (int)(fyc/dy); xmin = aaf.getCornerMin().x; xmax = aaf.getCornerMax().x; ymin = aaf.getCornerMin().y; ymax = aaf.getCornerMax().y; zmin = aaf.getCornerMin().z; zmax = aaf.getCornerMax().z;
public void dragBegin(DragContext dc) { Point3 origin = dc.getPointWorld(); Vector3 normal = null; Axis axis = _frame.getAxis(); if (axis==Axis.X) { normal = new Vector3(1.0,0.0,0.0); } else if (axis==Axis.Y) { normal = new Vector3(0.0,1.0,0.0); } else if (axis==Axis.Z) { normal = new Vector3(0.0,0.0,1.0); } Plane plane = new Plane(origin,normal); MouseEvent event = dc.getMouseEvent(); Matrix44 worldToPixel = dc.getWorldToPixel(); if (event.isControlDown() || event.isAltDown()) { // Alt/Option for Mac _mouseConstrained = new MouseOnPlane(event,origin,plane,worldToPixel); } else { _mouseConstrained = new MouseOnLine(event,origin,normal,worldToPixel); } _origin = origin; _qa = _frame.getCornerMin(); _qb = _frame.getCornerMax(); } public void drag(DragContext dc) {
Point3 qmin = frame.getCornerMin(); Point3 qmax = frame.getCornerMax(); double xmin = qmin.x;