Giter VIP home page Giter VIP logo

marchingsquares-1's Introduction

Square Shift

Square Shift is a 2.5D contours modelling viewer.

alt text

======================================

How to compile and run the program:

Compile:

$ make

To turn on optimisation (-O2)

$ make release

Run:

$ ./squareShift Data/honolulu_raw.txt (or other data sets)

Clean all compiled files + any profiling data file:

$ make clean

Clean, Compile and Run:

$ make clean && make release && ./squareShift Data/honolulu_raw.txt (or other data sets)

Profiling

$ make profile
$ ./squareShift Data/honolulu_raw.txt (or other data sets)

Generate textual listing

$ pprof --text ./squareShift Profiling/squareShift.prof

Generate annotated callgraph using gv

$ pprof --gv ./squareShift Profiling/squareShift.prof

Generate gif callgraph

$ pprof --gif ./squareShift Profiling/squareShift.prof > OUTPUT.gif

Demo

http://youtu.be/FYMh4WhZvuE 

Note: Performance of the video demo is affected by the recording tool QuickTime player.

Known bugs

[?] Perspective projection works on Linux Lab Machines only

Requirements

gcc compiler, compliant to c++03

Tested targets

i686-apple-darwin10-gcc-4.2.1 on Mac OS X 10.6.8
i686-apple-darwin11-llvm-gcc-4.2 on Mac OS X 10.8.5
gcc-4.4.7 (Red Hat 4.4.7-3) on Scientific Linux - Kernel Linux 2.6.32

Profiling

gperftools-2.1 (http://code.google.com/p/gperftools/)
perl 5
gv (installable via MacPorts)

Third party resources

The makefile is a modified version of the one provided by Michael Safyan: https://sites.google.com/site/michaelsafyan/software-engineering/how-to-write-a-makefile

marchingsquares-1's People

Contributors

sic2 avatar

Watchers

James Cloos avatar chongbingbao 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.