Brep offset C#

Hi,

I would like to ask if it is a bug for Brep.Offset method or I am doing something wrong?
I am running Brep.Offset method from C# custom component in grasshopper and I get this type of offset for some of values.

` Brep offset = Brep.CreateOffsetBrep(x, y, true, true, Rhino.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance, out blends, out walls);

Shape is quite simple:




BrepOffset.gh (13.2 KB)

Hi @Petras_Vestartas,

I’ve reported this.

https://mcneel.myjetbrains.com/youtrack/issue/RH-43874

– Dale

hi i need add (bothside side) and( solid ) and (corner)option to this code please help me thanks
673

Hi @architect.civil5,

Brep.CreateOffsetBrep is the method to use. To Corners=Sharp/Round is controlled by the extend parameter. Note, the function does not have a BothSides options. To do this, just transform or offset the surface first.

– Dale