private static Boundingvolume GetBoundingvolume(Node n) { var bbox = n.CalculateBoundingBox3D(); var boundingVolume = new Boundingvolume(); boundingVolume.box = bbox.GetBox(); return(boundingVolume); }
public static Boundingvolume GetBoundingvolume(BoundingBox3D bbox3d) { var boundingVolume = new Boundingvolume { box = bbox3d.GetBox() }; return(boundingVolume); }
private static Root GetRoot(List <Tile> tiles, double geometricError, double[] translation, double[] box, string refinement) { var boundingVolume = new Boundingvolume { box = box }; var root = new Root { geometricError = geometricError, refine = refinement, transform = translation, boundingVolume = boundingVolume }; var children = GetChildren(tiles); root.children = children; return(root); }