Ignore:
Timestamp:
07/17/06 09:59:26 (18 years ago)
Author:
mattausch
Message:

uaing rays for osp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r1112 r1135  
    3939                for (int j = 0; j < n; ++ j) 
    4040                { 
    41                         const Vector3 scale2((float)j * 0.8 / n + 0.1,  0.05, (float)i * 0.8  / (float)n + 0.1); 
     41                        const Vector3 scale2((float)j * 0.8f / n + 0.1f,  0.05f, (float)i * 0.8f  / (float)n + 0.1f); 
    4242                 
    4343                        const Vector3 pt2 = sceneBox.Min() + scale2 * (sceneBox.Max() - sceneBox.Min()); 
     
    5858                for (int j = 0; j < n; ++ j) 
    5959                { 
    60                         const Vector3 scale2(0.15, (float)j * 0.8 / n + 0.1, (float)i * 0.8  / (float)n + 0.1); 
     60                        const Vector3 scale2(0.15f, (float)j * 0.8f / n + 0.1f, (float)i * 0.8f  / (float)n + 0.1f); 
    6161                 
    6262                        Vector3 pt2 = sceneBox.Min() + scale2 * (sceneBox.Max() - sceneBox.Min()); 
    6363                 
    64                         Vector3 boxSize = sceneBox.Size() * Vector3(0.0025, 0.01, 0.0025); 
     64                        Vector3 boxSize = sceneBox.Size() * Vector3(0.0025f, 0.01f, 0.0025f); 
    6565                        AxisAlignedBox3 box(pt2, pt2 + boxSize); 
    6666                        Mesh *mesh = CreateMeshFromBox(box); 
     
    7575        for (int i = 0; i < n; ++ i) 
    7676        { 
    77                 const Vector3 scale2(2, 0.2, (float)i * 0.8  / (float)n + 0.1); 
     77                const Vector3 scale2(2, 0.2f, (float)i * 0.8f  / (float)n + 0.1f); 
    7878                 
    7979                Vector3 pt2 = sceneBox.Min() + scale2 * (sceneBox.Max() - sceneBox.Min()); 
    8080                 
    8181                //Vector3 boxSize = sceneBox.Size() * Vector3(0.0025, 0.01, 0.0025); 
    82                 Vector3 boxSize = sceneBox.Size() * Vector3(0.005, 0.02, 0.005); 
    83  
    84                 AxisAlignedBox3 box(pt2 + 0.1, pt2 + boxSize); 
     82                Vector3 boxSize = sceneBox.Size() * Vector3(0.005f, 0.02f, 0.005f); 
     83 
     84                AxisAlignedBox3 box(pt2 + 0.1f, pt2 + boxSize); 
    8585                Mesh *mesh = CreateMeshFromBox(box); 
    8686 
     
    9797        if (1) 
    9898        { 
    99                 const Vector3 scale(1.0, 0.0, 0); 
     99                const Vector3 scale(1.0f, 0.0, 0); 
    100100 
    101101                Vector3 pt = sceneBox.Min() + scale * (sceneBox.Max() - sceneBox.Min()); 
Note: See TracChangeset for help on using the changeset viewer.