Hi, I’m new here, could be a pretty easy question.
I’m trying to use rhino compute to translate Brep To Mesh using python compute-rhino3d.
Here;s what the Brep json looks like (It’s a simple box rectangle)
{
"type": "Rhino.Geometry.Brep",
"data": "<base64EncodedBrep>"
}
And here’s the code for BrepToMesh
brep = rhino3dm.CommonObject.Decode(brep_json)
compute_rhino3d.Util.url = "http://localhost:6500/"
compute_rhino3d.Util.apiKey =""
mesh = compute_rhino3d.Mesh.CreateFromBrep(brep)
Now, this way, I’m able to convert one single brep to mesh, now the challenge is I have hundreds of Breps, that I want to convert to Mesh. Writing a for loop and sending it over the network is not an optimal solution.
Can I send a list of breps to Rhino Compute and get back a list of meshes?
I’ve tried passing a list of Brep in the CreateFromMesh function, but that didn’t work.