+ aVertex.reset(new GeomAPI_Vertex(aPnt->x(), aPnt->y(), aPnt->z()));
+
+ return aVertex;
+}
+
+//==================================================================================================
+std::shared_ptr<GeomAPI_Vertex> GeomAlgoAPI_PointBuilder::vertexByIntersection(
+ const std::shared_ptr<GeomAPI_Edge> theEdge,
+ const std::shared_ptr<GeomAPI_Face> theFace)
+{
+ std::shared_ptr<GeomAPI_Vertex> aVertex;
+
+ if(!theEdge.get() || !theFace.get() || !theEdge->isLine() || !theFace->isPlanar()) {
+ return aVertex;
+ }
+
+ std::shared_ptr<GeomAPI_Lin> aLin = theEdge->line();
+ std::shared_ptr<GeomAPI_Pln> aPln = theFace->getPlane();
+
+ std::shared_ptr<GeomAPI_Pnt> aPnt = aPln->intersect(aLin);
+
+ if(!aPnt.get()) {
+ return aVertex;
+ }
+
+ aVertex.reset(new GeomAPI_Vertex(aPnt->x(), aPnt->y(), aPnt->z()));
+
+ return aVertex;