Offset Surface not flipping direction

Hey Internet!

I am having some trouble keeping the direction of a offsetted surface.
In my c# node I have some simple code:

List<Surface> srfs = new List<Surface>();
    for(int i = 0;i < B.Faces.Count;i++)
    {
      srfs.Add(B.Faces[i].Offset(-1.0, RhinoDocument.ModelAbsoluteTolerance));
    }

which works like a charm, except for the trimming, but I don’t care whether the surface is retrimmed or not for my goal.

However, it seems that flipping the actual surface in Rhino does not flip the direction of the offset, negating the distance in the node’s code does though.
Also does the standard ‘offset surface’ node respect the direction by flipping the base surface in Rhino, but not the coded one.


I don’t even know what COULD be the problem. Someone knows better than me?

Thanks in advance

Ben

Hi,
you might want to use this method:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_CreateFromOffsetFace.htm

1 Like

thank you very much for the hint!!