基于Web3D的产品协同设计系统的设计与实现
2018-09-17邵秀丽于奇奇杨静雅任志娟
邵秀丽 于奇奇 杨静雅 任志娟
摘 要: 为了简化阀门设计过程、整合异地不同用户的想法到阀门产品的创新设计中,提出构建基于Web3D的阀门协同设计系统。系统运用nodeJs+socket.io即时通信框架进行客户端与服务器端即时通信;采用封装了Web GL的Web 3D交互技术Three.js,实现了在Web 3D场景中阀门模型的交互设计,以实现异地用户客户端的设计成果的同步。并解决了多用户自由操作引起的冲突问题,使设计过程能顺利进行。
关键词: 协同设计; Web 3D设计; 冲突处理
中图分类号:TP311 文献标志码:A 文章编号:1006-8228(2018)07-41-04
Abstract: In order to simplify the valve design process and integrate the ideals of different users in different locations into the innovative design of valve products, this paper proposes to construct a valve collaborative design system based on Web3D. The system uses the instant communication framework nodeJs+socket.io to perform instant communication between the client and the server. Using the Web 3D interaction technology Three.js that encapsulates the Web GL, the interaction design of the valve model in the web 3D scene is realized, and the synchronization of client design results of remote users is realized too. For the smooth progress of the design process, the conflict problem caused by multi-user free operation is solved.
Key words: collaborative design; Web3D; conflict resolution
0 引言
传统的阀门设计过程其主要参与者是企业内的员工,整个设计过程相对封闭,一方面不能够很好的结合用户及其他设计人员的观点[1-3],另一方面一定程度制约着阀门的质量,影响了企业的生产力。本文给出基于互联网的3D场景的阀门交互设计解决方案,在该方案下对场景交互设计、零件库的加载、场景中零件模型的添加与编辑、3D场景操作集的实现细节进行了具体的介绍。另外,对设计过程中涉及的恢复性问题如:历史记录的保存与恢复、“后来者”同步问题的解决、上下步操作的回滚给出了解决方案并进行了实现。通过该系统达到简化阀门设计过程、集成不同角色的用户参与到设计过程的目标。
1 系统概述
本系统采用B/S结构,实现了3D场景中的零件拼装设计[4-6]。处于异地的用户将维护的零件模型简图加载到3D方案下的设计窗口进行拼装选择;用户可以对导入3D场景中的零件模型进行零件大小、位置、旋转角度的编辑,提供了清空场景、删除选中物体、上下步操作的回滚等基本操作。……
