Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?
- Date: Wed, 10 Jan 2018 09:39:48 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:gPa9qB8zVixZ0f9uRHKM819IXTAuvvDOBiVQ1KB31+8cTK2v8tzYMVDF4r011RmVBdyds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+54Dfbx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRgL2hicJNzA382/ZhcJ/g61ZvB2vqAdyw5LWbYyPKPZyYq3QcNMcSGFcXshRTStBAoakYocBEuQOI/1XoJPmp1sSrBuxGw+sD/7pxD9PnH/23Ko60/g8Gg3C3QIvAdUOsHHKo9XpLqcTUeC7w7PUwjXfaPNWwzf85I3Gfhs8pvyMRrZwcc3LyUkuEAPFkk+cqYnhPz6O2eQNtnKU7+tkVe61l2EnrARxryGpy8wxhIfJgYcVxUrF9SV/2Is1Kty4SFJ7Yd65C5RcrT2VN4xzQs4kXmpmuz46x6UEtJO0ZiQG1Yoryh7FZ/GEbYSE+BLuWPiJLTtlgH9odqiziwuu/UWv0OHxWNS43ExXoiZZj9XBsG0G2QbJ5cidUPR9+1+s2TaR2ADX7eFJOUU0mrDaK54l27IxmJ8TvVjaEi/4mEj6krWadkoj+uiv5OTnZqvpqoWAOI9zjwHyKqUumsqhDuQkKgUDXWeW9f6h2LH9/UD1WrZHguMsnqTZrpzWPcEbqbS4Aw9R3IYj8RG/DzK+3dQDmXkHK0hFeBOAj4j1IV3OJfT4AOywg1SpijhrxvTGMqf9DZXKK3jPiK3hcqpl605A1AozyshS6I5bCr4bJPL/Q1L+tN3DDhAlLgy02P3nBc5m1oIeXGKPGrWWPLnTsV+O/OIvIvODaJUbuDbneLAZ4KvlgnY93FMcZqK0xoA/aXaiH/0gLV/KT2Drh4JLKmoAtxEiTeHswHmFSz9Uez7ycK874zwnEpOIBIzfQZq8wfbJiDy/GYdXYXwAD1SkHnLhdoHCUPAJPnHBavR9myAJAODyA7Qq0guj4Vf3
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://github.com/CGAL/cgal/blob/master/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h
Question 2:I don't think we have something better than computing the intersection point inside the triangle and then get its barycentric coordinates.
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?
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
- [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?, Maarten Moesen, 01/09/2018
- Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?, Sebastien Loriot (GeometryFactory), 01/10/2018
- Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?, Maarten Moesen, 01/10/2018
- Re: [cgal-discuss] AABB tree: (t, u, v) coordinates directly from ray triangle intersection?, Sebastien Loriot (GeometryFactory), 01/10/2018
Archive powered by MHonArc 2.6.18.