#1202 Render 2D objects in the XY plane rather than at z=-0.1
This commit is contained in:
parent
80e0149b29
commit
aee6119f00
2 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ void CGALRenderer::draw(bool showfaces, bool showedges) const
|
|||
glBegin(GL_POLYGON);
|
||||
for (size_t j=0; j < this->polyset->polygons[i].size(); j++) {
|
||||
const Vector3d &p = this->polyset->polygons[i][j];
|
||||
glVertex3d(p[0], p[1], -0.1);
|
||||
glVertex3d(p[0], p[1], 0);
|
||||
}
|
||||
glEnd();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ void PolySet::render_edges(Renderer::csgmode_e csgmode) const
|
|||
BOOST_FOREACH(const Outline2d &o, polygon.outlines()) {
|
||||
glBegin(GL_LINE_LOOP);
|
||||
BOOST_FOREACH(const Vector2d &v, o.vertices) {
|
||||
glVertex3d(v[0], v[1], -0.1);
|
||||
glVertex3d(v[0], v[1], 0);
|
||||
}
|
||||
glEnd();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue