Mesh: Apply clang-format
This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
#include "MeshPy.h"
|
||||
|
||||
|
||||
namespace Mesh {
|
||||
namespace Mesh
|
||||
{
|
||||
extern PyObject* initModule();
|
||||
}
|
||||
|
||||
@@ -57,12 +58,12 @@ PyMOD_INIT_FUNC(Mesh)
|
||||
// NOTE: To finish the initialization of our own type objects we must
|
||||
// call PyType_Ready, otherwise we run into a segmentation fault, later on.
|
||||
// This function is responsible for adding inherited slots from a type's base class.
|
||||
ParameterGrp::handle handle = App::GetApplication().GetParameterGroupByPath
|
||||
("User parameter:BaseApp/Preferences/Mod/Mesh");
|
||||
ParameterGrp::handle handle = App::GetApplication().GetParameterGroupByPath(
|
||||
"User parameter:BaseApp/Preferences/Mod/Mesh");
|
||||
ParameterGrp::handle asy = handle->GetGroup("Asymptote");
|
||||
MeshCore::MeshOutput::SetAsymptoteSize(asy->GetASCII("Width", "500"),
|
||||
asy->GetASCII("Height"));
|
||||
MeshCore::MeshOutput::SetAsymptoteSize(asy->GetASCII("Width", "500"), asy->GetASCII("Height"));
|
||||
|
||||
// clang-format off
|
||||
// add mesh elements
|
||||
Base::Interpreter().addType(&Mesh::MeshPointPy ::Type,meshModule,"MeshPoint");
|
||||
Base::Interpreter().addType(&Mesh::EdgePy ::Type,meshModule,"Edge");
|
||||
@@ -109,6 +110,7 @@ PyMOD_INIT_FUNC(Mesh)
|
||||
Mesh::Cone ::init();
|
||||
Mesh::Torus ::init();
|
||||
Mesh::Cube ::init();
|
||||
// clang-format on
|
||||
|
||||
PyMOD_Return(meshModule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user