It is a huge waste that this powerful function only exists in Rhino.
This is made with curve -mesh - subd - brep workflow in GH.
I like to add weighted roundness to the sharp edges, but without the Subd Crease in the grasshopper, it is almost impossible.
public class Script_Instance : GH_ScriptInstance
{
private void RunScript(
SubD subd,
List<int> edge_indices,
int edge_type,
ref object a)
{
var dup_x = (SubD) subd.Duplicate();
var tag = (SubDEdgeTag) edge_type;
dup_x.Edges.SetEdgeTags(edge_indices, tag);
a = dup_x;
}
}
Thank you! The sharp edges in the picture come from the unwelded mesh edges, but that is not what I am looking for. I am looking for R8’s new Subd Crease function in GH, a controllable edge roundness in Subd->Mesh and Subd->Brep workflow.
Ah, I see. Apologies, hopefully something like this is still useful to some degree.
It is a shame Grasshopper’s SubD repertoire is so sparce. Just spitballing here - while the SubD Crease functionality is not exposed in Rhinocommon, it may be possible to spoof it by subdividing the faces along a given edge such that it emulates the weights at certain points, though I’m not sure how difficult this would be to implement. I’ll take a look, could be useful. Regardless, the actual solution would be for McNeel to expose it.