-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect collections information and 3D view #93
Comments
I don't think we have a unique identifier for each event item (cluster, track etc). We need something like that in the |
Was finally able to make it work, only for tracks for now (could make it work with the other objects the same way). Since I mentioned we needed some kind of ID to identify the event object by, for now, I am attaching it to the tracks manually like this: const splineObject = new THREE.Line(geometry, material);
splineObject.userData = trackParams;
* splineObject.userData.item_id = Math.floor(Math.random() * 100).toString() + Date.now();
splineObject.name = 'Track'; I think something like this is safe enough for us. WDYT @EdwardMoyse @emiliocortina ? |
Making a unique id like this should be fine I think - elsewhere we have used the index of the object (e.g. track) in its collection, but perhaps this isn't so convenient here? It looks very nice! Would it work both ways? i.e. if I clicked on a track in the collection list, would it be highlighted in 3D? |
Do you mean the uuid by index? If so, then yes. It might be more convenient. I was testing things with the current implementation.
I haven't done that yet. But making it work the other way around will be much simpler, however I am not sure how we can highlight the tracks since that doesn't work right now (because of the |
Yes. This shoudl be generally safe I think - in fact, this is what we do in ATLAS with our general reconstruction software ... links between objects are ("Collection name" : index ) Of course you're right that highlighting tracks is a general issue - I guess we could change the colour of that track? But it would be best to fix it properly. |
If you click on a cluster, track etc, and the collections view is open, that object should be highlighted there. And vice versa.
It would also be great to have an option (in the collections panel?) to zoom to that object.
The text was updated successfully, but these errors were encountered: