Grasshopper

algorithmic modeling for Rhino

Hi

I am trying to write a custom vb component to take a mesh from gh, bake it, select, apply edge softening and then extract render mesh.

I usually do it in rhino but since it become totally repetetive in my recent project i would like to write a vb for that

Code for now looks like that:

Dim idd As guid
Dim att As New rhino.DocObjects.ObjectAttributes



If X Then

idd = doc.Objects.AddMesh(meshyx)
rhino.RhinoDoc.ActiveDoc.Objects.Select(idd)

Rhino.RhinoApp.RunScript("_ApplyEdgeSoftening" & "_Softening=1", False)

End If

Right now it only bakes the mesh. It looks like i have some error with runscript syntax. Any help?

Views: 852

Replies to This Discussion

You might find your answer here.

http://developer.rhino3d.com/samples/rhinocommon/extract-render-mesh/

However, I'm still trying to change it to input meshes through GH and output it as a GH-output.

Please let me know if you get it to work! :)

If you can and are willing to work in Rhino WIP, this feature is now included in Rhinocommon. There's a method added to the Mesh class named "WithEdgeSoftening".

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service