Skip to content

Commit

Permalink
Add package.json and some test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Jan 27, 2022
1 parent 73c4e00 commit 272f8d7
Show file tree
Hide file tree
Showing 69 changed files with 56,096 additions and 2 deletions.
File renamed without changes.
21 changes: 21 additions & 0 deletions dist/occt-import-js.js

Large diffs are not rendered by default.

Binary file added dist/occt-import-js.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion occt-import-js/src/occt-import-js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int ReadStepFile (const emscripten::val& content)
{
const std::vector<uint8_t>& contentArr = emscripten::vecFromJSArray<std::uint8_t> (content);
EmscriptenOutput output;
return ReadStepFile (contentArr, output);
return (int) ReadStepFile (contentArr, output);
}

EMSCRIPTEN_BINDINGS (assimpjs)
Expand Down
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "occt-import-js",
"version": "0.0.1",
"description": "Javascript interface for the occt library.",
"license": "LGPL-2.1",
"main": "./dist/occt-import-js.js",
"repository": "github:kovacsv/occt-import-js",
"keywords": [
"3d",
"model",
"converter"
],
"devDependencies": {
"mocha": "^8.3.2"
},
"scripts": {
"test": "mocha test/test.js"
},
"dependencies": {}
}
5 changes: 5 additions & 0 deletions test/node_step.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let fs = require ('fs');
const occtImportJS = require ('../dist/occt-import-js.js')();

occtImportJS.then ((occt) => {
});
7 changes: 7 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var fs = require ('fs');
var path = require ('path');
var assert = require ('assert');

describe ('Importer', function () {

});
8,362 changes: 8,362 additions & 0 deletions test/testfiles/cax-if/as1-oc-214.stp

Large diffs are not rendered by default.

8,362 changes: 8,362 additions & 0 deletions test/testfiles/cax-if/as1-oc-214/as1-oc-214.stp

Large diffs are not rendered by default.

2,842 changes: 2,842 additions & 0 deletions test/testfiles/cax-if/as1-tu-203.stp

Large diffs are not rendered by default.

Loading

0 comments on commit 272f8d7

Please sign in to comment.