Each of these functions take just enough arguments to fully define all dimensions of the object, the orientation of the object, and the location of the object. There is also an alternative function for each that also takes a vector of layers that the objects needs to be subtracted from as an argument. Below, the pictures show what point the origin defines on each element. The object is then rotated at the origin point given, according to an angle vector. In most cases, the angle vector will be three-dimensional. The first element in the angle vector defines a rotation along the z-axis, the second defines a rotation on the y-axis, and the last (if needed) defines a rotation on the x-axis. In the case of couplings and pipes, only a two-dimensional angle vector is needed, so the first element defines a rotation along the z-axis, and the second defines a rotation along the y-axis.
The below pictures also show how other dimensions of the element are calculated based on user inputs. In all cases:
where ND is the nominal diameter (industry standard) of the pipe and EN is the pipe specification, both given by the user. Origin points are shown as a pink dot, and all default orientations are given in top view.
This function only requires a 2-dimensional angle vector.
The channel has a uniform thickness. The x-dimension may be given as either positive or negative. The y-coordinate must define the inner bottom of the channel, and the z-coordinate must define the elevation of the inner corner (excluding the thickness of the channel floor). As a result, the y- and z-dimensions must be given as positive.
This function only needs a 2-dimensional angle vector.
The origin will define the right side of the pipe. A positive length must be used for the function to work. This function only needs a 2-dimensional angle vector.
The right side of the cap is the closed part. The origin is on the inner side of the cap.
The origin of the tank must be the bottom right corner, just above the floor thickness. The dimensions must be specified in positive numbers only. The tank has uniform thickness.
Enter the attachments tab to find the Word document.