Skip to content

Commit 3f096ef

Browse files
committed
just cleaning up
1 parent 706ba21 commit 3f096ef

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

src/compas_rhino/utilities/drawing.py

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -437,52 +437,6 @@ def xdraw_pipes(pipes, cap=2, fit=1.0, **kwargs):
437437
return guids
438438

439439

440-
# @wrap_xdrawfunc
441-
# def xdraw_forces(forces, color, **kwargs):
442-
# guids = []
443-
# for c in iter(cylinders):
444-
# start = c['start']
445-
# end = c['end']
446-
# radius = c['radius']
447-
# name = c.get('name', '')
448-
# color = c.get('color')
449-
# layer = c.get('layer')
450-
# if radius < TOL:
451-
# continue
452-
# base = Point3d(*start)
453-
# normal = Point3d(*end) - base
454-
# height = normal.Length
455-
# if height < TOL:
456-
# continue
457-
# plane = Plane(base, normal)
458-
# circle = Circle(plane, radius)
459-
# cylinder = Cylinder(circle, height)
460-
# brep = cylinder.ToBrep(cap, cap)
461-
# if not brep:
462-
# continue
463-
# guid = add_brep(brep)
464-
# if not guid:
465-
# continue
466-
# obj = find_object(guid)
467-
# if not obj:
468-
# continue
469-
# attr = obj.Attributes
470-
# if color:
471-
# attr.ObjectColor = FromArgb(*color)
472-
# attr.ColorSource = ColorFromObject
473-
# else:
474-
# attr.ColorSource = ColorFromLayer
475-
# if layer and find_layer_by_fullpath:
476-
# index = find_layer_by_fullpath(layer, True)
477-
# if index >= 0:
478-
# attr.LayerIndex = index
479-
# attr.Name = name
480-
# attr.WireDensity = -1
481-
# obj.CommitChanges()
482-
# guids.append(guid)
483-
# return guids
484-
485-
486440
@wrap_xdrawfunc
487441
def xdraw_spheres(spheres, **kwargs):
488442
guids = []

0 commit comments

Comments
 (0)