Offsetting

public static class Offsetting

Methods

Offset

#
Offsets a surface by the given signed distance.
public static Brep Offset(
brep,
distance,
tolerance,
solid,
cornerStyle,
messages = null
)
The offset result, or null. When null, check messages: an Error means the operation failed; no Error means the result is geometrically empty.

Offset

#
Offsets a surface by the given signed distance.
public static Brep Offset(
surface,
distance,
tolerance,
solid,
cornerStyle,
messages = null
)
The offset result, or null. When null, check messages: an Error means the operation failed, no Error means the result is geometrically empty.

Offset

#
General-purpose overload that accepts any surface-like object:
  • Sphere - returns a Sphere (non-solid) or Brep (solid).
  • Box - returns a Box (non-solid) or Brep (solid).
  • Tube - returns a Tube for some cases, Brep otherwise.
  • Surface / Brep - forwarded to the typed overloads.
  • Any GH2-wrapped surface type - resolved via SurfaceBroker.CastOrConvert as a final fallback.
public static object Offset(
input,
distance,
tolerance,
solid,
cornerStyle,
messages = null
)
A sphere, box, tube, or brep depending on the input type and solid flag, or null. When null, check messages: an Error means the operation failed; no Error means the result is geometrically empty.