We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when I use python setup.py install to install NumpyMarchingCubes,it raise the following error:
python setup.py install
17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ marching_cubes/src/marching_cubes.cpp: In function ‘void get_voxel(const vec3f&, const npy_accessor&, float, float&, int&)’: marching_cubes/src/marching_cubes.cpp:83:32: error: ‘numeric_limits’ is not a member of ‘std’ 83 | if (d != -std::numeric_limits<float>::infinity() && fabs(d) < truncation) w = 1; | ^~~~~~~~~~~~~~ marching_cubes/src/marching_cubes.cpp:83:47: error: expected primary-expression before ‘float’ 83 | if (d != -std::numeric_limits<float>::infinity() && fabs(d) < truncation) w = 1; | ^~~~~ marching_cubes/src/marching_cubes.cpp:83:47: error: expected ‘)’ before ‘float’ 83 | if (d != -std::numeric_limits<float>::infinity() && fabs(d) < truncation) w = 1; | ~ ^~~~~ | ) marching_cubes/src/marching_cubes.cpp:87:27: error: ‘numeric_limits’ is not a member of ‘std’ 87 | d = -std::numeric_limits<float>::infinity(); | ^~~~~~~~~~~~~~ marching_cubes/src/marching_cubes.cpp:87:42: error: expected primary-expression before ‘float’ 87 | d = -std::numeric_limits<float>::infinity(); | ^~~~~ error: command '/usr/bin/gcc' failed with exit code 1
How can I fix this problem?
The text was updated successfully, but these errors were encountered:
I add this two line:
#include <stdexcept> #include <limits>
to this file marching_cubes/src/marching_cubes.cpp It works for me
marching_cubes/src/marching_cubes.cpp
Sorry, something went wrong.
fix issue HengyiWang#5 NumpyMarchingCubes install
14fd153
Successfully merging a pull request may close this issue.
when I use
python setup.py install
to install NumpyMarchingCubes,it raise the following error:How can I fix this problem?
The text was updated successfully, but these errors were encountered: