+ Fix curve and surface property methods of topo edge and face

This commit is contained in:
wmayer
2013-11-05 12:16:57 +01:00
parent a81604b9be
commit fdff852950
3 changed files with 32 additions and 65 deletions

View File

@@ -281,7 +281,7 @@ PyObject* TopoShapeFacePy::normalAt(PyObject *args)
const TopoDS_Face& f = TopoDS::Face(getTopoShapePtr()->_Shape);
BRepAdaptor_Surface adapt(f);
BRepLProp_SLProps prop(adapt,u,v,1,Precision::Confusion());
BRepLProp_SLProps prop(adapt,u,v,2,Precision::Confusion());
if (prop.IsNormalDefined()) {
gp_Pnt pnt; gp_Vec vec;
// handles the orientation state of the shape
@@ -305,7 +305,7 @@ PyObject* TopoShapeFacePy::tangentAt(PyObject *args)
const TopoDS_Face& f = TopoDS::Face(getTopoShapePtr()->_Shape);
BRepAdaptor_Surface adapt(f);
BRepLProp_SLProps prop(adapt,u,v,1,Precision::Confusion());
BRepLProp_SLProps prop(adapt,u,v,2,Precision::Confusion());
if (prop.IsTangentUDefined()) {
prop.TangentU(dir);
tuple.setItem(0, Py::Vector(Base::Vector3d(dir.X(),dir.Y(),dir.Z())));