All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
ef997f2259
commit
9fe130cd73
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user