generative modeling for Rhino
Hi,
im trying to compute the angle between the faces of a brep (later use the angle to unroll). so far my definition works. but im not sure if i made it too complicated - maybe someone knows an easier version?
GH 0.8.0066
Tags: angle, mass-addition, pyramid, redraw, unroll, voronoi
Permalink Reply by klumpen on February 10, 2012 at 8:45am thank you,
i know the orient method, but i need them like "unexploded" not the faces smashed on the ground piece by piece. this unrolling thing really seems to be a big thing. i had lots of trouble with it in another definition. maybe for this one, after orienting the faces on xy-plane, i could go on and reorient the faces again so that the edges with the same length overlap? would this need the boolean-gate components for comparing the values of the edgt leghts? never used them before. but this way i wouldnt need the angle calculation. ill try, but i would really appreciate your help, thanx a lot.
Permalink Reply by pyrit on February 10, 2012 at 6:37am hi,
if its just about measuring the angle i would go with face normals
Permalink Reply by klumpen on February 10, 2012 at 8:30am thanx,
thats indeed a little bit shorter than my try
Permalink Reply by klumpen on February 10, 2012 at 7:29pm ok,
i tried some more unrolling. i want it not just for one pyramid. i rather need to unroll something like "multiple voronoi mountains". so far im very very very happy, that i managed to do an unroll of a single "mountain". but the problem now is, that i fail with handling the data when applying the method to multiple mountains.
i think this is interesting for everybody who tried unrolling geometry. hopefully someone can help, i made the definition as tidy as i could...
Permalink Reply by klumpen on February 11, 2012 at 5:09am anybody? please?
i really cant figure it out right now. i think its just a question of managing lists and data trees. sorry for the stupid title of this discussion - any suggestions for a more appropriate one?
Permalink Reply by Jon Mirtschin on February 11, 2012 at 8:15am You can get the equivalent of the rhino command result via StructDrawRhino if you download the latest build from http://www.geometrygym.com/downloads
You'll see some overlap in your particular example, but it's a step closer with minimal effort.
Hope it helps,
Jon
Permalink Reply by klumpen on February 11, 2012 at 4:38pm thank you jon, but i wanna find a way without vb-script or other additions to grasshopper - just using standard components. i know im stupid.
Permalink Reply by klumpen on February 11, 2012 at 4:53pm oookay,
now i got it! it was all about maching the right data. the def is not very tidy right now and the first group is actually unnecessary long - just to get a surface. the second group does the pyramids - yes i changed from "voronoi mountains" back to pyramids because its easier for now. the last two big groups are the important ones.
i hope someone likes my unroll method. suggestions for making the def smaller?
Permalink Reply by Pieter Segeren on February 12, 2012 at 7:56am Hi klumpen, here is my suggestion. I didn't test it much (little time) so please let me know if this works for you.
Permalink Reply by klumpen on February 15, 2012 at 9:48am Hi Pieter, thank you for taking a look at my definition. You made it perfect now!
I'll summarize for the rest of us:
I was searching for an alternative way to unroll breps. My idea was to redraw the geometry instead of unfolding it. I was only able to apply this idea to the angles (mass addition). Pieter made it perfect by also measuring the length of the edges. By calculating angles and lengths of the interior edges we now have an unroll which is actually more a redraw without the need to orient anything.
Again thank you very much Pieter! This "redraw" is a powerful solution to unroll and much more efficient than using orient - at least for the stuff i want to do.
I just tidied the def a little and also applied it to the pyramids. works great for me.
And peaks fits better than mountains, thanks again.
Added by David Stasiuk 8 Comments 22 Likes
Added by stefano 5 Comments 8 Likes
© 2013 Created by Scott Davidson.
Powered by