Giter Site home page Giter Site logo

Comments (6)

sbaer avatar sbaer commented on June 18, 2024

What does you python script look like?

from compute.rhino3d.appserver.

Marco-Pellegrino avatar Marco-Pellegrino commented on June 18, 2024

Hi Steve!

Thanks for jumping in.

I am posting here the Grasshopper script in case you want to have a better look and try your self.
I am going to do a bit of debugging my self deleleting some component until I do understand where the issue is happening.

It requires to download Alpaca4d tool (which I have attached to this thread). Remember to unblock the file and to install the tool inside a Folder called "Alpaca4d".

I have tried to summarise what the tool is trying to do in the picture below.
I hope it makes sense.

image

FabianEidnerVase.zip

Alpaca4d.zip

from compute.rhino3d.appserver.

Marco-Pellegrino avatar Marco-Pellegrino commented on June 18, 2024

The error seems to happen in the "assemble" component.
The latest output that I can get without any error is when I remove that part.

You can look inside the code of the assemble if you want.

I have converted the output of the other component to a string and convert in mesh to visualise that the others component return an output.
image

from compute.rhino3d.appserver.

Marco-Pellegrino avatar Marco-Pellegrino commented on June 18, 2024

Hi @sbaer @pearswj
Sorry if I am going to make a silly question but I am trying to understand why the script is failing.

Is rhino.compute able to use ALL the rhinoCommon function?

for example:

Can I use "import ghpythonlib.components as ghcomp"?
Can I use Rhino.Geometry.RTree ?

from compute.rhino3d.appserver.

sbaer avatar sbaer commented on June 18, 2024

You can use most of RhinoCommon and ghpythonlib. The area you should stay away from are RhinoDoc and it's views. There is typically no RhinoDoc when running headless

from compute.rhino3d.appserver.

Marco-Pellegrino avatar Marco-Pellegrino commented on June 18, 2024

thanks @sbaer !!!
The RhinoDoc makes me wonder where it could be the issue and it is finally working!!!!!

The issue was in rhinoscriptsintax. I was using rs.DocumentPath() to find the working folder but I have solved it using os.getcwd()

I am so glad we have managed to solve it! We can finally run some FEA on the web.

image

from compute.rhino3d.appserver.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.