/** * Test for intersection with another bounds object. * @param boundsObject another bounds object * @return true or false indicating if an intersection occured */ @Override boolean intersect(Bounds boundsObject, Point4d position) { return intersect(boundsObject); }
return true; // We're done here. } else if( boundsObjects[i].boundId == BOUNDING_BOX){ if( this.intersect( boundsObjects[i])) return true; } else if( boundsObjects[i].boundId == BOUNDING_SPHERE ) { sphere = (BoundingSphere)boundsObjects[i]; if( this.intersect( boundsObjects[i])) return true; } else { throw new IllegalArgumentException(J3dI18N.getString("BoundingSphere7"));
boolean intersect(Bounds region) { if (region == null) return false; ViewPlatformRetained vpLists[] = (ViewPlatformRetained []) viewPlatforms.toArray(false); for (int i=viewPlatforms.arraySize()- 1; i>=0; i--) { vpLists[i].schedSphere.getWithLock(tempSphere); if (tempSphere.intersect(region)) { return true; } } return false; }
if( boundsObjects[i] == null ) ; else if( this.intersect( boundsObjects[i])) { intersect = true; if(boundsObjects[i].boundId == BOUNDING_BOX){
/** * return true if one of ViewPlatforms intersect behregion */ final boolean intersectVPRegion(Bounds behregion) { if (behregion == null) { return false; } ViewPlatformRetained vp; ViewPlatformRetained vpLists[] = (ViewPlatformRetained []) viewPlatforms.toArray(false); for (int i=viewPlatforms.arraySize()- 1; i>=0; i--) { vp = vpLists[i]; if (vp.isActiveViewPlatform() && vp.schedSphere.intersect(behregion)) { return true; } } return false; }
debugPrint(" clone tranformed region " + region ); if (region!=null && viewPlatform.schedSphere.intersect(region)){ intersectedRegions[nSelectedSScapes] = (Bounds)region.clone();
BoundingBox tbox = new BoundingBox(); BoundingBox box = (BoundingBox)boundsObject; if( this.intersect( box) ){ BoundingBox sbox = new BoundingBox( this ); // convert sphere to box if( this.intersect( polytope) ){ BoundingBox sbox = new BoundingBox( this ); // convert sphere to box BoundingBox pbox = new BoundingBox( polytope ); // convert polytope to box
else if( boundsObjects[i].boundId == BOUNDING_BOX) { BoundingBox box = (BoundingBox)boundsObjects[i]; if( this.intersect( box) ){ BoundingBox sbox = new BoundingBox( this ); // convert sphere to box if( this.intersect( polytope) ){ BoundingBox sbox = new BoundingBox( this ); // convert sphere to box BoundingBox pbox = new BoundingBox( polytope ); // convert polytope to box
break; case PICK_SHAPE_BOUNDING_SPHERE: intersect = ((BoundingSphere)pickShapeBounds).intersect(point[0]); pi.setPointCoordinatesVW(point[0]); break;
if (debugFlag) debugPrint(": region is " + region ); intersected = viewPlatform.schedSphere.intersect(region); if (debugFlag) debugPrint(" intersection with viewPlatform is " +