Hi Igor,

I am facing the same problem. Have you found a solution to pick a surface 
by a mouse click using OpenGL in PyQtGraph ?

Greetings 
Sven

Am Mittwoch, 7. September 2016 14:46:20 UTC+2 schrieb [email protected]:
>
> Hello Luke,
>
>
> I am looking for a tool to visualize and manipulate tetrahedral mesh. I 
> have some experience with numpy, matplotlib but nothing with  opengl. 
> With PyQtGraph you are doing a great job and pyqtgraph.examples helps to 
> easily understand the functionality. I have a question about 
> pyqtgraph.opengl.GLViewWidget.itemsAt. It takes the rectangular regions of 
> interest and gives back the list of items which are currently inside.  But 
> how can I get the ID of a single face from the mesh item?
>
>
> Let me shortly explain. I display tetrahedral mesh (vertices, faces) like 
> a single item using pyqtgraph.openg.GLMeshItem. And I want to click at a 
> single face and to get it’s ID in order to, let's say, change the face 
> color and  modify a numpy array which is linked to the face by the ID.
>
> I tried to plot faces like a separate items but it works slow and itemsAt 
> returns all the faces which are in the region of interest, while I need 
> only the one which is closest to the user. 
>
>
> Could you please give me advice how can I effectively plot a huge mesh and 
> get access to a single face by mouse click? Maybe I have not managed to 
> explain properly. Please have a look at java script example 
> <http://threejs.org/examples/?q=active#webgl_interactive_cubes_gpu>which 
> almost does what I tried to in Python using PyQtGraph.
>
>
> <http://threejs.org/examples/?q=active#webgl_interactive_cubes_gpu>
>
> Thank and best regards,
>
> Igor.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/5ea8be8a-a2f8-443e-8ec7-14e48f20a9cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to