/// <summary> /// Create a grid of a encapsulating box, a width/height (pz) and a pHeight, and a printDel (a print delegate which can log the output of the class); /// </summary> /// <param name="boundingBox">The boundingbox</param> /// <param name="voxelDimensions">A point3d with the length of a pixel in x, y and z dimensions</param> public VoxelGrid3D(Box boundingBox, Point3d voxelDimensions) { Initialize(boundingBox, voxelDimensions); var bta = new BitArray(SizeUVW.SelfProduct(), false); bta.SetAll(false); Grid = bta; }
/// <summary> /// Create a grid of a encapsulating box, a width/height (pz) and a pHeight, and a printDel (a print delegate which can log the output of the class); /// </summary> /// <param name="boundingBox">The boundingbox</param> /// <param name="pixelDimensions">A point3d with the length of a pixel in x, y and z dimensions</param> public ScalarGrid3D(Box boundingBox, Point3d pixelDimensions) : base(boundingBox, pixelDimensions) { Grid = new float[SizeUVW.SelfProduct()]; }