Code Monkey home page Code Monkey logo

meshpy's Introduction

This is a 3D mesh processing library, courtesty of
the Berkeley AutoLab and Jeff Mahler.

To run unit tests, from the top level directory simply run
>>> python -m unittest discover

meshpy's People

Contributors

01halibut avatar jeasinema avatar jeffmahler avatar mmatl avatar visatish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meshpy's Issues

where to install V-HACD?

while I want to use sdf writer, The error comes out:

ERROR:root:Output mesh file /home/angela/Documents/code/preprocess/tmp/tmp_vhacd.obj not found. V-HACD failed. Is V-HACD installed?

where to install V-HACD

which boost version does the package depending on?

I just install the newest version of boost( 1.65.1), but the package could not find boost.numpy which should be included in new version boost.

Also, it needs python2.7, right?

Wish you guys could help me, it seems useful, but I just cannot figure out.

Here is the info after I try cmake the files:

(deep27) angela@brick4:~/Documents/code/00-github/meshpy$ ./install_meshrender.sh
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106501
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:8 (FIND_PACKAGE)


-- Could NOT find Boost
-- Configuring done
-- Generating done
-- Build files have been written to: /home/angela/Documents/code/00-github/meshpy
make: *** No targets specified and no makefile found.  Stop.
cp: cannot stat 'meshpy/meshrender.so': No such file or directory

Unable to install Meshpy in python 3.6.5

I am getting following error while installing meshpy
My python version is
conda version : 4.5.11
conda-build version : 3.10.5
python version : 3.6.5.final.0

+++++++++++++++++++++++++++
(base) C:\Users\Krishna>pip install meshpy
Collecting meshpy
Using cached https://files.pythonhosted.org/packages/90/03/3bb205ac46141074aeb561f5bbf60fb2214380aa6ac1435b49d275cf219a/MeshPy-2018.2.1.tar.gz
Requirement already satisfied: pytools>=2011.2 in c:\users\krishna\anaconda3\lib\site-packages (from meshpy) (2018.5.2)
Requirement already satisfied: pytest>=2 in c:\users\krishna\anaconda3\lib\site-packages (from meshpy) (3.5.1)
Requirement already satisfied: numpy in c:\users\krishna\anaconda3\lib\site-packages (from meshpy) (1.14.3)
Requirement already satisfied: gmsh_interop in c:\users\krishna\anaconda3\lib\site-packages (from meshpy) (2017.1)
Requirement already satisfied: six in c:\users\krishna\anaconda3\lib\site-packages (from meshpy) (1.11.0)
Requirement already satisfied: decorator>=3.2.0 in c:\users\krishna\anaconda3\lib\site-packages (from pytools>=2011.2->meshpy) (4.3.0)
Requirement already satisfied: appdirs>=1.4.0 in c:\users\krishna\anaconda3\lib\site-packages (from pytools>=2011.2->meshpy) (1.4.3)
Requirement already satisfied: py>=1.5.0 in c:\users\krishna\anaconda3\lib\site-packages (from pytest>=2->meshpy) (1.5.3)
Requirement already satisfied: setuptools in c:\users\krishna\anaconda3\lib\site-packages (from pytest>=2->meshpy) (39.1.0)
Requirement already satisfied: attrs>=17.4.0 in c:\users\krishna\anaconda3\lib\site-packages (from pytest>=2->meshpy) (18.1.0)
Requirement already satisfied: more-itertools>=4.0.0 in c:\users\krishna\anaconda3\lib\site-packages (from pytest>=2->meshpy) (4.1.0)
Requirement already satisfied: pluggy<0.7,>=0.5 in c:\users\krishna\anaconda3\lib\site-packages (from pytest>=2->meshpy) (0.6.0)
Requirement already satisfied: colorama in c:\users\krishna\anaconda3\lib\site-packages (from pytest>=2->meshpy) (0.3.9)
Building wheels for collected packages: meshpy
Running setup.py bdist_wheel for meshpy ... error
Complete output from command c:\users\krishna\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Krishna\AppData\Local\Temp\pip-install-a4ozfv50\meshpy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\Krishna\AppData\Local\Temp\pip-wheel-bn3dzzlz --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\meshpy
copying meshpy\common.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\geometry.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\gmsh.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\gmsh_reader.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\naca.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\ply.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\tet.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\tools.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\triangle.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy_init_.py -> build\lib.win-amd64-3.6\meshpy
running build_ext
building 'meshpy._internals' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\src\cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DEXTERNAL_TEST=1 -DANSI_DECLARATORS=1 -DTRILIBRARY=1 -Ic:\users\krishna\anaconda3\Include -IC:\Users\Krishna\AppData\Roaming\Python\Python36\Include -Isrc/cpp -Ic:\users\krishna\anaconda3\include -Ic:\users\krishna\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tpsrc/cpp/wrapper.cpp /Fobuild\temp.win-amd64-3.6\Release\src/cpp/wrapper.obj /EHsc /DVERSION_INFO="2018.2.1"
wrapper.cpp
src/cpp/wrapper.cpp(1): fatal error C1083: Cannot open include file: 'pybind11/pybind11.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2


