how to get uv direction correctly for surface, SurfaceCurvature.Direction is reverse for some surfaces.
var curvature = face.CurvatureAt(uValue, vValue);
var uDirection = curvature.Direction(0)
how to get uv direction correctly for surface, SurfaceCurvature.Direction is reverse for some surfaces.
var curvature = face.CurvatureAt(uValue, vValue);
var uDirection = curvature.Direction(0)
surfaceDirection.3dm (103.3 KB)
any idea?
You should look at the first derivatives, not the curvature.
int numberOfDerivatives = 1;
face.Evaluate(uValue, vValue, numberOfDerivatives , out Point3d pt, out Vector3d[] derivatives);
var uDirection = derivatives[0];
var vDirection = derivatives[1];
thanks Menno.