Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/17 23:37:08 (7 years ago)
Author:
abeham
Message:

#2739: 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml

    r14971 r14978  
    5555                        <Transform3DGroup>
    5656                            <ScaleTransform3D x:Name="scale" ScaleX="1" ScaleY="1" ScaleZ="1"/>
    57                             <TranslateTransform3D OffsetX="-0.5" OffsetY="-0.5" OffsetZ="-0.5" />
    58                             <RotateTransform3D>
     57                            <RotateTransform3D x:Name="rotateX">
    5958                                <RotateTransform3D.Rotation>
    60                                     <AxisAngleRotation3D x:Name="rotateX" Axis="0 1 0"/>
     59                                    <AxisAngleRotation3D Axis="0 1 0"/>
    6160                                </RotateTransform3D.Rotation>
    6261                            </RotateTransform3D>
    63                             <RotateTransform3D>
     62                            <RotateTransform3D x:Name="rotateY">
    6463                                <RotateTransform3D.Rotation>
    65                                     <AxisAngleRotation3D x:Name="rotateY" Axis="1 0 0"/>
     64                                    <AxisAngleRotation3D Axis="1 0 0"/>
    6665                                </RotateTransform3D.Rotation>
    6766                            </RotateTransform3D>
    68                             <TranslateTransform3D OffsetX="0.5" OffsetY="0.5" OffsetZ="0.5" />
    69                             <ScaleTransform3D x:Name="scaleZoom" CenterX="0.5" CenterY="0.5" CenterZ="0.5" ScaleX="1" ScaleY="1" ScaleZ="1"/>
     67                            <ScaleTransform3D x:Name="scaleZoom" ScaleX="1" ScaleY="1" ScaleZ="1"/>
    7068                        </Transform3DGroup>
    7169                    </ModelVisual3D.Transform>
Note: See TracChangeset for help on using the changeset viewer.