kasuyasu / cutsim Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
on ubuntu 18.04 64bit ,using QT5 and libqglviewer2.7 .it can run ,but have "1 Error for reading Setup file" ,could you give me some advice? thank you .
when i test your project on windows10 , it complied done. but when it read stl, it is very slow, the file size is 6142KB, i need three hours to show it out, so does this program support large stl file (over 10000 triangles ), is there a better way to do this ? thank you
I ported some of your code to Windows to make a new software,but after I choose stock file, no stock appear .
Here is part of my code:
QString path=QFileDialog::getOpenFileName(this,"select path","./");
double cx = 0.0, cy = 0.0, cz = 0.0, rx = 0.0, ry = 0.0, rz = 0.0, ra = 0.0, rb = 0.0, rc = 0.0;
StockVolume *stockVolume=new StockVolume();
stock = new cutsim::StlVolume();
stock->setProgress(0);
stock->setCenter(cutsim::GLVertex(cx,cy,cz));
stock->setRotationCenter(cutsim::GLVertex(rx,ry,rz));
stock->setAngle(cutsim::GLVertex(ra*(PI/ 180.0), rb*(PI/ 180.0), rc*(PI/ 180.0)));
stock->setCubeResolution(cube_resolution);
int error=stock->readStlFile(path);
if (error==0)
stock->setColor(STOCK_COLOR);
stock->calcBB();
myCutsim->sum_volume(stock);
myCutsim->updateGL();
myGLWidget->reDraw();
where is the problem?
After selecting the setup file (.csim) the application window opens and some random junk from other parts of the screen can be shown in the window (in the OpenGL view part of the screen).
The fix is probably to clear the OpenGL view before showing it to the user?
Hi
I'm trying to compile the project
here is the output:
turboss@TurBoPx:~/Sources/cutsim/build$ cmake ../src
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- CMAKE_BUILD_TYPE = Debug
-- Boost version: 1.61.0
-- found Boost: 1_61
-- boost-incude dirs are: /usr/include
-- boost_LIBRARY_DIRS is: /usr/lib
-- Boost_LIBRARIES is:
-- found OpenMP, compiling with flags: -fopenmp
-- Found QGLViewer: /usr/lib/x86_64-linux-gnu/libQGLViewer-qt4.so
-- Cutting simulation requires OpenGL and Qt4...
-- found OPENGL, lib = /usr/lib/x86_64-linux-gnu/libGLU.so/usr/lib/x86_64-linux-gnu/libGL.so
-- qmake = /usr/bin/qmake
-- QT_USE_FILE = /usr/share/cmake-3.5/Modules/UseQt4.cmake
-- CMAKE_SOURCE_DIR = /home/turboss/Sources/cutsim/src
-- Found Qt4: /usr/bin/qmake (found version "4.8.7")
-- Found Qt4: /usr/bin/qmake (found version "4.8.7")
-- QT_USE_FILE = /usr/share/cmake-3.5/Modules/UseQt4.cmake
-- found OPENGL, lib = /usr/lib/x86_64-linux-gnu/libGLU.so/usr/lib/x86_64-linux-gnu/libGL.so
-- Boost version: 1.61.0
-- found Boost: 1_61
-- boost-incude dirs are: /usr/include
-- DOXY_CONFIG = /home/turboss/Sources/cutsim/src/Doxyfile
-- Run 'make doc' to generate documentation.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/turboss/Sources/cutsim/build
turboss@TurBoPx:~/Sources/cutsim/build$ make
[ 2%] Generating moc_cutsim.cxx
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
cutsim/CMakeFiles/libcutsim.dir/build.make:67: recipe for target 'cutsim/moc_cutsim.cxx' failed
make[2]: *** [cutsim/moc_cutsim.cxx] Error 1
CMakeFiles/Makefile2:117: recipe for target 'cutsim/CMakeFiles/libcutsim.dir/all' failed
make[1]: *** [cutsim/CMakeFiles/libcutsim.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.