Giter Club home page Giter Club logo

maillage's Introduction

Maillage

Maillage Project Polytech Paris-UPMC

Year 2016-2017

Author: Lancelot Satge, Suzanne Sleiman, Geng Ren

Professor: Chiara Nardoni

This project proposes two kinds of deformation: Most Least Square (MLS) and Barycentric

Usage

Before using a deformation, be sure to have Python 2 AND Python 3 (versions that we used : Python 2.7.6 and Python 3.4.3) and to install Pygame for Python2 and Numpy for Python3.

/!\ If you use a mac, change the line 149 of the file Execution_Barycentre.py and the line 161 of the file Execution_MLS.py by os.system("./medit ../mesh/mesh_2D/"+nom_fichier+".mesh &")

MLS deformation

To use the MLS deformation, go in the directory code/Programmes/, launch the file MLS_python2.py with python2, then write the noun of the file .mesh which you want to modify, which is in the directory code/mesh/mesh_2D without the extension (example: man for man.mesh). A pygame's window will open, then select points of the drawing with the left clic after that select the new position of the point with the right clic. Repeat this process as much as you want. When you have done, press enter, and follow the instructions on the terminal.

If you choose medit, a medit window will apear, to see your deformation, you need to right clic, then go to Data and clic on Toggle displacement

Barycentric deformation

To use the Barycentric deformation, go in the directory code/Programmes/, launch the file Barycentrique_python2.py with python2, then write the noun of the file .mesh which you want to modify, which is in the directory code/mesh/mesh_2D without the extension (example: man for man.mesh). A pygame's window will open, then select points of the drawing with the left clic after that select the new position of the point with the right clic. Repeat this process as much as you want. When you have done, press enter, and follow the instructions on the terminal.

If you choose medit, a medit window will apear, to see your deformation, you need to right clic, then go to Data and clic on Toggle displacement

maillage's People

Contributors

lancesatge avatar rengeng avatar sleimansuzanne avatar

Watchers

James Cloos avatar

Forkers

panda142

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.