mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 10:41:20 -08:00
10 lines
252 B
Python
10 lines
252 B
Python
from build123d import *
|
|
import alg123d as ad
|
|
|
|
b = Box(3, 3, 3)
|
|
b2 = Rot(0, 0, 45) * ad.extrude(Rectangle(1, 2), 0.2)
|
|
for plane in [Plane(f) for f in b.faces()]:
|
|
b += plane * b2
|
|
|
|
if "show_object" in locals():
|
|
show_object(b, name="box on faces")
|