I created a SubD Radial Symmetry example in Grasshopper after looking at this topic.
The goal is to be able to work a a single segment, rotate this segment and weld everything into one SubD. Unfortunately after welding and aligning the vertices, all edges are smooth and creases are lost. There is an option to keep creases at Mesh Edges, but it’s impossible to distinguish between interior edges and naked edges. The solution is to weld everything and unweld based on edge indeces.
The problem right now is that the unweld script doesn’t work anymore. For whatever reason?
The initial segment has three edge tags:
- smooth, interior
- crease, naked
- crease, interior
Let’s say I want to keep interior naked edges creased. The edges can be filtered and unwelded.
Some time ago in an old topic I had a similar problem, but the script from a year ago does not work anymore.
20_11_28_subd_rotational_symmetry.gh (40.5 KB)
What’s wrong with this:
private void RunScript(Mesh M, List<int> edgeindeces, ref object A)
{
MyClass edge = new MyClass();
List<int> edgeindeces = new List<int>();
foreach (var val in edge)
{
A = Rhino.Geometry.Mesh.UnweldEdge(edge, false);
}
}