Folks,Today I would like to come with a question to you.As you probably noticed, in several last posts, I was uncovering multi-threading programming issues. This subject has really caught me and applying it in Open CASCADE-based software reveals huge potential. Talking to my readers, on this blog and outside, I conclude that the issue of parallel programming and performance (regardless of Open CASCADE)...
const Handle & vs Handle
10:02 / BY Roman Lygin
Quick post. The addressed issue may seem quite obvious for professional C++ developers yet it's often overlooked.Case1. When you need to downcast a handle to superclass to one to subclass bets are you are following Open CASCADE conventions:Handle(Geom_Curve) aCurve = ...;...Handle(Geom_Line) aLine = Handle(Geom_Line)::DownCast (aCurve);gp_Ax1 anAx1 = aLine->Position();...Case2. When you have a function returning a const Handle& you likely often write:const Handle(MyClass)& GetMyClassInstance();Handle(MyClass)...