File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed
Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -123,19 +123,19 @@ const assimpjs = require ('../dist/assimpjs.js')();
123123assimpjs .then ((ajs ) => {
124124 // convert model
125125 let result = ajs .ConvertFile (
126- // file name
127- ' cube_with_materials.obj' ,
128- // file content as arraybuffer
129- fs .readFileSync (' testfiles/cube_with_materials.obj' ),
130- // check if file exists by name
131- function (fileName ) {
132- return fs .existsSync (' testfiles/' + fileName);
133- },
134- // get file content as arraybuffer by name
135- function (fileName ) {
136- return fs .readFileSync (' testfiles/' + fileName);
137- }
138- );
126+ // file name
127+ ' cube_with_materials.obj' ,
128+ // file content as arraybuffer
129+ fs .readFileSync (' testfiles/cube_with_materials.obj' ),
130+ // check if file exists by name
131+ function (fileName ) {
132+ return fs .existsSync (' testfiles/' + fileName);
133+ },
134+ // get file content as arraybuffer by name
135+ function (fileName ) {
136+ return fs .readFileSync (' testfiles/' + fileName);
137+ }
138+ );
139139
140140 // check if the conversion succeeded
141141 if (! result .IsSuccess () || result .FileCount () == 0 ) {
Original file line number Diff line number Diff line change @@ -4,19 +4,19 @@ const assimpjs = require ('../dist/assimpjs.js')();
44assimpjs . then ( ( ajs ) => {
55 // convert model
66 let result = ajs . ConvertFile (
7- // file name
8- 'cube_with_materials.obj' ,
9- // file content as arraybuffer
10- fs . readFileSync ( 'testfiles/cube_with_materials.obj' ) ,
11- // check if file exists by name
12- function ( fileName ) {
13- return fs . existsSync ( 'testfiles/' + fileName ) ;
14- } ,
15- // get file content as arraybuffer by name
16- function ( fileName ) {
17- return fs . readFileSync ( 'testfiles/' + fileName ) ;
18- }
19- ) ;
7+ // file name
8+ 'cube_with_materials.obj' ,
9+ // file content as arraybuffer
10+ fs . readFileSync ( 'testfiles/cube_with_materials.obj' ) ,
11+ // check if file exists by name
12+ function ( fileName ) {
13+ return fs . existsSync ( 'testfiles/' + fileName ) ;
14+ } ,
15+ // get file content as arraybuffer by name
16+ function ( fileName ) {
17+ return fs . readFileSync ( 'testfiles/' + fileName ) ;
18+ }
19+ ) ;
2020
2121 // check if the conversion succeeded
2222 if ( ! result . IsSuccess ( ) || result . FileCount ( ) == 0 ) {
You can’t perform that action at this time.
0 commit comments