Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there are some errors in libigl_booleans #14

Open
zcc2xj opened this issue Mar 9, 2024 · 0 comments
Open

there are some errors in libigl_booleans #14

zcc2xj opened this issue Mar 9, 2024 · 0 comments

Comments

@zcc2xj
Copy link

zcc2xj commented Mar 9, 2024

the rest of examples are normal with some warnings. but there are some errors in libigl_booleans.
I think the problem is libigl/include/igl/decimate.h in cg3lib/cg3/libigl is totally different

g++ -c -pipe -fopenmp -isystem /opt/libigl/include/ -std=c++11 -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -DCGAL_HEADER_ONLY -DCG3_QMAKE -DCG3_CORE_DEFINED -DCG3_WITH_BOOST -DCG3_CGAL_DEFINED -DCGAL_EIGEN3_ENABLED -DCG3_LIBIGL_DEFINED -DCG3_VIEWER_DEFINED -DSOURCE_PATH=/home/zcc2xj/Github/cg3lib/examples/libigl_booleans -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I-I -I/usr/include/eigen3 -I/opt/libigl/include -I../../../cg3lib -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o booleans_manager.o ../../cg3/viewer/managers/booleans_manager.cpp
g++ -c -pipe -fopenmp -isystem /opt/libigl/include/ -std=c++11 -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -DCGAL_HEADER_ONLY -DCG3_QMAKE -DCG3_CORE_DEFINED -DCG3_WITH_BOOST -DCG3_CGAL_DEFINED -DCGAL_EIGEN3_ENABLED -DCG3_LIBIGL_DEFINED -DCG3_VIEWER_DEFINED -DSOURCE_PATH=/home/zcc2xj/Github/cg3lib/examples/libigl_booleans -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I-I -I/usr/include/eigen3 -I/opt/libigl/include -I../../../cg3lib -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from ../../../cg3lib/cg3/libigl/internal/eigenmesh_libigl_algorithms.h:117,
from ../../../cg3lib/cg3/libigl/booleans.cpp:10,
from ../../../cg3lib/cg3/libigl/booleans.h:58,
from ../../cg3/viewer/managers/booleans_manager.cpp:15:
../../../cg3lib/cg3/libigl/internal/eigenmesh_libigl_algorithms_decimation.cpp: In static member function ‘static cg3::SimpleEigenMesh cg3::libigl::internal::EigenMeshLibIglAlgorithms::decimateMesh(const cg3::SimpleEigenMesh&, int, Eigen::VectorXi&)’:
../../../cg3lib/cg3/libigl/internal/eigenmesh_libigl_algorithms_decimation.cpp:30:18: error: no matching function for call to ‘decimate(const Eigen::Matrix<double, -1, 3, 1, -1, 3>&, const Eigen::Matrix<int, -1, 3, 1, -1, 3>&, int&, Eigen::MatrixXd&, Eigen::MatrixXi&, Eigen::VectorXi&)’
30 | igl::decimate(m.V, m.F, numberDesiredFaces, VV, FF, mapping);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/libigl/include/igl/decimate.h:182,
from ../../../cg3lib/cg3/libigl/internal/eigenmesh_libigl_algorithms_decimation.cpp:10,
from ../../../cg3lib/cg3/libigl/internal/eigenmesh_libigl_algorithms.h:117,
from ../../../cg3lib/cg3/libigl/booleans.cpp:10,
from ../../../cg3lib/cg3/libigl/booleans.h:58,
from ../../cg3/viewer/managers/booleans_manager.cpp:15:
/opt/libigl/include/igl/decimate.cpp:22:17: note: candidate: ‘bool igl::decimate(const MatrixXd&, const MatrixXi&, int, bool, Eigen::MatrixXd&, Eigen::MatrixXi&, Eigen::VectorXi&, Eigen::VectorXi&)’
22 | IGL_INLINE bool igl::decimate(
| ^~~
/opt/libigl/include/igl/decimate.cpp:22:17: note: candidate expects 8 arguments, 6 provided
/opt/libigl/include/igl/decimate.cpp:138:17: note: candidate: ‘bool igl::decimate(const MatrixXd&, const MatrixXi&, const decimate_cost_and_placement_callback&, const decimate_stopping_condition_callback&, const decimate_pre_collapse_callback&, const decimate_post_collapse_callback&, const MatrixXi&, const VectorXi&, const MatrixXi&, const MatrixXi&, Eigen::MatrixXd&, Eigen::MatrixXi&, Eigen::VectorXi&, Eigen::VectorXi&)’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant