Skip to content
Victofel edited this page Dec 17, 2016 · 6 revisions

Here the steps to build on Ubuntu:

Requirements

  • Install NodeJS: sudo apt-get install nodejs npm
  • Install Node-gyp: sudo npm install node-gyp -g
  • Install Mocha: sudo npm install mocha -g
  • Install Cmake: sudo apt-get install cmake cmake-curses-gui g++ build-essential

Clone the repository and build OCE

  • Clone Repository: git clone --recursive https://github.com/erossignon/node-occ.git
  • Change directory to node-occ cd node-occ
  • Build OCE: sh prepare_build.sh

Now is a good time to grap a cup of coffee! :)

  • npm install
  • node-gyp configure
  • node-gyp build
  • mocha

Execute the sample

  • cd sample
  • npm install
  • node app.js

Visit http://localhost:3000 with Chrome or Firefox


Tests

Verify that node-occ is up and running by launching the tests

npm test 

Methods

  • ShapeFactory
    • Creation
    • Edition
      • Thick Solid (Shell)
      • Draft Angle
      • Fillet
      • Chamfer
      • Fuse (Union)
      • Cut (Difference)
      • Common (Intersect.)
      • Compound (?)
      • Vertex
      • Edge
      • Wire
      • Face
  • Wire
  • Transformation
    • Basic
      • Translation
      • Rotation
      • Scale
      • Mirror by Plane
      • Mirror by Axis
  • Import/Export
Clone this wiki locally