Search results

  1. K

    Is opencascade capable of doing 3d without gpu (opengl,vulcan ...) ?

    Can opencascade emulate GPU ? i.e. can opencascade do 3d without relying on gpu ?
  2. K

    Where is the documentation/paper for active data ?

    Hello, I had the paper somewhere and I could not find it now. Please give the link to the paper/documenation. thanks.
  3. K

    Do I need an AIS_InteractiveContext per Viewer (window)

    I wonder if I need a context for each viewer ? can viewers share the context ? My windows show different views of single physical object. Can I somehow pass them a single context ? I.E. When I create my windows, a context is created. Do I need a seperate context for each window ? I have...
  4. K

    how to map selection to the OCAF GUID ?

    Hi all. I have an OCAF Document with some named shapes. I add the shapes to the AIS_interactive_context and then display them. When I do the selection, I want to recover which object in the OCAF document I have selected. Is there a tool for this or should I somehow write it myself ? thanks.
  5. K

    Zoom with anchor point under the mouse

    Hi, I am back! I have a program based on the occQt Code (https://github.com/eryar/occQt). The only problem I have is the zoom does not take the mouse position as the anchor point. I want to zoom to the location under the mouse. How to proceed ? thanks.
  6. K

    OCAF Framework presentation or manual management of the display item

    I am at the point where I want to add my items to the display. Two options come to mind. using the OCAF framework display or enumerating ocaf document and adding items to display manually (like occqt sample code). Which way is better ? (i want to select and add properties to items later on).
  7. K

    plz comment on this class

    I have very limited time and resources and no margin for error. I want to devise this kind of class for many many objects. please kindly review and comment. class IMaterial { private: TDF_Label root; Handle(TDataStd_RealArray) attrib; public: IMaterial(const TDF_Label& label)...
  8. K

    what is the goal of TDataStd_NoteBook

    How and why there is TDataStd_NoteBook in TDataStd ? What is the purpose of it ?
  9. K

    open cascade from github

    Which repository is the preferred repository for opencascade in github ? The zip/exe file from the opencascade web page comes with 3rd party source/library that helps in quick setup. Which one do you use and rely on ? tnx.
  10. K

    opengl error

    I get an error message : TKOpenGl | Type: Other | ID: 0 | Severity: Low | Message: Unhandled GL error: GL_INVALID_OPERATION on windows 10 qt5.9.9 qtcreator 6.0 My laptop is lenovo x220. so my hardware supporst 3.3 opengl. Is there something missing in qt5.9 with opengl ? some versions ship...
  11. K

    problem using c++17 structured bindings

    I have this line in my .pro file. CONFIG += c++1z so it should pass the c++17 switch to compiler, However, the project is compiled with c++14. I run qmake every time I compile. Qt is 5.9. and qtcreator is 6.0.0 windows 10, compiler is visual studio 2020 community edition. the error message is...
  12. K

    I get an error when I want to include vtk.

    Hi, I get an error when I include vtk in my cmake. see attached. what is the problem ?
  13. K

    Design choice, OCAF data

    I have many data structures for my fem program. For example, I have a Rectangular section which is defined by Width and Height. and It has several properties such as Area, Ixx, Iyy and so on. It seems to me that there are two choices that can be used. One is like this class IData { private...
  14. K

    add vertex at intersection

    I have a situation where I want opencascade to add a vertex at the intersection of too lines when possible. auto a = gp_Pnt(0, 0, 0); auto b = gp_Pnt(100, 0, 0); auto c = gp_Pnt(50, -100, 0); auto d = gp_Pnt(50, 100, 0); auto edge1 = BRepBuilderAPI_MakeEdge(a, b); auto edge2 =...
  15. K

    Ocaf bin format

    Usually there is a version number involved in save formts. Does Ocaf bin format has a version number? I suspect my draw program which I installed from debian repositories do not understand the most recent bin format. How do I tell my application to use an specific format if any ?
  16. K

    occQt from erayer

    any body have used/seen this tutorial in github ? https://github.com/eryar/occQt what do you think about this sample. I found it useful as it uses Qt.
  17. K

    OCAF store two integers in one label

    It seems one can store one integer and one real in a label. But what if one wants to have two integers stored in one label ? does it make sense to store two values of the same type in one label ? TDataStd_Integer::Set(child1, 200); TDataStd_Integer::Set(child1, 300)...
  18. K

    Opencascade presentation

    I found this open cascade presentation on the internet. I don't know who made it but it helped me a lot. I hope who ever made it can complete it.
  19. K

    link error at lesson 11.

    hello, I am going through the lesson 11. It worked for me until adding features. I am on debian 10. qtcreator, g++ compiler. here is the error: build-OcafTest-Desktop-Debug/OcafTest: symbol lookup error: /home/karim/build-OcafTest-Desktop-Debug/OcafTest: undefined symbol...
  20. K

    error compiling active-data

    I got an error while compiling active data (analysis situs) on debian. here is the error: active-data/src/ActiveData/Mesh/DS/ActData_Mesh.cpp:56:44: error: ‘class Poly_Triangulation’ has no member named ‘Nodes’; did you mean ‘Node’? for ( int node_idx = 1; node_idx <= tri->Nodes().Length()...
Top