mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Some ported examples in algebra mode
This commit is contained in:
parent
fd4a76bce0
commit
e9964e465b
15 changed files with 453 additions and 0 deletions
16
examples/intersecting_pipes_algebra.py
Normal file
16
examples/intersecting_pipes_algebra.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from alg123d import *
|
||||
|
||||
pipes = Rot(10, 20, 30) * Box(10, 10, 10)
|
||||
|
||||
for plane in [Plane(f) for f in pipes.faces()]:
|
||||
pipe = plane * Circle(4)
|
||||
pipes -= extrude(pipe, amount=-5)
|
||||
pipe = plane * Circle(4.5)
|
||||
pipe -= plane * Circle(4)
|
||||
|
||||
last = pipes.edges()
|
||||
pipes += extrude(pipe, amount=10)
|
||||
pipes = fillet(pipes, pipes.edges() - last, radius=0.2)
|
||||
|
||||
if "show_object" in locals():
|
||||
show_object(pipes, name="intersecting pipes")
|
||||
Loading…
Add table
Add a link
Reference in a new issue