Render all 2D objects 1mm high in OpenCSG/Throwntogether mode

felipesanches-svg
Marius Kintel 2012-12-08 09:47:31 +01:00
parent b04734cbf5
commit a64f932693
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ void PolySet::render_surface(csgmode_e csgmode, const Transform3d &m, GLint *sha
}
#endif /* ENABLE_OPENCSG */
if (this->is2d) {
double zbase = csgmode;
double zbase = 1; // Render 2D objects 1mm thick
glBegin(GL_TRIANGLES);
for (double z = -zbase/2; z < zbase; z += zbase)
{
@ -248,7 +248,7 @@ void PolySet::render_edges(csgmode_e csgmode) const
{
glDisable(GL_LIGHTING);
if (this->is2d) {
double zbase = csgmode;
double zbase = 1; // Render 2D objects 1mm thick
for (double z = -zbase/2; z < zbase; z += zbase)
{
for (size_t i = 0; i < borders.size(); i++) {