Raymond West
unread,Jun 9, 2025, 10:10:21 AMJun 9Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PythonSCAD
Hi,
I've never understood the requirement for 'roof', it may be a tad more
useful if the angle of slope could be adjusted.
Anyway, in playing around with it, I found the following -
###################################
from openscad import *
s=union(square(20),circle(10).right(10))
p =s.roof()
p. show() # ridge is horizontal
b=union(square(20),circle(10).left(8))
c =b.roof()
c. show() # ridge is crippled
s=union(square(20),square(20).rotate([0,0,45]).right(25))
p =s.roof()
p.show() #peaks chopped off
#########################
At first sight I would expect ridges going from peak to peak, being
horizontal. That obviously is not so, so then I thought that the sides
would be at 45 deg. However, it seems to be some mix of the two. Is
there any succinct description of how it should be?
Best wishes,
Ray