|
FhSim
3.1.0
Marine systems simulation
|
#include <RopeLook.h>
Public Types | |
| enum | Construction { Plain = 0 , Twisted3 = 1 , Braided8 = 2 , Braided12 = 3 , Braided16 = 4 , Wire6x19 = 5 , Wire6x36 = 6 } |
| Construction codes of FhSim/Rope. | |
Static Public Member Functions | |
| static RopeLook | Resolve (const std::string &construction, const std::string &fibre, const std::string &colour, double layLength, const std::string &materialName, double diameter, std::string &error) |
Public Attributes | |
| int | construction = Plain |
| double | layLength = 0.1 |
| [m] | |
| double | roughness = 0.5 |
| double | metalness = 0.0 |
| double | colour [3] = {1.0, 1.0, 1.0} |
| sRGB | |
How a rope or wire rope looks with the core material FhSim/Rope (fhsim core ADR 0023; plan doc/plans/rope-rendering.md): its construction, lay length, fibre surface and colour. No Ogre types.
|
static |
Resolve the parameters.
| [in] | construction | "Twisted3", "Braided8", "Braided12", "Braided16", "Wire6x19", "Wire6x36", "Plain" or "" (from the classic material: wire materials give Wire6x19, rope materials Twisted3, others Plain). |
| [in] | fibre | "Steel", "Galvanized", "Rusty", "Nylon", "Polyester", "PE", "PP", "Dyneema" or "" (Steel for wire ropes, Nylon otherwise). |
| [in] | colour | "r, g, b" in [0, 1], sRGB, or "" (the fibre's colour). |
| [in] | layLength | [m]; 0: from the construction (3.5 D for fibre ropes, 6.5 D for wire ropes). |
| [in] | materialName | The classic material, for the defaults. |
| [in] | diameter | [m]. |
| [out] | error | Why the parameters were refused; empty when accepted. |