algorithmic modeling for Rhino
Hi all,
I am trying to set up a simple parameter in C# for a GH add-on project I am working on. It is just a simple GH_Param derived class. I tried different implementations of simple param and persistent param and persistent geometric param but the floating param is not showing up in the GH toolbars. I looked through all the discussions/documentation I could find but to no avail.
I even removed my custom class goowraper to see if there was a problem upstream and used instead a standard GH class and still no joy. I don't know what I am missing.
Here is the code inside the param file.
Any ideas ?
Thanks.
Andrei.
Tags:
Make sure your class is public :)
Haha nobish mistake.
Thanks . It did the trick
I only recognized it because it's a mistake I've made myself many a time! :)
Also - super excited for this plug-in you're working on. Been wanting something pepakuraish that's GH-native for a long time. Let me know if there's anything else I can do to help :)
Thanks Andrew.
Well hopefully I will release an alpha in a few days. Just have to do some cleanup in the code and do some more general bug hunting before that. I'll post on the forum here once I'm ready.
Best.
Eii Andreii,
I had no other place to upload this file. I did a quick example of how to select a mesh edge with mouse events, on gh geometry. Maybe you not use it because you are following other approach, but I wanted to try it anyway. This comes because something fundamental of pepakura is be able to choose where you go to split the mesh. This script let you to choose cutting edges of the mesh manually, it may be useful! It's written in VB and only gets the index of the edge and bake it when you click on it.
Or maybe you are using more intelligent methods to choose the mesh parts which will be unrolled?
You use it or not, I have wanted to see what you're cooking! :)
.
Thanks for the interest Daniel.
I am not (at least for the moment) looking into a implementation where the user picks mesh edges to split the mesh at. Although it is possible to highlight certain parts of the mesh for automatic splitting I am interested in automatically parsing the mesh and unrolling it based on a series of criteria specified by the user through the script. This can include angle of faces, size of faces, color of faces and actually just about any atribute of the mesh that can be transformed in a number in GH. Here you can include also let's say some additional geometry that can control through proximity the cut/uncut status of some edges. This way I think I can make a set of tools more suited for the typical automation of the GH environment.
Your approach is very interesting though .
Sure, that's the proper way to gh, but I also see the complexity of the case. I also made a sculpture in low poly long time ago, with pepakura, and this software was not able to find acceptable partitions. I think it's really difficult to automate this, because not only depends on the shape of the object, also the material, the thickness, to find the minimum amount of parts... Maybe later would be good to add the option to do it by hand, if necessary.
Another idea might be good to add. For example, the material used has a thickness of 0.5 cm, then to fold the faces of the mesh, you need to remove material at the intersection, make a bezel to match lateral sides. If you do this bevel on each side of the face, you get on the inside face a line where to make the cut (from one side of the external mesh to the side of the internal mesh, cutting a triangular prisma). The isssue would be to do a internal offset of the mesh, then unfold the external mesh and in each face to put each offsetted face (red line) indside. This would be a great help to fabrication. Maybe you've already thought of this.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by