TopExp::Vertices(anE, V1, V2, Standard_True);
if (!V1.IsNull() && !V2.IsNull()) {
gp_Vec aV (BRep_Tool::Pnt(V1), BRep_Tool::Pnt(V2));
- gp_Ax2 anAxes (aP, aV);
+ gp_Ax2 anAxes (aP, -aV);
gp_Circ aCirc (anAxes, aCI.GetRadius());
TopoDS_Shape aCircle = BRepBuilderAPI_MakeEdge(aCirc).Edge();
BRepBuilderAPI_MakeWire MW;
Standard_ConstructionError::Raise("Disk creation aborted: coincident points given");
if (gp_Vec(aP1, aP2).IsParallel(gp_Vec(aP1, aP3), Precision::Angular()))
Standard_ConstructionError::Raise("Disk creation aborted: points lay on one line");
- Handle(Geom_Circle) aCirc = GC_MakeCircle(aP1, aP2, aP3).Value();
+ Handle(Geom_Circle) aCirc = GC_MakeCircle(aP3, aP2, aP1).Value();
TopoDS_Shape aCircle = BRepBuilderAPI_MakeEdge(aCirc).Edge();
BRepBuilderAPI_MakeWire MW;
MW.Add(TopoDS::Edge(aCircle));
else if (anOrient == 3)
aV = gp::DY();
- gp_Ax2 anAxes (aP, aV);
+ gp_Ax2 anAxes (aP, -aV);
gp_Circ aCirc (anAxes, aCI.GetRadius());
TopoDS_Shape aCircle = BRepBuilderAPI_MakeEdge(aCirc).Edge();
BRepBuilderAPI_MakeWire MW;