Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapting Vessel.js to ES6 class #165

Merged
merged 32 commits into from
Nov 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
26c87cc
Merge pull request #12 from shiplab/dev
ferrari212 Sep 4, 2021
cfc1d2c
Start of ES6 class transition
ferrari212 Sep 4, 2021
5d3e42a
Merge branch 'master' of https://github.com/ferrari212/vesseljs
ferrari212 Sep 4, 2021
8f19a80
Prepare folder structure
icarofonseca Sep 4, 2021
51e8651
Add module testing webpage
icarofonseca Sep 5, 2021
50040f7
Update BaseObject.js
icarofonseca Sep 5, 2021
4a0ee70
Update module_test.html
icarofonseca Sep 5, 2021
9ecbf97
Adding Ship class
ferrari212 Sep 20, 2021
4f5a40b
fetching the incoming corrections
ferrari212 Sep 20, 2021
40b183a
Derived object jsm class
ferrari212 Oct 2, 2021
5da30a6
Inserting the base object in ES6
ferrari212 Nov 2, 2021
4580861
Inserting the Hull and Structure models
ferrari212 Nov 6, 2021
79dcbfd
Insertion of the ShipState.js class
ferrari212 Nov 14, 2021
b886f8b
Finishing the es6 foundation classes
ferrari212 Nov 28, 2021
c78cd8f
Adding the mathematical functions to the ES6 format
ferrari212 Dec 24, 2021
a5ddb13
Changing 3D ES6 and example background
ferrari212 Jan 8, 2022
2e9dea6
Adding the visualization in the two versions
ferrari212 Jan 17, 2022
47b3a24
Creating the jsm WaveMotion.js
ferrari212 Jan 29, 2022
2385d21
Inseting the Ship3D Modular
ferrari212 Feb 20, 2022
835fa0d
Improving the checker method
ferrari212 Feb 26, 2022
14541f9
Compatibilizing the calculateAttributeAtDraft function
ferrari212 Mar 6, 2022
cd72bd5
Inputing WaveMotion and Wave Creator
ferrari212 Mar 20, 2022
8f2eb90
Set the memoizing function property
ferrari212 May 15, 2022
0f1cec5
Inserting HullResistance ES6 function
ferrari212 Jun 19, 2022
5f1b0d3
Inserting PropellerInteraction ES6 function
ferrari212 Jul 23, 2022
1808cec
Positioning class function
ferrari212 Aug 2, 2022
8f27a1f
Deleting comments in new ship State
ferrari212 Sep 4, 2022
e9662f9
unifying all the modules
ferrari212 Sep 11, 2022
901b67c
Deleting debugger stamp
ferrari212 Sep 11, 2022
5f540c3
Applying double quote Mr. Doob style
ferrari212 Oct 9, 2022
ded1646
Applying new ES6 library to the Ship3D with visualization example
ferrari212 Oct 9, 2022
e855519
Merge branch 'dev' into master
icarofonseca Nov 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,945 changes: 3,945 additions & 0 deletions build/modular_vessel.js

Large diffs are not rendered by default.

6,387 changes: 3,620 additions & 2,767 deletions build/vessel.js

Large diffs are not rendered by default.

1,252 changes: 1,252 additions & 0 deletions examples/3D_engine/OrbitControls.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions examples/3D_engine/STLLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,11 @@ THREE.STLLoader.prototype = {
var strArray = [];
for ( var i = 0; i < buf.byteLength; i ++ ) {

strArray.push(String.fromCharCode( array_buffer[ i ] )); // implicitly assumes little-endian
strArray.push( String.fromCharCode( array_buffer[ i ] ) ); // implicitly assumes little-endian

}
return strArray.join('');

return strArray.join( '' );

} else {

Expand All @@ -271,6 +272,7 @@ THREE.STLLoader.prototype = {
array_buffer[ i ] = buf.charCodeAt( i ) & 0xff; // implicitly assumes little-endian

}

return array_buffer.buffer || array_buffer;

} else {
Expand Down
Loading