Surface: apply clang format
This commit is contained in:
@@ -43,7 +43,8 @@ namespace Surface
|
||||
class Module: public Py::ExtensionModule<Module>
|
||||
{
|
||||
public:
|
||||
Module() : Py::ExtensionModule<Module>("Surface")
|
||||
Module()
|
||||
: Py::ExtensionModule<Module>("Surface")
|
||||
{
|
||||
initialize("This module is the Surface module.");// register with Python
|
||||
}
|
||||
@@ -51,7 +52,7 @@ public:
|
||||
private:
|
||||
};
|
||||
|
||||
PyObject *initModule()
|
||||
PyObject* initModule()
|
||||
{
|
||||
return Base::Interpreter().addModule(new Module);
|
||||
}
|
||||
@@ -64,16 +65,17 @@ PyMOD_INIT_FUNC(Surface)
|
||||
try {
|
||||
Base::Interpreter().runString("import Part");
|
||||
}
|
||||
catch (const Base::Exception &e) {
|
||||
catch (const Base::Exception& e) {
|
||||
PyErr_SetString(PyExc_ImportError, e.what());
|
||||
PyMOD_Return(nullptr);
|
||||
}
|
||||
|
||||
PyObject *mod = Surface::initModule();
|
||||
PyObject* mod = Surface::initModule();
|
||||
Base::Console().Log("Loading Surface module... done\n");
|
||||
Base::Interpreter().addType(&Surface::BlendPointPy::Type, mod, "BlendPoint");
|
||||
Base::Interpreter().addType(&Surface::BlendCurvePy::Type, mod, "BlendCurve");
|
||||
|
||||
// clang-format off
|
||||
// Add types to module
|
||||
Surface::Filling ::init();
|
||||
Surface::Sewing ::init();
|
||||
@@ -82,6 +84,7 @@ PyMOD_INIT_FUNC(Surface)
|
||||
Surface::Extend ::init();
|
||||
Surface::FeatureBlendCurve ::init();
|
||||
Surface::Sections ::init();
|
||||
// clang-format on
|
||||
|
||||
PyMOD_Return(mod);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user