Skip to content
凡拓FT-E数字孪生平台
Main Navigation
主页
API
示例中心
练习场
案例中心
实景三维
Appearance
Menu
Return to top
复制
还原
运行
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
›
⌄
⌄
⌄
⌄
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
/
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
/
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"ie=edge"
/
>
<
title
>
条纹光墙
</
title
>
<
style
>
*
{
margin
:
0
;
padding
:
0
;
}
html
,
body
{
width
:
100
%
;
height
:
100
%
;
}
#
three-container
{
width
:
100
%
;
height
:
100
%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
}
</
style
>
</
head
>
<
body
>
<
div
id
=
"three-container"
>
</
div
>
<
script
src
=
"../../public/lib/ftthree.js"
>
</
script
>
<
script
>
let
container
=
document
.getElementById(
'three-container'
)
;
let viewer = new ftthree.Viewer(container, {
center: [0, 0],
height: 1000
});
window.viewer = viewer;
viewer.cameraControl.camera.position.set(-1356, 1642, 3000);
viewer.cameraControl.update();
let path = [];
path.push(new ftthree.Vector3(700, 0, 700));
path.push(new ftthree.Vector3(700, 0, -700));
path.push(new ftthree.Vector3(-700, 0, -700));
path.push(new ftthree.Vector3(-700, 0, 700));
path.push(new ftthree.Vector3(700, 0, 700));
let wall = new ftthree.RippleWall({
name: 'rippleWall',
color: '#9999FF',
path: path,
hiz: 0.15,
num: 5,
height: 500,
speed: 1.5
});
viewer.addEntityLayer([wall], 'effect');
</script>
</body>
</html>
隐藏代码
RippleWall (上升围墙)