<div dir="ltr">Valerian,<div><br></div><div>I recommend you look into the osgUtil::PlaneIntersector. For each segment of your line, construct a plane that is orthogonal to the grid. The PlaneIntersector will generate a Polyline containing all the points in that plane that intersect the grid.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div>
<br><div class="gmail_quote">On Wed, Jul 13, 2016 at 5:24 AM, Valerian Merkling <span dir="ltr"><<a href="mailto:niarkoleptik@gmail.com" target="_blank">niarkoleptik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
To make it short, I want to tessellate a line to make it follow a grid.<br>
<br>
On the attached example, the red line on the top is my starting line, and I want to add every intersection of this line and a grid as vertex of this line.<br>
<br>
The expected result is the line in the bottom.<br>
<br>
I know I can do it with math, but I would like to know if the osgUtil::Tessellator can do it for me.<br>
<br>
I looked at the osgtessellate example but it's all about polygons...<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Valerian<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=68109#68109" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=68109#68109</a><br>
<br>
<br>
<br>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>