algorithmic modeling for Rhino
Tags:
I think what's happening is that the surface offset component is offsetting in the direction of the Surface normal rather than the Brep Face Normal (which can be opposite the surface normal). Part of the common confusion is that what RhinoCommon calls a "Surface" is in fact always an untrimmed surface - whereas what Grasshopper calls a surface is a Brep with a single face. You can identify those GH surfaces that are the "opposite" direction with a short script:
private void RunScript(Brep x, object y, ref object A)
{
A = x.Faces[0].OrientationIsReversed;
}
The ones for which this offset seems "wrong" are the ones which return a true value with this script.
Note that ultimately I agree that for consistency's sake in GH the surface offset component *should* behave the way you expect it. But hopefully this helps explain why it behaves the way it does.
Thanks for that. That helps, I hadn't realised the two (Brep and surface) could differ but I can see why it would now.
Thanks !
I had a clunky workaround which offset surfaces in both directions, joined the resulting surfaces and sortes the resulting Breps by area...
This is much cleaner, although I still think that something is really screwy with those normals...
Read my reply - I agree that the behavior of offset surface is incorrect.
Yep.
How about you ?
Did you read my mail about retrieving object IDs as outputs of the "Place Block" and "Objects by selection" Human components ?
:)
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by