Part: Parabola Extension to support getting occ focus

This commit is contained in:
Abdullah Tahiri
2016-12-17 22:49:10 +01:00
parent e360dc15ef
commit 8c83f4142b
2 changed files with 11 additions and 0 deletions

View File

@@ -2322,6 +2322,15 @@ void GeomArcOfParabola::setFocal(double length)
}
}
Base::Vector3d GeomArcOfParabola::getFocus(void) const
{
Handle_Geom_Parabola p = Handle_Geom_Parabola::DownCast(myCurve->BasisCurve());
gp_Pnt gp = p->Focus();
return Base::Vector3d(gp.X(),gp.Y(),gp.Z());
}
void GeomArcOfParabola::getRange(double& u, double& v, bool /*emulateCCWXY*/) const
{
#if 0