Grasshopper

algorithmic modeling for Rhino

Hi Guys,
Has anyone made a VB component with the rebuild surface function:
Rhutil.RhinoRebuildSurface() ?

That s all i could do and it still doesn t work:

Sub RunScript(ByVal Surface As OnBrep, ByVal PtCountU As Integer, ByVal PtCountV As Integer, ByVal Degree As Integer)
Dim Srf As New OnSurface
Srf = Surface.Face(0)
A = Rhutil.RhinoRebuildSurface(Srf, Degree, Degree, PtCountU, PtCountV)
End Sub


Tried this too:

Sub RunScript(ByVal Surface As OnBrep, ByVal PtCountU As Integer, ByVal PtCountV As Integer, ByVal DegreeU As Integer, ByVal DegreeV As Integer)
Dim Srf As New OnSurface
Srf = Surface.Face(0)
A = Rhutil.RhinoRebuildSurface(Srf, DegreeU, DegreeV, PtCountU, PtCountV)


Tried Flattening also unsuccesfully


rebuildsurface.ghx

Many thanks,

Arthur

Views: 4951

Replies to This Discussion

Hi Arthur,

Use the following:
Dim Srf As OnNurbsSurface
Srf = Surface.Face(0).NurbsSurface()

A = Rhutil.RhinoRebuildSurface(Srf, DegreeU, DegreeV, PtCountU, PtCountV)

Hi Rajaa - interesting I should find you here at the end of my search for rebuilding surfaces in GH, as the surfaces I want to rebuild have been created with paneling tools..

If only I could build my panels with less of a point count in the first place? I wouldnt need to consider the VB script above... can you help?

Your simple script may very well solve the 'non manifold' problem corners that I am getting within several variations of my solutions envelope. So that I will be able to cap and join these surfaces in a solid boolean. But can this be solved by generating less complex surfaces in the first place?

In short can you direct me to dealing with this problem earlier on in the Paneling Tools process, if possible? i.e. point count generation as a plugin attachement etc? Or is it about the 3DM file that the model is generated into? and tolerance set up?

p.s. Arthur, did you get this VB script working - good results? did you modify the script? If so can you re-post - it would be appreciated.

Hello dear arthur, rajaa and jonathan, 

glad to find this post, interested in the VB script too.

Another question, (may be unrelated but still):

do any of you have any interesting approaches in transforming / rebuilding a MESH created in WB for instance >> into a SURFACE ?

all the best

p.s. Rajaa, speaking of paneling tools- i've made some beautiful models the past few weeks with it, so just wanted to drop a kind word :)

Hi Jonathan,

Can you give an example of the surfaces you are creating?

Thanks.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service