Free cookie consent management tool by TermsFeed Policy Generator

Opened 7 years ago

Closed 6 years ago

#2739 closed enhancement (done)

Improve binpacking visualization

Reported by: abeham Owned by: abeham
Priority: medium Milestone: HeuristicLab 3.3.15
Component: Problems.BinPacking Version: 3.3.14
Keywords: Cc:


Currently, the visualization of a binpacking solution scales the container and all items to a unit cube. It also ignores the material property. Additionally, the rotation is performed at the corner of the container. The code is also a bit awkward having only a total of three Geometry3DModels. It would be better if each item and the container is its own model that is dynamically created and added to the visualization.

Improvements should be:

  1. Color for each material
  2. Display everything in unaltered aspect ratio
  3. Put the coordinate center in a better position

Attachments (1)

visu_new.PNG (54.1 KB) - added by abeham 7 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 7 years ago by abeham

  • Owner set to abeham
  • Status changed from new to accepted

comment:2 Changed 7 years ago by abeham

r14708: worked on visualization of binpacking solutions

Changed 7 years ago by abeham

comment:3 Changed 7 years ago by abeham

Instead of displaying the container as a solid cube, I added a wireframe model.

comment:4 Changed 7 years ago by abeham

r14709: fixed materials out of range index

comment:5 Changed 6 years ago by abeham

r14971: Embedded ViewPort3D into Border to catch mouse events in the background

comment:6 Changed 6 years ago by abeham

r14978: Improved Bin Packing 3D View

  • Fixing an overlap of triangles in the corner points in the wireframe code
  • Removing unnecessary translate transforms and using centerXYZ of scaling and rotation
  • Correctly calculated the center of the bin after scaling
  • When an item is selected, instead of using solid cubes with semi-transparent surfaces, a wireframe model is displayed
    • The selected cube has to be drawn first, otherwise the other wireframe cubes are not transparent to it

comment:7 Changed 6 years ago by abeham

r14979: Improving camera position and look direction

comment:8 Changed 6 years ago by abeham

  • Owner changed from abeham to jkarder
  • Status changed from accepted to reviewing

comment:9 Changed 6 years ago by jkarder

  • Owner changed from jkarder to abeham

Reviewed and made further changes, please check.

r15167: improved 3d visualization

  • in UpdateVisualization, no materials are available after Clear, therefore TryGetValue is unnecessary
  • removed unnecessary ctrlDown field and OnKeyDown event handler

comment:10 Changed 6 years ago by abeham

  • Status changed from reviewing to readytorelease


comment:11 Changed 6 years ago by abeham

  • Resolution set to done
  • Status changed from readytorelease to closed

r15278: merged revisions 14708, 14709, 14971, 14978, 14979, 15167, 15230, 15233, 15240, 15241, 15276 to stable

Note: See TracTickets for help on using tickets.