Mesh: Apply clang-format

This commit is contained in:
wmayer
2023-09-22 19:59:39 +02:00
committed by wwmayer
parent 70ba930230
commit 23db389a76
116 changed files with 15683 additions and 12447 deletions

View File

@@ -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);
}