fixes #0003262: normal vector returned by Face.normalAt(u,v) is not always a unit vector
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user