fixes #0003262: normal vector returned by Face.normalAt(u,v) is not always a unit vector

This commit is contained in:
wmayer
2017-12-09 13:33:30 +01:00
parent 91142be1b2
commit c5847cf918

View File

@@ -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 {