MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / createCircle

Method createCircle

src/Edge.cc:117–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117int 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
135template <class T> T* my_unwrap(v8::MaybeLocal<v8::Value> value) {
136

Callers 2

test1.jsFile · 0.80
NAN_METHODFunction · 0.80

Calls 1

setShapeMethod · 0.95

Tested by

no test coverage detected