Research Article
[Retracted] Optimization and Application of Information Visualization Design Based on Image Symbol under the Guidance of Feature Integration Theory
Algorithm 1
Fast rectangle-packing algorithm.
| | For each rectangle { | | | For each edge {//the order of processing edges. | | | Calculate one or two candidate positions to place on ; | | | For(each candidate position dt) { | | | If (dt satisfies both conditions 1 and (2) { | | | T = dt; goto PlaceNow;//T is the final position of. | | | } | | | If (dt satisfies only condition 1){ | | | Calculate bB + gG; //Section 4.3 describes the calculation of bB + gG. | | | If (bB + gG is less than the previous candidate positions){ | | | T = dt; | | | } | | | } | | | }//end of for (dt). | | | }//end of for. | | | PlaceNow: | | | Place at T; Modify M;//the modification of the mesh. | | | }//end of for. |
|