FitAll and infinite line


I have small program to draw different, simple shapes. I wanted to implement drawind infinite (or half-infinite) lines (Geom_Line->GeomAdaptor_Curve) as helpers and everything works OK except FitAll() method from V3d_Viewer class. When i call it, it fits my infinite line on screen, but with huge coordinates and rest of objects becomes very small and in the final efect invible. Is it possible to mark object to remove from calculations in the FitAll method? Or how such infinite line should be handled to have proper calculations?

Regards, Robert

Peter Zbinden's picture

Hi Robert
You can use the Infinite() method on TopoDS_Shape. If the shape (e.g. Edge) is set Infinite(true) it will be excluded from FitAll calculation.
Hope this helps.