All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent ef997f2259
commit 9fe130cd73
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -105,14 +105,16 @@ Py::Object MeshPointPy::getNormal() const
{
if (!getMeshPointPtr()->isBound()) {
throw Py::RuntimeError(
"This object is not bound to a mesh, so no topological operation is possible!");
"This object is not bound to a mesh, so no topological operation is possible!"
);
}
if (getMeshPointPtr()->Mesh->countPoints() <= getMeshPointPtr()->Index) {
throw Py::IndexError("Index out of range");
}
Base::Vector3d* v =
new Base::Vector3d(getMeshPointPtr()->Mesh->getPointNormal(getMeshPointPtr()->Index));
Base::Vector3d* v = new Base::Vector3d(
getMeshPointPtr()->Mesh->getPointNormal(getMeshPointPtr()->Index)
);
Base::VectorPy* normal = new Base::VectorPy(v);
normal->setConst();
return Py::Object(normal, true);