1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027047: STEP -- eliminate useless polymorhic methods Init()

Methods Init() in STEP data classes are made non-virtual, redundant variants just calling the same method of the base class are removed.
A few places where removed method have been called are corrected.
This commit is contained in:
abv
2015-12-29 07:00:18 +03:00
parent 17470159fd
commit 18f7c9a5c2
398 changed files with 260 additions and 1893 deletions

View File

@@ -21,6 +21,7 @@
// Names and validation props are supported for top-level shapes only
#include <BRep_Builder.hxx>
#include <GeomToStep_MakeCartesianPoint.hxx>
#include <HeaderSection_FileSchema.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Static.hxx>
@@ -2620,8 +2621,8 @@ static void WriteDimValues(const Handle(XSControl_WorkSession) &WS,
Handle(StepGeom_Axis2Placement3d) anOrientation = new StepGeom_Axis2Placement3d();
gp_Dir aDir;
theObject->GetDirection(aDir);
Handle(StepGeom_CartesianPoint) aLoc = new StepGeom_CartesianPoint();
aLoc->Init(new TCollection_HAsciiString());
GeomToStep_MakeCartesianPoint MkPoint(theObject->GetPoints()->Value(1));
Handle(StepGeom_CartesianPoint) aLoc = MkPoint.Value();
Handle(StepGeom_Direction) anAxis = new StepGeom_Direction();
Handle(TColStd_HArray1OfReal) aCoords = new TColStd_HArray1OfReal(1, 3);
aCoords->SetValue(1, aDir.X());