Factory three-dimensional model building method

文档序号:169117 发布日期:2021-10-29 浏览:20次 中文

阅读说明:本技术 一种工厂三维模型搭建方法 (Factory three-dimensional model building method ) 是由 欧永陆 徐宁 于 2021-08-31 设计创作,主要内容包括:本发明提供一种工厂三维模型搭建方法,通过获取待搭建工厂的平面布局图;识别确定平面布局图中的目标构件,对各目标构件按照其图形外轮廓进行勾线形成闭合样条线;以闭合样条线作为X轴Z轴平面,设置Y轴高度,生成立体对象模型;并对各立体对象模型写入属性信息;导出为FBX格式文件,导入到Unity得到待搭建工厂的三维模型;本方案可广泛应用于工业互联网各个工厂,对企业规模、产品领域无任何限制,通用性高,成本低,可广泛推广使用。(The invention provides a method for building a three-dimensional model of a factory, which comprises the steps of obtaining a plane layout of the factory to be built; identifying and determining target components in the plane layout drawing, and carrying out line drawing on each target component according to the figure outer contour of the target component to form a closed sample line; setting the height of a Y axis by taking the closed sample line as an X axis Z axis plane to generate a three-dimensional object model; writing attribute information into each three-dimensional object model; exporting a file in an FBX format, and importing the file to Unity to obtain a three-dimensional model of a factory to be built; the scheme can be widely applied to various factories of the industrial internet, has no any limitation on the scale of enterprises and the product field, has high universality and low cost, and can be widely popularized and used.)

1. A factory three-dimensional model building method is characterized by comprising the following steps:

acquiring a plane layout of a factory to be built;

identifying a target component in the floor plan, the target component comprising production equipment;

performing line hooking on each target component according to the graphic outer contour of the target component to form a closed sample line;

setting the height of the Y axis by taking the closed sample line as an X axis Z axis plane to generate a three-dimensional object model; writing attribute information into each three-dimensional object model;

and exporting the file in the FBX format, and importing the file to Unity to obtain the three-dimensional model of the plant to be built.

2. A plant three-dimensional model building method according to claim 1, wherein the target member further includes a production sub facility.

3. A method of building a three-dimensional model of a plant according to claim 2, wherein the production sub-facilities comprise walls and aisles.

4. The plant three-dimensional model building method according to claim 1, wherein the production equipment is production equipment.

5. A plant three-dimensional model building method according to claim 1, wherein said obtaining a plan layout of a plant to be built comprises:

obtaining a CAD layout of the factory to be built, and exporting the CAD layout into a PDF format file through AutoCAD;

and opening the PDF format file by using an Adobe Illustrator, exporting the PDF format file into a JPG picture format file, and using the JPG picture format file as a plane layout of the plant to be built.

6. The plant three-dimensional model building method according to claim 1, wherein the writing of attribute information to each solid object model includes:

and endowing each three-dimensional object model with a unique ID code, and associating attribute information of each ID code, wherein the attribute information comprises an object name, a model and a state.

7. The plant three-dimensional model building method according to claim 6, further comprising: when the three-dimensional object model has N states, establishing N glass materials with different colors for the three-dimensional object model, wherein each glass material corresponds to one state; the N states include a normal state, a fault state, and a deactivated state.

8. The method for building a three-dimensional factory model according to claim 7, wherein the building of N glass materials of different colors for the three-dimensional object model, the glass material of each color corresponding to one state comprises:

the three-dimensional object model is in a normal state, and the color of the corresponding glass material is set to be green;

the three-dimensional object model is in a fault state, and the color of the three-dimensional object model is set to be red corresponding to the color of the glass material;

the three-dimensional object model is in a non-use state, and the color of the corresponding glass material is set to be yellow.

9. The plant three-dimensional model building method according to any one of claims 1 to 8, wherein the outlining each of the target members according to a graphic outer contour thereof comprises:

aiming at the fact that a connecting line between two adjacent vertexes of the outline of the graph and a plane rectangular coordinate system are in a non-parallel or non-90-degree relation, the connecting line is used as a hypotenuse of a right triangle, the two adjacent vertexes are connected through the other two rectangular sides of the right triangle, and the right triangle is located outside the outline of the target component graph;

aiming at the condition that the outline of the graph is a curve, lines which are parallel/vertical to the plane rectangular coordinate system and tangent to the outline curve are used for hooking;

so that the finally formed closed spline is a regular right-angled polygon.

10. A plant three-dimensional model building method according to any one of claims 1 to 8, characterized in that the method further comprises: after the generation of the solid object model, the solid object model is stored in a model library.

Technical Field

The invention relates to the technical field of industrial internet, in particular to a factory three-dimensional model building method.

Background

