| 115 | } |
| 116 | |
| 117 | int Edge::createCircle(const gp_Pnt& center, const gp_Dir& normal, double radius) |
| 118 | { |
| 119 | try { |
| 120 | gp_Pnt aP1 = center; |
| 121 | gp_Dir aD1 = normal; |
| 122 | |
| 123 | if (radius <= Precision::Confusion()) { |
| 124 | StdFail_NotDone::Raise("radius to small"); |
| 125 | } |
| 126 | |
| 127 | gce_MakeCirc circle(aP1, aD1, radius); |
| 128 | this->setShape(BRepBuilderAPI_MakeEdge(circle)); |
| 129 | |
| 130 | } |
| 131 | CATCH_AND_RETHROW_NO_RETURN("Failed to create circle"); |
| 132 | return 1; |
| 133 | } |
| 134 | |
| 135 | template <class T> T* my_unwrap(v8::MaybeLocal<v8::Value> value) { |
| 136 |
no test coverage detected