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

Method createArc3P

src/Edge.cc:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104int 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
117int Edge::createCircle(const gp_Pnt& center, const gp_Dir& normal, double radius)
118{

Callers 1

NAN_METHODFunction · 0.80

Calls 2

setShapeMethod · 0.95
pointMethod · 0.80

Tested by

no test coverage detected