removed deprecaded functions

.

.
This commit is contained in:
mos
2024-02-20 17:25:29 +01:00
committed by Yorik van Havre
parent e1ca8c8cc0
commit a025af2d26
12 changed files with 1 additions and 89 deletions

View File

@@ -654,41 +654,6 @@ Base::Matrix4D TopoShape::getTransform() const
return mtrx;
}
/*!
* \obsolete
*/
void TopoShape::setShapePlacement(const Base::Placement& rclTrf)
{
const Base::Vector3d& pos = rclTrf.getPosition();
Base::Vector3d axis;
double angle;
rclTrf.getRotation().getValue(axis, angle);
gp_Trsf trsf;
trsf.SetRotation(gp_Ax1(gp_Pnt(0.,0.,0.), gp_Dir(axis.x, axis.y, axis.z)), angle);
trsf.SetTranslationPart(gp_Vec(pos.x, pos.y, pos.z));
TopLoc_Location loc(trsf);
_Shape.Location(loc);
}
/*!
* \obsolete
*/
Base::Placement TopoShape::getShapePlacement() const
{
TopLoc_Location loc = _Shape.Location();
gp_Trsf trsf = loc.Transformation();
gp_XYZ pos = trsf.TranslationPart();
gp_XYZ axis;
Standard_Real angle;
trsf.GetRotation(axis, angle);
Base::Rotation rot(Base::Vector3d(axis.X(), axis.Y(), axis.Z()), angle);
Base::Placement placement(Base::Vector3d(pos.X(), pos.Y(), pos.Z()), rot);
return placement;
}
void TopoShape::read(const char *FileName)
{