Quelques corrections.
This commit is contained in:
parent
a28b61c41f
commit
a23b241fb0
|
@ -4,8 +4,8 @@ Vertex::Vertex() {}
|
|||
|
||||
Vertex::Vertex(float _x, float _y, float _z): x(_x), y(_y), z(_z) {
|
||||
// TODO : DEBUG
|
||||
//if (!(std::isfinite(x) && std::isfinite(y) && std::isfinite(z)))
|
||||
// throw "Attempted to create vertex with bad data !";
|
||||
if (!(std::isfinite(x) && std::isfinite(y) && std::isfinite(z)))
|
||||
std::cout << "Attempted to create vertex with bad data !" << std::endl;
|
||||
}
|
||||
|
||||
float Vertex::norm() const { return std::sqrt(x*x + y*y + z*z); }
|
||||
|
|
|
@ -16,7 +16,7 @@ void BatimentQuadMur::setWindow(bool val) {
|
|||
Quad q = Quad(ch[SE],c[SE],c[SW],ch[SW]);
|
||||
int lr = (q.length(S) - 100)/40;
|
||||
std::cout << q.inset(E,60).surface() << std::endl;
|
||||
Quad wFront = q.inset(N,40).inset(S,100).inset(E,lr).inset(W,lr);
|
||||
Quad wFront = q.insetNSEW(40,100,lr,lr);
|
||||
Quad wBack = wFront.offsetNormal(28);
|
||||
windowPos = Quad(wBack[SE],wFront[SE],wFront[SW],wBack[SW]);
|
||||
windowPosh = Quad(wBack[NE],wFront[NE],wFront[NW],wBack[NW]);
|
||||
|
|
|
@ -11,6 +11,6 @@ bool QuartierQuadConcave::split() {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
throw "ERREUR : Ne devait jamais arriver ici !";
|
||||
std::cout << "ERREUR : Ne devait jamais arriver ici !" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user