| 102 | } |
| 103 | |
| 104 | int Edge::createArc3P(Vertex *start, Vertex *end, const gp_Pnt& aPoint) |
| 105 | { |
| 106 | try { |
| 107 | gp_Pnt aP1 = start->point(); |
| 108 | gp_Pnt aP2 = aPoint; |
| 109 | gp_Pnt aP3 = end->point(); |
| 110 | GC_MakeArcOfCircle arc(aP1, aP2, aP3); |
| 111 | this->setShape(BRepBuilderAPI_MakeEdge(arc.Value(), start->vertex(), end->vertex())); |
| 112 | } |
| 113 | CATCH_AND_RETHROW_NO_RETURN("Failed to create arc"); |
| 114 | return 1; |
| 115 | } |
| 116 | |
| 117 | int Edge::createCircle(const gp_Pnt& center, const gp_Dir& normal, double radius) |
| 118 | { |
no test coverage detected