FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
marine_elements::RopeLook Struct Reference

#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
 

Detailed Description

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.

Member Function Documentation

◆ Resolve()

static RopeLook marine_elements::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 
)
static

Resolve the parameters.

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]materialNameThe classic material, for the defaults.
[in]diameter[m].
[out]errorWhy the parameters were refused; empty when accepted.
Returns
The look (the defaults when refused).

The documentation for this struct was generated from the following file: