Grasshopper

algorithmic modeling for Rhino

Hello,

I am attempting to loft offset curves on a sphere, and though the data trees seem to match, the resulting loft isn't connecting the correct curves, they instead are lofting to curves on the opposite side of the sphere. I'm attempting to create lofted cones on the outside surface of the sphere. 

Ideas?

Thanks!

Views: 1134

Attachments:

Replies to This Discussion

The problem is that sometimes the offset cluster cannot do the offset, giving a null.

This because the offset distance is too big for some of the closed polylines, you should decrease it to simply avoid nulls at all.

You "enhanced" this problem by using Clean Tree component.

Clean Tree component shorten the list! So it also shift all elements after each null.

Example:

Input curves: [1 , 2 , 3 , 4]

Offset curves: [A , B(null) , C , D]

By using Clean Tree component on the offset curves list, it will became: [A , C , D]

By using loft with inputs flattened and again grafted, Loft component will work with 4 "branch" like this:

[1-A] , [2-C] , [3-D] , [4-D]   and here you can see why its shifted, only 1-A is correct.

You should use Clean Tree component only with a single "alone" list, or if you want to move and "clean" more list together, you should use "null item" component to determine indexes of null items and "clean" synchronously also other lists.

OR, you could continue to work WITH nulls, keeping also original tree structure, like this:

[1-A] , [2-B(null)] , [3-C] , [4-D]

and loft component (but also the mechanics are the same on any other GH component) SHOULD give as output something like:

[surface , null , surface , surface]

But in your definition this does not happen, loft component just gives an error completely, i don't know why...

Here I just suggest you to check and set a proper offset distance so you don't get any nulls item.

Then, after, do your loft and stuff :D

See attachment.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service