You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module returns a function that takes an STL file and returns a JavaScript object containing information about the file.
20
8
21
-
##You Can't Use This Until You Download More Stuff
9
+
#you can't use this until you download more stuff
22
10
23
11
To use this module, you will need [admesh](https://sites.google.com/a/varlog.com/www/admesh-htm). This module just parses admesh's output, it does not include admesh. (Well, technically, it does, in the test folder, but it only will work for windows.)
24
12
25
13
You will also need an STL file to run this on. Two files are included in the 'test' folder.
26
14
27
-
##Install
15
+
#install
28
16
29
17
Install with [NPM](http://nodejs.org)
30
18
31
19
npm install admesh-parser
32
20
33
-
##Include
21
+
#api
34
22
35
23
```js
36
24
var AdmeshParser =require('admesh-parser')
@@ -40,9 +28,9 @@ var admeshParser = new AdmeshParser('C:\\Users\\Me\\White space\\admesh.exe') //
40
28
var admeshParser =newAdmeshParser('"C:\\Users\\Me\\White space\\admesh.exe"') //This should work even with the space. (Note the double quotes.)
41
29
```
42
30
43
-
##admeshParser(options, cb)
31
+
#`admeshParser(options, cb)`
44
32
45
-
###options
33
+
###`options`
46
34
Must be an `Array` or a `String`.
47
35
48
36
If it is a `string`, it must be the input file directory.
@@ -69,7 +57,7 @@ or
69
57
var options ="C:\\Users\\Me\\Documents\\gear.stl"
70
58
```
71
59
72
-
###cb(err, result)
60
+
###`cb(err, result)`
73
61
74
62
-`err` is either `null`, or an `Error` object.
75
63
-`result` is an object if there is not an error. It should look like the following:
@@ -94,7 +82,7 @@ var options = "C:\\Users\\Me\\Documents\\gear.stl"
0 commit comments