Giter Site home page Giter Site logo

stl-viewer's Introduction

StL-Viewer

Description

Introduction

This is a student project. I wanted like to learn graphics API like OpenGL. My supervisor tasked me with making a viewer for StL Files.

Side note

It is being developed on Windows 10 using MinGW 8.1.0, with goal of being OS and compiler independent. However it was not yet tested on any machine with different OS nor compiled using different compiler.

StL files

According to StL format specification every surface of a 3d object is broken down into a number of triangles. Each triangle is described by 4 3-element vectors. 1st one is the normal vector of this figure, the rest are positions of the vertices. Files come in 2 forms, binary and ASCII. More on that can be found here.

Compilation

This is project was made using CMake, therefore it is essential to install it. What is CMake? From their project website:

CMake is an open-source, cross-platform family of tools designed to build, test and package software.

First clone this repository to a folder using git then run command

cmake folder

Where folder is path to root folder of project. CMake will then generate all files needed to build StL-Viewer on your system. In case of Linux it will be Makefiles and so on and so forth.

Requirements

  • CMake 3.13 or newer
  • C++ compiler supporting C++17
  • Graphics card supporting OpenGL 3.3

Dependencies:

All of listed below are used as gitsubmodules in the libs directory. Because by default git doesn't download submodules you will need to use

git submodule update --init --recursive

If it's your first time checkout a repo. With that said dependencies are as follows:

stl-viewer's People

Contributors

1stdimension avatar

Stargazers

 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.