Skip to content
Etienne edited this page Jan 5, 2017 · 6 revisions

Here the steps to build on Windows:

Requirements

Clone the repository and build OCE

Start a CMD dos box with VisualStudio 64 bits environment set. details

cd c:\
git clone https://github.com/tpaviot/oce.git
cd oce
git checkout OCE-0.17.2
cd ..
# git submodule update --init --recursive
mkdir oce_build
cd    oce_build
c:\tools\cmake\bin\cmake  -D OCE_INSTALL_PREFIX:STRING='C:/OCE-0.17.2' -D OCE_DRAW:BOOLEAN=FALSE -D OCE_OCAF:BOOLEAN=FALSE -D  OCE_VISUALISATION:BOOLEAN=FALSE -D OCE_DISABLE_X11:BOOLEAN=TRUE -D OCE_USE_PCH:BOOLEAN=TRUE  ../oce
msbuild oce.sln /m
msbuild oce.sln /p:Configuration=Release /m
    
set VisualStudioVersion=14.0
msbuild INSTALL.vcxproj /p:Configuration=Release /m

Compile node-occ

In the VisualStudio 64bits CMD box, execute the following script:

mkdir c:\projects
cd c:\projects
git clone https://github.com/erossignon/node-occ
cd node-occ  
SET CL=/Ic:\OCE-0.17.2\include\oce
SET LINK=/LIBPATH:c:\OCE-0.17.2\Win32\lib
PATH c:\OCE-0.17.2\Win32\bin;%PATH%
npm install 

Execute the sample

  • cd c:\projects\node-occ\sample
  • npm install
  • node app.js

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