예제 #1
0
        public static CellID64 getSmallestContainingCell(LineSegment3D line)
        {
            CellID64 llbSmallestCell = CellID64.cellAtMaxDepth(line.startPoint);
            CellID64 urtSmallestCell = CellID64.cellAtMaxDepth(line.endPoint);
            CellID64 theCell         = getCombinedSmallestContainingCell(llbSmallestCell, urtSmallestCell);

            return(theCell);
        }
예제 #2
0
        public static CellID64 getSmallestContainingCell(BoundingBox3D BBox)
        {
            // 1st step. Get the minimum Octree Cell containing the polyH bounding box

            CellID64 llbSmallestCell = CellID64.cellAtMaxDepth(BBox.LLB);
            CellID64 urtSmallestCell = CellID64.cellAtMaxDepth(BBox.URT);
            CellID64 theCell         = getCombinedSmallestContainingCell(llbSmallestCell, urtSmallestCell);

            return(theCell);
        }