Hello,
If not have time skip to bottom with the list of items 1 2 3. Can I do these in python?
I have picked up Python and have been writing some scripts for Rhino in the last few weeks and I really like how all works in Python.
I would like to ask what more experienced programmers think, if I can stay in Python (and not learn a new language) for the things I want to program.
I want to manipulate meshes.
Selecting vertices, edges, faces, mainly modifying the geometry based on criteria for each of the selections.
As an example, looking at this page (below), I see that under syntax, there is only C# and VB listed.
Is it possible to access these features with Python?
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_Collections_MeshTopologyEdgeList.htm
What I would like to work on is create a set of tools for me, to help me manage very specific terrain and landscape design tasks. And so modify quite low definition meshes in specific ways to suit my design needs.
I am mixing design and art thinking here with my coding skills and I want to write something like an algorithm that will help aid and generate designs based on very specific meshes that I will create most likely in blender or perhaps 3ds max (as I already have good skills there) but from there to work entirely in Rhino.
Few examples of small tasks that I can think of at this initial stage:
-
I would have data points of coordinates (locations) in 3d space. Take these coordinate datapoints, and to each, add a (spherical ?) bounding area. Then take a mesh and go through each edge. If both vertices of an edge fall within any two of the initial coordinate “spheres” then add these edges to an array that I can use to select them later.
In short I am going to use one basic mesh to extract the datapoints and later use these points as a selection aid to apply to another mesh.
-
If I do not have sufficient faces in some areas, can I easily use a selection of edges to split them the way “split a mesh edge” does (the sizzors icon). So basically just dividing each of the selected edges in two.
-
Can I extract info about two faces of a mesh, lets say how big a face is, how many edges does it have etc, while pointing to these two faces by giving an input of the edge that is dividing them.
Thanks for reading and for eventual input I might receive from this essay : )
Main question is if I can do all in Python.
Secondary would be any advice of where I can begin… the first 1, 2 things that will get me rolling with this.
Thanks