Grasshopper

algorithmic modeling for Rhino

Hello all,

I am recently using python in grasshopper. I have created homogeneous struts (mesh) using Intralattice. I want to automatically bake this strut using python to get my .stl output file instead of doing it manually. 

I have written this script to print the output mesh. However, no baking occurs. Could anyone help me with this issue?

Thanks.

Maryam

Views: 425

Attachments:

Replies to This Discussion

Hi Myriam,

Python does not print meshes to STL using the print function/statement.

In fact, Rhino's internal representation is not a STL mesh by itself.

You can either bake to Rhino and script the _Export command, or use a third-party lirbary, or write the STL file yourself (not that difficult).

See these discussions:

http://www.grasshopper3d.com/forum/topics/save-surface-as-stl-with-...

http://www.grasshopper3d.com/forum/topics/exporting-geometry-from-g...

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hi Giulio,

Many thanks for you reply. I tried to use these links to bake my grasshopper mesh in rhino and export it. However, I do not know how the python script detect my generated mesh in rhino. I attach what I did. Any help or suggestion would be appreciated. 

Attachments:

I cannot see your definition fully, as I don't have a 'Marching cube' component that is not standard.

I rewrote your definition so that it will work for exporting meshes.

Thanks,

Giulio

--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Attachments:

Many thanks for your help

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service