Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problems with a 3D Triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problems with a 3D Triangulation


Chronological Thread 
  • From: Juan Carlos Lopez Alfonso <>
  • To:
  • Subject: Re: [cgal-discuss] Problems with a 3D Triangulation
  • Date: Thu, 27 Oct 2011 19:41:34 +0200

Hi guys:

Thank you for all, I have solved almost all my problems with
triangulations, but I have another questions about Triangulations:

- When I iterate the cells of my triangulation, there is a vertex with
value of cordinates very big "infinite_vertex". In this case, the
cells with this vertex must be excluded from the triangulation? Why
this vertex is included in my triangulation? What can I do with these
cells which contain this vertex?

The second step of my simulations is to work with these cells, but I
can't do it with this infinite vertex included.

- My second question is the follows:

I have a map of cells (keys) (I have more than 10 000 000 of cells)
and a list of integers (values), where I will store each cells and the
number of vertices respect to the another list. When I execute the
following code:

std::map<Cell_handle, std::list<int>> Cells;
for(All_cells_iterator cit = T.cells_begin(), end = T.cells_end(); cit
!= end; cit)
{
int myints[] =
{Vertices.find(cit->vertex(0))->second,Vertices.find(cit->vertex(1))->second,Vertices.find(cit->vertex(2))->second,Vertices.find(cit->vertex(3))->second};
Cells.insert(std::make_pair(cit, list<int>(myints, myints
sizeof(myints)/sizeof(int))));
}

and after several iterations I have this error:
Microsoft C Exception: std::bad_alloc

Maybe these questions are trivial ones, but I cant solve them.

Thank you for all, I appreciate a lot your help
Best Regards
Juan Carlos

On Thu, Oct 27, 2011 at 9:00 AM, Marc Glisse
<>
wrote:
> On Thu, 27 Oct 2011, Juan Carlos Lopez Alfonso wrote:
>
>> Thank you for your answer, but I have created a new set of point where
>> I dont have repeated points, I have exported the set of point from
>> matlab and I am using the unique function of matlab (unique) to ensure
>> the uniqueness of each point in my list. For these reason I have a new
>> list of points, where each point appear only once.
>
> matlab prints the coordinates with a very small precision, so 2 different
> points in matlab might be written the same in the exported file. Maybe you
> could change the setting in matlab to make it print the coordinates with
> more precision?
>
> --
> Marc Glisse
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.16.

Top of Page