Hello, we are using Opencascade 7.0.0 in a Qt 5.8 project. There we have the problem, that the gui does not update anymore after opening a tab in the application with an occ widget and then minimizing and maximizing the application. These same happens if you open a tab with an occ widget of an maxim
Hello, as far as i know the local context is deprecated and all of the functionality should be available in neutral point. I want to make it visible ,which TopoDS_Face object is under the mouse and be able to get the underlying TopoDS_Face object. In local context i was able to achieve both things b
Can Some tell how to get ambient light values i.e Ka parameter in .mtl file from Quantity_NOC_CADETBLUE4 ?? There are differnt version of one color for example; GRAY1 GRAY2 . Can someone guide how to get the meaning parameter from these?? Regards, Abber
We are porting from occ 6.9.0 to occ700 I discovered that AIS_InteractiveObject::SetSelectionMode is not there anymore. How can we set the selection mode for an AIS_Object ? thanks, Author
Hi all, We are building a robot supervisor within which we would like to add tools to specify and edit the robot environment geometry. The geometry we work on is rather simple (nurbs curves and surfaces describing the walls, ceilings, floors, windows, switches...). We already have a simple data mode
Good afternoon. I'm sorry for my English (I translate using google.translate) Recently, in this forum, I am interested in information on how to import STEP and IGES files and then get the essence of these files. Then they helped me well. And then I was able to get data for NURBS surfaces, built this
Using python-occ. If I have multiple AIS_Shapes sharing the same TShape then selecting an object in visualisation returns all objects sharing the TShape which makes it impossible to correctly obtain the correct selected shape. i.e. behaves like it is returning all IsPartner() objects instead of IsSa
Hello, I can set the selection mode of AIS_Trihedron as in this code but I would like to retrieve the properties of AIS_Trihedron during the mouse selection. In particular, the axis gets highlighted correctly when I click the mouse but I don't know how to get the information of the clicked axis from
Hi, I already replaced my own RubberBand solution (implemented with Visual3d_Layer ) by the new AIS_RubberBand . I want to follow the same approach with my on-screen crosshair (following the mouse cursor...) but there is certainly no AIS_CrossHair or something else. My question is: what is the recom
Hello, after porting to OCCT 7.0.0 I came upon the following problem. The method 'UnsetSelectionMode' in my old code: Handle(AIS_Trihedron) aTrihedron = new AIS_Trihedron(aTrihedronAxis); aTrihedron->UnsetSelectionMode(); myAISContext->Display(aTrihedron); is invalid and had to be removed. The probl
Hello, Is there a way to bring an object to the front while also maintaining the ability of selection of that object? You can use Z-layers but they are only for graphical presentation, not selection. Maybe I could put some opengl depth testing code inside PrsMgr_ PresentableObject::Compute. Thanks
I am attempting to apply a texture to the bottle in the tutorial located in $OPENCASCADEROOT/samples/qt/Tutorial. // Here the AIS_shape is created. DocumentTut.cxx:26: Handle(AIS_Shape) AISBottle=new AIS_Shape(aBottle); I assume I'll have to grab a reference to the shape somehow, somewhere... For in
Hi friends. I am developing a CAD software where I am using OCC Viewer. I am displaying multiple mesh using MeshVS_Mesh. The problem is that when a user manually using mouse selectes a mesh (I am selecting mesh based on MeshVS_ET_Face), I am not able to find which mesh was selected. Could anyone ple
Hi, I am trying to select triangles of my mesh (MeshVS_Mesh) by calling the "Select" method of my context with a polyline (point2d array of screen coordinates): Handle(AIS_InteractiveContext) context = ...; Handle(V3d_View) view = ... context->OpenLocalContext(false); aisMesh -> SetMeshSelMethod ( M
Hello, please consider the attached snapshot. There's a displayed object with its view clipped with a plane: Handle(V3d_Plane) plane = new V3d_Plane; plane->SetPlane(a, b,c, d); view->AddClipPlane( plane->ClipPlane()); view->Redraw(); I usually use clipping planes to explore and select (sub-)shapes
I hope to develop some software which can manipulate the control points of a NURBS, then cross the NURBS with some 3d curve to find the cross point. Can OCC do it? also I hope to manipulate the modification by mouse in 3D window, is it available? If yes, can anybody give me some suggestion?
Best OCC developers, It seems when changing the line aspect for an AIS_Shape, causes to changes the line-aspect of all other shapes and even the grid of the view? (see attached images) myDrawer = new Prs3d_Drawer(); myDrawer->SetLineAspect(Prs3d_LineAspect(...)); myDrawer->SetWireAspect(Prs3d_LineAs
I have some questions about visualization changes in OCC690: 1) in previous version there was SetCenter and Center(getter) in V3d_View. In version 6.9.0. there is only a SetCenter and no Center (no getter) What is the reason that there is no "getter" anymore? 2) PrsMgr_PresentableObject had a functi
Hi! I would like to create my custom AIS objects (presentable, selectable, etc). May be someone has skeleton of a code for this issue or detailed guide? Unfortunately the official documentation too poor in this context. Any information will be appreciated. Thank in advance.
Hello, We have created 3d viewer using open cascade. our objective is to create sketch on selected plane. Planes are successfully created. But main problem is to get coordinates of selected point on that plane (This coordinates are used to generate point at that location). here MouseEventArgs gives
in topic : " http://www.opencascade.org/org/forum/thread_26651/?forum=3 " , I have attached one code for testing subshape selection. this code is developed from the example of occ. the code can give the right result with occ671, but not with occ680. I think it is a bug for occ680.
We can build several V3d_View(s) to render interactive objects. I am wondering if it is possible to hide an interactive object only in one of those V3d_View(s). I think it isn't possible. If so, I think the feature is quite demanded.
Hello, Can I have some advice on the following points? 1. Is the only way to execute OpenGl commands (glColor3f) by setting a call back function when setting the window to V3d_View? V3d_View::SetWindow(hWnd,&function); 2. If you want to control the drawing (to the window), is the best way to create
Hello, In my OCCT-based projects I have some functionalities using classes Visual3d_ViewMapping and Visual3d_ViewOrientation that were removed in the current development version. I wasn't able to find a straightforward replacement for the aforementioned classes. Is there any migration guide planned
dear who can help me with checking some pieces codes which use ais_parallelrelation to show the paralleling relation of two planes? i do this : gp_Pnt pt=first.Location(); gp_Dir dir=first.Axis().Direction(); Handle(Geom_Plane) gp=GC_MakePlane(pt,dir); Handle(AIS_ParallelRelation) parrelation= new A
We need for an operation the 4x4 Matrix of a V3d_View. In the CDL's I found this way: TColStd_Array2OfReal array( 0, 3, 0, 3 ); Handle(Visual3d_View) hVisual3dView; hVisual3dView = myView->View(); array = hVisual3dView->Transform(); But it delivers only: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 all the time?