public Boundary() { this.shape = BoundaryShapes.Cuboid; this.width = 0; this.height = 0; this.depth = 0; this.radius = 0; }
/// <summary> /// Boundary constructor /// </summary> /// <param name="shape">Boundary geometry</param> /// <param name="width">Width of the cuboid</param> /// <param name="height">Height of the cuboid / cylinder</param> /// <param name="depth">Depth of the cuboid</param> /// <param name="radius">Radius of the cylinder / sphere</param> public Boundary(BoundaryShapes shape,float width,float height,float depth,float radius) { this.shape = shape; this.width = width; this.height = height; this.depth = depth; this.radius = radius; }
/// <summary> /// Sets which radio button is selected in the spatial settings tab. /// </summary> /// <param name="shape"></param> public void setBoundaryShape(BoundaryShapes shape) { switch (shape) { case BoundaryShapes.Cuboid: cuboidRadioButton.Checked = true; break; case BoundaryShapes.Cylinder: cylinderRadioButton.Checked = true; break; case BoundaryShapes.Sphere: sphereRadioButton.Checked = true; break; } }