+
+bool CurveCreator_Widget::isIntersectVertexToPoint( const TopoDS_Vertex& theVertex,
+ const CurveCreator_ICurve::SectionToPoint& theSToPoint )
+{
+ bool isIntersect = false;
+
+ if ( theVertex.IsNull() )
+ return isIntersect;
+
+ gp_Pnt aPnt = BRep_Tool::Pnt( theVertex );
+
+ CurveCreator_ICurve::SectionToPointList aPoints;
+ findSectionsToPoints( aPnt.X(), aPnt.Y(), aPoints );
+
+ CurveCreator_ICurve::SectionToPointList::const_iterator anIt = aPoints.begin(),
+ aLast = aPoints.end();
+ CurveCreator_ICurve::SectionToPoint aPoint;
+ for ( ; anIt != aLast && !isIntersect; anIt++ ) {
+ aPoint = *anIt;
+ isIntersect = aPoint.first == theSToPoint.first && aPoint.second == theSToPoint.second;
+ }
+
+ return isIntersect;
+}
+
+