Skip to content

Commit

Permalink
fixes #3262: normal vector returned by Face.normalAt(u,v) is not alwa…
Browse files Browse the repository at this point in the history
…ys a unit vector
  • Loading branch information
wwmayer committed Dec 9, 2017
1 parent 651d2fd commit 6a785f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Part/App/TopoShapeFacePyImp.cpp
Expand Up @@ -424,6 +424,7 @@ PyObject* TopoShapeFacePy::normalAt(PyObject *args)
gp_Pnt pnt; gp_Vec vec;
// handles the orientation state of the shape
BRepGProp_Face(f).Normal(u,v,pnt,vec);
vec.Normalize();
return new Base::VectorPy(new Base::Vector3d(vec.X(),vec.Y(),vec.Z()));
}
else {
Expand Down

0 comments on commit 6a785f9

Please sign in to comment.