Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?


Chronological Thread 
  • From: Maarten Moesen <>
  • To:
  • Subject: Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?
  • Date: Wed, 10 Jan 2018 15:56:41 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:OK2Mth9Mc/4p8v9uRHKM819IXTAuvvDOBiVQ1KB20eIcTK2v8tzYMVDF4r011RmVBdyds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+54Dfbx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRx3miCkZODE37WbZhMxzgqxVvB2svAZwz5LObYyPMPpyYr3RcNUHTmRBRMZRUClBD5u7YYQVFeUBJ/pYoJf7p1ATqhW+AhejBPjxxT9Om3T72qg63P47HgHcwAwvAdQOv2zRrNXyKqgSSv66zK/TwDXDcvNW3yv96JPNch87p/GAR65/cc3UyUQ2EQ7Ok1ueqYvgPzyP1+QNtXCW4PduVOKul2Ershl9oiC1xscrjYnJiJoVylfF9SV/3IY5P8G3SEl+YdOiDZBetDmaOpN3T84gWW1kpig3xqActZKmcyUHy44rywPCZ/Caa4SE/A7vWeaLLTtmin9oeKiziwuu/UWi0OHwS8e53EtMoyFYiNfDrGoN2AbW6sWfSvty4EOh2TGX2gDW5eBIPVo7mbPHJ5I93rI/jJQTvljfEiPrgkn2lLeWdkUj+uiz9+TofKjpqoWAOI9zjwHyKqUumsqhDuQkKgUDXmqW9f6i2LDt4EH1WqhGg/I1n6XDrZzWONkXqra8AwBP04Yj7xi/Dy2h0NQdhXQHNEhFeAycj4XxJV3DIP/1APSjj1mtjDhk2e7KMaH5D5XINHfMiq3hfapj5E5a0AUzyNdf6IxPCr4fJvL+QU/xtMHeDh8lKAy0xvzoCNNn2owCXmKPB7eVMLnOvl+Q+uIvP+6MaZcJtzbyMfcl4+figmI4mV8GYaapwIAXaGujE/R9I0SZZGLsjc0bHWcLuAo+Vu3qh0eYXT5dfXbhF586/SwxXYK6EZ/YFMfqnaaF0Cq1E5tNayZeEFeLH2/vdoOYHfwLbWWMeIh8iDhTBoSmHoQu3BXruA7hwKd8NcLV/DcZvNTtzotb/erWwDQ7/CZoAsLV9maAVGxy1jcNTjYswK15lkl6x0yO14B4nvpEDtla4bVCVQJsZs2U9PBzF92nAlGJRdyOUlvzGoz3UwF0dco4xpo1W2g4Htyjih7Z2C/zX+0VirqXH5k99OTX2H2jfp8hmUaD77EoihwdeuUKLXev3/It9xXVG5XMmkPfnKGvJ/xFgXz9sVybxG/Lh3l2FQ59VaKfDSIadhPf6IyhvkrMROf3T6w/Mgxa1cOObKBNb4+xgA==

Sebastien, Thank you for your clear answer!

Maarten
--
Maarten Moesen, PHD
Polymer Physicist Computational Modeling

HUNTSMAN (Europe) BVBA
Everslaan 45
B-3078 Everberg
Belgium
VAT: BE - 0468.807.829

Office Phone: 0032 (0) 2 758 9962


wrote on 01/10/2018 09:39:48 AM:

> From: "Sebastien Loriot (GeometryFactory)" <>

> To: ,
> Date: 01/10/2018 09:40 AM
> Subject: Re: [cgal-discuss] AABB tree: (t, u, v) coordinates
> directly from ray triangle intersection?

> Sent by:
>
> On 01/09/2018 10:29 AM, Maarten Moesen wrote:
> > Dear CGAL community,
> >
> > First of all my best wishes for 2018 to the CGAL team and community!
> >
> > Question 1:
> > In the AABB tree package there is plenty of support for (closest)
> > ray-triangle intersections which (very precisely) return a point or a
> > line segment. It could be, however, somewhat more convenient for my code
> > to work directly with the ray's intersection distance parameter (t). In
> > the documentation I've found a AABBRayIntersectionTraits Concept that
> > describes this. Is it meant to be used directly and if so, is there also
> > a model/example that shows how to?
> >
>
> This is something that must be provided to the algorithm so that it can
> compute the closest intersected primitive.
> There is no API to get the t value of the first primitive intersected.
> The variable t is local to the function ray_intersection in there:
>
https://urldefense.proofpoint.com/v2/url?
> u=https-3A__github.com_CGAL_cgal_blob_master_AABB-5Ftree_include_CGAL_internal_AABB-5Ftree_AABB-5Fray-5Fintersection.h&d=DwIC-
> g&c=XEmjTyjfAPcP2RtAp-6FGA&r=m_cDzmT5gx2T28-wSEGolLNtn-S-
> ReoPoEIWT7yrZso&m=DT4SMnoWaWxO4DO3fkKu8rQzcRWMdpp43FwD-nI-
> gZM&s=N79x8VEclx4oEXcmWyaaIKFb30R6i8pyAcMnwFrqtX0&e=
>
> > Question 2:
> > I'm also interested in the texture coordinates (often denoted with
> > (t,u,v)) of the intersection of a ray with a triangle. Would this be
> > possible to obtain them directly or is it better to back-project the
> > point of intersection on the triangle?
> >
> I don't think we have something better than computing the intersection
> point inside the triangle and then get its barycentric coordinates.
>
> Sebastien.
>
>
> > Best regards,
> >
> > Maarten
> > --
> > Maarten Moesen, PHD
> > Polymer Physicist Computational Modeling
> >
> > HUNTSMAN (Europe) BVBA
> > Everslaan 45
> > B-3078 Everberg
> > Belgium
> > VAT: BE - 0468.807.829
> >
> > Office Phone: 0032 (0) 2 758 9962
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
>
https://urldefense.proofpoint.com/v2/url?
> u=https-3A__sympa.inria.fr_sympa_info_cgal-2Ddiscuss&d=DwIC-
> g&c=XEmjTyjfAPcP2RtAp-6FGA&r=m_cDzmT5gx2T28-wSEGolLNtn-S-
> ReoPoEIWT7yrZso&m=DT4SMnoWaWxO4DO3fkKu8rQzcRWMdpp43FwD-nI-
> gZM&s=oigA0TZONv5jce1kWWj-JloY0s5H8koIUchEX9GN_LI&e=
>
>



Archive powered by MHonArc 2.6.18.

Top of Page