Right now min_value is set to 1000 before the loop starts. It's immediately overwritten correctly. Since we can assume that there's at least 1 primitive in the primitives list, we could make this a lot less confusing by setting it to bounds.at(0).XMin().
Right now
min_value
is set to 1000 before the loop starts. It's immediately overwritten correctly. Since we can assume that there's at least 1 primitive in the primitives list, we could make this a lot less confusing by setting it tobounds.at(0).XMin()
.