Coder Social home page Coder Social logo

generalmesh's Introduction

GeneralMesh

GeneralMesh is a simple class to work with meshes (static, so far)

Dependencies:

  • libigl (reading files and some computations)
  • glm

How to use (VisualStudio):

  • Add the project directory (or parent of it) to the include directories (Configuration Properties -> C/C++ -> General -> Additional Include Directories)
  • Add the GeneralMesh.cpp file to the project through Adding and existing file
  • Or [Dirty trick] add #include <GeneralMesh/GeneralMesh.cpp> to one (!!!!) of your own files.

Functionality

  • loads the files in .obj or .ply
  • performs heuristic normalization
    • puts the mesh in the world center
    • scales it to the meters units (simple heuristic, may not work for large objects or on arbitrary scales)
    • but allows to access both normalized and original unnormalized vertices
  • provides access to geometry in different formats
    • Eigen, for compatibility with libigl
    • glm, for compatibility with OpenGL
  • is able to load the list of the designated vertices with names (optional), see example of the file in the GeneralMeash example project (key_vertices_example.txt)

Limitations:

  • Works only with geometry (no materials/rig info supported)

Further development:

You can extend the class with the fuctionality you need * For backward compatibility, do not change existing interfaces * Kindly ask to follow the existing code style and to keep the new finctions small and readible.

generalmesh's People

Contributors

maria-korosteleva avatar

Stargazers

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