Giter Site home page Giter Site logo

meshcompare's Introduction

MeshCompare

A selection of tools to visualize differences between mesh objects.

These are visualized as vertex colors, as can be seen in the image below. Here we have two cubes, where one cubes vertices have been moved.

example-image

The code has two options, one that will work statically and requires no plugin, while the other is dynamic but requires a plugin.

Applications

This tool can be useful for scenarios like machine learning deformers where you may want to visualize the differences between two meshes.

Usage

Paramaters

Control the clamp parameter to change the scaling of the coloring.

The clamp value is where you will get a fully red color, and all other colors are scaled accordingly.

Python Script

  1. Copy the meshCompare.py to your Maya scripts folder or anywhere in its PYTHONPATH

  2. Now you can run the following python

    from meshCompare import static_compare
    static_compare('pCube2', 'pCube1')
  3. Adjust the clamp parameter to affect how strong the coloring is. You can also adjust the world parameter to control whether comparisons happen in world space or object space.

Deformer

The deformer will require to be compiled. It defaults to Maya 2018 but you can specify a Maya Version by passing the MAYA_VERSION parameter to CMake.

Once compiled, pleace the plugin in your Maya plugin path and you can run a similar command

from meshCompare import dynamic_compare
dynamic_compare('pCube2', 'pCube1')

License and Others

The code is available under an MIT license.

If you have requests or ideas, please put in a pull request or file an issue.

meshcompare's People

Contributors

dgovil 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.