Code Monkey home page Code Monkey logo

shapesmith's Introduction

DEPRECATED

THIS PROJECT IS DORMANT AND HAS HAD NO DEVELOPMENT SINCE MAY 2014.

Build Status

Shapesmith.next

Welcome to Shapesmith.

Shapemsith is an:

  • HTML5
  • Open Source
  • Parametric
  • 3D modelling application

And it is also:

  • Aimed at 3D printing
  • Written in pure Javascript (Node.js on the server)

Installation

Requirements

  1. Nodejs > 0.10 (and NPM)
  2. grunt-cli and nodemon
  3. A WebGL-capable browser

On a Mac, I recommend using Homebrew to install nodejs. When you have homebrew, install nodejs (npm is included):

$ brew install node

On Linux, there are different instructions for your distribution.

Install the dependencies

$ cd shapesmith.next

# If you're using Homebrew you won't need the sudo command
$ [sudo] npm install -g grunt-cli nodemon
[...]

$ npm install
[...]

Run the tests

$ grunt test
[...]
  63 tests complete (66 ms)

Done, without errors.

Run the app

$ npm start

> [email protected] app /Users/bjnortier/development/shapesmith.next
> nodemon src/api/server.js

6 Oct 23:13:36 - [nodemon] v0.7.8
6 Oct 23:13:36 - [nodemon] to restart at any time, enter `rs`
6 Oct 23:13:36 - [nodemon] watching: /Users/bjnortier/development/shapesmith.next
6 Oct 23:13:36 - [nodemon] starting `node src/api/app.js`

    .                           .  .
,-. |-. ,-. ,-. ,-. ,-. ,-,-. . |- |-.
`-. | | ,-| | | |-' `-. | | | | |  | |
`-' ' ' `-^ |-' `-' `-' ' ' ' ' `' ' '
            '

configuration:
--------------
environment:  development
port:         8000
dbtype:       sqlite
server started on :8000

Open your browser

http://localhost:8000

LICENSE

MIT

shapesmith's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shapesmith's Issues

Rotate and copy

A la Shapesmith v1, it was quite useful to copy and rotate around an axis

Setting a variable which is used by other variable gives error

Steps to reproduce:

  1. create variable a = 2
  2. create variable b = a*2
  3. create cube: w:a, h:a, d:b
  4. set a = 3

The box disappears and "Uncaught UnknownVariableError: a " is printed in console.

p.s. Back button as undo is really strange from usability POV, expectation is that it takes you to previous screen (design list), and it is just impossible to discover (had to look sources), immutability of url is kinda cool. How about just undo/redo buttons?

Undo/redo should not re-render unchanged objects

In the graph replacement algorithm this used to be the code:

  var fromHash = fromGraph.hashForId(id);
  var toHash = toGraph.hashForId(id);
    if (fromHash !== toHash) {
      listener({vertexReplaced: {from: fromGraph.get(id), to: toGraph.get(id)}})
    }
  }

but when the hashes are the same, the vertices in the view models need to be replaced so the views will react properly to 'change' events, especially when an implicit
point has been replaced during undo/redo (see bug #12 )

So now all vertices are replaced on undo/redo which leads to flashing, which is not ideal.

So either the vertices must be replaced in the display models or another mechnism must be found to remove the flashing

After installation I get only loading...

I have just installed nodeJS and all of the dependancies.

'Grunt test' returns everything positive and 'npm start' starts the server. But on my localhost:8000 all I get is Shapesmith's logo and text loading...

Am I missing something that I need to install or is this a bug ?

Thank you!

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.