+ check for correct OCC version
This commit is contained in:
parent
2fdb1aeeff
commit
007f939731
|
@ -1154,7 +1154,7 @@ Base::Vector3d GeomEllipse::getMajorAxisDir() const
|
||||||
*/
|
*/
|
||||||
void GeomEllipse::setMajorAxisDir(Base::Vector3d newdir)
|
void GeomEllipse::setMajorAxisDir(Base::Vector3d newdir)
|
||||||
{
|
{
|
||||||
#if OCC_VERSION_HEX >= 0x060300
|
#if OCC_VERSION_HEX >= 0x060504
|
||||||
if (newdir.Sqr() < Precision::SquareConfusion())
|
if (newdir.Sqr() < Precision::SquareConfusion())
|
||||||
#else
|
#else
|
||||||
if (newdir.Length() < Precision::Confusion())
|
if (newdir.Length() < Precision::Confusion())
|
||||||
|
@ -1483,7 +1483,7 @@ void GeomArcOfEllipse::setMajorAxisDir(Base::Vector3d newdir)
|
||||||
{
|
{
|
||||||
Handle_Geom_Ellipse c = Handle_Geom_Ellipse::DownCast( myCurve->BasisCurve() );
|
Handle_Geom_Ellipse c = Handle_Geom_Ellipse::DownCast( myCurve->BasisCurve() );
|
||||||
assert(!c.IsNull());
|
assert(!c.IsNull());
|
||||||
#if OCC_VERSION_HEX >= 0x060300
|
#if OCC_VERSION_HEX >= 0x060504
|
||||||
if (newdir.Sqr() < Precision::SquareConfusion())
|
if (newdir.Sqr() < Precision::SquareConfusion())
|
||||||
#else
|
#else
|
||||||
if (newdir.Length() < Precision::Confusion())
|
if (newdir.Length() < Precision::Confusion())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user