Subject: CGAL users discussion list
List archive
- From: Mael <>
- To:
- Subject: Re: [cgal-discuss] Surface_mesh_shortest_path
- Date: Wed, 13 Nov 2019 19:08:15 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:JOLvthb8QrMX4BR67hMTvBj/LSx+4OfEezUN459isYplN5qZpsyyYR7h7PlgxGXEQZ/co6odzbaP6Oa5AjVLuM/Z+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi4oAnLq8Ubj5ZuJqksxhfUvndDZvhby35vKV+PhRj3+92+/IRk8yReuvIh89BPXKDndKkmTrJWESorPXkt6MLkqRfMQw2P5mABUmoNiRpHHxLF7BDhUZjvtCbxq/dw1zObPc3ySrA0RCii4qJ2QxLmlCsLKzg0+3zRh8dtjqxUvQihqgRizYDKboGbNPlwcK3TctwVR2VOQslfWjddAo6+dYYDE/YNMOhaooT7ulAArQG+BQ6pBO73zTFHnGH53akn2OkmFAHJxhIvH9YUvHTOq9X1KagTXv6xzKXSyTXMdehZ1izj54XTfRAuv/aMXbdufsrN00kuFw3FgU+Mpoz5ODOVzOQMv3KH4OpnUOKikmgqoBx/rDiow8cjkIjJhoQNx1DC7yp22506JdmmR0JhfdGkF55QuzmGOIt5WMwiR3tkuCEgyr0Jv5OwYSsEyIw/yhLCafGKcJKE7xz9WOqLPDt0mnJodKihixqs8kWs0u7xW8iu3FpUsiZInMPAum4Q2xHQ8MSLV/Vw8lu51TqTzQzf9vtILVwumabHLZMq36Q+mYAJsUvZGy/7gEX2g7GSdkUj4uWk9vrrbq/jpp+bNoJ4kAT+Pb4vmsy7GOg4NRUOX3SB9eS7yr3j/Vf1QLNUgf0qiqXZsZbaKtoHpqOhHgNY0IUu5wyxAju4ytgUgGcLIVJfdB6ZkYTkOEnCIPXiAve+h1Ssni1rx/fDPrD5B5XCNGbMkLP7cbZn7E5c1QUyws5b555ODrEOOun8VVTvu9HDAR82LQu0w+P5B9VhzIMfWWyPDbWFP6POtl+I/OIuL/OQa48SvTbxM+Il6OL2jX8lhV8derGk0ocYaH+iGvRqOliWYXv3gtgdDGcKpRE+QffxiFyCVD5Tf2y9U7g95jE9EoKmDJ3MSpqjgLybxCu7G5pWaX1YBV2UCnfocpmEW+8VZCKVP89hjiQIVbi/RI8l0hGjrBf6y759IevU5CIYr5Du2dhp6+HJlRE97yZ4D8OD02GNVW10mH0HRyMu0KB+p0xy1EuD3LBkj/BCCdBf/e9FXh0mOZLE1ex1F8jyWh7dfteOUFupXtqmDis1Tt4o3tAOYl19FMm/jhDYxCqnGL4Vl7qRBJw16K3QxXbxJ9x7xn3byqQhi0QmQtBTNWK4nK5x6gnTBo/XnEiBi6r5PZgbiSXC/WPGwWuVt1xDSyZxV7/EVDYRfBj4t9P8s2bLQrvmXbEuPw8H08mfOqZOLNngh19LbPjuP9HTf3iglW67GRGS1/WHa4+8KDZV5znUFEVRy1Nbxn2BLwVrXn788VKbNyRnEBfUW22p8eR6rynmHBZuiQSNMQtk3ruxvxkImbqbVfNV2L8Y6n9492dEWW2l1teTMOKu4hJ7df8FM9ww51JKyXjIuQV2Ipu6PuZpgVtMK10m7XOr7A1+D8B7qeZvqXoryARoLqfCiQFOejSd0IzqK7PeIXX15gHpYKnTiAnT
Hello,
The way the algorithm works is that it builds a full tree before doing queries on it, so currently there's no way. However, I was thinking about implementing this in the case where you have pre-determined targets and interrupt the tree construction as soon as you have distances over your current minimum.
Alternatively, and already available : since you know which faces of your mesh will be involved in the shortest path, you can run the algorithm on a face filtered graph : https://doc.cgal.org/latest/BGL/structCGAL_1_1Face__filtered__graph.html. This is an adapter around your mesh that will behave as if it were just a mesh made out of the faces you've selected.
Best,
Mael
On 2019-11-13 18:03, aseverino wrote:
Is there a way to limit the search for shortest path? I have a huge mesh, and
I know the source point is just less than a dozen triangles away from the
target.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Surface_mesh_shortest_path, aseverino, 11/13/2019
- Re: [cgal-discuss] Surface_mesh_shortest_path, Mael, 11/13/2019
Archive powered by MHonArc 2.6.18.