mirror of https://github.com/vitalif/openscad
Render all 2D objects 1mm high in OpenCSG/Throwntogether mode
parent
b04734cbf5
commit
a64f932693
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue