Skip to content

Commit c9d8c75

Browse files
author
Nikos M
committed
0.3.3
* modifier/core updates * three.js r66 supported * example updates
1 parent fcb5436 commit c9d8c75

64 files changed

Lines changed: 1176 additions & 726 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build-three.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
3+
REM ###################################################
4+
REM #
5+
REM # The buildtools repository is at:
6+
REM # https://github.com/foo123/scripts/buildtools
7+
REM #
8+
REM ###################################################
9+
10+
REM to use the python build tool do:
11+
python ..\scripts\buildtools\build.py --deps ".\dependencies-three"
12+
13+
REM to use the php build tool do:
14+
REM php -f ..\scripts\buildtools\build.php -- --deps=".\dependencies-three"
15+
16+
REM to use the node build tool do:
17+
REM node ..\scripts\buildtools\build.js --deps ".\dependencies-three"

build/MOD3.min.js

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/mod3.bundle.js

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/mod3.packaged.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

build/mod3.three.min.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dependencies

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ HEADER =
8383

8484
REPLACE =[{}]
8585

86-
"@@VERSION@@" = "0.3.2"
86+
"@@VERSION@@" = "0.3.3"
8787

8888
"@@MODULE_NAME@@" = "MOD3"
8989

@@ -122,4 +122,4 @@ MINIFY ={}
122122
@ # end block
123123

124124
OUT =
125-
./build/mod3.packaged.js
125+
./build/mod3.min.js

dependencies-bundle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ BUNDLE =[]
1919

2020
# bundle-in external dependencies
2121
./build/classy.js
22-
./build/mod3.packaged.js
22+
./build/mod3.min.js
2323

2424
@ # end block
2525

2626

2727
OUT =
28-
./build/mod3.min.js
28+
./build/mod3.bundle.js

dependencies-three

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
###################################################
2+
#
3+
# The buildtools repository is at:
4+
# https://github.com/foo123/scripts/buildtools
5+
#
6+
###################################################
7+
8+
# A '#' represents a comment and everything after it is skipped
9+
# Lines starting with # or blank lines are skipped
10+
# One line for each setting, no multiple settings on same line, line indentation does not matter
11+
# Blocks with =[] define LISTS (arrays)
12+
# Blocks with ={} define MAPS (hashmaps)
13+
# Blocks with =[{}] define ORDEREDMAPS (array of hashmaps)
14+
# Blocks with = or nothing define VALUES (single value)
15+
# A key and/or value can be quoted (with ", ' or `, quotes) or unquoted
16+
# Lines with one or multiple '@'s define the end of that many previous blocks
17+
18+
SRC =[]
19+
20+
!tpl:umd-header-no-worker.tpl.js # include a umd-header template
21+
22+
# core
23+
./src/MOD3.js
24+
./src/util/ModConstant.js
25+
./src/util/XMath.js
26+
./src/util/Range.js
27+
./src/util/Phase.js
28+
./src/core/Point.js
29+
./src/core/Matrix.js
30+
./src/core/Vector3.js
31+
./src/core/Matrix4.js
32+
./src/core/VertexProxy.js
33+
./src/core/FaceProxy.js
34+
./src/core/MeshProxy.js
35+
./src/core/Modifier.js
36+
./src/plugins/Library3d.js
37+
./src/plugins/PluginFactory.js
38+
./src/ModifierStack.js
39+
40+
# modifiers
41+
./src/modifiers/Pivot.js
42+
./src/modifiers/Bend.js
43+
./src/modifiers/Bloat.js
44+
./src/modifiers/Twist.js
45+
./src/modifiers/Skew.js
46+
./src/modifiers/Taper.js
47+
./src/modifiers/Wheel.js
48+
./src/modifiers/Break.js
49+
./src/modifiers/Noise.js
50+
51+
# Support for Three.js
52+
./src/plugins/Three/Vertex.js
53+
./src/plugins/Three/Mesh.js
54+
./src/plugins/Three/Library.js
55+
56+
!tpl:umd-footer.tpl.js # include a umd-footer template
57+
58+
@ # end block
59+
60+
# extract header from this file
61+
HEADER =
62+
./src/MOD3.js
63+
64+
REPLACE =[{}]
65+
66+
"@@VERSION@@" = "0.3.3"
67+
68+
"@@MODULE_NAME@@" = "MOD3"
69+
70+
"@@MODULE_DEPENDENCIES@@" = "[ ['Classy', './classy'] ]"
71+
72+
"@@MODULE_ARGUMENTS@@" = "Classy"
73+
74+
@ # end block
75+
76+
# Minify the Package (map of lists)
77+
MINIFY ={}
78+
79+
# Options for Node UglifyJS Compiler (if used, default), (mangle and compress)
80+
"UGLIFY" =[]
81+
-m -c
82+
@ # end block
83+
84+
# Options for Java Closure Compiler (if used)
85+
"CLOSURE" =[]
86+
--language_in=ECMASCRIPT5_STRICT
87+
@ # end block
88+
89+
# Options for Java YUI Compressor Compiler (if used)
90+
"YUI" =[]
91+
--preserve-semi
92+
@ # end block
93+
94+
@ # end block
95+
96+
OUT =
97+
./build/mod3.three.min.js

examples/Copperlicht/Bend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
44
<script type="text/javascript" src="./copperlicht.js"></script>
5-
<script type="text/javascript" src="../../build/MOD3.min.js"></script>
5+
<script type="text/javascript" src="../../build/mod3.bundle.js"></script>
66
<script type="text/javascript" src="../js/Tween.js"></script>
77
<title>Bend demo and copperlicht.js</title>
88
</head>

examples/Copperlicht/Bloat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
44
<script type="text/javascript" src="./copperlicht.js"></script>
5-
<script type="text/javascript" src="../../build/MOD3.min.js"></script>
5+
<script type="text/javascript" src="../../build/mod3.bundle.js"></script>
66
<script type="text/javascript" src="../js/Tween.js"></script>
77
<title>Bloat demo and copperlicht.js</title>
88
</head>

0 commit comments

Comments
 (0)