Extract two point positions from one edge?

2014-06-03 Thread Arvid Björn
Hi folks, Is there a way to iterate though each edge of a mesh and extract its two point components, one at each end of the edge? I'd like to use those two points to interpolate between and add a bunch of points along the edge. Cheers!

Re: Extract two point positions from one edge?

2014-06-03 Thread Jens Lindgren
In ICE, just Get self.EdgeToVertices That will give you a array of the two Point Indexes for every edge. /Jens On Tue, Jun 3, 2014 at 6:04 PM, Arvid Björn arvidbj...@gmail.com wrote: Hi folks, Is there a way to iterate though each edge of a mesh and extract its two point components, one at

Re: Extract two point positions from one edge?

2014-06-03 Thread Oscar Juarez
Or if you want to do it in script, PolygonMesh.Edges get you all the edges and you can iterate all the edges and their Points property. On Tue, Jun 3, 2014 at 6:09 PM, Jens Lindgren jens.lindgren@gmail.com wrote: In ICE, just Get self.EdgeToVertices That will give you a array of the two

Re: Extract two point positions from one edge?

2014-06-03 Thread Arvid Björn
THANKS! I've been going in circles for an hour, I almost had it before, but now I'm back on track, cheers Jens =) On Tue, Jun 3, 2014 at 6:09 PM, Jens Lindgren jens.lindgren@gmail.com wrote: In ICE, just Get self.EdgeToVertices That will give you a array of the two Point Indexes for

Re: Extract two point positions from one edge?

2014-06-03 Thread Jens Lindgren
Hehe no problem, Arvid :) I think all the Get SomethingToSomething data is underrated and very few examples are out there of how one could use them. Since I learned how they work, I have been able to do amazing things with polymeshes in ICE. /Jens On Tue, Jun 3, 2014 at 6:26 PM, Arvid Björn

Re: Extract two point positions from one edge?

2014-06-03 Thread Francois Lord
Yeah, I started using them recently too and they are very powerful. Getting your head around the usage is not obvious, though. F On 03-Jun-14 13:49, Jens Lindgren wrote: Hehe no problem, Arvid :) I think all the Get SomethingToSomething data is underrated and very few examples are out there

Re: Extract two point positions from one edge?

2014-06-03 Thread pedro santos
Not obvious because of the wording. PolygonToEdges at first seems to retriving indices from polygons to their surrounding edges. When it's the other way around it's retrives indices from edges to their bordering polygons. More over indices it's all it does so you have always to flatten out sets of