algorithmic modeling for Rhino
If I produce a curve in rhino, and then extrude it vertically (or offset it and loft it), the U values will be along the original curve, and the V values along the extrusion vector or offset vector. This appears to be the opposite in grasshopper. When I extrude a curve in gh, the U values run along the extrusion vector, and the V values along the curve itself. Why is this?
I can flip the U and V through Divide Surface, a path mapper or other, and a reconstruction through Surface from Points. However, this reduces the fidelity of my surface, and additionally is slowing down a later SrfMorph procedure immensely.
Am I doing something wrong? And if not, is there a better way to swap the U,V coordinates without changing the surface? My curves are produced by a subdivision of a larger curve and are thus cropped. This means that, though the original larger curve was produced with very few control points, to rebuild a surface through Divide Surface/Path Mapper/Surface From Points will require many more control points to retain any degree of fidelity to the original curve.
Help! Thanks
Tags:
No idea why it behaves this way - I can reproduce what you're describing. The easiest way to swap UV without any loss of fidelity is to use a scripting component.
private void RunScript(Surface S, bool b, ref object A) {
if(b){
if(S != null){
A = S.Transpose();
}
}
else A = S;
}
Perfect, thanks! I hadn't used C# previous to this, but this is a great way to get started.
Wouldn't mind if grasshopper still fixed the surface coordinate system discrepancy with Rhino, though...
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by