algorithmic modeling for Rhino

Cat Pham
  • Female
  • Los Angeles, CA
  • United States
Share on Facebook
Share on Facebook MySpace
  • Blog Posts
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Cat Pham's Friends

  • Florian Frank

Cat Pham's Page

Profile Information

Company, School, or Organization

Comment Wall (1 comment)

You need to be a member of Grasshopper to add comments!

At 6:05am on September 15, 2012, Florian Frank said…

Hey C,

I've seen there is a problem now with the offset, probably something changed in the grasshopper environment that leads to this. I have to take a look.

For now you can replace the last part in the script with this text and it should work with the slider. Its a quick and dirty solution but it works for now. Let me know if you need any special thing

here the code to paste:

    //Positioning Y-Direction
    double ypos = 0;
    for(int b = 0; b < unrolled.BranchCount; b++){
      int anz = 0;
      if(b != 0){
        dist[b] = dist[b - 1] + dist[b];
        for(int i = 0; i < anzahl.Branch(b).Count; i++){
          ypos += offset;
          Vector3d move = new Vector3d(0, ypos, 0);
          for(int ui = 0; ui < anzahl.Branch(b)[i]; ui++){
            unrolled.Branch(b)[anz + ui].Transform(Transform.Translation(move));
            for(int pi = 0; pi < points.Branch(new GH_Path(b, i)).Count; pi++){
              points.Branch(new GH_Path(b, i))[pi] = Point3d.Add(points.Branch(new GH_Path(b, i))[pi], move);
            for(int pi = 0; pi < crvs.Branch(new GH_Path(b, i)).Count; pi++){
              crvs.Branch(new GH_Path(b, i))[pi].Transform(Transform.Translation(move));
          anz += anzahl.Branch(b)[i];

    S = unrolled;
    Points = points;
    Curves = crvs;

Hope this works...have a nice day



Original text:

Hey Florian - I just found your Unroller v0.4 definition and it's pretty great. I had a question about the offset space between each unrolled surface and I am wondering if you'd be able to help me! c >>






  • Add Photos
  • View All


  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service