The establishment of a digital factory is a necessary way for the traditional manufacturing industry to move to high-end manufacturing and is also a way for the development of industrial internet. Establishing a digital factory comprises two aspects of establishing a factory three-dimensional model and data management, wherein the establishment of the factory three-dimensional model is to move an entity factory from an off-line state to an on-line state, and the data management is to bind production data of the factory on the established factory three-dimensional model so as to realize the on-line management of the factory.

For an enterprise, there are several major requirements for deploying an on-line digital factory:

firstly, rapid deployment is carried out; secondly, an off-line factory is restored as much as possible, and user experience is improved; thirdly, the cost is low. The three-dimensional scene restoration of a factory needs to establish a three-dimensional model according to equipment and a production line of an enterprise, and because each factory is different and the layout of the factory is complex, the modeling of each factory belongs to customization and the three requirements of the enterprise are difficult to meet at the same time. The patent number is CN112669454A, the patent name is Chinese invention patent of a method, a system, a device and a storage medium for constructing a three-dimensional scene of a digital factory, and discloses that a model base is established in advance, then a model in the model base is called by the model, so that the manual three-dimensional monomer modeling process can be avoided, and the factory construction efficiency can be effectively improved. However, as an industrial internet platform builder, the scheme greatly increases the workload and development cost of the platform, because the platform needs to build a model library containing various equipment models, and the model library needs to be maintained and updated continuously by a specially-assigned person and is limited by the amount of the models in the model library, the universality of platform building is greatly reduced.

Therefore, the technical personnel in the field strive to develop a plant three-dimensional model building method and a plant visual monitoring method which can meet the requirements of customers, reduce the development cost and have strong universality.

Disclosure of Invention

The invention provides a factory three-dimensional model building method, which mainly solves the technical problems that: the existing factory modeling scheme is poor in universality, cannot be widely popularized and used, needs to be customized according to customer requirements, and is high in development cost.

In order to solve the technical problem, the invention provides a factory three-dimensional model building method, which comprises the following steps:

acquiring a plane layout of a factory to be built;

identifying a target component in the floor plan, the target component comprising production equipment;

performing line hooking on each target component according to the graphic outer contour of the target component to form a closed sample line;

setting the height of the Y axis by taking the closed sample line as an X axis Z axis plane to generate a three-dimensional object model; writing attribute information into each three-dimensional object model;

and exporting the file in the FBX format, and importing the file to Unity to obtain the three-dimensional model of the plant to be built.

Optionally, the target component further comprises a production sub-facility.

Optionally, the production sub-facility comprises walls and aisles.

Optionally, the production equipment is production equipment.

Optionally, the obtaining of the plan layout of the plant to be built includes:

obtaining a CAD layout of the factory to be built, and exporting the CAD layout into a PDF format file through AutoCAD;

and opening the PDF format file by using an Adobe Illustrator, exporting the PDF format file into a JPG picture format file, and using the JPG picture format file as a plane layout of the plant to be built.

Optionally, the writing of the attribute information to each solid object model includes:

and endowing each three-dimensional object model with a unique ID code, and associating attribute information of each ID code, wherein the attribute information comprises an object name, a model and a state.

Optionally, the method further includes: when the three-dimensional object model has N states, establishing N glass materials with different colors for the three-dimensional object model, wherein each glass material corresponds to one state; the N states include a normal state, a fault state, and a deactivated state.

Optionally, the establishing N kinds of glass materials with different colors for the three-dimensional object model, where the glass material with each color corresponds to one state includes:

the three-dimensional object model is in a normal state, and the color of the corresponding glass material is set to be green;

the three-dimensional object model is in a fault state, and the color of the three-dimensional object model is set to be red corresponding to the color of the glass material;

the three-dimensional object model is in a non-use state, and the color of the corresponding glass material is set to be yellow.

Optionally, the outlining each target member according to the graphic outer contour includes:

aiming at the fact that a connecting line between two adjacent vertexes of the outline of the graph and a plane rectangular coordinate system are in a non-parallel or non-90-degree relation, the connecting line is used as a hypotenuse of a right triangle, the two adjacent vertexes are connected through the other two rectangular sides of the right triangle, and the right triangle is located outside the outline of the target component graph;

aiming at the condition that the outline of the graph is a curve, lines which are parallel/vertical to the plane rectangular coordinate system and tangent to the outline curve are used for hooking;

so that the finally formed closed spline is a regular right-angled polygon.

Optionally, the method further includes: after the generation of the solid object model, the solid object model is stored in a model library.

The invention has the beneficial effects that:

