bschwind / opencascade-rs

Rust bindings to the OpenCascade CAD Kernel
GNU Lesser General Public License v2.1
118 stars 22 forks source link

Offset for Face and Wire #144

Closed mkovaxx closed 1 year ago

mkovaxx commented 1 year ago

Splitting this off from https://github.com/bschwind/opencascade-rs/issues/72 because Shape::offset_surface() is already implemented.

OCC has BRepOffsetAPI_MakeOffset for this. Can work with either a Face or a Wire. Supports 3 join types: arc, tangent, and intersection. Has a "ToApprox" boolean setting to use only linear segments and circular arcs in the output.