Skip to content
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

How to select an edge? #89

Open
PengSi opened this issue May 7, 2024 · 1 comment
Open

How to select an edge? #89

PengSi opened this issue May 7, 2024 · 1 comment

Comments

@PengSi
Copy link

PengSi commented May 7, 2024

If a model is loaded in the scene, how to select an edge of the model with the mouse?

@rickertm
Copy link
Member

If you are looking to integrate this into a user interface based on the Coin3D scene graph, you can use the SoRayPickAction class for this. The documentation of the class includes a small example on how to implement this.

For the collision detection engines in rl::sg, the class rl::sg::RaycastScene provides an abstraction to retrieve the shape in the scene hit by a 3D ray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants