X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_Shape.cxx;h=c3eab1885437a9dc7c17cd4f52d2c94a89845103;hb=b5163d2f8d19e9120fc9c019f3e1fd41100c8b11;hpb=29263c947e73c9c2dc411f712cad2ffc24ffc375 diff --git a/src/AIS/AIS_Shape.cxx b/src/AIS/AIS_Shape.cxx index 44b7a5a351..c3eab18854 100644 --- a/src/AIS/AIS_Shape.cxx +++ b/src/AIS/AIS_Shape.cxx @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -224,7 +223,7 @@ void AIS_Shape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentat //function : computeHlrPresentation //purpose : //======================================================================= -void AIS_Shape::computeHlrPresentation (const Handle(Prs3d_Projector)& theProjector, +void AIS_Shape::computeHlrPresentation (const Handle(Graphic3d_Camera)& theProjector, const Handle(Prs3d_Presentation)& thePrs, const TopoDS_Shape& theShape, const Handle(Prs3d_Drawer)& theDrawer) @@ -282,12 +281,18 @@ void AIS_Shape::computeHlrPresentation (const Handle(Prs3d_Projector)& theProjec switch (theDrawer->TypeOfHLR()) { case Prs3d_TOH_Algo: - StdPrs_HLRShape::Add (thePrs, theShape, theDrawer, theProjector); + { + StdPrs_HLRShape aBuilder; + aBuilder.ComputeHLR (thePrs, theShape, theDrawer, theProjector); break; + } case Prs3d_TOH_PolyAlgo: - default: - StdPrs_HLRPolyShape::Add (thePrs, theShape, theDrawer, theProjector); + case Prs3d_TOH_NotSet: + { + StdPrs_HLRPolyShape aBuilder; + aBuilder.ComputeHLR (thePrs, theShape, theDrawer, theProjector); break; + } } } catch (Standard_Failure const& anException)