Skip to content

Commit

Permalink
fixing 2.2 to build
Browse files Browse the repository at this point in the history
  • Loading branch information
jvarley committed May 5, 2017
1 parent 50606bd commit 6225322
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
5 changes: 4 additions & 1 deletion graspit-lib-LINUX.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ HEADERS += include/lapack_wrappers.h
INCLUDEPATH += /usr/include/qhull

#add qhull libraries
LIBS += -lqhull
LIBS += -lqhull

#add dso for plugins
LIBS += -ldl

#add openinventor libraries
LIBS += -lSoQt -lCoin
Expand Down
25 changes: 1 addition & 24 deletions src/ivmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1530,30 +1530,7 @@ IVmgr::saveImage(QString filename)
glRend->setTransparencyType(SoGLRenderAction::SORTED_OBJECT_SORTED_TRIANGLE_BLEND);

myRenderer = new SoOffscreenRenderer(glRend);
myRenderer->setBackgroundColor(white);

#ifdef GRASPITDBG
if (myRenderer->isWriteSupported("jpg"))
std::cout << " supports jpg" << std::endl;
else
std::cout << "no jpg support" << std::endl;
#endif

int numtypes = myRenderer->getNumWriteFiletypes();
SbList<SbName> extList;
SbString fullname;
SbString desc;
for (int i=0;i<numtypes;i++) {
myRenderer ->getWriteFiletypeInfo(i,extList,fullname,desc);
#ifdef GRASPITDBG
std::cout <<std::endl;
for (int j=0;j<extList.getLength();j++)
std::cout << extList[j].getString() <<" ";
std::cout <<std::endl<<fullname.getString()<<std::endl<<desc.getString()<<std::endl;

#endif
}

myRenderer->setBackgroundColor(white);

SoSeparator *renderRoot = new SoSeparator;
renderRoot->ref();
Expand Down

0 comments on commit 6225322

Please sign in to comment.