Overview
Comment: | Rationalised port ordering. Fixed port bug. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5bb72d88336aa87c26134802ed4743b3 |
User & Date: | gawthrop@users.sourceforge.net on 1996-11-01 18:01:57 |
Other Links: | branch diff | manifest | tags |
Context
1996-11-01
| ||
20:10:16 | Initial revision check-in: 0f5a9859c9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
18:01:57 |
Rationalised port ordering. Fixed port bug. check-in: 5bb72d8833 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
14:42:12 | Check correct bonds check-in: 3759b204d0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/rbg2abg.m from [14243645f4] to [e879a1d07f].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | + + + | function [bonds,components] = rbg2abg(rbonds,rstrokes,rcomponents,rports,infofile) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.6 1996/08/25 08:27:14 peter % %% Now checks ports correctely - I hope. % %% % %% Revision 1.5 1996/08/24 19:21:26 peter % %% More specific error messages. % %% % %% Revision 1.4 1996/08/24 18:00:33 peter % %% Fixed bug with finding ports. % %% % %% Revision 1.3 1996/08/09 08:26:35 peter |
︙ | |||
26 27 28 29 30 31 32 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - + | if nargin<5 infofile='stdout'; else fnum = fopen(infofile, 'w'); end; % Xfig scaling factor |
︙ | |||
63 64 65 66 67 68 69 70 71 | 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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | + + + - + + + + + + - + + + - + + - - - + + + - - - + + + - - - - - - - - - + - - - + + - - + + + + - + - + + + - - - + + + + - + - + - - - - | which_end = (distance_1>distance_2)*[1 1]; one = ones(size(which_end)); other_end = which_end.*other_end_1 + (one-which_end).*other_end_2; arrow_vector = ( which_end.*other_end_2 + (one-which_end).*other_end_1 ) - ... arrow_end; % Locate the bond end nearest to each port % col 1 of port_near_bond contains a signed bond number (+ for arrow end) % col 2 of port_near_bond contains the corresponding port number for i = 1:n_ports near_bond = adjbond(rports(i,1:2),arrow_end,other_end); signed_bond = near_bond(1)*sign(1.5-near_bond(2)) |
︙ |