OSE Piping Workbench Ports
Version vom 26. November 2018, 20:19 Uhr von Ruslan (Diskussion | Beiträge)
The OSE Piping Workbench creates fittings. It uses ports to describe the ends of the fittings. The Ports helps to fit the fittings together correctly.
Every port is described by:
- Its position
- A normal vector which points out of the fitting and it is perpendicular to the port plane.
- A 0 reference angle vector it shows where is the degree 0°. must lie in the port plane.
Instead of using three separate vectors, we represent the port by its position and its orientation . The position is a FreeCAD Vector . The orientation is a FreeCAD rotation matrix. When we apply matrix on vectors , , , it creates vectors , , such that
- points in the same direction as the port's normal, .
- shows in the same direction as the angular reference, .
For example in a tee fitting, the matrix is a rotation along y-axis by , and then a rotation along z axis by . See FreeCAD Rotation for more details about rotation.