Grasshopper

algorithmic modeling for Rhino

Trouble lofting a curve while "graft" is active in point B slot

Hello all,

I'm designing an algorithm to define a rotor, which is constrained under several adjustable variables. I'm just about done, however I cannot seem to get around a problem associated with lofting a series of section curves (which require a "graft" in the pB slot of the orient command). I hope the pictures illustrate the problem well enough. Attached is also the GH file. I am happy to post the Rhino 5 file, if necessary as well. Thanks to everyone in advance for taking the time to take a look, I appreciate it.

Coerte

Views: 501

Attachments:

Replies to This Discussion

Use [Shit Paths] before you input to [Loft]

come on, paths aren't that bad!

:)

I have 9 minutes to edit it but I think i'll leave it for comedy value

Thanks so much for the speedy reply. I gave it a go, and didn't seem to get a different result. Is there a specific integer that should be plugged into O? If i understood correctly G feeds into D and the output D feeds into loft. 

And yes, comedy always welcome and appreciated!

Coerte

There are several things wrong with your code, that don't relate to graft/shift.

a) PFrames with N=1 outputs two frames. One for each end of the single (N=1) segment. For a line, those Frames differ only in position. Now you plug those frames into a Vector input. They will be converted from a Plane to a Vector using the Planes normal (Z-direction). The PFrame for a Line, is constructed using only the tangent, which is the same at any position and the dame as the Line's direction vector. Plugging a Line into a Vector input will use that direction by the way...

b) With graft, you match each circle with two orientation vectors giving you two identical circles at the same position. Loft will work but without a visible result. (zero height tube)

c) Without graft, you will get to identical lofts, as both PFrames are matched up against all the levels. That might screw your section. But there are still other weird things happening in your definition....

Here's a modification, that removes the duplicate loft.

Attachments:

That did it! Thanks so much! Why didn't I think to just use a vector!? :D

Coerte

Happens to even the best. :)

I do try to check and reuse the stuff I already calculated early on. That might decrease readability but increases speed and reduces memory consumption.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service