Subject: CGAL users discussion list
List archive
- From: myociss <>
- To:
- Subject: [cgal-discuss] using cgal AABB tree as class member
- Date: Mon, 3 Feb 2020 19:56:21 -0600 (CST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:qXLlNBSZOXEl0hFy5AfPjbxRctpsv+yvbD5Q0YIujvd0So/mwa69ZxON2/xhgRfzUJnB7Loc0qyK6vymBTxLusfJ8ChbNsAVDFld0YRetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN6k8xgHGr3ZLdOhby2dlLk+Xkxrg+8u85pFu/zletv4768JMTaD2dLkkQLJFCzgrL3o779DxuxnZSguP6HocUmEInRdNHgPI8hL0UIrvvyXjruZy1zWUMsPwTbAvRDSt9LxrRwPyiCcGLDE27mfagdFtga1BoRKhoxt/w5PIYIyQKfFzcL/Rcc8cSGFcWMtaSi5PDZ6mb4YXAeQPPfhWoYrgqVQBsRSwChKhBP/txzNUmnP6wbE23/onHArb3AIgBdUOsHHModXwNKYSVvy6zKjTzTXYcvhb3jf86I/UfRAguvGMRrdwcdHKxEkgEgPKlFSQqYj/MzyJ0eQNtnGW4ux9XuyhjG4nrht+ojmpxso0jInGnJkaxUvA9Spn2oo6Odq4SEt9bNW5E5VQrzmXO5ZyT84mWW1ltiU3xqcFtJO6ZiQHyZUqyhjCYPKdaYeI+AjsVOOJLDd4mn1lfLW/ig608UWv0OH8UNO7301RoSpBjNbArGwC1xvW6sSfS/t9+Fmu2SqX2gzO7uxJJVo4mKTYJpI7wbM9l4AfvEXCEyPunUX5lq6WdkEq+uiy7OTnZ63rp5+bN4BoiwH+Kb8umsmkAekjPQgOWnKU+eW41LH54UL5R7BKguUskqbFqJDaOdgbpqmhDgBJ3YYs8RK/Ay6739QZhnkIME9FeAmcj4XyIFHPIPX4De+ljFi2kTdrwerGPrz7DZnXIHjDiuSpQbEo4EFVzE8/zMtU+olPIrAHOvP6HEHr5/LCCRpsNh2zyOf8E50px4QVWHmUB7SxP6bbsFvO7eUqdbrfLLQJsSrwfqB2r8XlimU0zAdELPuZmKAPYXX9JcxIZkCQYH7imNAESD5YsQ83Teisg1qHA2UKOySCGpkk7zR+M7qISJ/ZT9n00rOE1Sa/WJZRYzIeUw3eITLTb4yBHsw0RmeSL8tmy2FWU+TnTYYr3xWj8gT9zug+Iw==
Hi everyone,
I am having trouble with something that may be a CGAL issue or might just be
my beginner understanding of c++. What I want to do is make a class that has
an AABB tree as a class member. Having just the tree does not work because
it is a private class, which I attempted to solve by making the class member
a shared_ptr<Tree> instead. I have it so that the tree is built from point
and triangle primitives in the constructor, and then another class method I
wrote is called later to find ray intersections with the tree. However,
within this method the tree is returning triangles where the first point is
incorrect, having 0 values in the x and y dimensions. I tried moving the
code from this method into the constructor just to test, and it works
correctly there. The weirdest thing is that calling a method on the tree
(tree->do_intersect(segment_query)) in the constructor causes the exact same
code in the other method to return the correct points for triangles. Please
let me know if I can clarify anything, I can post the code if needed. Sorry
if this is a simple c++ mistake, and I hope you will let me know if you have
any recommendations for what I should do to make an AABB tree a class member
rather than what I currently have.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] using cgal AABB tree as class member, myociss, 02/04/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, Mael, 02/04/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, myociss, 02/04/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, Sebastien Loriot (GeometryFactory), 02/06/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, myociss, 02/07/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, Sebastien Loriot (GeometryFactory), 02/06/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, myociss, 02/04/2020
- Re: [cgal-discuss] using cgal AABB tree as class member, Mael, 02/04/2020
Archive powered by MHonArc 2.6.18.