Skip to content

Commit

Permalink
Clean-up instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Sep 1, 2021
1 parent c407cfc commit f447807
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The library runs in the browser and as a node.js module as well.

You will need two files: `assimpjs.js` and `assimpjs.wasm`. The wasm file is loaded runtime by the js file.

Given that browsers don't access the file system, you should provide all the files needed for import. Some 3D formats are coming in multiple files, so you should list all of them to import the model properly. The main file to import should always be the first one in the list.
Given that browsers don't access the file system, you should provide all the files needed for import. Some 3D formats are coming in multiple files, so you should list all of them to import the model properly.

You should provide two things for every file:
- **name:** The name of the file. It's used if files are referring to each other.
Expand Down
2 changes: 1 addition & 1 deletion examples/browser_download_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
let resultDiv = document.getElementById ('result_json');

assimpjs ().then (function (ajs) {
// fetch the files to import (make sure that the main file is the first)
// fetch the files to import
let files = [
'testfiles/cube_with_materials.obj',
'testfiles/cube_with_materials.mtl'
Expand Down
2 changes: 1 addition & 1 deletion examples/node_local_load_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ assimpjs.then ((ajs) => {
// create new file list object
let fileList = new ajs.FileList ();

// add model files (make sure that the main file is the first)
// add model files
fileList.AddFile (
'cube_with_materials.obj',
fs.readFileSync ('testfiles/cube_with_materials.obj')
Expand Down

0 comments on commit f447807

Please sign in to comment.