+ 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);
|
||||
|
||||
@@ -333,7 +333,7 @@ void CrossSections::on_sectionsBox_toggled(bool b)
|
||||
else {
|
||||
CrossSections::Plane type = plane();
|
||||
Base::Vector3d c = bbox.CalcCenter();
|
||||
double value;
|
||||
double value = 0;
|
||||
switch (type) {
|
||||
case CrossSections::XY:
|
||||
value = c.z;
|
||||
@@ -362,7 +362,7 @@ void CrossSections::on_checkBothSides_toggled(bool b)
|
||||
void CrossSections::on_countSections_valueChanged(int v)
|
||||
{
|
||||
CrossSections::Plane type = plane();
|
||||
double dist;
|
||||
double dist = 0;
|
||||
switch (type) {
|
||||
case CrossSections::XY:
|
||||
dist = bbox.LengthZ() / v;
|
||||
|
||||
Reference in New Issue
Block a user