public IInterSectableBorder3d initBottom()
        {
            double   planeDistanceFromSphereCenter = getDistanceFromSphereCenterToAngle(this.radiansMax);
            Location planoLoc = this.sphereLoc + (this.orientation * planeDistanceFromSphereCenter);

            if (this.doubleConvexRing)
            {
                this.oppositeSideSphere = new Sphere(null, null, this.sphereLoc + (this.orientation * planeDistanceFromSphereCenter * 2), this.sphereRadius);
                return(this.oppositeSideSphere);
            }
            else
            {
                this.flatBottomBorder = new PlaneBorder(planoLoc, this.orientation);
                return(this.flatBottomBorder);
            }
        }
Example #2
0
        public IInterSectableBorder3d initBottom()
        {
            double planeDistanceFromSphereCenter = getDistanceFromSphereCenterToAngle(this.radiansMax);
            Location planoLoc = this.sphereLoc+(this.orientation*planeDistanceFromSphereCenter);

            if (this.doubleConvexRing) {
            this.oppositeSideSphere = new Sphere(null, null, this.sphereLoc+(this.orientation*planeDistanceFromSphereCenter*2), this.sphereRadius);
            return this.oppositeSideSphere;
            } else {
            this.flatBottomBorder = new PlaneBorder(planoLoc, this.orientation);
            return this.flatBottomBorder;
            }
        }