Subject: CGAL users discussion list
List archive
- From: paulo <>
- To:
- Subject: Re: [cgal-discuss] Howto adapt my mesh for parameterization.
- Date: Sun, 31 Jan 2010 00:34:37 +0900
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=IJWk0CdaNT/EM4jJrZfWEo/TnXy0X/YRxrR1WBTaK8TUiVO26jJ7YoRMZqOKASBI0+ cvpyUI7X6uctsxpk2kFw89Bsv11hMr4ab/7o72iLIjRQAaERjWmwdA271y7wABEXS4K7 I8M1C85aRRPp3hUJKzzLOfqCR1brfls1U6l34=
Hi,
after debugging CGAL's code, there's something I don't understand, and looks like a bug.
In the square border parameterizer it computes the offsets 0, 1, 2 and 3 using the border iterator, which iterates through the vertices apparently in a clockwise way, which in my case yields the sequence ((-1, -1, 0) , (-1, 1, 0) , ( 1, 1, 0) ,( 1, -1, 0)).
But afterwards it parameterizes the mesh in a counterclockwise way (?!) which yields ((-1, -1, 0), ( 1, -1, 0), ( 1, 1, 0), (-1, 1, 0)).
This does not make sense to me.
But if it is a bug how come no one found it before? No one uses this code?
Can any one related to this implementation say something please?
I feal tempted to change the code, but I would like to hear what other people have to say.
Thank you.
Paulo
paulo wrote:
Hi Laurent,
thank you so much for your help.
I could only test it today, and it helped allot.
I'm still debugging, but I'm getting a strange (in my opinion) result.
I'm inputing (in this sequence):
vertices:
(-1, -1, 0)
( 1, -1, 0)
( 1, 1, 0)
(-1, 1, 0)
Faces:
(0,1,2)
(0,2,3)
I get a parameterization:
(0,0)
(0,1) !?
(1,1)
(1,0) !?
This flips two of the vertices.
Shouldn't it be:
(0,0)
(1,0)
(1,1)
(0,1)
Am I understanding something wrong?
Thank you.
Best regards,
Paulo
- [cgal-discuss] Howto adapt my mesh for parameterization., paulo.jnkml, 01/26/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., Laurent Saboret, 01/27/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., paulo, 01/30/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., paulo, 01/30/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., paulo, 01/30/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., paulo, 01/30/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., paulo, 01/30/2010
- Re: [cgal-discuss] Howto adapt my mesh for parameterization., Laurent Saboret, 01/27/2010
Archive powered by MHonArc 2.6.16.