Giter Club home page Giter Club logo

loopsubdivision's Introduction

LoopSubdivision

NOTE: This implementation is not completely correct.

Getting Started

You can also download release.

  • Please make sure you have at lease one compilers installed on your computer and set related environment variables correctly.

  • Install xmake.

  • Run command xmake under the project root folder(i.e. the folder of xmake.lua)

    • xmake will automatically install necessary dependencies and build the project
    • Since most dependencies are maintained on GitHub, you may encounter network issues during this step. I believe that you can solve them by yourself.
  • You will find the binary under folder bin.

Usage

Use command lsdemo <obj file path> to load a model(in Wavefront OBJ format).

Press x (case insensitive) to perform Loop Subdivision on the model.

Note

  • I provide several models(generated by blender) for test, you can find them under folder bin/model (or src/model).

  • As the number of faces / edges / vertices grows exponentially, it often takes long time to calculate.

  • So don't press too fast & too many times!

Sample

teapot teapot-iteration-1 teapot-iteration-2

loopsubdivision's People

Contributors

zxprism avatar

Watchers

 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.