Commit 0087a6d2 authored by dwinogra's avatar dwinogra
Browse files

edit draw cylinders function

parent 89de52da
......@@ -2835,3 +2835,16 @@ proc calcforces {} {
## material
tclFile.write("graphics top materials on \n")
tclFile.write("graphics top material AOEdgy \n")
## iterate through the model segments
for s in self.segments:
if isinstance(s,DoubleStrandedSegment):
print("## dsDNA! \n")
draw_cylinder(s,10,"cyan")
elif isinstance(s,SingleStrandedSegment):
print("## ssDNA! \n")
draw_cylinder(s,3,"orange")
else:
raise Exception ("your model includes beads that are neither ssDNA nor dsDNA")
## tclFile complete
tclFile.close()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment