Hi all,
I am a new user of vpython.
I'd like to make a gear with a dent at the edge. Now I just put a black rectangle there to make it looks like a dent. Here is my code:
g = shapes.gear(radius=20, n=180, addendum=0.1, dedendum=1.5, phi=0, res=4, fradius=0)
rect = shapes.rectangle(width=0.33, height=1.5)
ex=extrusion(path=[vec(0,0,0), vec(0,0,0.2)], shape=g )
ex2=extrusion(path=[vec(0.33,17.8,-0.01), vec(0.33,17.8,0.25)], shape=rect, color=color.black)
Is there any convient way to realize this? I want the dent to be transparent. Thanks in advance.