diff --git a/OSCADSharp/OSCADSharp/Solids/Compound/Box.cs b/OSCADSharp/OSCADSharp/Solids/Compound/Box.cs
index f4047d1..435c779 100644
--- a/OSCADSharp/OSCADSharp/Solids/Compound/Box.cs
+++ b/OSCADSharp/OSCADSharp/Solids/Compound/Box.cs
@@ -8,7 +8,7 @@ using OSCADSharp.Spatial;
namespace OSCADSharp.Solids.Compound
{
///
- /// Represents a four-sided container, by default it has a solid bottom and an open top.
+ /// A four-sided container, by default it has a solid bottom and an open top.
///
public class Box : OSCADObject
{
@@ -42,6 +42,23 @@ namespace OSCADSharp.Solids.Compound
#endregion
#region Constructors
+ ///
+ /// A new Box object with custom configuration specified
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Indicates whether the cube should be centered on the origin
+ public Box(double length = 1, double width = 1, double height = 1, double wallThickness = .1, bool center = false)
+ {
+ this.Size.X = length;
+ this.Size.Y = width;
+ this.Size.Z = height;
+ this.WallThickness = wallThickness;
+ this.Center = center;
+ }
+
///
/// Creates a box with the default initialization values
///
diff --git a/OSCADSharp/OSCADSharp/Solids/Compound/Tube.cs b/OSCADSharp/OSCADSharp/Solids/Compound/Tube.cs
index 90b8c9c..b630669 100644
--- a/OSCADSharp/OSCADSharp/Solids/Compound/Tube.cs
+++ b/OSCADSharp/OSCADSharp/Solids/Compound/Tube.cs
@@ -8,7 +8,7 @@ using OSCADSharp.Spatial;
namespace OSCADSharp.Solids.Compound
{
///
- /// Represents a cylindrical container, by default it has a solid bottom and an open top.
+ /// A cylindrical container, by default it has a solid bottom and an open top.
///
public class Tube : OSCADObject
{
@@ -25,12 +25,12 @@ namespace OSCADSharp.Solids.Compound
public double WallThickness { get; set; } = .1;
///
- /// Height of the cylinder or cone
+ /// Height of the tube
///
public double Height { get; set; } = 1;
///
- /// Radius of cylinder. r1 = r2 = r.
+ /// Radius of tube. r1 = r2 = r.
///
public double Radius
{
@@ -56,7 +56,7 @@ namespace OSCADSharp.Solids.Compound
public double Radius2 { get; set; } = 1;
///
- /// Diameter of cylinder. r1 = r2 = d /2.
+ /// Diameter of tube. r1 = r2 = d /2.
///
public double Diameter
{
@@ -101,6 +101,25 @@ namespace OSCADSharp.Solids.Compound
#endregion
#region Constructors
+ ///
+ /// Creates a tube with the specified dimensions / configuration
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public Tube(double diameter, double height, double wallThickness = .1, bool bottom = false, bool top = false, bool center = false)
+ {
+ this.Diameter = diameter;
+ this.Height = height;
+ this.WallThickness = wallThickness;
+ this.Bottom = bottom;
+ this.Top = top;
+ this.Center = center;
+ }
+
///
/// Creates a tube with the default initialization values
///