according to the method for building the three-dimensional model of the factory, a plane layout of the factory to be built is obtained; identifying and determining target components in the plane layout drawing, and carrying out line drawing on each target component according to the figure outer contour of the target component to form a closed sample line; setting the height of a Y axis by taking the closed sample line as an X axis Z axis plane to generate a three-dimensional object model; writing attribute information into each three-dimensional object model; exporting a file in an FBX format, and importing the file to Unity to obtain a three-dimensional model of a factory to be built; the scheme can be widely applied to various factories of the industrial internet, has no any limitation on the scale of enterprises and the product field, has high universality and can be widely popularized and used; for a factory to be built, the rapid building of a three-dimensional model of the factory can be realized only by providing one CAD (computer-aided design) plane layout of the factory, more cooperation is not required to be provided by a platform building party, the workload is reduced, the rapid deployment of the factory on a line of an enterprise can be realized, and the use experience of the enterprise is improved; the normal production operation of the factory to be built is not influenced; aiming at a platform building service party, the three-dimensional model building process can be directly completed on line without going to a factory site, so that the service cost is greatly reduced, and the requirement of enterprises on rapid deployment is met; meanwhile, the three-dimensional model of the factory established by the scheme is based on the actual graph of the target component, the outline of the three-dimensional model is subjected to line hooking and extrusion deformation to obtain the three-dimensional model, so that the established three-dimensional model is more fit with the graph of the target component of the factory, the layout of the factory can be highly restored, and the use experience of a user can be improved.

Drawings

FIG. 1 is a schematic flow chart of a plant three-dimensional model building method according to a first embodiment of the invention;

fig. 2 is a schematic drawing of a contour line of an apparatus according to a first embodiment of the present invention;

fig. 3 is a schematic drawing of a curved contour line of a device according to a first embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following detailed description and accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The first embodiment is as follows:

in order to solve the problems that the current factory modeling scheme has poor universality, cannot be widely popularized and used, needs to be customized according to the requirements of customers, has high development cost, has large difference between the model construction effect and the actual layout position, the graph and the like, the embodiment provides a factory three-dimensional model construction method, does not need to construct a model base, does not need to update and maintain the model base, can realize quick three-dimensional model construction only by providing a plane layout of a factory by the customers, can be generally completed in one day, can perform on-line construction processing, does not need to send a specially-assigned person to the factory site of the customers for visiting, the factory information measurement and the like reduce the communication cost between the client and the service provider, and also avoid the problems that the client needs to invest a large amount of cooperation work in the process of building the three-dimensional model, the workload of the client is increased seriously, the normal production operation of the client is influenced and the like; the platform is built with the service provider, the modeling process is directly completed on line, and after the model is built, the model is directly sent to the client for use, so that the method is efficient, quick, low in cost and high in reduction degree, and can be widely popularized and used.

Referring to fig. 1, the method mainly includes the following steps:

s101, acquiring a plane layout of a factory to be built;

obtaining a CAD layout of a factory to be built, and exporting the CAD layout into a PDF format file through AutoCAD; and opening the PDF format file by using the Adobe Illustrator, exporting the file into a JPG picture format file, and taking the file as a plane layout of a plant to be built. Opening Cinema4D, loading a JPG plane layout diagram, switching to a top view according to F2, selecting a 'background' menu according to shift + V, adjusting the transparency to 92%, and improving the viewing effect.

S102, identifying and determining a target component in the plane layout, wherein the target component comprises the following objects: equipment, walls and aisles;

in order to facilitate the outline delineation of each target component, the display is adjusted to a line mode.

S103, carrying out line hooking on each target component according to the graphic outer contour of the target component to form a closed sample line;

and opening the 'starting capture-vertex capture' function, and drawing lines along the equipment outline, the wall and the factory passageway in the drawing by using a sample line drawing tool to finally form a closed sample line.

Aiming at the fact that a connecting line between two adjacent vertexes of the outline of the graph and a plane rectangular coordinate system form a non-parallel or non-90-degree relation, the connecting line is used as a hypotenuse of a right triangle, the two adjacent vertexes are connected through the other two rectangular sides of the right triangle, and the right triangle is located outside the outline of the graph of the target component; see the device outline as shown in fig. 2.

Aiming at the condition that the outline of the graph is a curve, lines which are parallel/vertical to the plane rectangular coordinate system and tangent to the outline curve are used for hooking; see the device outline as shown in fig. 3. So that the resulting closed spline is a regular right-angled polygon. Therefore, the complexity of the three-dimensional model can be reduced, and the visual viewing effect is not influenced.

S104, setting the height of a Y axis by taking the closed sample line as an X axis Z axis plane to generate a three-dimensional object model;

switching to a perspective view according to F1 in Cinema4D, selecting a drawn closed sample line, pressing an Alt key to click an extrusion button, setting the height to be extruded on a Y axis, and setting the heights of an X axis and a Z axis to be 0, so that a three-dimensional model is formed by extrusion, wherein the built model has the characteristics of high appearance identification and high modeling speed; and in the same way, other equipment, walls and passageways are all extruded into the model.

