C# SubD Crease not working in RH9

The script should create a SubD with Creases at the corners, does not work in RH9 anymore

but it works in RH8

subdC#.gh (9.9 KB)

bump

@curtisw @dan

could you take a look at this?

@pierrec can you help with this one? Do you know of any changes we’ve made that could cause this bit of code to behave differently in the RhinoWIP?

SubDCreationOptions options = new SubDCreationOptions();

SubD subd = SubD.CreateFromMesh(inputMesh, options);

List<SubDVertex> matchedVertices = new List<SubDVertex>();
List<Point3d> matchesPoints = new List<Point3d>();

SubDVertex startVertex = subd.Vertices.First;

double tolerance = 0.01;

for (int i = 0; i < subd.Vertices.Count; i++)
{
	if(i != 0)
	{
		startVertex = startVertex.Next;
	}
	if(meshCorners.Exists(x => startVertex.ControlNetPoint.DistanceTo(x) < tolerance))
	{
		startVertex.Tag = SubDVertexTag.Corner;
	}
}

specifically, it appears that startVertex.Tag = SubDVertexTag.Corner; isn’t working as advertised (in the WIP). Can you please take a look and make sure I’m not missing something obvious (I may very well be).

Hi @rudolf.neumerkel,

I’ve logged the issue so a developer can investigate.

– Dale

thanks!

Fix just went in, it should get to you with the next WIP release.

1 Like

you are amazing! thank you

RH-94186 is fixed in Rhino WIP

this functionality seems to be fixed in RH9 WIP, but is now broken in RH8