Recreate different geometries out of a Kinect pointcloud - Grasshopper2024-03-29T11:54:43Zhttps://www.grasshopper3d.com/forum/topics/recreate-different-geometries-out-of-a-kinect-pointcloud?commentId=2985220%3AComment%3A1213258&feed=yes&xn_auth=noHello everyone,
I've been kee…tag:www.grasshopper3d.com,2015-02-16:2985220:Comment:12254582015-02-16T14:33:39.798ZGiulio Brugnarohttps://www.grasshopper3d.com/profile/GiulioBrugnaro
<p>Hello everyone,</p>
<p>I've been keep working on the sorting pointcloud definition and it works pretty good until two sticks do not overalp with each other, when they do it recognizes a line(which is the average of the two sticks) instead of two crossing ones. I was wondering if there's a way to solve this issue. For my purpose the single stick does not need to be composed by a single polyline, could be segmented in more lines but still, if two are crossing, they need to stay separate…</p>
<p>Hello everyone,</p>
<p>I've been keep working on the sorting pointcloud definition and it works pretty good until two sticks do not overalp with each other, when they do it recognizes a line(which is the average of the two sticks) instead of two crossing ones. I was wondering if there's a way to solve this issue. For my purpose the single stick does not need to be composed by a single polyline, could be segmented in more lines but still, if two are crossing, they need to stay separate until the point they actually cross each other. Thank you!</p> Thank Peter and Hannes, both…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12131952015-01-28T21:32:29.234ZGiulio Brugnarohttps://www.grasshopper3d.com/profile/GiulioBrugnaro
<p>Thank Peter and Hannes, both your solutions work perfectly.</p>
<p>Thank Peter and Hannes, both your solutions work perfectly.</p> There's this handy little GH…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12132582015-01-28T20:51:19.686ZHannes Löschkehttps://www.grasshopper3d.com/profile/HannesLoeschke
<p>There's this handy little GH component called GroupPoints. It sorts points into separate lists according to a maximum distance within the group.</p>
<p></p>
<p>see attached file.</p>
<p>There's this handy little GH component called GroupPoints. It sorts points into separate lists according to a maximum distance within the group.</p>
<p></p>
<p>see attached file.</p> hmm ... what I was thinking?…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12132202015-01-28T15:38:33.944Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>hmm ... what I was thinking? (blame too many cigars).</p>
<p>Get V2</p>
<p>hmm ... what I was thinking? (blame too many cigars).</p>
<p>Get V2</p> But this is elementary my dea…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12132142015-01-28T14:42:46.904Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>But this is elementary my dear Watson :</p>
<p>1. Points are already in "order" (no need for sort).</p>
<p>2. Point "sets" are not overlapping each other.</p>
<p>So ... case "resolved" (in fact ... far from it but let's pretend that, for the moment)</p>
<p>PS: Points are internalized (but GH can't memorize a thing or two in most of cases)</p>
<p>best, Peter</p>
<p>But this is elementary my dear Watson :</p>
<p>1. Points are already in "order" (no need for sort).</p>
<p>2. Point "sets" are not overlapping each other.</p>
<p>So ... case "resolved" (in fact ... far from it but let's pretend that, for the moment)</p>
<p>PS: Points are internalized (but GH can't memorize a thing or two in most of cases)</p>
<p>best, Peter</p> I mean if I pick a point at t…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12126942015-01-28T09:04:31.567ZGiulio Brugnarohttps://www.grasshopper3d.com/profile/GiulioBrugnaro
<p>I mean if I pick a point at the top of the stick is closer to another point on the top of the other stick rather than a poin on its bottom. I've attached the rhino file with the pointcloud I'm working with, thank you.</p>
<p>I mean if I pick a point at the top of the stick is closer to another point on the top of the other stick rather than a poin on its bottom. I've attached the rhino file with the pointcloud I'm working with, thank you.</p> ...some trouble implement thi…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12127782015-01-28T08:50:23.819Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p><strong><em>...some trouble implement this...</em></strong></p>
<p>What do you mean by that? Strictly speaking that's very easy (but if I'll do it for you I'll do it using solely C#, not GH components) : anyway, post some test "isolated" pts dataset(s) and we'll see what could be done.</p>
<p>On the other hand, if the pts Lists "overlap" ... doing pThis.DistanceTo(pOther) ... I hardy can see how we can distinguish apples from apples.</p>
<p><strong><em>...some trouble implement this...</em></strong></p>
<p>What do you mean by that? Strictly speaking that's very easy (but if I'll do it for you I'll do it using solely C#, not GH components) : anyway, post some test "isolated" pts dataset(s) and we'll see what could be done.</p>
<p>On the other hand, if the pts Lists "overlap" ... doing pThis.DistanceTo(pOther) ... I hardy can see how we can distinguish apples from apples.</p> Thanks for the reply peter! W…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12126902015-01-28T08:38:56.560ZGiulio Brugnarohttps://www.grasshopper3d.com/profile/GiulioBrugnaro
<p>Thanks for the reply peter! What I havein mind is more like: take a point and check its distance with all the other points, if the distance value is less than a fixed value, copy all the points with that distance from the point in one new list. Unfortunately I still having some trouble implement this, so if anyone has some idea is welcome. Thanks!</p>
<p>Thanks for the reply peter! What I havein mind is more like: take a point and check its distance with all the other points, if the distance value is less than a fixed value, copy all the points with that distance from the point in one new list. Unfortunately I still having some trouble implement this, so if anyone has some idea is welcome. Thanks!</p> your samples are "separated"…tag:www.grasshopper3d.com,2015-01-28:2985220:Comment:12127722015-01-28T06:52:52.537Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>your samples are "separated" thus sorting them appears "doable" (for instance using LINQ):</p>
<p>var sorted = ptsList.OrderBy(p => p.Z).ThenBy(p => p.Y).ThenBy(p => p.X).ToList();</p>
<p>if by "intricate" you mean that the 2 "domains"/clouds share "common" x,y.z coordinates ... sorting the points appears impossible unless there's some <strong>other rule/condition</strong> that we could take into consideration</p>
<p>your samples are "separated" thus sorting them appears "doable" (for instance using LINQ):</p>
<p>var sorted = ptsList.OrderBy(p => p.Z).ThenBy(p => p.Y).ThenBy(p => p.X).ToList();</p>
<p>if by "intricate" you mean that the 2 "domains"/clouds share "common" x,y.z coordinates ... sorting the points appears impossible unless there's some <strong>other rule/condition</strong> that we could take into consideration</p>