Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file
Chronological Thread
- From: Maxime Gimeno <>
- To:
- Subject: Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file
- Date: Tue, 1 Sep 2020 08:25:07 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:gs28IxCmAMc103dpK3jqUyQJP3N1i/DPJgcQr6AfoPdwSP37ocSwAkXT6L1XgUPTWs2DsrQY0rSQ6vq8EjxZqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5zIRmssAndqMYbjYRhJ6os1xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOjgk+2/Vl8NwlrpWrx2vpxN9w4DaboKbOudgcKzBZt4VX3ZNU9xLWiBdHo+xbY0CBPcBM+ZCqIn9okMDoxykCgijBePvzyFHjWL306071uQuDwfG3As9FN8JtXTbttr0NKYXUe+r1qXIwjTDb/ZI1jf774jFaR8hofSWUrJxdcrd01UgFwTAjliJr4HuIjya2PgXvWeB8+pgSfygi3QhqwxpvzSj2tshhpXKi48W113I6CR0zogpKNGkVEJ1YcCoHZlRui+UKoZ7Q8AvTmJntis11LALt5C2cSYKxZko2xLSa/qKeJWG7BLkUeaeOzZ4hHR9dbKwhhay7UigyvDnWcWuzFlKqS9FnsHCu30P1xHf8M+HSvVz/ku52DaP0RrT6uBeLkwum6rbMZgsyaMzmJoLqUnPADP6lUHsgKKVdkgo4PWk5uXlb7n8u5ORNZF4hwfjOao0gMO/G/43Mg0WUmib5+u80Lrj8FX8QLpQj/02lrDVsJfbJcgGv6K5DRJZ34Q95xqlADem19MYnXYDLF1bYh6Ik4/pO1TWLPD5C/ewnUisnS91y/zaOrDtGJbAI3jZnLv8fLtw6VRQxBcxwNxB/55UD6sOIPP3Wk//rtzYCRo5PhSxw+n9B9R914YeVnyVDq+WMaPStEGH5uQoI+SXa48VvSzyK/kh5/L0kXA5nlodcbGz3ZQLcHC4AuhmI0KBbHXwjdcOC2MKshMjQ+zrk12NTSNTZ22pX68n/TE6CIemDZ/ZSYy3gbyB2j27HpxMaWxcBFCMCySgSoOfRv1ZaD6OOtQz1XsfRL25Qskg0wuvvUn00f18P+/M82oZs5zkk9N67umWmRAp/iFvFJeg1XqQRUFom2ddRyMqxLst5gtm21Kb2O55heZZHJpd/bRSQwIiPNndyeJ9TNv9UwaEctaSQ0u9WYabByosRO4808NbY1phA87wyVfYzi+yCvkUkaaKDdo66OXHzn3pLoF8zXjBk6Iuhl1jTspUPnC9nf1D8F3YCIfN1kmYjK23br803SjX9W7Fw3DdkltfVVtVWLXEWH1XSUrToNL+rhfHRq+vDLlhPQpExMiFAqRPY9zty15BQaGwa5zlf2utljLoVl6zzbSWYd+yIjRP7GDmEEEB1jsr0zODPAk6CD2mpjuHXjNrHFPrJUjr9Lsn8S/pfgoP1wiPKnZZ+f+t4BdM3K6TTvoS2vQPvyJz82wpTmb45MrfDp+7nyQkfKhYZoljslJO1GacsA0ke5L5cPokiVkZfAB6+Ujp0kcvBw==
Hi,
Your custom .off file does not contain any face. That must be what's wrong.
Regards,
Maxime Gimeno
Le lun. 31 août 2020 à 22:33, sindhu r <> a écrit :
Hello,I'm very new to the vastness of CGAL and have a question about the Surface Mesh Shortest Path (SMSP) package. I am also new to a discussion forum, so please let me know if I'm not following any convention on posting questions/code etc.What I want to do: Using an .off file of the desired shape, find the shortest path on the shape. I provide the coordinates of the source and target locations and use the "locate" function to determine the face locations (face descriptor and barycentric coordinates). These are then fed to the "shortest_path_points_to_source_points" function. The final output path is written to a file.What I have done: All of the above (minimal working code is provided here). I have tested my code with success on .off files from the web (elephant.off at https://github.com/CGAL/cgal/blob/master/Mesh_3/examples/Mesh_3/data/elephant.off, kitten_poisson-20-30-0.375.off (attached)). But I'm unable to get it to work on my custom .off file (generated using Polyhedron and Poisson reconstruction, also attached). The following error is what I get with my custom .off file:terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: _idx < data_.size()
File: /home/sin/lib/libigl/external/cgal/install/include/CGAL/Surface_mesh/Properties.h
Line: 195I don't understand what the difference is between my .off file and the ones that are used as part of examples. Any help is dearly appreciated!Regards,Sindhu R
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, Maxime Gimeno, 09/01/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, Maxime Gimeno, 09/01/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, sindhu r, 09/01/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, Maxime Gimeno, 09/02/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, sindhu r, 09/05/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, Maxime Gimeno, 09/02/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, sindhu r, 09/01/2020
- Re: [cgal-discuss] Surface Mesh Shortest Path: Assertion error with custom .off file, Maxime Gimeno, 09/01/2020
Archive powered by MHonArc 2.6.19+.