cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Provide a thicken method for Shell

Open lorenzncode opened this issue 2 years ago • 2 comments
trafficstars

import cadquery as cq

lines = cq.Workplane().lineTo(10, 0).lineTo(20, 4)
lines = lines.consolidateWires()

path = cq.Workplane("XZ").lineTo(0, 10)
result_sweep = lines.sweep(path)

# Shell: result.sweep.val()
# thicken not supported here
result_thicken = result_sweep.val().thicken(0.2)
result_thicken = result_thicken.clean()

show_object(result_thicken)

lorenzncode avatar Feb 11 '23 03:02 lorenzncode

I guess you want to move Face.thicken to a hypothetical Mixin2D class?

adam-urbanczyk avatar Feb 11 '23 08:02 adam-urbanczyk

Yes a new Mixin2D class sounds good.

lorenzncode avatar Feb 11 '23 14:02 lorenzncode