Tue, 07/01/2008 - 12:25
Forums:
I need display 5000 or 8000 3D solid,The solid can be a 3D Box.But When i try it,the program is crash.When i make 2000~3000 3D box,Them can be display,But it is very very slow.
So,I want find a way to fast display >5000 3D solid.And every solid is separate,every solid have different color.How to do it ?
Wed, 07/02/2008 - 17:30
How do you display your 3D solids ? Each solid is in an AIS_Shape object ?
Thu, 07/03/2008 - 05:31
Yes,each solid is in an AIS_Shape object.Because,I need every 3d solid have different color and can be select.
Fri, 07/04/2008 - 13:10
A suggestion :
BRep_Builder aBuilderAnnotation;
TopoDS_Compound anAnnotation;
aBuilderAnnotation.MakeCompound(anAnnotation);
aBuilderAnnotation.Add(anAnnotation, aShapeToDisplayed);
AIS_Shape aGlobalShapeToDisplayed= new AIS_Shape(anAnnotation);
Then, you can display aGlobalShapeToDisplayed.
Denis
Sat, 07/05/2008 - 20:37
This would effectively speed up the display, but how do you set a different color for each 3D box ?
Mon, 07/07/2008 - 11:19
Generally such large assemblies require heavy graphics and cpu.
Probably this should solve your problem.
Regards
N. Sharjith