public SaveableBoundingBox(BoundingBox theBox) { Center = new SaveableVertex(theBox.Center); CornerVertices = (SaveableVertex[])theBox.CornerVertices.Select((el, idx) => new SaveableVertex(el)); Dimensions = theBox.Dimensions; Directions = theBox.Directions; PointsOnFaces = (List <SaveableVertex>[])theBox.PointsOnFaces.Select((el, idx) => (el.Select((elem, indx) => new SaveableVertex(elem)))); Volume = theBox.Volume; }
public SaveableBoundingBox() { Center = new SaveableVertex(); CornerVertices = new SaveableVertex[0]; Dimensions = new double[0]; Directions = new double[0][]; PointsOnFaces = new List <SaveableVertex> [0]; Volume = 0.0; }