33 void Foam::CV2D::insertSurfaceNearPointPairs()
35 Info<<
"insertSurfaceNearPointPairs: ";
37 label nNearPoints = 0;
41 Triangulation::Finite_edges_iterator eit = finite_edges_begin();
42 eit != finite_edges_end();
46 Vertex_handle v0h = eit->first->vertex(cw(eit->second));
47 Vertex_handle v1h = eit->first->vertex(ccw(eit->second));
49 if (v0h->ppMaster() && v1h->ppMaster())
62 toPoint2D(circumcenter(eit->first->neighbor(eit->second)))
66 scalar edgeLen2 =
magSqr(e0 - e1);
71 label hitSurface = -1;
84 qSurf_.
geometry()[hitSurface].getNormal
86 List<pointIndexHit>(1, pHit),
101 eit = Finite_edges_iterator
103 finite_edges_end().base(),
113 Info<< nNearPoints <<
" point-pairs inserted" <<
endl;
vector2D point2D
Point2D is a vector.
const point2D & toPoint2D(const Foam::point &) const
Ostream & endl(Ostream &os)
Add newline and flush stream.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.
Foam::point toPoint3D(const point2D &) const
const cv2DControls & meshControls() const
const point2D & point2DFromPoint
messageStream Info
Information stream (stdout output on master, null elsewhere)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)