Search results

  1. natalia

    How to accelerate the update time

    Hello @Rubiofm7 Have you attempted to use SetLocalTransformation() on the wireframe presentation? How does it affect the view update time? Regarding loading time, have you tried using OCCT 7.8.0, which was released in December 2023? According to the release notes, it includes improvements in...
  2. natalia

    How to accelerate the update time

    Hello, @Rubiofm7 Now, the number of presentations and their selection status are understood. However, the contents of the TopoDS_Shape remain unclear. Specifically, the number of geometric elements and their interconnections are unknown. Preparing a mesh for visualization using this data...
  3. natalia

    How to accelerate the update time

    Hello, @Rubiofm7 Please, provide more details about the AIS_Shape object that you're creating: 1. How many AIS_Shape objects do you create? 2. What does the TopoDS_Shape object contain? 3. Do you activate the AIS_Shape objects it in the context for selection purposes? Regards, Natalia
  4. natalia

    How is Graphic3D data structured for passing to OpenGL to render?

    Hello @easternbun You know, it's not so simple to answer to your question in several words... The package that you should investigate here is OpenGl. OCCT provides several classes with abstract interface in Graphic3d package, e.g. Graphic3d_Group, Graphic3d_View. Top-level AIS package...
  5. natalia

    open cascade Questions about the display

    Hello @kaviraj A very similar problem was processed in OpenCascade long time ago in the following issue: https://tracker.dev.opencascade.org/view.php?id=26603. The solution to your problem is placed in implementation of 'paintEvent' and 'resizeEvent' of redefined widget. For an example, take a...
  6. natalia

    open cascade Questions about the display

    Hi hello, I meant, what if to try using View or ViewerWidget instead of your C3DView for start. The goal is to avoid defining the widget for view as a UI designer class. Regards, Natalia
  7. natalia

    open cascade Questions about the display

    Hi hello You know, for Qt-based applications, we usually implement own class, inherited from QWidget or QGLWidget with some special code to manage OCCT viewer. The minimum example is available here: ‘https://gitlab.com/ssv/lessons’. It's the ViewerWidget in Lesson18_Qt_Widgets or in...
  8. natalia

    open cascade Questions about the display

    What if you add the next row after your code: view->Redraw();
  9. natalia

    open cascade Questions about the display

    Hi, hello Add the next code out of the mentioned classes, in place, where your 'Display' doesn't provide the presentation display: const Handle(V3d_Viewer)& viewer = GetContext()->CurrentViewer(); const Handle(V3d_View)& view = aViewer->ActiveViewIterator().Value()...
  10. natalia

    open cascade Questions about the display

    Your code looks correct. There should not be a problem using display out of these classes. Your case requires some debug and investigations. What happens if you change background of the viewer instead of calling 'Display' for a presentation? Let's firstly check that your UI control is repainted...
  11. natalia

    open cascade Questions about the display

    Hi, hello) Could you please explain in more details what the 'MainWindow' is? Is it an instance of QMainWindow widget or some object from OCCT examples or a python instance or some else? If you share some code how you organize the pipeLayout, it also be helpful. Regards, Natalia
  12. natalia

    Mouse focus on AIS_Shape or selected AIS_Shape, the shape display different color

    Hello, @kndpeng You know, it’s not the usual way of working with OCCT visualization. Usually, the selection/highlight is shown above the presentation without influencing on the style of displayed presentation. However, there is a way, how you may try to implement your case. It’s a creating own...
  13. natalia

    Mouse focus on AIS_Shape or selected AIS_Shape, the shape display different color

    Hello, kndpeng Described situation looks like you want to hide the presentation itself when it's selected and have only its selection visible in the viewer. Is it right? Regards, Natalia
  14. natalia

    Debug and Realease question.

    Hi, RGW The first candidate to check is that you're not mixing Debug and Release libraries. Check whether for release build you use exactly release libraries in 3rd-parties. Regards, Natalia
  15. natalia

    SelectMgr_Frustum<N>::DumpJson does not allow dllimport definition?

    Hello @easternbun , I haven’t seen this error though use TKV3d library freely. Now I use OpenCascade 7.6.0. First what I did to check your case is compared sources between version 7.6.0 and 7.7.0. There is a difference in this code, related to issue...
  16. natalia

    Only show edges at mesh boundaries

    Hello @soupyx, In you sample you have no edges, only faces with triangulation on them. So, in the mode that you use for AIS_Shape, we see this triangulation shown over the model. There is lack of information from visualization point of view to separate only lines as shown on the right image...
  17. natalia

    Dynamic display of elements from an AIS_PointCloud

    Hello @bioan Some time ago, I turned to similar thoughts about separating Graphic3d_ArrayOfPrimitives on parts to improve performance. However, looking inside I started to relate to this class as to something entire. Finally, I did not decompose it and solve performance troubles in another...
  18. natalia

    Only show edges at mesh boundaries

    Hello @soupyx, welcome here! Could you please attach your model (e.g. using BRepTools::Write) to try it. Regards, Natalia
  19. natalia

    Dynamic display of elements from an AIS_PointCloud

    hi @bioan in mentioned sample we just change the set of points in the presentation and call Redisplay for it. It was enough for case discussed there. What about your case? Does it suffer if you follow this way? Would you be so kind to give more details if it's so? Regards, Natalia
  20. natalia

    Dynamic display of elements from an AIS_PointCloud

    Hi @bioan we've discussed performance here: http://analysissitus.org/forum/index.php?threads/visu-performance-on-50k-elements.73/ May be it will be helpful for you. Regards, Natalia
Top