Failed building wheel for meshpy
Running setup.py clean for meshpy
Failed to build meshpy
Installing collected packages: meshpy
Running setup.py install for meshpy ... error
Complete output from command c:\users\krishna\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Krishna\AppData\Local\Temp\pip-install-a4ozfv50\meshpy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Krishna\AppData\Local\Temp\pip-record-m_tdkp27\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\meshpy
copying meshpy\common.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\geometry.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\gmsh.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\gmsh_reader.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\naca.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\ply.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\tet.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\tools.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy\triangle.py -> build\lib.win-amd64-3.6\meshpy
copying meshpy_init_.py -> build\lib.win-amd64-3.6\meshpy
running build_ext
building 'meshpy._internals' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\src\cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DEXTERNAL_TEST=1 -DANSI_DECLARATORS=1 -DTRILIBRARY=1 -Ic:\users\krishna\anaconda3\Include -IC:\Users\Krishna\AppData\Roaming\Python\Python36\Include -Isrc/cpp -Ic:\users\krishna\anaconda3\include -Ic:\users\krishna\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tpsrc/cpp/wrapper.cpp /Fobuild\temp.win-amd64-3.6\Release\src/cpp/wrapper.obj /EHsc /DVERSION_INFO="2018.2.1"
wrapper.cpp
src/cpp/wrapper.cpp(1): fatal error C1083: Cannot open include file: 'pybind11/pybind11.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2

----------------------------------------

Command "c:\users\krishna\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Krishna\AppData\Local\Temp\pip-install-a4ozfv50\meshpy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Krishna\AppData\Local\Temp\pip-record-m_tdkp27\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Krishna\AppData\Local\Temp\pip-install-a4ozfv50\meshpy
+++++++++++++++++++++++++++++

Please help me out in resolving issue

Fatal Error: "boost/python/numeric.hpp": No such file or directory

Hi,

I was trying to install the Meshy for Dex-Net when I faced the bellow error.
fatal error: boost/python/numeric.hpp: No such file or directory #include "boost/python/numeric.hpp"

  • libboost-dev version (1.65.1.0ubuntu1)

How can I fix this? Please let me know.

Regards,
Astha

Unscaled translation should be used with autolab_core.SimilarityTransform

To make it clear, the whole tranlation can be described as follows:

(1)world coordinate(unscaled)<->(2)world coordinate, but self.origin is the origin(unscaled)<->(3)sdf grid coordinate(scaled)

(3) to (2) is simply a scale transformation(multiplied by the scale factor, a.k.a. self.resolution), (2) to (1) is a translation(added by self.origin).

self.T_grid_sdf_ try to establish a tranform from (3) to (1). Since in autolab_core==0.0.4, SimilarityTransform is a two-step process begin with scale then rotation/translation(code). We should use an unscaled translation here, which means that the self.origin should not be divided by self.resolution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.