
Fri, 04/19/2024 - 19:08
Forums:
I have a test program where I generate a cube and activate the edge selection with myAISContext->Activate(AIS_Shape::SelectionMode(TopAbs_EDGE));
In 7.5 it works fine, in 7.8 I get a crash in StdPrs_WFShape::Add at line 127
const Handle(Prs3d_LineAspect)& anIsoAspectV = theDrawer->VIsoAspect(); if (anIsoAspectV->Aspect()->IsEqual (*anIsoAspectU->Aspect())) { aVPolylinesPtr = aUPolylinesPtr; // put both U and V isolines into single group }
In 7.8 theDrawer->VIsoAspect returns an empty handle which is not well digested in the next line.
I read in the upgrade guide that this change is likely to come from 7.7 changes.
Question is how I'm supposed to resolve this transition from 7.5 to 7.8 in my code?
Sun, 04/21/2024 - 06:34
Why would
theDrawer->VIsoAspect()
returnNULL
in first place? This doesn't make sense.Please provide the complete code sample reproducing the issue to give some advices or to analyze but location.
Tue, 04/23/2024 - 15:08
Can I send you a dropbox link with the complete project? (woud require an E-mail address for that)
Wed, 04/24/2024 - 12:51
...
Wed, 04/24/2024 - 13:16
Hello, it is not recommended way of collaboration. Please share the code sample or public link to your repo. Any kind of commercial developments are part of commercial activities,
Best regards, Dmitrii.
Thu, 04/25/2024 - 01:40
I understand.
In the mean time, the reason of the null pointers were not calling SetupOwnDefaults on the Prs3d_Drawer objects created to set the highlightstyle.