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

Question: how to find out which triangle it belongs to for a given vector? #22

Open
jiatao99 opened this issue Apr 2, 2023 · 2 comments

Comments

@jiatao99
Copy link

jiatao99 commented Apr 2, 2023

Thanks for your excellent IcoSphereCreator. After generate this MeshGeometry3D object

  1. Is there any to find out which triangle a vector is inside?
  2. Is there anyway to generate a MeshGeometry3D object where the elevation angle must be larger than a certain angle?
@jeske
Copy link
Owner

jeske commented Apr 3, 2023

  1. What do you mean by "the triangle a vector is inside?" Are you talking about triangle vector intersection? There is code in my BVH asteroid demo that does ray / object / triangle intersection. For small polycount icospheres you can just test every triangle... For large polycount a BVH will make hit testing much faster.

  2. elevation angle of what? Typically elevation angle is used to describe the angle from a ground plane to something in the sky i don't understand how this applies to icospheres. Can you clarify?

@jiatao99
Copy link
Author

jiatao99 commented Apr 3, 2023

Thanks for your quick reply.

I am doing a satellite simulation. I want to have a sphere which can be filtered on visible portion on the group (with certain elevation angle). At a given time, I computed the satellite vector, I want to know where the triangle on the sphere it belongs to.

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