Subversion Repositories gelsvn

Rev

Rev 353 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 353 Rev 417
Line 136... Line 136...
136
    //skip non-emitters
136
    //skip non-emitters
137
    if (intensity(exitance_) == 0.f)
137
    if (intensity(exitance_) == 0.f)
138
        return false;
138
        return false;
139
 
139
 
140
    //pick a random face
140
    //pick a random face
141
    int face = rand() % msh_->geometry.no_faces();
141
    int face = gel_rand() % msh_->geometry.no_faces();
142
    float pface = 1.f / float(msh_->geometry.no_faces());
142
    float pface = 1.f / float(msh_->geometry.no_faces());
143
 
143
 
144
    //pick a random position in triangle
144
    //pick a random position in triangle
145
    float r1 = std::sqrt(mt_random());
145
    float r1 = std::sqrt(mt_random());
146
    float r2 = mt_random();
146
    float r2 = mt_random();