I would like to create a "root-like mesh system" using only the Python API of Blender as I can use it in different projects and generate a large number of meshes without opening Blender.
Before this Blender part, I have created a script that generates an undirected graph and store the ID of each node, it's coordinate, parents IDs and children IDs in a JSON file.
Given that data I would like to create a mesh of the graph.
I have different ideas about how to investigate such as:
- Create vertex at each node and vertices between them, then add a cylinder mesh around it
- Create splines following the graph pattern then add a cylinder mesh around it
I would like some advice about how to proceed and if you have any other ideas.
C.object.modifiers.new('', 'SKIN')and in my case I also added a subdivision modifierC.object.modifiers.new('', 'SUBSURF').levels = 2$\endgroup$