SimpleScene icon indicating copy to clipboard operation
SimpleScene copied to clipboard

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

Open jiatao99 opened this issue 2 years ago • 2 comments

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?

jiatao99 avatar Apr 02 '23 17:04 jiatao99

  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?

jeske avatar Apr 03 '23 07:04 jeske

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.

jiatao99 avatar Apr 03 '23 19:04 jiatao99