- Timestamp:
- Jul 3, 2019, 5:01:12 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2658 r2659 403 403 return reflex 404 404 405 def join_circ_sec(points, radfrac=3., N=200):405 def join_circ_sec(points, radfrac=3., arc='short', side='left', N=200): 406 406 """ Function to join aa series of points by circular segments 407 407 points: main points of the island (clockwise ordered, to be joined by circular … … 410 410 radfrac: multiplicative factor of the distance between consecutive points to 411 411 draw the circular segment (3., default) 412 arc: type of arc ('short', default) 413 pos: position of arc ('left', default) 412 414 N: number of points (200, default) 413 415 """ … … 424 426 p2 = lpoints[ip+1] 425 427 dps = dist_points(p1, p2) 426 jcirc_sec[Np*ip:Np*(ip+1),:] = circ_sec(p1, p2, dps*radfrac, 'short', Np)428 jcirc_sec[Np*ip:Np*(ip+1),:] = circ_sec(p1,p2,dps*radfrac, arc, side, Np) 427 429 428 430 Np2 = N - (Npts-1)*Np … … 430 432 p2 = lpoints[0] 431 433 dps = dist_points(p1, p2) 432 jcirc_sec[(Npts-1)*Np:N,:] = circ_sec(p1, p2, dps*3., 'short', Np2)434 jcirc_sec[(Npts-1)*Np:N,:] = circ_sec(p1, p2, dps*3., arc, side, Np2) 433 435 434 436 return jcirc_sec
Note: See TracChangeset
for help on using the changeset viewer.