16 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
19 Point(
double _x,
double _y,
double _z )
48 bool operator ==(
const Point &rhs)
50 return (this->x == rhs.x) && (this->y == rhs.y) && (this->z == rhs.z);
53 static bool CompareDraught(
const struct Point &lhs,
const struct Point &rhs )
79 std::vector<Eigen::Vector3d> Vertices;
80 Eigen::Vector3d Normal;
81 Eigen::Vector3d Center;
82 Eigen::Vector3d BodyPressure;
83 Eigen::Vector3d NEDPressure;
91 std::vector<Eigen::Vector3d> Vertices;
92 std::vector<Eigen::Vector3d> Normals;
93 std::vector<Eigen::Vector3d> Color;
94 std::vector<int> VertexStation;
95 std::vector< HullFace > Faces;
101 void SetPosition(
double n,
double e,
double d)
108 void SetPosition(
const Eigen::Vector3d &vec )
110 SetPosition(vec(0),vec(1),vec(2));
113 void SetRotation(
const Eigen::Quaterniond &q)
118 void SetRotation(
double w,
double x,
double y,
double z)
120 q = Eigen::Quaterniond(w,x,y,z);
123 virtual void ReadHullGeometry( std::string& fname )=0;
124 virtual void ReadWaterLine( std::string& fname )=0;
126 void CalculateHullSectionData();
128 void AddStation(
const std::vector<double> & x,
const std::vector<double> & y,
const std::vector<double> & z );
129 void GetStation(
int StationNr, std::vector<Eigen::Vector3d> &Out);
130 double GetStationArea(
int SectionNr );
131 double GetStationArea(
int SectionNr,
double T);
132 double GetStationDraught(
int SectionNr,
double T);
133 double GetStationMaxBredth(
int SectionNr,
double T);
134 double GetStationBredth(
int SectionNr,
double T);
135 unsigned int GetNumberOfStations();
136 int GetStationNr(
double DistanceFromZeroStation );
137 double GetStationPosition(
int SectionNr );
138 void GetStationLewisData(
int SectionNr,
double B,
double T,
double &LewisA1,
double &LewisA3,
double &LewisScaleFactor );
139 int GetStationSkegPoint(
int SectionNr);
141 double GetStationInstentaneousDraught(
int SecitonNr );
142 void GetVertexGlobalPosition(
int vertex, Eigen::Vector3d &vertexpos );
146 void AddToHull( std::vector<Eigen::Vector3d> &side1, std::vector<Eigen::Vector3d> side2 ,
bool mirror =
true);
148 void SetInterpolationParameters(
double HullTop,
double HullBottom,
double VerticalStep,
double HorizontalStep);
150 virtual double GetParam(std::string p );
152 struct MainDimensions Main;
153 struct HullGeometry Geomtery;
158 Eigen::Quaterniond q;
162 double HullVerticalStep;
163 double HullHorizontalStep;
165 static bool CompareSections(
struct Section
const &lhs,
struct Section
const &rhs );
167 std::vector< struct Section > Sections;
168 std::map<std::string,double> param;
Definition: HullData.h:14
Simple waypoint object.
Definition: CableAttach.h:16
Definition: HullData.h:78
Definition: HullData.h:90
Definition: HullData.h:61
Definition: HullData.h:18