did anyone read that "great" so-called "Visualization User´s Guide" ?
There is a so-called "example" on page 85. As usually with all OCC-examples in that "User´s Guide", it does not compile proper and is full of mistakes.
Besides, there are no include-files mentioned as usually in that glorious chapters of visualization.
Here is my Code:
Handle(Graphic3d_GraphicDevice) myGraphDevice = new Graphic3d_GraphicDevice("");
Handle(V3d_Viewer) myViewer = new V3d_Viewer(myGraphDevice, 400., V3d_Xpos, Quantity_NOC_DARKVIOLET, V3d_ZBUFFER, V3d_GOURAUD, V3d_WAIT);
Handle(Graphic3d_Structure) s = new Graphic3d_Structure(myViewer->Viewer());
Handle(Graphic3d_Group) myGroup = new Graphic3d_Group(s);
Handle(V3d_AmbientLight) L1 = new V3d_AmbientLight(myViewer,Quantity_NOC_GRAY50);
Handle(V3d_DirectionalLight) L2 = new V3d_DirectionalLight(myViewer,V3d_XnegYnegZneg,Quantity_NOC_WHITE);
Handle(Xw_Window) w = new Xw_Window(myGraphDevice,"Test V3d",0.5,0.5,0.5,0.5);
Handle(V3d_PerspectiveView) v = new V3d_PerspectiveView(myViewer);
Here are the compiler-errors (gcc-2.95.3):
V3d.cc: In function `int main()':
V3d.cc:26: no matching function for call to `V3d_Viewer::V3d_Viewer (Handle_Graphic3d_GraphicDevice &, double, V3d_TypeOfOrientation, Quantity_NameOfColor, V3d_TypeOfVisualization, V3d_TypeOfShadingModel, V3d_TypeOfUpdate)'
/opt/OpenCASCADE-50/ros/inc/V3d_Viewer.hxx:178: candidates are: V3d_Viewer::V3d_Viewer(const Handle_Aspect_GraphicDevice &, short int *, char * = "", double = 0x000000000000000000fa0840, V3d_TypeOfOrientation = V3d_XposYnegZpos, Quantity_NameOfColor = Quantity_NOC_GRAY30, V3d_TypeOfVisualization = V3d_ZBUFFER, V3d_TypeOfShadingModel = V3d_GOURAUD, V3d_TypeOfUpdate = V3d_WAIT, unsigned int = 1, unsigned int = 1, V3d_TypeOfSurfaceDetail = V3d_TEX_NONE)
/opt/OpenCASCADE-50/ros/inc/V3d_Viewer.hxx:348: V3d_Viewer::V3d_Viewer(const V3d_Viewer &)
V3d.cc:63: `Normal' undeclared (first use this function)
V3d.cc:63: (Each undeclared identifier is reported only once
V3d.cc:63: for each function it appears in.)
That is a total knock out and I am clueless what to do. What to include else ? Why did that clown who wrote that "paper" not include anything ?
That does not help to distribute OCC 5.0 in the industrial world.
Could anyone help ???