##############################
###  DM2_w23  hu_02_setUp  ###
###  _diag  /  2023 10 13  ###
##############################
import rhinoscriptsyntax as rs
import random, time, sys   ###                                              
sys.path.append("P:/WWW\daveh2\dm2")     ###                                                  
import DM_lib as dm        ### reload(dm)    
##############################   

rs.UnitSystem(3)                       
rs.ShowGrid(view=None, show=0)
rs.ShowGridAxes(view=None, show=0)
rs.ViewDisplayMode(view=None, mode="Wireframe")
rs.EnableRedraw(0)
rs.DeleteObjects(rs.AllObjects())
dm.newEmptyLayer( "Default" )
for lay in rs.LayerNames(): rs.PurgeLayer(lay)


dm.allCoords = dm.setUp_hu_02(anzahl=32*4)          ### calling def from DM_lib to get *new* set of coords
allCoords = dm.allCoords
coordsCir=allCoords[0]
coordsCub=allCoords[1]

### just demo ### just demo  >> remove it <<
if 1: 
    rs.AddPoints( coordsCir )
    rs.AddPoints( coordsCub )
    rs.ZoomExtents()
    dm.textDots(coordsCir)
    dm.textDots(coordsCub)
### just demo ### just demo  >> remove it <<

### here we go:
rs.AddCurve(coordsCir, 1)
rs.AddCurve (coordsCub,1 )
for i in range (len(coordsCir) ) :
    rs.AddLine(coordsCir[i],coordsCub[i])
if 0:
    if 10>3:
     print "jhjhjh"
else:
    print "_______"
frage=10>3*10
print frage; frage*1

################
dm.PointRadius(displayModeX=0, rad=3, styl=3)
rs.ZoomExtents()



