GithubHelp home page GithubHelp logo

silky / menpo3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from menpo/menpo3d

0.0 2.0 0.0 5.88 MB

Tools for manipulating 3D meshes within the Menpo project.

Home Page: http://www.menpo.org

License: Other

Batchfile 0.04% Shell 0.03% Python 99.93%

menpo3d's Introduction

menpo

BSD License Python 2.7 Support Python 3.4 Support Python 3.5 Support

menpo3d - Tools for manipulating meshes

A library inside the Menpo Project that makes manipulating 3D mesh data a simple task. In particular, this project provides the ability to import, visualize and rasterize 3D meshes. Although 3D meshes can be created within the main Menpo project, this package adds the real functionality for working with 3D data.

Installation

Here in the Menpo team, we are firm believers in making installation as simple as possible. Unfortunately, we are a complex project that relies on satisfying a number of complex 3rd party library dependencies. The default Python packing environment does not make this an easy task. Therefore, we evangelise the use of the conda ecosystem, provided by Anaconda. In order to make things as simple as possible, we suggest that you use conda too! To try and persuade you, go to the Menpo website to find installation instructions for all major platforms.

Visualizing 3D objects

menpo3d adds support for viewing 3D objects through Mayavi, which is based on VTK. One of the main reasons menpo3d is a seperate project to the menpo core library is to isolate the more complex dependencies that this brings to the project. 3D visualization is not yet supported in the browser, so we rely on platform-specific viewing mechanisms like QT or WX.

In order to view 3D items you will need to first use the %matplotlib qt IPython magic command to set up QT for rendering (you do this instead of %matplotlib inline which is what is needed for using the usual Menpo Widgets). As a complete example, to view a mesh in IPython you would run something like:

import menpo3d
mesh = menpo3d.io.import_builtin_asset('james.obj')
%matplotlib qt
mesh.view()

If you are on Linux and get an error like:

ValueError: API 'QString' has already been set to version 1

Try adding the following to your .bashrc file:

export QT_API=pyqt
export ETS_TOOLKIT=qt4

Open a new terminal and re-run IPython notebook in here, this should fix the issue.

If you are running Windows and recieve this error, try:

set QT_API=pyqt
set ETS_TOOLKIT=qt4

Alternatively, try installing wxPython:

conda install wxpython

and using %matplotlib wx.

menpo3d's People

Contributors

jabooth avatar loubnar avatar mmcauliffe avatar nontas avatar patricksnape avatar steliosploumpis avatar trigeorgis avatar

Watchers

 avatar  avatar

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.