File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,19 +93,19 @@ const assimpjs = require ('./assimpjs.js')();
9393assimpjs .then ((ajs ) => {
9494 // import model
9595 let result = ajs .ImportFile (
96- // file name
97- ' cube_with_materials.obj' ,
98- // file content as arraybuffer
99- fs .readFileSync (' testfiles/cube_with_materials.obj' ),
100- // check if file exists by name
101- function (fileName ) {
102- return fs .existsSync (' testfiles/' + fileName);
103- },
104- // get file content as arraybuffer by name
105- function (fileName ) {
106- return fs .readFileSync (' testfiles/' + fileName);
107- }
108- );
96+ // file name
97+ ' cube_with_materials.obj' ,
98+ // file content as arraybuffer
99+ fs .readFileSync (' testfiles/cube_with_materials.obj' ),
100+ // check if file exists by name
101+ function (fileName ) {
102+ return fs .existsSync (' testfiles/' + fileName);
103+ },
104+ // get file content as arraybuffer by name
105+ function (fileName ) {
106+ return fs .readFileSync (' testfiles/' + fileName);
107+ }
108+ );
109109
110110 // parse the result json
111111 let resultJson = JSON .parse (result);
You can’t perform that action at this time.
0 commit comments