Import/read an stl file?

From searching around it seems that importing from other file formats is functionality intended to go into Compute - but is it currently possible to import an stl file? If so, how?

This is not yet available out of the box, but you can certainly extend RhinoCompute. At the moment you could:

  1. Write a Rhino plugin that exposes functionality to compute. This plugin would be installed on the Rhino instance running on the RhinoCompute server. Here is an example:
  2. Use the gh endpoint to solve a definition that has the functionality you need.
  3. Use the python end point to the same effect.

Check out this post from @fraguada:

This is how I import STL files provided as base64 string
You could adapt this approach to import files from your local drive too.

1 Like