Brep voronoi coincident ends - Grasshopper2024-03-29T00:02:58Zhttps://www.grasshopper3d.com/forum/topics/brep-voronoi-coincident-ends?xg_source=activity&feed=yes&xn_auth=noyeah you are right, it always…tag:www.grasshopper3d.com,2010-07-29:2985220:Comment:803432010-07-29T11:18:40.037Zgennaro senatorehttps://www.grasshopper3d.com/profile/gennarosenatore
yeah you are right, it always circle actually,<br />
adding the corner points works just fine<br />
<br />
best
yeah you are right, it always circle actually,<br />
adding the corner points works just fine<br />
<br />
best Anytime :)
As for the issue…tag:www.grasshopper3d.com,2010-07-29:2985220:Comment:803382010-07-29T11:10:41.288ZJacek Jaskólskihttps://www.grasshopper3d.com/profile/JacekJaskolski
Anytime :)<br />
<br />
As for the issue you've mentioned - actually, it's always circles...<br />
...but when the two points lay on different segments (like in the case of the "bigger regions" in the example above) those circles should be constructed in a different way.<br />
<br />
I didn't take this into account and that's why you get inconsistent results.<br />
<br />
You can either define those specific corner situations separatly or add those 4 corner points to the pointset and the definition will work just fine.
Anytime :)<br />
<br />
As for the issue you've mentioned - actually, it's always circles...<br />
...but when the two points lay on different segments (like in the case of the "bigger regions" in the example above) those circles should be constructed in a different way.<br />
<br />
I didn't take this into account and that's why you get inconsistent results.<br />
<br />
You can either define those specific corner situations separatly or add those 4 corner points to the pointset and the definition will work just fine. Jacek,
a post thought on the…tag:www.grasshopper3d.com,2010-07-29:2985220:Comment:803302010-07-29T10:51:03.761Zgennaro senatorehttps://www.grasshopper3d.com/profile/gennarosenatore
Jacek,<br />
<br />
a post thought on the matching of the datastructures:<br />
<br />
the reason why I got stuck is because I thought that when having two trees such as {A;B} and {A;B;C} GH would be able to match the higher hierarchy automatically<br />
like you would do in a for loop when you use the 2nd order branches '(B) of the first tree with 2nd order branches of the second (B) and the particular command (in this case "evaluate") could take an array or list of input enclosed in the third order branch of the second…
Jacek,<br />
<br />
a post thought on the matching of the datastructures:<br />
<br />
the reason why I got stuck is because I thought that when having two trees such as {A;B} and {A;B;C} GH would be able to match the higher hierarchy automatically<br />
like you would do in a for loop when you use the 2nd order branches '(B) of the first tree with 2nd order branches of the second (B) and the particular command (in this case "evaluate") could take an array or list of input enclosed in the third order branch of the second tree (C)<br />
<br />
if this is not possibe in any way than can we say that matching of trees implies them to have an identical structure and that this is the only way to make the matching ? great stuff Jacek,
I understa…tag:www.grasshopper3d.com,2010-07-29:2985220:Comment:803272010-07-29T09:51:05.268Zgennaro senatorehttps://www.grasshopper3d.com/profile/gennarosenatore
great stuff Jacek,<br />
I understand now how not to make extra point on the edge,<br />
staying away from the zone of influence of the regions generated by the edge points which I think should not be exactly circular though (in fact sometimes when you go inside a circular region with the test point it is still possible to go further without creating the extra point on the edge contour, espcially for the bigger region) but this is a very good approximation<br />
<br />
thanks for the feedback and the interesting…
great stuff Jacek,<br />
I understand now how not to make extra point on the edge,<br />
staying away from the zone of influence of the regions generated by the edge points which I think should not be exactly circular though (in fact sometimes when you go inside a circular region with the test point it is still possible to go further without creating the extra point on the edge contour, espcially for the bigger region) but this is a very good approximation<br />
<br />
thanks for the feedback and the interesting conversation yes, the simplified solution…tag:www.grasshopper3d.com,2010-07-29:2985220:Comment:803192010-07-29T08:00:52.642ZJacek Jaskólskihttps://www.grasshopper3d.com/profile/JacekJaskolski
yes, the simplified solution will work only with planar surfaces.<br />
<br />
yes, placing those random points in a special constrained area will do the job - just keep away from the gray circles:<br />
<p style="text-align: left;"><a class="noborder" href="http://storage.ning.com/topology/rest/1.0/file/get/2768612260?profile=original" target="_blank"><img alt="" src="http://storage.ning.com/topology/rest/1.0/file/get/2768612260?profile=original"></img></a></p>
- see attached ghx for details<br />
<br />
I wouldn't go for the alternative approach with post-processing the diagram, it's a messy…
yes, the simplified solution will work only with planar surfaces.<br />
<br />
yes, placing those random points in a special constrained area will do the job - just keep away from the gray circles:<br />
<p style="text-align: left;"><a class="noborder" href="http://storage.ning.com/topology/rest/1.0/file/get/2768612260?profile=original" target="_blank"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2768612260?profile=original" alt=""/></a></p>
- see attached ghx for details<br />
<br />
I wouldn't go for the alternative approach with post-processing the diagram, it's a messy solution... great Jasek,
I thought about…tag:www.grasshopper3d.com,2010-07-28:2985220:Comment:802822010-07-28T23:40:48.992Zgennaro senatorehttps://www.grasshopper3d.com/profile/gennarosenatore
great Jasek,<br />
<br />
I thought about duplicating the faces but I tried to avoid that because it was looking a bit to cumbersome, the second strategy you suggest is much clever in fact<br />
having said that it would only work with Brep made of planar surfaces, am I right ?<br />
<br />
I realised (and it is also quite obvious actually) that the coincidence is not assured just 5 mins after replying to your first answer, maybe jsut thinking on top on my mind one could think about placing the point in a way that his…
great Jasek,<br />
<br />
I thought about duplicating the faces but I tried to avoid that because it was looking a bit to cumbersome, the second strategy you suggest is much clever in fact<br />
having said that it would only work with Brep made of planar surfaces, am I right ?<br />
<br />
I realised (and it is also quite obvious actually) that the coincidence is not assured just 5 mins after replying to your first answer, maybe jsut thinking on top on my mind one could think about placing the point in a way that his happen but I wouldn't know how now<br />
<br />
or another approach would be to match the coordinate of the end points in a way that they conincide, I mean forcing them to coincide after the voronoi is created.....<br />
thanks a lot for your feedback and yes I would be intereted in getting the coincidence<br />
<br />
cheers Alright, I understand you now…tag:www.grasshopper3d.com,2010-07-28:2985220:Comment:802782010-07-28T22:48:10.505ZJacek Jaskólskihttps://www.grasshopper3d.com/profile/JacekJaskolski
Alright, I understand you now.<br />
<br />
See attached definition for comments on the resolved issue with data trees. Tell me whether it's clear enough or not.<br />
<br />
(Still, the 2d method won't always give you coincident ends at the edges of the box. It depends on the position of the random points and how far are they from the face edge. If you're interested in investigating this subject a little further let me know.)
Alright, I understand you now.<br />
<br />
See attached definition for comments on the resolved issue with data trees. Tell me whether it's clear enough or not.<br />
<br />
(Still, the 2d method won't always give you coincident ends at the edges of the box. It depends on the position of the random points and how far are they from the face edge. If you're interested in investigating this subject a little further let me know.) thanks for your feedback Jace…tag:www.grasshopper3d.com,2010-07-28:2985220:Comment:802652010-07-28T19:43:38.790Zgennaro senatorehttps://www.grasshopper3d.com/profile/gennarosenatore
thanks for your feedback Jacek,<br />
<br />
to be honest I'm less interested in the production of the pattern itself and more into the matching of the datastructures. I took this as an exercise to work a bit on tree matching without any coding. Having said that, I think the approach you suggest will definitely lead to the coincidence of points on the edges but I reckon the setting of the input points it is not fully controllable. If you are familiar with trees and you fancy taking a look at the definition…
thanks for your feedback Jacek,<br />
<br />
to be honest I'm less interested in the production of the pattern itself and more into the matching of the datastructures. I took this as an exercise to work a bit on tree matching without any coding. Having said that, I think the approach you suggest will definitely lead to the coincidence of points on the edges but I reckon the setting of the input points it is not fully controllable. If you are familiar with trees and you fancy taking a look at the definition posted in first post would be great<br />
<br />
thanks<br />
<br />
<br />
thanks Hi Gennaro,
Try using the 3d…tag:www.grasshopper3d.com,2010-07-28:2985220:Comment:802532010-07-28T18:48:02.980ZJacek Jaskólskihttps://www.grasshopper3d.com/profile/JacekJaskolski
Hi Gennaro,<br />
<br />
Try using the 3d voronoi routine instead:<br />
<br />
<p style="text-align: left;"><a class="noborder" href="http://storage.ning.com/topology/rest/1.0/file/get/2768612305?profile=original" target="_blank"><img alt="" src="http://storage.ning.com/topology/rest/1.0/file/get/2768612305?profile=RESIZE_1024x1024" width="721"></img></a></p>
<br />
1. take a bunch of points inside the box<br />
2. calculate the 3d voronoi diagram using <a href="http://dimitrie.wordpress.com/2009/05/01/3d-voronoi-in-grasshopper/" target="_blank">dimitrie's</a> or…
Hi Gennaro,<br />
<br />
Try using the 3d voronoi routine instead:<br />
<br />
<p style="text-align: left;"><a class="noborder" href="http://storage.ning.com/topology/rest/1.0/file/get/2768612305?profile=original" target="_blank"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768612305?profile=RESIZE_1024x1024" alt=""/></a></p>
<br />
1. take a bunch of points inside the box<br />
2. calculate the 3d voronoi diagram using <a href="http://dimitrie.wordpress.com/2009/05/01/3d-voronoi-in-grasshopper/" target="_blank">dimitrie's</a> or <a href="http://www.grasshopper3d.com/forum/topics/voronoi-3d?commentId=2985220:Comment:23482">vicente's</a> definiton<br />
3. intersect the resulting faces with the box<br />
<br />
Cheers,<br />
JJ