DiscussionsIssue archiveVisualization and 3D Viewer

Forum archive

Visualization and 3D Viewer

Technical discussions preserved from the public OCCT community forum.

Topics
627
Replies
1,764
Files
507

Discussions

Page 11 of 11

Showing 27 discussions, ordered by the latest archived activity.

Opencascade with Qt5

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

1 reply

How to get detected face in neutral point

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

2 replies

Ambient Light Values form Quantity_NOC_CADETBLUE4 ?

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

4 replies

SetSelectionmode occ700

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

5 replies

OCC use case

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

2 replies

STEP/IGES Render with OpenGL

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

1 reply

Complementary function to SetSelected

Hi. AIS_Interactivecontext has the function SetSelected, which selects an object. But I can't seem to find a corresponding "UnsetSelected" ?

1 reply

Select returning incorrect shapes AIS.InteractiveContext

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

1 reply

selecting AIS_Trihedron

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

3 replies

Selectable / Unselectable objects

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

3 replies

Bring to front with selection

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

1 reply

How to apply texture (image) to an AIS object

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

2 replies

How to get the Selected Mesh

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

7 replies

Select MeshVS elements with polyline

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

1 reply1 file

Possible bug in visualization module.

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

2 replies1 file

can occ manipulate nurbs

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?

1 reply

V3d_View Center is gone

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

5 replies

How to create custom AIS_* object?

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.

3 replies

How to get coordinates of selected location in 3d viwer of open cascade.

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

1 reply

Is it possible to hide an interactive object only in a V3d_View?

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.

1 reply

Visualization advice

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

5 replies

Changes in visualization in OCCT 6.8.0 - Migration hints

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

11 replies

how to use the ais_relation's derivates?

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

0 replies

About V3d_View

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?

2 replies