Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
dbea033c
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dbea033c
编写于
5月 21, 2019
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
JSM: Added module and TS file for GCodeLoader.
上级
5f8476d8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
388 addition
and
122 deletion
+388
-122
docs/manual/en/introduction/Import-via-modules.html
docs/manual/en/introduction/Import-via-modules.html
+1
-0
examples/js/loaders/GCodeLoader.js
examples/js/loaders/GCodeLoader.js
+127
-122
examples/jsm/loaders/GCodeLoader.d.ts
examples/jsm/loaders/GCodeLoader.d.ts
+16
-0
examples/jsm/loaders/GCodeLoader.js
examples/jsm/loaders/GCodeLoader.js
+243
-0
utils/modularize.js
utils/modularize.js
+1
-0
未找到文件。
docs/manual/en/introduction/Import-via-modules.html
浏览文件 @
dbea033c
...
...
@@ -117,6 +117,7 @@
<li>
DDSLoader
</li>
<li>
EXRLoader
</li>
<li>
FBXLoader
</li>
<li>
GCodeLoader
</li>
<li>
GLTFLoader
</li>
<li>
MTLLoader
</li>
<li>
OBJLoader
</li>
...
...
examples/js/loaders/GCodeLoader.js
浏览文件 @
dbea033c
'
use strict
'
;
/**
* THREE.GCodeLoader is used to load gcode files usually used for 3D printing or CNC applications.
*
...
...
@@ -10,6 +8,7 @@
* @author tentone
* @author joewalnes
*/
THREE
.
GCodeLoader
=
function
(
manager
)
{
this
.
manager
=
(
manager
!==
undefined
)
?
manager
:
THREE
.
DefaultLoadingManager
;
...
...
@@ -18,208 +17,214 @@ THREE.GCodeLoader = function ( manager ) {
};
THREE
.
GCodeLoader
.
prototype
.
load
=
function
(
url
,
onLoad
,
onProgress
,
onError
)
{
THREE
.
GCodeLoader
.
prototype
=
{
var
self
=
this
;
constructor
:
THREE
.
GCodeLoader
,
var
loader
=
new
THREE
.
FileLoader
(
self
.
manager
);
loader
.
setPath
(
self
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
load
:
function
(
url
,
onLoad
,
onProgress
,
onError
)
{
onLoad
(
self
.
parse
(
text
)
)
;
var
self
=
this
;
},
onProgress
,
onError
);
var
loader
=
new
THREE
.
FileLoader
(
self
.
manager
);
loader
.
setPath
(
self
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
}
;
onLoad
(
self
.
parse
(
text
)
)
;
THREE
.
GCodeLoader
.
prototype
.
setPath
=
function
(
value
)
{
},
onProgress
,
onError
);
this
.
path
=
value
;
return
this
;
},
};
setPath
:
function
(
value
)
{
THREE
.
GCodeLoader
.
prototype
.
parse
=
function
(
data
)
{
this
.
path
=
value
;
return
this
;
var
state
=
{
x
:
0
,
y
:
0
,
z
:
0
,
e
:
0
,
f
:
0
,
extruding
:
false
,
relative
:
false
};
var
layers
=
[];
},
var
currentLayer
=
undefined
;
parse
:
function
(
data
)
{
var
pathMaterial
=
new
THREE
.
LineBasicMaterial
(
{
color
:
0xFF0000
}
)
;
pathMaterial
.
name
=
'
path
'
;
var
state
=
{
x
:
0
,
y
:
0
,
z
:
0
,
e
:
0
,
f
:
0
,
extruding
:
false
,
relative
:
false
}
;
var
layers
=
[]
;
var
extrudingMaterial
=
new
THREE
.
LineBasicMaterial
(
{
color
:
0x00FF00
}
);
extrudingMaterial
.
name
=
'
extruded
'
;
var
currentLayer
=
undefined
;
function
newLayer
(
line
)
{
var
pathMaterial
=
new
THREE
.
LineBasicMaterial
(
{
color
:
0xFF0000
}
);
pathMaterial
.
name
=
'
path
'
;
currentLayer
=
{
vertex
:
[],
pathVertex
:
[],
z
:
line
.
z
}
;
layers
.
push
(
currentLayer
)
;
var
extrudingMaterial
=
new
THREE
.
LineBasicMaterial
(
{
color
:
0x00FF00
}
)
;
extrudingMaterial
.
name
=
'
extruded
'
;
}
function
newLayer
(
line
)
{
//Create lie segment between p1 and p2
function
addSegment
(
p1
,
p2
)
{
currentLayer
=
{
vertex
:
[],
pathVertex
:
[],
z
:
line
.
z
};
layers
.
push
(
currentLayer
);
if
(
currentLayer
===
undefined
)
{
}
newLayer
(
p1
);
//Create lie segment between p1 and p2
function
addSegment
(
p1
,
p2
)
{
}
if
(
currentLayer
===
undefined
)
{
if
(
line
.
extruding
)
{
newLayer
(
p1
);
currentLayer
.
vertex
.
push
(
p1
.
x
,
p1
.
y
,
p1
.
z
);
currentLayer
.
vertex
.
push
(
p2
.
x
,
p2
.
y
,
p2
.
z
);
}
}
else
{
if
(
line
.
extruding
)
{
currentLayer
.
pathVertex
.
push
(
p1
.
x
,
p1
.
y
,
p1
.
z
);
currentLayer
.
pathVertex
.
push
(
p2
.
x
,
p2
.
y
,
p2
.
z
);
currentLayer
.
vertex
.
push
(
p1
.
x
,
p1
.
y
,
p1
.
z
);
currentLayer
.
vertex
.
push
(
p2
.
x
,
p2
.
y
,
p2
.
z
);
}
else
{
currentLayer
.
pathVertex
.
push
(
p1
.
x
,
p1
.
y
,
p1
.
z
);
currentLayer
.
pathVertex
.
push
(
p2
.
x
,
p2
.
y
,
p2
.
z
);
}
}
}
function
delta
(
v1
,
v2
)
{
function
delta
(
v1
,
v2
)
{
return
state
.
relative
?
v2
:
v2
-
v1
;
return
state
.
relative
?
v2
:
v2
-
v1
;
}
}
function
absolute
(
v1
,
v2
)
{
function
absolute
(
v1
,
v2
)
{
return
state
.
relative
?
v1
+
v2
:
v2
;
return
state
.
relative
?
v1
+
v2
:
v2
;
}
}
var
lines
=
data
.
replace
(
/;.+/g
,
''
).
split
(
'
\n
'
);
var
lines
=
data
.
replace
(
/;.+/g
,
''
).
split
(
'
\n
'
);
for
(
var
i
=
0
;
i
<
lines
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
lines
.
length
;
i
++
)
{
var
tokens
=
lines
[
i
].
split
(
'
'
);
var
cmd
=
tokens
[
0
].
toUpperCase
();
var
tokens
=
lines
[
i
].
split
(
'
'
);
var
cmd
=
tokens
[
0
].
toUpperCase
();
//Argumments
var
args
=
{};
tokens
.
splice
(
1
).
forEach
(
function
(
token
)
{
//Argumments
var
args
=
{};
tokens
.
splice
(
1
).
forEach
(
function
(
token
)
{
if
(
token
[
0
]
!==
undefined
)
{
if
(
token
[
0
]
!==
undefined
)
{
var
key
=
token
[
0
].
toLowerCase
();
var
value
=
parseFloat
(
token
.
substring
(
1
)
);
args
[
key
]
=
value
;
var
key
=
token
[
0
].
toLowerCase
();
var
value
=
parseFloat
(
token
.
substring
(
1
)
);
args
[
key
]
=
value
;
}
}
}
);
}
);
//Process commands
//G0/G1 – Linear Movement
if
(
cmd
===
'
G0
'
||
cmd
===
'
G1
'
)
{
//Process commands
//G0/G1 – Linear Movement
if
(
cmd
===
'
G0
'
||
cmd
===
'
G1
'
)
{
var
line
=
{
x
:
args
.
x
!==
undefined
?
absolute
(
state
.
x
,
args
.
x
)
:
state
.
x
,
y
:
args
.
y
!==
undefined
?
absolute
(
state
.
y
,
args
.
y
)
:
state
.
y
,
z
:
args
.
z
!==
undefined
?
absolute
(
state
.
z
,
args
.
z
)
:
state
.
z
,
e
:
args
.
e
!==
undefined
?
absolute
(
state
.
e
,
args
.
e
)
:
state
.
e
,
f
:
args
.
f
!==
undefined
?
absolute
(
state
.
f
,
args
.
f
)
:
state
.
f
,
};
var
line
=
{
x
:
args
.
x
!==
undefined
?
absolute
(
state
.
x
,
args
.
x
)
:
state
.
x
,
y
:
args
.
y
!==
undefined
?
absolute
(
state
.
y
,
args
.
y
)
:
state
.
y
,
z
:
args
.
z
!==
undefined
?
absolute
(
state
.
z
,
args
.
z
)
:
state
.
z
,
e
:
args
.
e
!==
undefined
?
absolute
(
state
.
e
,
args
.
e
)
:
state
.
e
,
f
:
args
.
f
!==
undefined
?
absolute
(
state
.
f
,
args
.
f
)
:
state
.
f
,
};
//Layer change detection is or made by watching Z, it's made by watching when we extrude at a new Z position
if
(
delta
(
state
.
e
,
line
.
e
)
>
0
)
{
//Layer change detection is or made by watching Z, it's made by watching when we extrude at a new Z position
if
(
delta
(
state
.
e
,
line
.
e
)
>
0
)
{
line
.
extruding
=
delta
(
state
.
e
,
line
.
e
)
>
0
;
line
.
extruding
=
delta
(
state
.
e
,
line
.
e
)
>
0
;
if
(
currentLayer
==
undefined
||
line
.
z
!=
currentLayer
.
z
)
{
if
(
currentLayer
==
undefined
||
line
.
z
!=
currentLayer
.
z
)
{
newLayer
(
line
);
newLayer
(
line
);
}
}
}
addSegment
(
state
,
line
);
state
=
line
;
addSegment
(
state
,
line
);
state
=
line
;
}
else
if
(
cmd
===
'
G2
'
||
cmd
===
'
G3
'
)
{
}
else
if
(
cmd
===
'
G2
'
||
cmd
===
'
G3
'
)
{
//G2/G3 - Arc Movement ( G2 clock wise and G3 counter clock wise )
//console.warn( 'THREE.GCodeLoader: Arc command not supported' );
//G2/G3 - Arc Movement ( G2 clock wise and G3 counter clock wise )
//console.warn( 'THREE.GCodeLoader: Arc command not supported' );
}
else
if
(
cmd
===
'
G90
'
)
{
}
else
if
(
cmd
===
'
G90
'
)
{
//G90: Set to Absolute Positioning
state
.
relative
=
false
;
//G90: Set to Absolute Positioning
state
.
relative
=
false
;
}
else
if
(
cmd
===
'
G91
'
)
{
}
else
if
(
cmd
===
'
G91
'
)
{
//G91: Set to state.relative Positioning
state
.
relative
=
true
;
//G91: Set to state.relative Positioning
state
.
relative
=
true
;
}
else
if
(
cmd
===
'
G92
'
)
{
}
else
if
(
cmd
===
'
G92
'
)
{
//G92: Set Position
var
line
=
state
;
line
.
x
=
args
.
x
!==
undefined
?
args
.
x
:
line
.
x
;
line
.
y
=
args
.
y
!==
undefined
?
args
.
y
:
line
.
y
;
line
.
z
=
args
.
z
!==
undefined
?
args
.
z
:
line
.
z
;
line
.
e
=
args
.
e
!==
undefined
?
args
.
e
:
line
.
e
;
state
=
line
;
//G92: Set Position
var
line
=
state
;
line
.
x
=
args
.
x
!==
undefined
?
args
.
x
:
line
.
x
;
line
.
y
=
args
.
y
!==
undefined
?
args
.
y
:
line
.
y
;
line
.
z
=
args
.
z
!==
undefined
?
args
.
z
:
line
.
z
;
line
.
e
=
args
.
e
!==
undefined
?
args
.
e
:
line
.
e
;
state
=
line
;
}
else
{
}
else
{
//console.warn( 'THREE.GCodeLoader: Command not supported:' + cmd );
//console.warn( 'THREE.GCodeLoader: Command not supported:' + cmd );
}
}
}
function
addObject
(
vertex
,
extruding
)
{
function
addObject
(
vertex
,
extruding
)
{
var
geometry
=
new
THREE
.
BufferGeometry
();
geometry
.
addAttribute
(
'
position
'
,
new
THREE
.
Float32BufferAttribute
(
vertex
,
3
)
);
var
geometry
=
new
THREE
.
BufferGeometry
();
geometry
.
addAttribute
(
'
position
'
,
new
THREE
.
Float32BufferAttribute
(
vertex
,
3
)
);
var
segments
=
new
THREE
.
LineSegments
(
geometry
,
extruding
?
extrudingMaterial
:
pathMaterial
);
segments
.
name
=
'
layer
'
+
i
;
object
.
add
(
segments
);
var
segments
=
new
THREE
.
LineSegments
(
geometry
,
extruding
?
extrudingMaterial
:
pathMaterial
);
segments
.
name
=
'
layer
'
+
i
;
object
.
add
(
segments
);
}
}
var
object
=
new
THREE
.
Group
();
object
.
name
=
'
gcode
'
;
var
object
=
new
THREE
.
Group
();
object
.
name
=
'
gcode
'
;
if
(
this
.
splitLayer
)
{
if
(
this
.
splitLayer
)
{
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
)
{
var
layer
=
layers
[
i
];
addObject
(
layer
.
vertex
,
true
);
addObject
(
layer
.
pathVertex
,
false
);
var
layer
=
layers
[
i
];
addObject
(
layer
.
vertex
,
true
);
addObject
(
layer
.
pathVertex
,
false
);
}
}
}
else
{
var
vertex
=
[],
pathVertex
=
[];
}
else
{
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
)
{
var
vertex
=
[],
pathVertex
=
[
];
var
layer
=
layers
[
i
];
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
)
{
vertex
=
vertex
.
concat
(
layer
.
vertex
);
pathVertex
=
pathVertex
.
concat
(
layer
.
pathVertex
);
var
layer
=
layers
[
i
];
}
vertex
=
vertex
.
concat
(
layer
.
vertex
);
pathVertex
=
pathVertex
.
concat
(
layer
.
pathVertex
);
addObject
(
vertex
,
true
);
addObject
(
pathVertex
,
false
);
}
addObject
(
vertex
,
true
);
addObject
(
pathVertex
,
false
);
}
object
.
quaternion
.
setFromEuler
(
new
THREE
.
Euler
(
-
Math
.
PI
/
2
,
0
,
0
)
);
object
.
quaternion
.
setFromEuler
(
new
THREE
.
Euler
(
-
Math
.
PI
/
2
,
0
,
0
)
)
;
return
object
;
return
object
;
}
};
examples/jsm/loaders/GCodeLoader.d.ts
0 → 100644
浏览文件 @
dbea033c
import
{
Group
LoadingManager
}
from
'
../../../src/Three
'
;
export
class
GCodeLoader
{
constructor
(
manager
?:
LoadingManager
);
manager
:
LoadingManager
;
path
:
string
;
splitLayer
:
boolean
;
load
(
url
:
string
,
onLoad
:
(
object
:
Group
)
=>
void
,
onProgress
?:
(
event
:
ProgressEvent
)
=>
void
,
onError
?:
(
event
:
ErrorEvent
)
=>
void
)
:
void
;
setPath
(
path
:
string
)
:
this
;
parse
(
data
:
string
)
:
Group
;
}
examples/jsm/loaders/GCodeLoader.js
0 → 100644
浏览文件 @
dbea033c
/**
* GCodeLoader is used to load gcode files usually used for 3D printing or CNC applications.
*
* Gcode files are composed by commands used by machines to create objects.
*
* @class GCodeLoader
* @param {Manager} manager Loading manager.
* @author tentone
* @author joewalnes
*/
import
{
BufferGeometry
,
DefaultLoadingManager
,
Euler
,
FileLoader
,
Float32BufferAttribute
,
Group
,
LineBasicMaterial
,
LineSegments
}
from
"
../../../build/three.module.js
"
;
var
GCodeLoader
=
function
(
manager
)
{
this
.
manager
=
(
manager
!==
undefined
)
?
manager
:
DefaultLoadingManager
;
this
.
splitLayer
=
false
;
};
GCodeLoader
.
prototype
=
{
constructor
:
GCodeLoader
,
load
:
function
(
url
,
onLoad
,
onProgress
,
onError
)
{
var
self
=
this
;
var
loader
=
new
FileLoader
(
self
.
manager
);
loader
.
setPath
(
self
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
self
.
parse
(
text
)
);
},
onProgress
,
onError
);
},
setPath
:
function
(
value
)
{
this
.
path
=
value
;
return
this
;
},
parse
:
function
(
data
)
{
var
state
=
{
x
:
0
,
y
:
0
,
z
:
0
,
e
:
0
,
f
:
0
,
extruding
:
false
,
relative
:
false
};
var
layers
=
[];
var
currentLayer
=
undefined
;
var
pathMaterial
=
new
LineBasicMaterial
(
{
color
:
0xFF0000
}
);
pathMaterial
.
name
=
'
path
'
;
var
extrudingMaterial
=
new
LineBasicMaterial
(
{
color
:
0x00FF00
}
);
extrudingMaterial
.
name
=
'
extruded
'
;
function
newLayer
(
line
)
{
currentLayer
=
{
vertex
:
[],
pathVertex
:
[],
z
:
line
.
z
};
layers
.
push
(
currentLayer
);
}
//Create lie segment between p1 and p2
function
addSegment
(
p1
,
p2
)
{
if
(
currentLayer
===
undefined
)
{
newLayer
(
p1
);
}
if
(
line
.
extruding
)
{
currentLayer
.
vertex
.
push
(
p1
.
x
,
p1
.
y
,
p1
.
z
);
currentLayer
.
vertex
.
push
(
p2
.
x
,
p2
.
y
,
p2
.
z
);
}
else
{
currentLayer
.
pathVertex
.
push
(
p1
.
x
,
p1
.
y
,
p1
.
z
);
currentLayer
.
pathVertex
.
push
(
p2
.
x
,
p2
.
y
,
p2
.
z
);
}
}
function
delta
(
v1
,
v2
)
{
return
state
.
relative
?
v2
:
v2
-
v1
;
}
function
absolute
(
v1
,
v2
)
{
return
state
.
relative
?
v1
+
v2
:
v2
;
}
var
lines
=
data
.
replace
(
/;.+/g
,
''
).
split
(
'
\n
'
);
for
(
var
i
=
0
;
i
<
lines
.
length
;
i
++
)
{
var
tokens
=
lines
[
i
].
split
(
'
'
);
var
cmd
=
tokens
[
0
].
toUpperCase
();
//Argumments
var
args
=
{};
tokens
.
splice
(
1
).
forEach
(
function
(
token
)
{
if
(
token
[
0
]
!==
undefined
)
{
var
key
=
token
[
0
].
toLowerCase
();
var
value
=
parseFloat
(
token
.
substring
(
1
)
);
args
[
key
]
=
value
;
}
}
);
//Process commands
//G0/G1 – Linear Movement
if
(
cmd
===
'
G0
'
||
cmd
===
'
G1
'
)
{
var
line
=
{
x
:
args
.
x
!==
undefined
?
absolute
(
state
.
x
,
args
.
x
)
:
state
.
x
,
y
:
args
.
y
!==
undefined
?
absolute
(
state
.
y
,
args
.
y
)
:
state
.
y
,
z
:
args
.
z
!==
undefined
?
absolute
(
state
.
z
,
args
.
z
)
:
state
.
z
,
e
:
args
.
e
!==
undefined
?
absolute
(
state
.
e
,
args
.
e
)
:
state
.
e
,
f
:
args
.
f
!==
undefined
?
absolute
(
state
.
f
,
args
.
f
)
:
state
.
f
,
};
//Layer change detection is or made by watching Z, it's made by watching when we extrude at a new Z position
if
(
delta
(
state
.
e
,
line
.
e
)
>
0
)
{
line
.
extruding
=
delta
(
state
.
e
,
line
.
e
)
>
0
;
if
(
currentLayer
==
undefined
||
line
.
z
!=
currentLayer
.
z
)
{
newLayer
(
line
);
}
}
addSegment
(
state
,
line
);
state
=
line
;
}
else
if
(
cmd
===
'
G2
'
||
cmd
===
'
G3
'
)
{
//G2/G3 - Arc Movement ( G2 clock wise and G3 counter clock wise )
//console.warn( 'THREE.GCodeLoader: Arc command not supported' );
}
else
if
(
cmd
===
'
G90
'
)
{
//G90: Set to Absolute Positioning
state
.
relative
=
false
;
}
else
if
(
cmd
===
'
G91
'
)
{
//G91: Set to state.relative Positioning
state
.
relative
=
true
;
}
else
if
(
cmd
===
'
G92
'
)
{
//G92: Set Position
var
line
=
state
;
line
.
x
=
args
.
x
!==
undefined
?
args
.
x
:
line
.
x
;
line
.
y
=
args
.
y
!==
undefined
?
args
.
y
:
line
.
y
;
line
.
z
=
args
.
z
!==
undefined
?
args
.
z
:
line
.
z
;
line
.
e
=
args
.
e
!==
undefined
?
args
.
e
:
line
.
e
;
state
=
line
;
}
else
{
//console.warn( 'THREE.GCodeLoader: Command not supported:' + cmd );
}
}
function
addObject
(
vertex
,
extruding
)
{
var
geometry
=
new
BufferGeometry
();
geometry
.
addAttribute
(
'
position
'
,
new
Float32BufferAttribute
(
vertex
,
3
)
);
var
segments
=
new
LineSegments
(
geometry
,
extruding
?
extrudingMaterial
:
pathMaterial
);
segments
.
name
=
'
layer
'
+
i
;
object
.
add
(
segments
);
}
var
object
=
new
Group
();
object
.
name
=
'
gcode
'
;
if
(
this
.
splitLayer
)
{
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
)
{
var
layer
=
layers
[
i
];
addObject
(
layer
.
vertex
,
true
);
addObject
(
layer
.
pathVertex
,
false
);
}
}
else
{
var
vertex
=
[],
pathVertex
=
[];
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
)
{
var
layer
=
layers
[
i
];
vertex
=
vertex
.
concat
(
layer
.
vertex
);
pathVertex
=
pathVertex
.
concat
(
layer
.
pathVertex
);
}
addObject
(
vertex
,
true
);
addObject
(
pathVertex
,
false
);
}
object
.
quaternion
.
setFromEuler
(
new
Euler
(
-
Math
.
PI
/
2
,
0
,
0
)
);
return
object
;
}
};
export
{
GCodeLoader
};
utils/modularize.js
浏览文件 @
dbea033c
...
...
@@ -38,6 +38,7 @@ var files = [
{
path
:
'
loaders/DDSLoader.js
'
,
dependencies
:
[],
ignoreList
:
[]
},
{
path
:
'
loaders/EXRLoader.js
'
,
dependencies
:
[],
ignoreList
:
[]
},
{
path
:
'
loaders/FBXLoader.js
'
,
dependencies
:
[
{
name
:
'
TGALoader
'
,
path
:
'
loaders/TGALoader.js
'
},
{
name
:
'
NURBSCurve
'
,
path
:
'
curves/NURBSCurve.js
'
}
],
ignoreList
:
[]
},
{
path
:
'
loaders/GCodeLoader.js
'
,
dependencies
:
[],
ignoreList
:
[]
},
{
path
:
'
loaders/GLTFLoader.js
'
,
dependencies
:
[],
ignoreList
:
[
'
NoSide
'
,
'
Matrix2
'
,
'
DDSLoader
'
]
},
{
path
:
'
loaders/MTLLoader.js
'
,
dependencies
:
[],
ignoreList
:
[
'
BackSide
'
,
'
DoubleSide
'
,
'
ClampToEdgeWrapping
'
,
'
MirroredRepeatWrapping
'
]
},
{
path
:
'
loaders/OBJLoader.js
'
,
dependencies
:
[],
ignoreList
:
[]
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录