I have a utility that need to create many different blocks. I am using the MakeBox routine BRepPrimAPI_MakeBox. When I create many boxes it is very slow as it displays each one. You can actually see it creating an object, which seems ridiculous. I assume i am doing something wrong
BRepPrimAPI_MakeBox B(gp_Pnt(X1,Y1,Z1), X2,Y2,Z2);
myBox = new AIS_Shape(B.Shape());
Quantity_Color col = Quantity_Color(r/255.,g/255.,b/255.,Quantity_TOC_RGB);
This same routine is called for each box. Is there a way to speed this up?
Thanks in advance!