Overlapping shapes - data flow problem - Grasshopper2024-03-29T06:10:48Zhttps://www.grasshopper3d.com/forum/topics/overlapping-shapes-data-flow?feed=yes&xn_auth=noThanks Danny, with your solut…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3431472011-07-28T16:16:30.329ZLynne MacLachlanhttps://www.grasshopper3d.com/profile/LynneMacLachlan
<p>Thanks Danny, with your solution helping I just managed to find the overlapping shapes aswell, I think I actually just had the inputs round the wrong way round for the intersection!</p>
<p>Going to look more closely at the way you use and select the surrounding polygons as this is probably better than just using them all...</p>
<p> </p>
<p>Again thanks so much for everyone's help!</p>
<p>Thanks Danny, with your solution helping I just managed to find the overlapping shapes aswell, I think I actually just had the inputs round the wrong way round for the intersection!</p>
<p>Going to look more closely at the way you use and select the surrounding polygons as this is probably better than just using them all...</p>
<p> </p>
<p>Again thanks so much for everyone's help!</p> Are you more interested in th…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3432132011-07-28T16:11:15.692ZDanny Boyeshttps://www.grasshopper3d.com/profile/DannyBoyes
<p>Are you more interested in the little squares?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768665862?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665862?profile=original" width="412"></img></a> In which case Region Intersect is the Component you require. From past experience its better to put the "others" into input A and the "interested" one in Input B as sometimes you don't get any results the other…</p>
<p>Are you more interested in the little squares?</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768665862?profile=original"><img class="align-full" width="412" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665862?profile=original"/></a>In which case Region Intersect is the Component you require. From past experience its better to put the "others" into input A and the "interested" one in Input B as sometimes you don't get any results the other way around. </p>
<p> </p> Hi Danny,
Just saw your pos…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3431442011-07-28T15:59:09.923ZLynne MacLachlanhttps://www.grasshopper3d.com/profile/LynneMacLachlan
<p>Hi Danny,</p>
<p> </p>
<p>Just saw your post after I posted the last one.</p>
<p>Thanks for looking - the layout is really helpful to see some new things.</p>
<p>I do want those shapes as well, I think I managed to do that with the region difference. But the ones I am having trouble getting are the overlapping squares rather than whats left....</p>
<p>Looks like I could make those shapes in the same way as you did, by joining up the points from the CCX in a different way, will give that a…</p>
<p>Hi Danny,</p>
<p> </p>
<p>Just saw your post after I posted the last one.</p>
<p>Thanks for looking - the layout is really helpful to see some new things.</p>
<p>I do want those shapes as well, I think I managed to do that with the region difference. But the ones I am having trouble getting are the overlapping squares rather than whats left....</p>
<p>Looks like I could make those shapes in the same way as you did, by joining up the points from the CCX in a different way, will give that a try.</p>
<p> </p>
<p>Thanks!</p> Actually what I've done is da…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3432112011-07-28T15:48:59.545ZDanny Boyeshttps://www.grasshopper3d.com/profile/DannyBoyes
<p>Actually what I've done is data tree management for the sake of data tree management.</p>
<p>You don't need item 3) at all because if the "others" don't intersect they don't have any influence on the shape.</p>
<p>Although slightly more time to compute this approach works just as well.…</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768666250?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768666250?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>Actually what I've done is data tree management for the sake of data tree management.</p>
<p>You don't need item 3) at all because if the "others" don't intersect they don't have any influence on the shape.</p>
<p>Although slightly more time to compute this approach works just as well.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768666250?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768666250?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Hi Zygnoth,
Wow thanks for…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3431362011-07-28T15:45:06.997ZLynne MacLachlanhttps://www.grasshopper3d.com/profile/LynneMacLachlan
<p>Hi Zygnoth,</p>
<p> </p>
<p>Wow thanks for doing that, not sure I completely follow it, seems a very complicated way to do it everytime.</p>
<p>I have still been trying to finad a solution with the region intersect as I felt it might be easier if I could get it to work. I have tried to connect it in various ways as you can see in the screen shot below. Two give me what I want along with lots of other duplicates and the original curves and I can't work out how to seperate out what I want. The…</p>
<p>Hi Zygnoth,</p>
<p> </p>
<p>Wow thanks for doing that, not sure I completely follow it, seems a very complicated way to do it everytime.</p>
<p>I have still been trying to finad a solution with the region intersect as I felt it might be easier if I could get it to work. I have tried to connect it in various ways as you can see in the screen shot below. Two give me what I want along with lots of other duplicates and the original curves and I can't work out how to seperate out what I want. The one I thought would work if I got the culling right doesn't give an error but just does not seem to output curves although the output number look right?</p>
<p>I also want the region differences and have managed to get that working nicely with the culling that you helped me with.</p>
<p> </p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768665951?profile=original"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665951?profile=RESIZE_1024x1024" class="align-full"/></a></p> Of course! Find the shapes th…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3425922011-07-28T15:37:58.371ZZygnoth Cosmoshttps://www.grasshopper3d.com/profile/ZygnothCosmos
Of course! Find the shapes that intersect with the shape you want...very nice move Danny.
Of course! Find the shapes that intersect with the shape you want...very nice move Danny. Is this the effect you are lo…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3429912011-07-28T15:32:05.107ZDanny Boyeshttps://www.grasshopper3d.com/profile/DannyBoyes
<p>Is this the effect you are looking for?</p>
<p> </p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768665767?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665767?profile=original" width="357"></img></a> Where the Red cross is the Region Difference of that polygon and the surrounding ones. If so then In pure data tree management this would be the way:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768665988?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665988?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>1) Create a set of data where every…</p>
<p>Is this the effect you are looking for?</p>
<p> </p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768665767?profile=original"><img class="align-full" width="357" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665767?profile=original"/></a>Where the Red cross is the Region Difference of that polygon and the surrounding ones. If so then In pure data tree management this would be the way:</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768665988?profile=original"><img class="align-full" width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665988?profile=RESIZE_1024x1024"/></a></p>
<p>1) Create a set of data where every polygon has a turn at being first in line.</p>
<p>2) Separate these sets so that the "interested" polygon is removed from the "others"</p>
<p>3) Find all "other" polygons that intersect with the "interested" one.</p>
<p>4) Use Region Difference to create the desired shape from our "interested" polygon and the intersecting "others"</p>
<p> </p>
<p>its item 3) where it gets a bit tricky.</p>
<p> </p> I went through the code bit b…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3430292011-07-28T14:35:00.214ZZygnoth Cosmoshttps://www.grasshopper3d.com/profile/ZygnothCosmos
<p>I went through the code bit by bit and it seems that it is working in theory but I think there are problems where the z value is not exactly exactly zero - I'm not certain why this happens sometimes.</p>
<p> </p>
<p>I've managed a type of workaround - the result needs to be tested a bit more strictly though and there are performance issues associated:</p>
<p>- Instead of working a intersection between the polygons as curves, consider an intersection between a closed polygon extruded perp and…</p>
<p>I went through the code bit by bit and it seems that it is working in theory but I think there are problems where the z value is not exactly exactly zero - I'm not certain why this happens sometimes.</p>
<p> </p>
<p>I've managed a type of workaround - the result needs to be tested a bit more strictly though and there are performance issues associated:</p>
<p>- Instead of working a intersection between the polygons as curves, consider an intersection between a closed polygon extruded perp and the rest of the polygons made into surfaces. The result will be some of the curves needed and the other curves will be made in later iterations. Clean and join for the end result.</p>
<p> </p>
<p>The vector could be more simply defined than in my script below but I think it's better this way in case the surface is rotated at some later date.</p>
<p> </p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768666126?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768666126?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Hi Zygnoth,
Thanks! I think…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3429522011-07-28T13:36:06.119ZLynne MacLachlanhttps://www.grasshopper3d.com/profile/LynneMacLachlan
<p>Hi Zygnoth,</p>
<p> </p>
<p>Thanks! I think this is definately getting closer. But It seems really odd that some of the shapes are missing one part, I can't see why this would be?</p>
<p>Getting these emergent shapes is quite fundemental to my long term project so I am hoping to find a reasonably elegant solution......</p>
<p>Hi Zygnoth,</p>
<p> </p>
<p>Thanks! I think this is definately getting closer. But It seems really odd that some of the shapes are missing one part, I can't see why this would be?</p>
<p>Getting these emergent shapes is quite fundemental to my long term project so I am hoping to find a reasonably elegant solution......</p> Hi Lynne,
I gave the proble…tag:www.grasshopper3d.com,2011-07-28:2985220:Comment:3429452011-07-28T12:41:08.293ZZygnoth Cosmoshttps://www.grasshopper3d.com/profile/ZygnothCosmos
<p>Hi Lynne,</p>
<p> </p>
<p>I gave the problem a quick attempt - I think I've gotten a bit further than you but I'm getting stuck with my tree structures. For some reason, it isn't closing all the intersection curves for me. If this is for a small project, you might be able to decompose the curve and remake them closed.</p>
<p> …</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768665755?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665755?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>Hi Lynne,</p>
<p> </p>
<p>I gave the problem a quick attempt - I think I've gotten a bit further than you but I'm getting stuck with my tree structures. For some reason, it isn't closing all the intersection curves for me. If this is for a small project, you might be able to decompose the curve and remake them closed.</p>
<p> </p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768665755?profile=original"><img class="align-full" width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768665755?profile=RESIZE_1024x1024"/></a></p>