32void Foam::CV2D::insertSurfaceNearPointPairs()
34 Info<<
"insertSurfaceNearPointPairs: ";
36 label nNearPoints = 0;
40 Triangulation::Finite_edges_iterator eit = finite_edges_begin();
41 eit != finite_edges_end();
45 Vertex_handle v0h = eit->first->vertex(cw(eit->second));
46 Vertex_handle v1h = eit->first->vertex(ccw(eit->second));
48 if (v0h->ppMaster() && v1h->ppMaster())
61 toPoint2D(circumcenter(eit->first->neighbor(eit->second)))
65 scalar edgeLen2 =
magSqr(e0 - e1);
70 label hitSurface = -1;
83 qSurf_.
geometry()[hitSurface].getNormal
85 List<pointIndexHit>(1, pHit),
100 eit = Finite_edges_iterator
102 finite_edges_end().base(),
112 Info<< nNearPoints <<
" point-pairs inserted" <<
endl;
const cv2DControls & meshControls() const
const point2D & point2DFromPoint
Foam::point toPoint3D(const point2D &) const
const point2D & toPoint2D(const Foam::point &) const
PointIndexHit< point > pointIndexHit
A PointIndexHit for 3D points.
messageStream Info
Information stream (stdout output on master, null elsewhere)
vector2D point2D
Point2D is a vector.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)