In order to facilitate visual distinguishing and displaying of three types of components including equipment, walls and passageways, three glass balls with different transparencies can be newly built, the high transparencies are endowed to the passageways, the middle transparencies are endowed to the walls, and the low transparencies are endowed to the equipment.

S105, writing attribute information into each three-dimensional object model;

and endowing each three-dimensional object model with a unique ID code, and associating attribute information of each ID code, wherein the attribute information comprises an object name, a model and a state. Wherein, the equipment models are numbered according to S-0001, S-0002 and S-000N rules (N is a variable), and names are put into a model library. In future projects, similar equipment can be directly dragged to use, and the modeling efficiency is improved. Hardware data of the factory equipment can be uploaded by the management background and stored in the database in an excel mode for association.

In order to make the three-dimensional modeling effect more fit with the actual layout of a factory and better restore the actual layout scene of the factory, in the embodiment, the three-dimensional object models of all production equipment are set to be made of glass materials, and the three-dimensional object models of walls and passageways are set to be made of diffuse reflection materials, so that the difference of the production equipment and other components in the display effect is highlighted; the wall body is brick concrete usually, and the passageway is the resin rubber material usually, consequently will correspond the three-dimensional model and set up to the diffuse reflection material, accords with actual visual effect more.

Aiming at production equipment, a plurality of different using states are usually provided, in order to directly realize the visual presentation of the equipment state, when a three-dimensional object model has N states, N glass materials with different colors are established for the three-dimensional object model, and the glass material with each color only corresponds to one state; wherein the N states include a normal state, a fault state, and a deactivated state.

For example, aiming at the three states of normal, fault and halt of the equipment model S-0001 in the daily production process, the equipment model can be established to be made of red glass, green glass and yellow glass; when the equipment is in a fault state, calling a red glass material; the equipment is in a shutdown state, and a yellow glass material is called; the equipment is in a normal state, and green glass materials are called; this information is stored in a database in preparation for subsequent model use procedure calls. If only the glass material of a colour, when the equipment state changes, can't correspond and distinguish through the colour demonstration, be not convenient for enterprise manager directly perceived, conveniently master current mill equipment production condition. When the equipment is in a fault state, the equipment model turns red, and a manager is prompted to pay attention to the equipment model; when the equipment normally operates, the equipment model is displayed to be green; when the equipment is in standby, the equipment displays yellow; clicking equipment in a factory, comparing ID numbers in a database, finding out equipment data and production data bound by the ID, and presenting the information in a bullet layer form; clicking the equipment again, enabling the elastic layer to disappear, and enabling the factory to recover the default visual angle; the equipment model can also bind production data and quality data through the ID number, and the life cycle of the equipment can be comprehensively monitored. The manager can see the red equipment model through a graphical interface, click and check equipment information, quickly inform workers of going to process, change the equipment fault into green again when the equipment fault is solved, and operate normally; the conditions of factory equipment are mastered and processed in real time and rapidly, and the production is ensured to be carried out safely and stably.

Production data generated in the equipment upgrading production process can also be correlated, including but not limited to start-up time, shut-down time, operators, machined parts, current part machining quantity, and current part abnormal quantity; to aid in statistical analysis of data and maintenance of equipment.

And S106, exporting the file in the FBX format, and importing the file to Unity to obtain a three-dimensional model of the plant to be built.

According to the method for building the three-dimensional model of the factory, provided by the invention, the building surface of the model is simplified, one surface of the object is selected, the shape of the surface is drawn, and a three-dimensional shape is abstracted according to the shape of the surface, so that the workload of equipment modeling is greatly reduced under the condition that the reduction degree of the factory is met as much as possible; because one surface is used as equipment difference, the equipment difference can be realized, the experience effect of a user cannot be particularly influenced, the efficiency of building the three-dimensional model is improved, the effect of building the model quickly is realized, and the deployment time and the deployment cost of an enterprise can be reduced. In addition, different materials are matched with different colors, and production data of a factory are combined, so that an enterprise can manage the factory data more visually, quickly and conveniently (for example, when factory equipment is abnormal in the actual production process, the system can quickly position and solve abnormal equipment and improve the production efficiency of the equipment), the method makes up the defect that the visual experience of user management is reduced after the equipment is abstracted and simplified, and finally, the requirements of the visual management experience of the user, low cost and efficient deployment are completely met; meanwhile, as a platform building party of a digital factory, under the condition that the building universality of the three-dimensional model is not influenced, the rapid deployment of the platform party is realized, and the cost of the platform for deploying the three-dimensional model is reduced.

It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented in program code executable by a computing device, such that they may be stored on a computer storage medium (ROM/RAM, magnetic disks, optical disks) and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.

The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种地基上格子梁节点集中荷载分配方法及结构设计方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类