cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Sweep or Thicken a non-planar surface along a vector

Open pvshvp-work opened this issue 2 years ago • 1 comments

I have created a parametricSurface that I want to sweep/extrude in a particular direction (say the Z axis). The closest I could come to doing this was to use the thicken function on a Face that I created from the surface. However, this sweeps the surface along the surface normal (not along a particular direction).

I dug into the source to find that the thicken function uses BRepOffset_MakeOffset to do the thickening. How can I use either cadquery or BRep to perform this kind of a sweep? Is there a modification to the thicken function source code that can enable this?

pvshvp-work avatar Oct 24 '23 16:10 pvshvp-work

Try using cq.Solid.extrudeLinear

adam-urbanczyk avatar Oct 24 '23 19:10 adam-urbanczyk