Connection problem

Hello!

I’ve been assigned the task to fetch models uploaded to Speckle, display them, and be able to work with each element separately. When I click on an element in the 3D model, its data should be immediately passed to my website, and based on that, perform operations using a form. Can you suggest solutions on how I could achieve this?
So far, I’ve been experimenting with GraphQL and Three.js, but haven’t made much progress. I’m working with a React frontend and Node.js backend.

Thank you in advance for your help.

1 Like

Hi @Gircsi117!

Welcome to the forum!

I would recommend, if you haven’t already, to check out the documentation page for our viewer:

There you’ll find some examples of how to react to click events in the canvas and retrieve the information of the clicked object.

I’d recommend you also check out getDataTree, which retrieves the entire tree of objects that the viewer has loaded.

I hope you find that helpful, but don’t hesitate to let us know if you have any further questions!

2 Likes