three实现三维流水线数字孪生可视化代码
代码语言:html
所属分类:三维
代码描述:three实现三维流水线数字孪生可视化代码
代码标签: three 三维 流水线 数字 孪生 可视化 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>工业流水线数字孪生系统</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #111;
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
color: white;
}
/* --- UI 仪表盘布局 --- */
#dashboard {
position: absolute;
top: 20px;
left: 20px;
width: 320px;
background: rgba(20, 30, 40, 0.85);
border: 1px solid #00d2ff;
border-radius: 8px;
padding: 20px;
backdrop-filter: blur(10px);
box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
pointer-events: none; /* 让鼠标穿透,不影响3D操作 */
user-select: none;
}
h2 {
margin: 0 0 15px 0;
font-size: 20px;
color: #00d2ff;
text-transform: uppercase;
letter-spacing: 2px;
border-bottom: 1px solid rgba(0, 210, 255, 0.3);
padding-bottom: 10px;
}
.metric-row {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
font-size: 14px;
}
.metric-value {
font-weight: bold;
font-family: monospace;
font-size: 16px;
}
.status-indicator {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #333;
margin-right: 8px;
box-shadow: 0 0 5px currentColor;
}
.status-running { background-color: #00ff00; color: #00ff00; }
.status-idle { background-color: #ffcc00; color: #ffcc00; }
.status-error { background-color: #ff0000; color: #ff0000; }
/* --- 控制面板 --- */
#controls {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(255, 255, 255, 0.1);
padding: 10px 20px;
border-radius: 30px;
display: flex;
gap: 15px;
backdrop-filter: blur(5px);
pointer-events: auto;
}
button {
background: #00d2ff;
border: none;
padding: 8px 20px;
border-radius: 20px;
color: #000;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
}
button:hover { background: #fff; box-shadow: 0 0 15px #00d2ff; }
button.stop-btn { background: #ff4444; color: white; }
/* 标签 */
.label-3d {
position: absolute;
color: white;
background: rgba(0,0,0,0.6);
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
pointer-events: none;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<!-- 数字孪生仪表盘 -->
<div id="dashboard">
<h2>生产线实时监控</h2>
<div class="metric-row">
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0