Port to occ7.2:

+ replace Quantity_Parameter with Standard_Real is it's marked deprecated
+ include NCollection_Vector as it's needed by STEPCAFControl_Writer
+ remove GC_MakeConicalSurface used for cone and distance as this was never implemented in any earlier occ version and has been removed now
This commit is contained in:
wmayer
2017-09-01 12:01:50 +02:00
parent aab07674d8
commit 473ea474ce
4 changed files with 7 additions and 24 deletions

View File

@@ -123,26 +123,6 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds)
}
PyObject *pCone;
double dist;
static char* keywords_cd[] = {"Cone","Distance",NULL};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!d", keywords_cd,
&(ConePy::Type), &pCone, &dist)) {
ConePy* pcCone = static_cast<ConePy*>(pCone);
Handle(Geom_ConicalSurface) pcone = Handle(Geom_ConicalSurface)::DownCast
(pcCone->getGeometryPtr()->handle());
GC_MakeConicalSurface mc(pcone->Cone(), dist);
if (!mc.IsDone()) {
PyErr_SetString(PartExceptionOCCError, gce_ErrorStatusText(mc.Status()));
return -1;
}
Handle(Geom_ConicalSurface) cone = Handle(Geom_ConicalSurface)::DownCast
(getGeometryPtr()->handle());
cone->SetCone(mc.Value()->Cone());
return 0;
}
static char* keywords_c[] = {"Cone",NULL};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!d", keywords_c,