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)
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
@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).
thanks!
Fix just went in, it should get to you with the next WIP release.
you are amazing! thank you
this functionality seems to be fixed in RH9 WIP, but is now broken in RH8