Orient_polygon_soup

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Orient_polygon_soup

Shrabani Ghosh
Hi,

I am trying to use the orient_soup on my data. I am following the below example.
https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2orient_polygon_soup_example_8cpp-example.html#a2

but in the line of iteration of faces, I am getting an error and later I am getting segmentation fault. I printed here the faces iteration and I can see this below error. I am not understanding why I am getting this error. I cannot change the orientation and not able to use the mesh for any other examples. Could you please suggest how to solve this? I am attaching the input file here. 

1169029 1169030 1169031 116903terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
Expr: is_valid_polygon_mesh(tm)
File: /home/sghos003/CGAL-4.13.1/include/CGAL/Polygon_mesh_processing/orientation.h
Line: 483
2 1169033 1169034 1169035 1169036 1169037 1169038 1169039 1169040 1169041 

Regards
Shrabani Ghosh
Reply | Threaded
Open this post in threaded view
|

Re: Orient_polygon_soup

Sebastien Loriot (GeometryFactory)
I can reproduce the error. In CGAL 4.14, we introduced the function
PMP::repair_polygon_soup(points, polygons) that if called before
the call to orient_polygon_soup fixes the issue.

@Mael, you might want to have a look at what is going on. There are
no (topologically at least) degenerate faces, only duplicated vertices.
The verbose mode does not really help to understand what is going on (at
least it did not help me)

Sebastien.

On 9/18/19 2:12 AM, Shrabani Ghosh wrote:

> Hi,
>
> I am trying to use the orient_soup on my data. I am following the below
> example.
> https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2orient_polygon_soup_example_8cpp-example.html#a2
>
> but in the line of iteration of faces, I am getting an error and later I
> am getting segmentation fault. I printed here the faces iteration and I
> can see this below error. I am not understanding why I am getting this
> error. I cannot change the orientation and not able to use the mesh for
> any other examples. Could you please suggest how to solve this? I am
> attaching the input file here.
>
> 1169029 1169030 1169031 116903terminate called after throwing an
> instance of 'CGAL::Assertion_exception'
>    what():  CGAL ERROR: assertion violation!
> Expr: is_valid_polygon_mesh(tm)
> File:
> /home/sghos003/CGAL-4.13.1/include/CGAL/Polygon_mesh_processing/orientation.h
> Line: 483
> 2 1169033 1169034 1169035 1169036 1169037 1169038 1169039 1169040 1169041
>
> Regards
> Shrabani Ghosh
> output_newvolume_bones.off
> <https://drive.google.com/file/d/1w-MSveT4IiGziJZibrqTyeIa72Z02_og/view?usp=drive_web>

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Orient_polygon_soup

Sebastien Loriot (GeometryFactory)
Actually is valid was failing because of isolated vertices.
Calling PMP::remove_isolated_vertices(mesh) right after
the mesh creation prevents the assertion to be triggered.

Sebastien.

On 9/18/19 7:16 AM, Sebastien Loriot (GeometryFactory) wrote:

> I can reproduce the error. In CGAL 4.14, we introduced the function
> PMP::repair_polygon_soup(points, polygons) that if called before
> the call to orient_polygon_soup fixes the issue.
>
> @Mael, you might want to have a look at what is going on. There are
> no (topologically at least) degenerate faces, only duplicated vertices.
> The verbose mode does not really help to understand what is going on (at
> least it did not help me)
>
> Sebastien.
>
> On 9/18/19 2:12 AM, Shrabani Ghosh wrote:
>> Hi,
>>
>> I am trying to use the orient_soup on my data. I am following the
>> below example.
>> https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2orient_polygon_soup_example_8cpp-example.html#a2 
>>
>>
>> but in the line of iteration of faces, I am getting an error and later
>> I am getting segmentation fault. I printed here the faces iteration
>> and I can see this below error. I am not understanding why I am
>> getting this error. I cannot change the orientation and not able to
>> use the mesh for any other examples. Could you please suggest how to
>> solve this? I am attaching the input file here.
>>
>> 1169029 1169030 1169031 116903terminate called after throwing an
>> instance of 'CGAL::Assertion_exception'
>>    what():  CGAL ERROR: assertion violation!
>> Expr: is_valid_polygon_mesh(tm)
>> File:
>> /home/sghos003/CGAL-4.13.1/include/CGAL/Polygon_mesh_processing/orientation.h
>>
>> Line: 483
>> 2 1169033 1169034 1169035 1169036 1169037 1169038 1169039 1169040 1169041
>>
>> Regards
>> Shrabani Ghosh
>> output_newvolume_bones.off
>> <https://drive.google.com/file/d/1w-MSveT4IiGziJZibrqTyeIa72Z02_og/view?usp=drive_web>
>>

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Orient_polygon_soup

Shrabani Ghosh
Thank you sooo much. It's working now.

Thanks
Shrabani Ghosh



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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss