Marine systems simulation
NapaCGALHullData.h
1#ifdef USE_CGAL
2#ifndef NapaCGALHullData_h__
3#define NapaCGALHullData_h__
4
5
6
7#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
8#include <CGAL/Polyhedron_3.h>
9#include <CGAL/Polyhedron_traits_with_normals_3.h>
10
11#include "VeresHullData.h"
12#include "HullData.h"
13namespace Ship{
14 typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
15 typedef CGAL::Polyhedron_traits_with_normals_3<Kernel> Traits;
16 typedef CGAL::Polyhedron_3<Traits> Polyhedron;
17
18
19 class NapaCGALHullData:public HullData
20 {
21 public:
22 NapaCGALHullData(std::string fname, double angle=20, double radius=30, double distance=0.375,double LCG=0, double VCG=0, VeresHullData *ptr=0);
23 void ReadHullGeometry( std::string& fname);
24
25 void EstimateMesh();
26
27 void ReadWaterLine( std::string& fname );
28 void MakeHull( );
29 Polyhedron mesh;
30 public:
31
32 std::vector< std::vector<int> > pointLaterals;
33 std::vector< std::vector<int> > pointSections;
34 std::vector< Point > Points;
35 VeresHullData * ptr;
36 double angle,radius,distance;
37
38
39 };
40}
41
42#endif // NapaCGALHullData_h__
43#endif // USE_CGAL
Simple waypoint object.
Definition: CableAttach.h:16