Overview
Comment: | Allows for bent bonds - ie bonds with more than 2 line segments. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
be097f19e1688e6b49e4324d30d14f07 |
User & Date: | gawthrop@users.sourceforge.net on 1996-12-30 19:23:35 |
Other Links: | branch diff | manifest | tags |
Context
1996-12-30
| ||
20:00:29 |
Fixed bent-bond bug. NB unfixed problems: 1. xfig writes multi line fields if more than about 5 segments. 2. rbg2abg takes a multi-segment bond as a straignt line between the end points - so computation of stroke and arrow directions may be iffy. check-in: 2b6ffa23ce user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
19:23:35 | Allows for bent bonds - ie bonds with more than 2 line segments. check-in: be097f19e1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1996-12-21
| ||
19:47:53 | Changed \* to \\* check-in: e6b9cd6975 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/awk/rbg_fig2m.awk from [b351131838] to [23b3621679].
︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + + + | # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.14 1996/12/21 19:47:53 peterg ## Changed \* to \\* ## ## Revision 1.13 1996/12/21 19:47:23 peterg ## Put back under VC ## # Revision 1.12 1996/08/24 16:30:12 peter # Fixed error in nonport_regexp. # ## Revision 1.11 1996/08/19 10:48:57 peter |
︙ | |||
55 56 57 58 59 60 61 | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | - + + + + + + + + + + + + + - + - - - - - - - - - - | ############################################################## # This (g)awk script reads a fig file in fig 3.1 format. # It interprets the picture as: bonds, arrows and components # as follows: # |
︙ | |||
254 255 256 257 258 259 260 261 262 263 264 265 266 267 | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | + + + + + + + + + + + + + + + + + - - + + + + + - - - - + + + + + + + + + + | x[name] = x_coord; y[name] = y_coord; info[name] = fig_info(); reps[name] = repetitions; } } #Euclidean length of a line between (first_x,first_y) and (second_x,second_y) function line_length(first_x,first_y,second_x,second_y) { x_length = second_x-first_x; y_length = second_y-first_y; return sqrt( x_length*x_length + y_length*y_length ); } # Returns 1 if (bond) arrow at beginning of field or 2 if arrow at end of field function arrow_end(first_x,first_y,second_x,second_y,penultimate_x,penultimate_y,last_x,last_y) { if ( line_length(first_x,first_y,second_x,second_y) < line_length(first_x,first_y,second_x,second_y) ) { return 1 } else { return 2 } } function process_bond() { arg_count++; if ( (arg_count-arrow)==1 ) { |
︙ |