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