Part: Parabola Extension to support getting occ focus
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -497,6 +497,8 @@ public:
|
||||
double getFocal(void) const;
|
||||
void setFocal(double length);
|
||||
|
||||
Base::Vector3d getFocus(void) const;
|
||||
|
||||
virtual void getRange(double& u, double& v, bool emulateCCWXY) const;
|
||||
virtual void setRange(double u, double v, bool emulateCCWXY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user