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: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Modify vertex values
  • Date: Fri, 25 Jul 2014 16:13:51 -0700

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 <>:

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]> wrote:


2014-07-25 15:33 GMT-07:00 chrism <[hidden email]>:

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


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