Grasshopper

algorithmic modeling for Rhino

Hi there,

I found this fantastic (appears simple too) VB component by Fred Becquelin from this post: http://www.grasshopper3d.com/forum/topics/how-to-extend-a-surface-i...

I have attempted to adapt this component (VB scripting), so that it can extend a surface at more than one direction at once, but have had no luck.

I am wondering if there is a way to extend a surface in GH like you do in Rhino, but in more than one direction at the same time.

Thanks

Matt

Views: 12741

Attachments:

Replies to This Discussion

Can't you just apply the extend two times to the surface?

 srf = Surface.Extend(Isostatus.North, Length, Smooth)

 finalSrf = srf.Extend(Isostatus.South, Length, Smooth)

Thanks for the reply Mostapha,

I cannot seem to make this work, I have this so far:

    Dim Isostat As IsoStatus

    If Length <= 0 Then

      srf = Surface
      finalSrf = srf

    Else

      Select Case Edge
        Case 0
          Isostat = Isostatus.North
        Case 2
          Isostat = Isostatus.South
        Case 1
          Isostat = Isostatus.East
        Case 3
          Isostat = Isostatus.West
      End Select

      srf = Surface.Extend(Isostatus.North, Length, Smooth)
      finalSrf = srf.Extend(Isostatus.South, Length, Smooth)


    End If

I'm probably doing something simple wrong hopefully..

Hi Matt, I don't know how to write it in VB but attached is the script in Python. Hope it helps. :)

Attachments:

Thanks that is exactly what I need!! :)

I hate to do this sorry because i'm getting you to do the work for me... But Is there a way to create an input (like the surface) that controls the extend amount? Rather than opening the script and doing this manually?

No problem at all! Attached is the new version. You can change both the direction and the distance.

Attachments:

Awesome! Thank you so much Mostapha!

Best,
Matt

Hi mhana, I'm not sure what your surface looks like. Can you upload your file or an image.

Seen as there is no curved surfaces or any automation to be built in (from your example at least) why don't you select the edge curves (or faces) you want and extrude them

Your two roof planes are consisted of a brep (polysurface) not a surface. Explode that polysurface into two surfaces, then attach each of those to Mostapha's component.

Works for Patch also which is what I need! 

Many thanks!

This is great!

But i`d need to make a step back because i need a surface extension in one single direction. The link that Matt gives in the beginning isn`t active anymore (VB component by Fred Becquelin)

Regards!

Ivan

Hey! The link to VB component by Fred Becquelin`s one way surface extension would be useful to me, but it isn`t seem to be active anymore :/

I need to extend a surface (a curved one) in one direction.

Thanks!
Ivan

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