Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/15 20:23:19 (8 years ago)
Author:
gkronber
Message:

#1966: general code cleanup ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/PackingPlanVisualizations/3D/CuboidShapePreperations.cs

    r13032 r13465  
    5353    Color rightColor = Color.Black;
    5454
    55     //Define positions of the textures
    56     Vector2 textureTopLeft;
    57     Vector2 textureTopRight;
    58     Vector2 textureBottomLeft;
    59     Vector2 textureBottomRight;
    6055    #endregion Private Members
    6156
     
    9186      rightColor = color;
    9287
    93       //Define positions of the textures
    94       textureTopLeft = new Vector2(0.5f * halfShapeSize.X, 0.0f * halfShapeSize.Y);
    95       textureTopRight = new Vector2(0.0f * halfShapeSize.X, 0.0f * halfShapeSize.Y);
    96       textureBottomLeft = new Vector2(0.5f * halfShapeSize.X, 0.5f * halfShapeSize.Y);
    97       textureBottomRight = new Vector2(0.0f * halfShapeSize.X, 0.5f * halfShapeSize.Y);
    9888    }
    9989
     
    171161      //Definition of the actual lines
    172162      VertexPositionColorNormal[] shapeVertices = new VertexPositionColorNormal[48];
    173 
    174       //shapeVertices[0] = new VertexPositionColorNormal(color, topRightFront, frontNormal);
    175       //shapeVertices[1] = new VertexPositionColorNormal(color, topLeftFront, frontNormal);
    176       //shapeVertices[2] = new VertexPositionColorNormal(color, topLeftFront, frontNormal);
    177       //shapeVertices[3] = new VertexPositionColorNormal(color, bottomLeftFront, frontNormal);
    178       //shapeVertices[4] = new VertexPositionColorNormal(color, bottomLeftFront, frontNormal);
    179       //shapeVertices[5] = new VertexPositionColorNormal(color, bottomRightFront, frontNormal);
    180       //shapeVertices[6] = new VertexPositionColorNormal(color, bottomRightFront, frontNormal);
    181       //shapeVertices[7] = new VertexPositionColorNormal(color, topRightFront, frontNormal);
    182 
    183       //shapeVertices[8] = new VertexPositionColorNormal(color, topRightBack, backNormal);
    184       //shapeVertices[9] = new VertexPositionColorNormal(color, topLeftBack, backNormal);
    185       //shapeVertices[10] = new VertexPositionColorNormal(color, topLeftBack, backNormal);
    186       //shapeVertices[11] = new VertexPositionColorNormal(color, bottomLeftBack, backNormal);
    187       //shapeVertices[12] = new VertexPositionColorNormal(color, bottomLeftBack, backNormal);
    188       //shapeVertices[13] = new VertexPositionColorNormal(color, bottomRightBack, backNormal);
    189       //shapeVertices[14] = new VertexPositionColorNormal(color, bottomRightBack, backNormal);
    190       //shapeVertices[15] = new VertexPositionColorNormal(color, topRightBack, backNormal);
    191 
    192       //shapeVertices[16] = new VertexPositionColorNormal(color, topLeftFront, topNormal);
    193       //shapeVertices[17] = new VertexPositionColorNormal(color, topLeftBack, topNormal);
    194       //shapeVertices[18] = new VertexPositionColorNormal(color, topRightFront, topNormal);
    195       //shapeVertices[19] = new VertexPositionColorNormal(color, topRightBack, topNormal);
    196       //shapeVertices[20] = new VertexPositionColorNormal(color, topLeftFront, topNormal);
    197       //shapeVertices[21] = new VertexPositionColorNormal(color, topRightFront, topNormal);
    198       //shapeVertices[22] = new VertexPositionColorNormal(color, topRightBack, topNormal);
    199       //shapeVertices[23] = new VertexPositionColorNormal(color, topLeftBack, topNormal);
    200 
    201       //shapeVertices[24] = new VertexPositionColorNormal(color, bottomLeftFront, bottomNormal);
    202       //shapeVertices[25] = new VertexPositionColorNormal(color, bottomRightFront, bottomNormal);
    203       //shapeVertices[26] = new VertexPositionColorNormal(color, bottomLeftBack, bottomNormal);
    204       //shapeVertices[27] = new VertexPositionColorNormal(color, bottomRightBack, bottomNormal);
    205       //shapeVertices[28] = new VertexPositionColorNormal(color, bottomRightFront, bottomNormal);
    206       //shapeVertices[29] = new VertexPositionColorNormal(color, bottomRightBack, bottomNormal);
    207       //shapeVertices[30] = new VertexPositionColorNormal(color, bottomLeftFront, bottomNormal);
    208       //shapeVertices[31] = new VertexPositionColorNormal(color, bottomLeftBack, bottomNormal);
    209 
    210       //shapeVertices[32] = new VertexPositionColorNormal(color, topLeftFront, leftNormal);
    211       //shapeVertices[33] = new VertexPositionColorNormal(color, topLeftBack, leftNormal);
    212       //shapeVertices[34] = new VertexPositionColorNormal(color, topLeftBack, leftNormal);
    213       //shapeVertices[35] = new VertexPositionColorNormal(color, bottomLeftBack, leftNormal);
    214       //shapeVertices[36] = new VertexPositionColorNormal(color, bottomLeftBack, leftNormal);
    215       //shapeVertices[37] = new VertexPositionColorNormal(color, bottomLeftFront, leftNormal);
    216       //shapeVertices[38] = new VertexPositionColorNormal(color, bottomLeftFront, leftNormal);
    217       //shapeVertices[39] = new VertexPositionColorNormal(color, topLeftFront, leftNormal);
    218 
    219       //shapeVertices[40] = new VertexPositionColorNormal(color, topRightFront, rightNormal);
    220       //shapeVertices[41] = new VertexPositionColorNormal(color, topRightBack, rightNormal);
    221       //shapeVertices[42] = new VertexPositionColorNormal(color, topRightBack, rightNormal);
    222       //shapeVertices[43] = new VertexPositionColorNormal(color, bottomRightBack, rightNormal);
    223       //shapeVertices[44] = new VertexPositionColorNormal(color, bottomRightBack, rightNormal);
    224       //shapeVertices[45] = new VertexPositionColorNormal(color, bottomRightFront, rightNormal);
    225       //shapeVertices[46] = new VertexPositionColorNormal(color, bottomRightFront, rightNormal);
    226       //shapeVertices[47] = new VertexPositionColorNormal(color, topRightFront, rightNormal);
    227163
    228164      Vector3 topRightFrontNormal = (topNormal + rightNormal + frontNormal) / 3;
Note: See TracChangeset for help on using the changeset viewer.