+ fix various warnings
This commit is contained in:
@@ -1281,7 +1281,7 @@ PyObject* BSplineSurfacePy::approximate(PyObject *args)
|
||||
Standard_Failure::Raise("not enough points given");
|
||||
}
|
||||
|
||||
GeomAbs_Shape c;
|
||||
GeomAbs_Shape c = GeomAbs_CN;
|
||||
switch(continuity){
|
||||
case 0:
|
||||
c = GeomAbs_C0;
|
||||
|
||||
@@ -215,7 +215,7 @@ bool Part2DObject::seekTrimPoints(const std::vector<Geometry *> &geomlist,
|
||||
gp_Pln plane(gp_Pnt(0,0,0),gp_Dir(0,0,1));
|
||||
|
||||
Standard_Boolean periodic=Standard_False;
|
||||
double period;
|
||||
double period = 0;
|
||||
Handle_Geom2d_Curve primaryCurve;
|
||||
Handle_Geom_Geometry geom = (geomlist[GeoId])->handle();
|
||||
Handle_Geom_Curve curve3d = Handle_Geom_Curve::DownCast(geom);
|
||||
|
||||
@@ -1748,18 +1748,21 @@ PyObject* TopoShapePy::distToShape(PyObject *args)
|
||||
pSuppType1 = PyString_FromString("Vertex");
|
||||
pSupportIndex1 = _getSupportIndex("Vertex",ts1,suppS1);
|
||||
pParm1 = Py_None;
|
||||
pParm2 = Py_None;
|
||||
break;
|
||||
case BRepExtrema_IsOnEdge:
|
||||
pSuppType1 = PyString_FromString("Edge");
|
||||
pSupportIndex1 = _getSupportIndex("Edge",ts1,suppS1);
|
||||
extss.ParOnEdgeS1(i,t1);
|
||||
pParm1 = PyFloat_FromDouble(t1);
|
||||
pParm2 = Py_None;
|
||||
break;
|
||||
case BRepExtrema_IsInFace:
|
||||
pSuppType1 = PyString_FromString("Face");
|
||||
pSupportIndex1 = _getSupportIndex("Face",ts1,suppS1);
|
||||
extss.ParOnFaceS1(i,u1,v1);
|
||||
pParm1 = PyTuple_New(2);
|
||||
pParm2 = Py_None;
|
||||
PyTuple_SetItem(pParm1,0,PyFloat_FromDouble(u1));
|
||||
PyTuple_SetItem(pParm1,1,PyFloat_FromDouble(v1));
|
||||
break;
|
||||
@@ -1768,6 +1771,7 @@ PyObject* TopoShapePy::distToShape(PyObject *args)
|
||||
pSuppType1 = PyString_FromString("Unknown");
|
||||
pSupportIndex1 = PyInt_FromLong(-1);
|
||||
pParm1 = Py_None;
|
||||
pParm2 = Py_None;
|
||||
}
|
||||
|
||||
P2 = extss.PointOnShape2(i);
|
||||
|
||||
Reference in New Issue
Block a user