Hi,
I have a problem when using the ControlNetPoint function on a SubD in C#. I’m probably doing something wrong, but I can’t figure it out.
I found in the discussion that the procedure should be as follows:
Find the “vertex” using SubD.Vertices.Find().
Use the position change SubDVertex.SetControlNetPoint(position, false).
Call SubD.UpdateSurfaceMeshCache(true),
but nothing happens
I did an experiment and called: doc.Objects.Replace(subdObject.Id, subd);
The change applies, but in “smooth” mode it’s displayed incorrectly. After saving and reopening the file, everything is okay in the smooth mode.
Hi everyone,
I wanted to share the solution to an issue I encountered since no one has replied yet, but I figured it out. In case someone has a similar problem, here’s how I resolved it.
After manipulating the control net point, I added a call to the function subD.ClearEvaluationCache() right after subD.UpdateSurfaceMeshCache(true). This cleared up the artefacts, and everything works smoothly now.
To recap, in my code, I first manipulate the control net point: