rm shader, tutorial uses new viewer refactor
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//#define IGL_NO_CORK
|
||||
//#undef IGL_STATIC_LIBRARY
|
||||
#include <igl/copyleft/cgal/mesh_boolean.h>
|
||||
#include <igl/viewer/Viewer.h>
|
||||
#include <igl/opengl/glfw/Viewer.h>
|
||||
|
||||
#include <Eigen/Core>
|
||||
#include <iostream>
|
||||
@@ -24,7 +24,7 @@ const char * MESH_BOOLEAN_TYPE_NAMES[] =
|
||||
"Resolve",
|
||||
};
|
||||
|
||||
void update(igl::viewer::Viewer &viewer)
|
||||
void update(igl::opengl::glfw::Viewer &viewer)
|
||||
{
|
||||
igl::copyleft::cgal::mesh_boolean(VA,FA,VB,FB,boolean_type,VC,FC,J);
|
||||
Eigen::MatrixXd C(FC.rows(),3);
|
||||
@@ -44,7 +44,7 @@ void update(igl::viewer::Viewer &viewer)
|
||||
std::cout<<"A "<<MESH_BOOLEAN_TYPE_NAMES[boolean_type]<<" B."<<std::endl;
|
||||
}
|
||||
|
||||
bool key_down(igl::viewer::Viewer &viewer, unsigned char key, int mods)
|
||||
bool key_down(igl::opengl::glfw::Viewer &viewer, unsigned char key, int mods)
|
||||
{
|
||||
switch(key)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
|
||||
igl::readOFF(TUTORIAL_SHARED_PATH "/cheburashka.off",VA,FA);
|
||||
igl::readOFF(TUTORIAL_SHARED_PATH "/decimated-knight.off",VB,FB);
|
||||
// Plot the mesh with pseudocolors
|
||||
igl::viewer::Viewer viewer;
|
||||
igl::opengl::glfw::Viewer viewer;
|
||||
|
||||
// Initialize
|
||||
update(viewer);
|
||||
|
||||
Reference in New Issue
Block a user