Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Finding the a face in a mesh that is coplanar to a given point

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Finding the a face in a mesh that is coplanar to a given point


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Finding the a face in a mesh that is coplanar to a given point
  • Date: Fri, 25 Oct 2019 16:36:22 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:F3NRZRzZZni61jzXCy+O+j09IxM/srCxBDY+r6Qd2+weIJqq85mqBkHD//Il1AaPAdyAraMfwLWG+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhGiTanZb5/Ihq6oAfSu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8qFmQwLqhigaLT406HzZhNJ+jKxboxyvqRJwzIHWb46JL/dxZL/RcMkASGZdUMtcVSpMCZ68YYsVCOoBOP5VopX7p1QTtxuxGxOjBPjywTFInHD5xrc60+U8GgzBxgMgGc8BsG7Ko9rvL6ceS+61w7PTwjXZbvNbwjj955bPchAkv/6MQahwcMrfyUY1CwzFklKQqZblPj+PyusNtG2b4vNmWOmyhWAnrARxrSKuxscqkoTJgJgaxUvf+iV93ok5P8G3SEl+YdK8DJRQuDuVN49sTsMlWWFotyA3waAFt56jZCUG1ZYqyh3FZ/GJfYWE+AzvWeaMLTtii39ofKqziwio/US9yuDwTNS43VREoyZfj9XBt3EA2hrO4cadUPR95F2u2TOX2gDT9O5EJUc0mLLFJ5I7x74wkYcfvEbNEyPsnUX5lq6WdkE99uiv9uTnfq/qppiCN490kA3+NLohmtCnDeQ5NAgBQXSb9Pyh2LDh/kD1WrtHg/MsnqXHsJ3WON4Xq6G9DgNN14Ys8Re/DzOo0NQCmnkHKUpIdwiBj4f0IVHBPur3Deylj1Siijhk3OrGPrz6D5XCMHfDl7Lhcqhh605GyAszw8pQ6I5ICrEGOvLyWlX9u8DfDh88KwC02froCM1h1oMCXmKCGrOWMKzIvl+M/+4gPuiMZJQJtzbgMPgl/OXjjWQ5mF8YZammx4EbaHG+HvR8IkWWe2DggtkbETRCgg1rR+PjjBiOUCVYem2pd6M6/DAyToy8XqnZQYX4qbqNxiqyBdV4b2pcCxjYGHHkbYiNQLECYSiII+dunzsBWKS7WoEo3g2prh68wL1ieLmHshYEvI7ugYAmr9bYkgs/oGQtU5atllqVRmQxpVsmAics1fom80NwzVKOzbJpjfVTCdtJ9rVCVQJobceBndw/MMj7X0f6RvnMSFuiRY/4U2t3S9VonIRIZk98H5ClkwyF2DSqRbkYi+7TXc1mwufnx3H0Yv1F5TPD3aglgUMhR5EWZ2Krgaty6xLCCYfCj0KDhuChcqFOhCM=

I do  not see where that helps.  A point coplanar to a face  f
can be far away from f and be close to a non-coplanar face.

      ************
      *                      *
 p   f1                     ***f2**
      *                                    *
      ******************   

p is coplanar with f2 but f1 is closer

On 10/25/2019 4:27 PM, Sebastien Loriot (GeometryFactory) wrote:
You can use AABB_tree::closest_point_and_primitive()

https://doc.cgal.org/latest/AABB_tree/classCGAL_1_1AABB__tree.html#a1b3ac9521fd7257f760deafff3743437

Sebastien.

On 10/24/19 6:05 PM, aseverino wrote:
Hello,

I'm trying to find the face index that has its points coplanar to another
given point. This given point is guaranteed to be coplanar to the mesh
*somewhere*.

Is there a more optimized method to find that face without having to iterate
over all of them (in the worst case)?



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri



Archive powered by MHonArc 2.6.18.

Top of Page