Mesh Brep in Gh python script

I am trying to use the MeshBrep command in a python script within Grasshopper.

It looks somewhat like this:

import ghpythonlib.components as ghcomp

outputgeometry = ghcomp.MeshBrep(inputgeometry, meshsettings)

The two inputs to the python components are inputgeometry and meshsettings.

Now the type hint of inputgeometry is obviously set to Brep (List access).

The meshsettings on the other hand come from a settings component (I extracted the standard parameters from a MeshBrep component). But I don't know what type hint to assign to them.

What should I do to get the script working?

(Of course other stuff is supposed to happen in the script to, else I would simply use the MeshBrep component.)

I would be very grateful for some advice.

  • up

    筑梦NARUTO

    Hi Jonathan

    You need to change the mesh settings,like this: meshsettings = ghcomp.SettingsCustom(meshsettings)

    The files:

    1
    • up

      筑梦NARUTO

      yes,You can call the WeaverBird components within the ghpythonlib.components。

      like this

      1