WaveBEM: Unsteady Nonlinear Potential Flow Solver for Ship-Wave Interaction.
occ_arclength_projection.h
Go to the documentation of this file.
1 #ifndef occ_arclength_projection_h
2 #define occ_arclength_projection_h
3 
4 #include <deal.II/base/point.h>
7 
8 #include <TopoDS.hxx>
9 #include <Geom_Curve.hxx>
10 
11 #include <deal.II/base/point.h>
13 
14 
15 #include <stdio.h>
16 #include <stdlib.h>
17 
18 using namespace dealii;
19 
20 namespace OpenCascade
21 {
22 
24  {
25  public:
26 
27  ArclengthProjection(const TopoDS_Shape &sh,
28  double tolerance=1e-7);
29 
30  virtual Point<3> get_new_point_on_line
31  (const Triangulation< 2,3 >::line_iterator &line) const;
32 
33  Point<3> arclength_projection(const Point<3> &p0,
34  const Point<3> &p1,
35  const double distance=.5) const;
36 
37  const TopoDS_Shape sh;
38 
39 
40  private:
41  const double tolerance;
42  };
43 
44 }
45 
46 
47 #endif
We collect in this namespace all utilities which operate on OpenCascade entities which don't need cla...