Skip to content

Commit

Permalink
* add STEPtoBREP command
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Jun 15, 2013
1 parent e9f8b5d commit 87d9380
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/STEPtoBREP.cmd
@@ -0,0 +1 @@
node STEPtoBREP.js %1 %2 %3 %4 %5 %6
26 changes: 26 additions & 0 deletions bin/STEPtoBREP.js
@@ -0,0 +1,26 @@

var occ = require('../lib/occ')

var pace = require("pace")(1000)

filename = process.argv[2];

occ.readSTEP(filename,function (err,solids) {
pace.op(100000)
if (!err) {
console.log( " \n\ndone y----> ", solids.length , " solids read");

// write to BREP
occ.writeBREP(filename+".brep",solids,function done() { });
} else {
message = solids
console.log("\n\n ERROR =" , message);
}

}, function progress(percent,incr) {
pace.op(percent*100*10)
// console.log("tick ", incr,bar1.step)
// bar1.tick(incr);
});

console.log(process.argv[0]);

0 comments on commit 87d9380

Please sign in to comment.