Skip to content

Commit eb7583e

Browse files
committed
Merge branch 'master' of https://github.com/compas-dev/compas
2 parents deb7f62 + 62c8e13 commit eb7583e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/compas_ghpython/utilities/drawing.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def xdraw_cylinders(cylinders, cap=False):
148148

149149

150150
def xdraw_pipes(pipes, cap=2, fit=1.0):
151-
rg_pipes = []
152151
abs_tol = TOL
153152
ang_tol = sc.doc.ModelAngleToleranceRadians
154153
for p in pipes:
@@ -159,12 +158,12 @@ def xdraw_pipes(pipes, cap=2, fit=1.0):
159158
if type(radius) in (int, float):
160159
radius = [radius] * 2
161160
radius = [float(r) for r in radius]
161+
162162
rail = Curve.CreateControlPointCurve([Point3d(*xyz) for xyz in points])
163163
breps = Brep.CreatePipe(rail, params, radius, 1, cap, fit, abs_tol,
164164
ang_tol)
165-
rg_pipes += breps
166-
return rg_pipes
167-
165+
for brep in breps:
166+
yield brep
168167

169168
def xdraw_spheres(spheres):
170169
rg_sheres = []

0 commit comments

Comments
 (0)