Tue, 11/12/2024 - 06:07
Forums: 
When I execute this method, there is no problem, but an error occurs when the program exits. There is no issue when not using the AIS_ConnectedInteractive.
 auto boxshape= BRepPrimAPI_MakeBox(1,2,3).Shape();
 Handle_AIS_ColoredShape cshape = new AIS_ColoredShape(boxshape);
 cshape->SetColor(Quantity_NOC_BLUE);
 Handle_AIS_ConnectedInteractive brepconnected = new AIS_ConnectedInteractive();
 brepconnected->Connect(cshape);
 mycontext->Display(brepconnected, true);//error
// mycontext->Display(cshape, true);//ok
Attachments: