Git Product home page Git Product logo

mesh-lookups's Introduction

A quick vertex calculator

Given a 60px by 60px square divided into 36 10px-by-10px squares, then further divided by diagonal lines from top left to bottom right such that each of the 36 squares consists of a top-right triangle, then a bottom-left triangle, and labeled such that each row of triangles has one of the letters A through F and each subsequent triangle from left to right has a number 1 through 12 (that is, the first triangle is "A1" and the next, "A2", is above and to the right of it, completing the top-left 10px-by-10px square), this program:

  1. computes the vertices, by face, of every triangle in the mesh
  2. looks up a face specified by the 3 points that define it

To build for OS X or linux

  1. Install mono
  2. Run make
  3. Run make run to run the examples, or run something like the following:
mono matrix.exe # Prints vertices
mono matrix.exe 10 10 20 10 20 20 # Looks up a face by the vertices specified
# Format above is x1 y1 x2 y2 x3 y3

To build for Windows

  1. Open MeshLookups.csproj in Visual Studio
  2. Click "Start"
  3. To update command-line arguments, double-click the project Properties node in Solution Explorer, then edit "Command Line Arguments" on the "Debug" tab

mesh-lookups's People

Watchers

Brian Parks avatar James Cloos avatar

mesh-lookups's Issues

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.