Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Modify vertex values

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Modify vertex values


Chronological Thread 
  • From: chrism <>
  • To:
  • Subject: Re: [cgal-discuss] Modify vertex values
  • Date: Sat, 26 Jul 2014 07:39:22 -0700 (PDT)

It's the same rotation to each vertex, regardless of face.

On Jul 26, 2014 2:23 AM, "andreas.fabri [via cgal-discuss]" <[hidden email]> wrote:
Hello,

Is it the same rotation for all vertices?
Even then due to numerical issues collinear vertices
might become non-collinear.

Or do you apply different rotations to the
vertices?

Or do you even apply a different rotation for
a vertex, depending on the face you are in?

andreas

On 26/07/2014 01:58, chrism wrote:

> Yes that's my concern that it breaks something in a subtle way. I'll try
> this and see what happens though. Thanks!
>
> On Jul 25, 2014 5:14 PM, "Sylvain Pion-3 [via cgal-discuss]" <[hidden
> email] </user/SendEmail.jtp?type=node&node=4659616&i=0>> wrote:
>
>     I believe it changes nothing else.  But of course be careful, this
>     violates Delaunay invariants, and if you use the Delaunay hierarchy,
>     things can get funny.
>     If you can find a different way to achieve what you want without
>     resorting to such a hack, it would be better.
>
>
>     2014-07-25 16:01 GMT-07:00 chrism <[hidden email]
>     <http://user/SendEmail.jtp?type=node&node=4659615&i=0>>:
>
>         And that will not change the triangulation? Not sure how I
>         missed that, thanks.
>
>         On Jul 25, 2014 4:52 PM, "Sylvain Pion-3 [via cgal-discuss]"
>         <[hidden email]
>         <http://user/SendEmail.jtp?type=node&node=4659614&i=0>> wrote:
>
>             Use set_point() to change the point of a vertex :
>             http://doc.cgal.org/latest/Triangulation_2/classTriangulationVertexBase__2.html
>

>
>
>             2014-07-25 15:33 GMT-07:00 chrism <[hidden email]
>             <http://user/SendEmail.jtp?type=node&node=4659613&i=0>>:
>
>                 I need to apply a rotation to each triangle in my
>                 Delauny (2D) triangulation.
>                 To do this, I calculate the rotation to move each
>                 triangle's vertex into the
>                 new coordinate system. Because I need to perform
>                 triangle-triangle
>                 intersection in this new coordinate system I need to
>                 update the x,y,z values
>                 at each vertex to the new x',y',z' values. Critically
>                 though, I need to
>                 maintain the triangles (despite the fact they will no
>                 longer be Delaunay) --
>                 therefore removal/insert doesn't work.
>
>                 Therefore, what would be the best way forward to modify
>                 the vertex's x,y,z
>                 values?
>
>                   Ideally I'd do something like:
>
>                 Delaunay prj(original_tri);
>                      for (triangulation::Finite_faces_iterator fit =
>                 prj->finite_faces_begin(); fit !=
>                 prj->finite_faces_end(); ++fit)
>                      {
>                          //interpolate the station data to the current
>                 element
>                          triangulation::Face_handle face = fit;
>
>                          vert(0) = face->vertex(0)->point().x();
>                          ver(1) = face->vertex(0)->point().y();
>                          vert(2) = face->vertex(0)->point().z();
>
>                          rot_vert = rotation(vert);
>                          face->vertex(0)->set_x(rot_vert(0));
>                          face->vertex(1)->set_x(rot_vert(1));
>                          face->vertex(2)->set_x(rot_vert(2));
>
>
>                 .....
>
>
>                 Thanks.
>
>
>
>                 --
>                 View this message in context:
>                 http://cgal-discuss.949826.n4.nabble.com/Modify-vertex-values-tp4659612.html
>                 Sent from the cgal-discuss mailing list archive at

>                 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
>
>
>
>
>
>             ------------------------------------------------------------------------
>             If you reply to this email, your message will be added to
>             the discussion below:
>             http://cgal-discuss.949826.n4.nabble.com/Modify-vertex-values-tp4659612p4659613.html
>

>             To unsubscribe from Modify vertex values, click here.
>             NAML
>             <http://cgal-discuss.949826.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
>         ------------------------------------------------------------------------
>         View this message in context: Re: Modify vertex values
>         <http://cgal-discuss.949826.n4.nabble.com/Modify-vertex-values-tp4659612p4659614.html>
>
>         Sent from the cgal-discuss mailing list archive
>         <http://cgal-discuss.949826.n4.nabble.com/> at Nabble.com.
>
>
>
>
>     ------------------------------------------------------------------------
>     If you reply to this email, your message will be added to the
>     discussion below:
>     http://cgal-discuss.949826.n4.nabble.com/Modify-vertex-values-tp4659612p4659615.html
>
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: <a href=""tel:%2B33.492.954.912"" value="+33492954912" target="_blank">+33.492.954.912    skype: andreas.fabri

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





If you reply to this email, your message will be added to the discussion below:
http://cgal-discuss.949826.n4.nabble.com/Modify-vertex-values-tp4659612p4659617.html
To unsubscribe from Modify vertex values, click here.
NAML


View this message in context: Re: Modify vertex values
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page