mirror of https://github.com/vitalif/openscad
parent
94de600995
commit
5bba950304
|
@ -32,8 +32,6 @@
|
||||||
|
|
||||||
//#include <boost/unordered_map.hpp>
|
//#include <boost/unordered_map.hpp>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <iostream>
|
|
||||||
using std::cout;
|
|
||||||
|
|
||||||
ThrownTogetherRenderer::ThrownTogetherRenderer(CSGChain *root_chain,
|
ThrownTogetherRenderer::ThrownTogetherRenderer(CSGChain *root_chain,
|
||||||
CSGChain *highlights_chain,
|
CSGChain *highlights_chain,
|
||||||
|
@ -72,8 +70,6 @@ void ThrownTogetherRenderer::renderCSGChain(CSGChain *chain, bool highlight,
|
||||||
continue;
|
continue;
|
||||||
const Transform3d &m = chain->matrices[i];
|
const Transform3d &m = chain->matrices[i];
|
||||||
const Color4f &c = chain->colors[i];
|
const Color4f &c = chain->colors[i];
|
||||||
cout << "m\n" << m.matrix() << "\n";
|
|
||||||
cout << "color\n" << c << "\n";
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glMultMatrixd(m.data());
|
glMultMatrixd(m.data());
|
||||||
PolySet::csgmode_e csgmode = chain->types[i] == CSGTerm::TYPE_DIFFERENCE ? PolySet::CSGMODE_DIFFERENCE : PolySet::CSGMODE_NORMAL;
|
PolySet::csgmode_e csgmode = chain->types[i] == CSGTerm::TYPE_DIFFERENCE ? PolySet::CSGMODE_DIFFERENCE : PolySet::CSGMODE_NORMAL;
|
||||||
|
|
Loading…
Reference in New Issue