Its been a while but I’m still having problem about Offset Brep.
Both Rhino command and GH result the same.
Anyone has comments or workaround can resolve this?
Thanks…
Offset Brep ERROR.gh (9.5 KB)
Its been a while but I’m still having problem about Offset Brep.
Both Rhino command and GH result the same.
Anyone has comments or workaround can resolve this?
Thanks…
Offset Brep ERROR.gh (9.5 KB)
I’m not using sasquatch and the result isn’t any better with a C# script:
Offset Brep ERROR.gh (11.7 KB)
Very nice Same thing in Python, which the profiler says is 6+ times faster than C#
(both versions are in this file)
import Rhino.Geometry as rg
import scriptcontext as sc
if (brep):
shell = rg.Brep.CreateShell(brep, facesToRemove, distance, sc.doc.ModelAbsoluteTolerance)
CreateShell_2023Sep27a.gh (13.1 KB)
P.S. Apparently this method requires a “Closed Brep” and at least one ‘facesToRemove’?
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.brep/createshell
Parameters:
brep
Type: Brep
The solid Brep to shell.facesToRemove
Type: IEnumerable
The indices of the Brep faces to remove. These surfaces are removed and the remainder is offset inward, using the outer parts of the removed surfaces to join the inner and outer parts.distance
Type: System.Double
The distance, or thickness, for the shell. This is a signed distance value with respect to face normals and flipped faces.tolerance
Type: System.Double
The offset tolerance. When in doubt, use the document’s absolute tolerance.Returns:
- Type: Brep[]
An array of Brep results or None on failure.