MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / removeSmallEdges

Method removeSmallEdges

src/Mod/Part/App/AppPartPy.cpp:381–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379 return Py::None();
380 }
381 Py::Object removeSmallEdges(const Py::Tuple& args)
382 {
383 PyObject* shape;
384 double tol;
385 if (!PyArg_ParseTuple(args.ptr(), "O!d", &TopoShapePy::Type, &shape, &tol)) {
386 throw Py::Exception();
387 }
388
389 TopoDS_Shape sh = static_cast<TopoShapePy*>(shape)->getTopoShapePtr()->getShape();
390 Handle(ShapeBuild_ReShape) reshape = new ShapeBuild_ReShape();
391 TopoShape res = ShapeFix::RemoveSmallEdges(sh, tol, reshape);
392 return Py::asObject(res.getPyObject());
393 }
394 Py::Object fixVertexPosition(const Py::Tuple& args)
395 {
396 PyObject* shape;

Callers

nothing calls this directly

Calls 4

ExceptionClass · 0.50
ptrMethod · 0.45
getShapeMethod · 0.45
getPyObjectMethod · 0.45

Tested by

no test coverage detected