You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll plug the free function API here (you'll have to be on master):
fromcadquery.occ_impl.shapesimport*# start with a boxb=box(1,1,1)
# split int top face and othersf_top=b.faces('>Z')
f_rest=b.faces('not >Z')
# create the new top facef_new=f_top+plane(0.5,0.5).moved(f_top.Center())
# assemble into a solidres=solid(f_rest,f_new)
show_object(res)
I have a simple code that generate a box
rectangular_prism = cq.Workplane("XY").box(1, 1, 1)
I want to add a rectangular planar selectable surface at the top face, with dimensions 0.5x0.5.
How can I create planar surfaces (or zero thickness surface) in CadQuery?
The text was updated successfully, but these errors were encountered: