For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

first time on cascade

Anonymous's picture

Hello, I am just exploring CASCADE. I would like to know if anybody has sample code that can create and display say a box. I am using Solaris 4.0 operating system. This is the code that I wrote.

BRepPrimAPI_MakeBox b(10,20,30); TopoDS_Solid S = b.Solid(); const Handle(Aspect_GraphicDevice) dev = new (" ",Xw_TOM_COLORCUBE,10,1); TCollection_ExtendedString name("3D"); Handle(V3d_Viewer) v = new V3d_Viewer(dev," "," "); Handle(AIS_InteractiveContext) aContext = new AIS_InteractiveContext(v); Handle(AIS_Shape) s = new AIS_Shape(S); aContext->Display(s);

I get the following compile error "", line 18: Warning (Anachronism): main() must have a return type of int. "", line 18: Note: Type "CC -migration" for more on anachronisms. "", line 24: Error: Could not find a match for V3d_Viewer::V3d_Viewer(Handle_Aspect_GraphicDevice, char[2], char[2]). 1 Error(s) and 1 Warning(s) detected.

Thanks. Roshan

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.