#include <TopoDS.hxx>
#include <TopoDS_Vertex.hxx>
#include <BRep_Tool.hxx>
+#include <BRep_Builder.hxx>
#include <gp_Pnt.hxx>
#include <Precision.hxx>
}
}
+GeomAPI_Vertex::GeomAPI_Vertex(double theX, double theY, double theZ)
+{
+ TopoDS_Vertex aVertex;
+ BRep_Builder aBuilder;
+ aBuilder.MakeVertex(aVertex, gp_Pnt(theX, theY, theZ), Precision::Confusion());
+ setImpl(new TopoDS_Shape(aVertex));
+}
+
std::shared_ptr<GeomAPI_Pnt> GeomAPI_Vertex::point()
{
const TopoDS_Shape& aShape = const_cast<GeomAPI_Vertex*>(this)->impl<TopoDS_Shape>();