mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024023: Revamp the OCCT Handle -- downcast (automatic)
Automatic update by command "occt_upgrade . -downcast" C-style cast of Handle to that of derived type (now illegal) is replaced by call to DownCast() Const reference local variables of Handle type initialized by result of DownCast are replaced by normal variables.
This commit is contained in:
@@ -49,16 +49,16 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve))) {
|
||||
const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve)
|
||||
Bspli = Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeBSplineCurve::Convert(Bspli,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(Bspli,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_BSplineCurveWithKnots))) {
|
||||
const Handle(StepGeom_BSplineCurveWithKnots)
|
||||
Bspli = Handle(StepGeom_BSplineCurveWithKnots)::DownCast(SC);
|
||||
return StepToGeom_MakeBSplineCurve::Convert(Bspli,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(Bspli,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_TrimmedCurve))) {
|
||||
const Handle(StepGeom_TrimmedCurve) L = Handle(StepGeom_TrimmedCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeTrimmedCurve::Convert(L,*((Handle(Geom_TrimmedCurve)*)&CC));
|
||||
return StepToGeom_MakeTrimmedCurve::Convert(L,Handle(Geom_TrimmedCurve)::DownCast (CC));
|
||||
}
|
||||
// STEP BezierCurve, UniformCurve and QuasiUniformCurve are transformed into
|
||||
// STEP BSplineCurve before being mapped onto CAS.CADE/SF
|
||||
@@ -82,7 +82,7 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
Knots->SetValue(2, 1.);
|
||||
BSPL->SetKnotMultiplicities(Kmult);
|
||||
BSPL->SetKnots(Knots);
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_UniformCurve))) {
|
||||
const Handle(StepGeom_UniformCurve) UC = Handle(StepGeom_UniformCurve)::DownCast(SC);
|
||||
@@ -105,7 +105,7 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
}
|
||||
BSPL->SetKnotMultiplicities(Kmult);
|
||||
BSPL->SetKnots(Knots);
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformCurve))) {
|
||||
const Handle(StepGeom_QuasiUniformCurve) QUC =
|
||||
@@ -131,7 +131,7 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
Kmult->SetValue(nbK, BSPL->Degree() + 1);
|
||||
BSPL->SetKnotMultiplicities(Kmult);
|
||||
BSPL->SetKnots(Knots);
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_UniformCurveAndRationalBSplineCurve))) {
|
||||
const Handle(StepGeom_UniformCurveAndRationalBSplineCurve) RUC =
|
||||
@@ -153,7 +153,7 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
RBSPL->Init(RUC->Name(), aDegree, RUC->ControlPointsList(), RUC->CurveForm(),
|
||||
RUC->ClosedCurve(), RUC->SelfIntersect(), Kmult, Knots, StepGeom_ktUnspecified,
|
||||
RUC->WeightsData());
|
||||
return StepToGeom_MakeBSplineCurve::Convert(RBSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(RBSPL,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformCurveAndRationalBSplineCurve))) {
|
||||
const Handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve) RQUC =
|
||||
@@ -177,11 +177,11 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
RBSPL->Init(RQUC->Name(), aDegree, RQUC->ControlPointsList(), RQUC->CurveForm(),
|
||||
RQUC->ClosedCurve(), RQUC->SelfIntersect(), Kmult, Knots, StepGeom_ktUnspecified,
|
||||
RQUC->WeightsData());
|
||||
return StepToGeom_MakeBSplineCurve::Convert(RBSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve::Convert(RBSPL,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Polyline))) { //:n6 abv 15 Feb 99
|
||||
const Handle(StepGeom_Polyline) PL = Handle(StepGeom_Polyline)::DownCast (SC);
|
||||
return StepToGeom_MakePolyline::Convert(PL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakePolyline::Convert(PL,Handle(Geom_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -35,20 +35,20 @@ Standard_Boolean StepToGeom_MakeBoundedCurve2d::Convert (const Handle(StepGeom_B
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve))) {
|
||||
const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve)
|
||||
Bspli = Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeBSplineCurve2d::Convert(Bspli,*((Handle(Geom2d_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve2d::Convert(Bspli,Handle(Geom2d_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_BSplineCurveWithKnots))) {
|
||||
const Handle(StepGeom_BSplineCurveWithKnots)
|
||||
Bspli = Handle(StepGeom_BSplineCurveWithKnots)::DownCast(SC);
|
||||
return StepToGeom_MakeBSplineCurve2d::Convert(Bspli,*((Handle(Geom2d_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeBSplineCurve2d::Convert(Bspli,Handle(Geom2d_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_TrimmedCurve))) {
|
||||
const Handle(StepGeom_TrimmedCurve) TC = Handle(StepGeom_TrimmedCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeTrimmedCurve2d::Convert(TC,*((Handle(Geom2d_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakeTrimmedCurve2d::Convert(TC,Handle(Geom2d_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Polyline))) { //:n6 abv 15 Feb 99
|
||||
const Handle(StepGeom_Polyline) PL = Handle(StepGeom_Polyline)::DownCast(SC);
|
||||
return StepToGeom_MakePolyline2d::Convert(PL,*((Handle(Geom2d_BSplineCurve)*)&CC));
|
||||
return StepToGeom_MakePolyline2d::Convert(PL,Handle(Geom2d_BSplineCurve)::DownCast (CC));
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -52,17 +52,17 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface))) {
|
||||
const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) BS =
|
||||
Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BS,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BS,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_BSplineSurfaceWithKnots))) {
|
||||
const Handle(StepGeom_BSplineSurfaceWithKnots) BS
|
||||
= Handle(StepGeom_BSplineSurfaceWithKnots)::DownCast(SS);
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BS,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BS,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_RectangularTrimmedSurface))) {
|
||||
const Handle(StepGeom_RectangularTrimmedSurface) Sur =
|
||||
Handle(StepGeom_RectangularTrimmedSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeRectangularTrimmedSurface::Convert(Sur,*((Handle(Geom_RectangularTrimmedSurface)*)&CS));
|
||||
return StepToGeom_MakeRectangularTrimmedSurface::Convert(Sur,Handle(Geom_RectangularTrimmedSurface)::DownCast (CS));
|
||||
}
|
||||
// STEP BezierSurface, UniformSurface and QuasiUniformSurface are transformed
|
||||
// into STEP BSplineSurface before being mapped onto CAS.CADE/SF
|
||||
@@ -93,7 +93,7 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
BSPL->SetVMultiplicities(VKmult);
|
||||
BSPL->SetUKnots(UKnots);
|
||||
BSPL->SetVKnots(VKnots);
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_UniformSurface))) {
|
||||
const Handle(StepGeom_UniformSurface) US = Handle(StepGeom_UniformSurface)::DownCast(SS);
|
||||
@@ -125,7 +125,7 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
}
|
||||
BSPL->SetVMultiplicities(VKmult);
|
||||
BSPL->SetVKnots(VKnots);
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformSurface))) {
|
||||
const Handle(StepGeom_QuasiUniformSurface) QUS =
|
||||
@@ -162,7 +162,7 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
VKmult->SetValue(nbKV, BSPL->VDegree() + 1);
|
||||
BSPL->SetVMultiplicities(VKmult);
|
||||
BSPL->SetVKnots(VKnots);
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_UniformSurfaceAndRationalBSplineSurface))) {
|
||||
const Handle(StepGeom_UniformSurfaceAndRationalBSplineSurface) RUS =
|
||||
@@ -191,7 +191,7 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
RUS->UClosed(), RUS->VClosed(), RUS->SelfIntersect(),
|
||||
UKmult, VKmult, UKnots, VKnots, StepGeom_ktUnspecified,
|
||||
RUS->WeightsData());
|
||||
return StepToGeom_MakeBSplineSurface::Convert(RBSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(RBSPL,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface))) {
|
||||
const Handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface) RQUS =
|
||||
@@ -223,7 +223,7 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
RQUS->SurfaceForm(), RQUS->UClosed(), RQUS->VClosed(),
|
||||
RQUS->SelfIntersect(), UKmult, VKmult, UKnots, VKnots, StepGeom_ktUnspecified,
|
||||
RQUS->WeightsData());
|
||||
return StepToGeom_MakeBSplineSurface::Convert(RBSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
return StepToGeom_MakeBSplineSurface::Convert(RBSPL,Handle(Geom_BSplineSurface)::DownCast (CS));
|
||||
}
|
||||
/* //:S4136: ass-tol2.stp #9861
|
||||
// UPDATE FMA 15-03-96
|
||||
|
@@ -37,19 +37,19 @@ Standard_Boolean StepToGeom_MakeConic::Convert
|
||||
{
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Circle))) {
|
||||
const Handle(StepGeom_Circle) Cir = Handle(StepGeom_Circle)::DownCast(SC);
|
||||
return StepToGeom_MakeCircle::Convert(Cir,*((Handle(Geom_Circle)*)&CC));
|
||||
return StepToGeom_MakeCircle::Convert(Cir,Handle(Geom_Circle)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Ellipse))) {
|
||||
const Handle(StepGeom_Ellipse) Ell = Handle(StepGeom_Ellipse)::DownCast(SC);
|
||||
return StepToGeom_MakeEllipse::Convert(Ell,*((Handle(Geom_Ellipse)*)&CC));
|
||||
return StepToGeom_MakeEllipse::Convert(Ell,Handle(Geom_Ellipse)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Hyperbola))) {
|
||||
const Handle(StepGeom_Hyperbola) Hyp = Handle(StepGeom_Hyperbola)::DownCast(SC);
|
||||
return StepToGeom_MakeHyperbola::Convert(Hyp,*((Handle(Geom_Hyperbola)*)&CC));
|
||||
return StepToGeom_MakeHyperbola::Convert(Hyp,Handle(Geom_Hyperbola)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Parabola))) {
|
||||
const Handle(StepGeom_Parabola) Par = Handle(StepGeom_Parabola)::DownCast(SC);
|
||||
return StepToGeom_MakeParabola::Convert(Par,*((Handle(Geom_Parabola)*)&CC));
|
||||
return StepToGeom_MakeParabola::Convert(Par,Handle(Geom_Parabola)::DownCast (CC));
|
||||
}
|
||||
// Attention : Other conic shall be implemented !
|
||||
return Standard_False;
|
||||
|
@@ -37,19 +37,19 @@ Standard_Boolean StepToGeom_MakeConic2d::Convert
|
||||
{
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Circle))) {
|
||||
const Handle(StepGeom_Circle) Cir = Handle(StepGeom_Circle)::DownCast(SC);
|
||||
return StepToGeom_MakeCircle2d::Convert(Cir,*((Handle(Geom2d_Circle)*)&CC));
|
||||
return StepToGeom_MakeCircle2d::Convert(Cir,Handle(Geom2d_Circle)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Ellipse))) {
|
||||
const Handle(StepGeom_Ellipse) Ell = Handle(StepGeom_Ellipse)::DownCast(SC);
|
||||
return StepToGeom_MakeEllipse2d::Convert(Ell,*((Handle(Geom2d_Ellipse)*)&CC));
|
||||
return StepToGeom_MakeEllipse2d::Convert(Ell,Handle(Geom2d_Ellipse)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Hyperbola))) {
|
||||
const Handle(StepGeom_Hyperbola) Hyp = Handle(StepGeom_Hyperbola)::DownCast(SC);
|
||||
return StepToGeom_MakeHyperbola2d::Convert(Hyp,*((Handle(Geom2d_Hyperbola)*)&CC));
|
||||
return StepToGeom_MakeHyperbola2d::Convert(Hyp,Handle(Geom2d_Hyperbola)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Parabola))) {
|
||||
const Handle(StepGeom_Parabola) Par = Handle(StepGeom_Parabola)::DownCast(SC);
|
||||
return StepToGeom_MakeParabola2d::Convert(Par,*((Handle(Geom2d_Parabola)*)&CC));
|
||||
return StepToGeom_MakeParabola2d::Convert(Par,Handle(Geom2d_Parabola)::DownCast (CC));
|
||||
}
|
||||
// Attention : Other conic shall be implemented !
|
||||
return Standard_False;
|
||||
|
@@ -53,19 +53,19 @@ Standard_Boolean StepToGeom_MakeCurve::Convert (const Handle(StepGeom_Curve)& SC
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Line))) {
|
||||
const Handle(StepGeom_Line) L = Handle(StepGeom_Line)::DownCast(SC);
|
||||
return StepToGeom_MakeLine::Convert(L,*((Handle(Geom_Line)*)&CC));
|
||||
return StepToGeom_MakeLine::Convert(L,Handle(Geom_Line)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_TrimmedCurve))) {
|
||||
const Handle(StepGeom_TrimmedCurve) TC = Handle(StepGeom_TrimmedCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeTrimmedCurve::Convert(TC,*((Handle(Geom_TrimmedCurve)*)&CC));
|
||||
return StepToGeom_MakeTrimmedCurve::Convert(TC,Handle(Geom_TrimmedCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Conic))) {
|
||||
const Handle(StepGeom_Conic) CO = Handle(StepGeom_Conic)::DownCast(SC);
|
||||
return StepToGeom_MakeConic::Convert(CO,*((Handle(Geom_Conic)*)&CC));
|
||||
return StepToGeom_MakeConic::Convert(CO,Handle(Geom_Conic)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_BoundedCurve))) {
|
||||
const Handle(StepGeom_BoundedCurve) BC = Handle(StepGeom_BoundedCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeBoundedCurve::Convert(BC,*((Handle(Geom_BoundedCurve)*)&CC));
|
||||
return StepToGeom_MakeBoundedCurve::Convert(BC,Handle(Geom_BoundedCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_CurveReplica))) { //:n7 abv 16 Feb 99
|
||||
const Handle(StepGeom_CurveReplica) CR = Handle(StepGeom_CurveReplica)::DownCast(SC);
|
||||
|
@@ -43,15 +43,15 @@ Standard_Boolean StepToGeom_MakeCurve2d::Convert (const Handle(StepGeom_Curve)&
|
||||
{
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Line))) {
|
||||
const Handle(StepGeom_Line) L = Handle(StepGeom_Line)::DownCast(SC);
|
||||
return StepToGeom_MakeLine2d::Convert(L,*((Handle(Geom2d_Line)*)&CC));
|
||||
return StepToGeom_MakeLine2d::Convert(L,Handle(Geom2d_Line)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_Conic))) {
|
||||
const Handle(StepGeom_Conic) L = Handle(StepGeom_Conic)::DownCast(SC);
|
||||
return StepToGeom_MakeConic2d::Convert(L,*((Handle(Geom2d_Conic)*)&CC));
|
||||
return StepToGeom_MakeConic2d::Convert(L,Handle(Geom2d_Conic)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_BoundedCurve))) {
|
||||
const Handle(StepGeom_BoundedCurve) L = Handle(StepGeom_BoundedCurve)::DownCast(SC);
|
||||
return StepToGeom_MakeBoundedCurve2d::Convert(L,*((Handle(Geom2d_BoundedCurve)*)&CC));
|
||||
return StepToGeom_MakeBoundedCurve2d::Convert(L,Handle(Geom2d_BoundedCurve)::DownCast (CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_CurveReplica))) { //:n7 abv 16 Feb 99
|
||||
const Handle(StepGeom_CurveReplica) CR = Handle(StepGeom_CurveReplica)::DownCast(SC);
|
||||
|
@@ -38,23 +38,23 @@ Standard_Boolean StepToGeom_MakeElementarySurface::Convert (const Handle(StepGeo
|
||||
{
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_Plane))) {
|
||||
const Handle(StepGeom_Plane) Sur = Handle(StepGeom_Plane)::DownCast(SS);
|
||||
return StepToGeom_MakePlane::Convert(Sur,*((Handle(Geom_Plane)*)&CS));
|
||||
return StepToGeom_MakePlane::Convert(Sur,Handle(Geom_Plane)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_CylindricalSurface))) {
|
||||
const Handle(StepGeom_CylindricalSurface) Sur = Handle(StepGeom_CylindricalSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeCylindricalSurface::Convert(Sur,*((Handle(Geom_CylindricalSurface)*)&CS));
|
||||
return StepToGeom_MakeCylindricalSurface::Convert(Sur,Handle(Geom_CylindricalSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_ConicalSurface))) {
|
||||
const Handle(StepGeom_ConicalSurface) Sur = Handle(StepGeom_ConicalSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeConicalSurface::Convert(Sur,*((Handle(Geom_ConicalSurface)*)&CS));
|
||||
return StepToGeom_MakeConicalSurface::Convert(Sur,Handle(Geom_ConicalSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_SphericalSurface))) {
|
||||
const Handle(StepGeom_SphericalSurface) Sur = Handle(StepGeom_SphericalSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeSphericalSurface::Convert(Sur,*((Handle(Geom_SphericalSurface)*)&CS));
|
||||
return StepToGeom_MakeSphericalSurface::Convert(Sur,Handle(Geom_SphericalSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_ToroidalSurface))) {
|
||||
const Handle(StepGeom_ToroidalSurface) Sur = Handle(StepGeom_ToroidalSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeToroidalSurface::Convert(Sur,*((Handle(Geom_ToroidalSurface)*)&CS));
|
||||
return StepToGeom_MakeToroidalSurface::Convert(Sur,Handle(Geom_ToroidalSurface)::DownCast (CS));
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -63,18 +63,18 @@ Standard_Boolean StepToGeom_MakeSurface::Convert (const Handle(StepGeom_Surface)
|
||||
OCC_CATCH_SIGNALS
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_BoundedSurface))) {
|
||||
const Handle(StepGeom_BoundedSurface) S1 = Handle(StepGeom_BoundedSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeBoundedSurface::Convert(S1,*((Handle(Geom_BoundedSurface)*)&CS));
|
||||
return StepToGeom_MakeBoundedSurface::Convert(S1,Handle(Geom_BoundedSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_ElementarySurface))) {
|
||||
const Handle(StepGeom_ElementarySurface) S1 = Handle(StepGeom_ElementarySurface)::DownCast(SS);
|
||||
if(S1->Position().IsNull())
|
||||
return Standard_False;
|
||||
|
||||
return StepToGeom_MakeElementarySurface::Convert(S1,*((Handle(Geom_ElementarySurface)*)&CS));
|
||||
return StepToGeom_MakeElementarySurface::Convert(S1,Handle(Geom_ElementarySurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_SweptSurface))) {
|
||||
const Handle(StepGeom_SweptSurface) S1 = Handle(StepGeom_SweptSurface)::DownCast(SS);
|
||||
return StepToGeom_MakeSweptSurface::Convert(S1,*((Handle(Geom_SweptSurface)*)&CS));
|
||||
return StepToGeom_MakeSweptSurface::Convert(S1,Handle(Geom_SweptSurface)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_OffsetSurface))) { //:d4 abv 12 Mar 98
|
||||
const Handle(StepGeom_OffsetSurface) OS = Handle(StepGeom_OffsetSurface)::DownCast(SS);
|
||||
|
@@ -33,11 +33,11 @@ Standard_Boolean StepToGeom_MakeSweptSurface::Convert (const Handle(StepGeom_Swe
|
||||
{
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_SurfaceOfLinearExtrusion))) {
|
||||
const Handle(StepGeom_SurfaceOfLinearExtrusion) Sur = Handle(StepGeom_SurfaceOfLinearExtrusion)::DownCast(SS);
|
||||
return StepToGeom_MakeSurfaceOfLinearExtrusion::Convert(Sur,*((Handle(Geom_SurfaceOfLinearExtrusion)*)&CS));
|
||||
return StepToGeom_MakeSurfaceOfLinearExtrusion::Convert(Sur,Handle(Geom_SurfaceOfLinearExtrusion)::DownCast (CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_SurfaceOfRevolution))) {
|
||||
const Handle(StepGeom_SurfaceOfRevolution) Sur = Handle(StepGeom_SurfaceOfRevolution)::DownCast(SS);
|
||||
return StepToGeom_MakeSurfaceOfRevolution::Convert(Sur,*((Handle(Geom_SurfaceOfRevolution)*)&CS));
|
||||
return StepToGeom_MakeSurfaceOfRevolution::Convert(Sur,Handle(Geom_SurfaceOfRevolution)::DownCast (CS));
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user