CN111415418A - Method for optimizing pipeline three-dimensional model based on Unity3d - Google Patents

Method for optimizing pipeline three-dimensional model based on Unity3d Download PDF

Info

Publication number
CN111415418A
CN111415418A CN202010337011.4A CN202010337011A CN111415418A CN 111415418 A CN111415418 A CN 111415418A CN 202010337011 A CN202010337011 A CN 202010337011A CN 111415418 A CN111415418 A CN 111415418A
Authority
CN
China
Prior art keywords
pipeline
model
models
unity3d
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010337011.4A
Other languages
Chinese (zh)
Inventor
柴有国
万泰明
丁邦林
韩聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inbasis Technology Co ltd
Original Assignee
Beijing Inbasis Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inbasis Technology Co ltd filed Critical Beijing Inbasis Technology Co ltd
Priority to CN202010337011.4A priority Critical patent/CN111415418A/en
Publication of CN111415418A publication Critical patent/CN111415418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Geometry (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Water Supply & Treatment (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Public Health (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method based onUnity3dThe method for optimizing the three-dimensional model of the pipeline is characterized by comprising the following steps of: extracting the parameters of each pipeline, and compiling the extracted parameter information inExcelIn a file of tables; preparing an original three-dimensional model; drawing a pipeline model; adding a collision body to the pipeline model; and combining the pipeline models. By the method, plug-in units are not required to be installed, and the use is simple; the development and use efficiency of the channel type three-dimensional products is greatly improved; the time cost is reduced; the memory volume of the model is reduced; the number of models is reduced; the consumption is reduced; the problem that the interior of the industry is generally puzzled is solved.

Description

Based onUnity3dMethod for optimizing three-dimensional model of pipeline
Technical Field
The invention relates to the technical field of three-dimensional models, in particular to a three-dimensional model based on a three-dimensional modelUnity3dA method for optimizing a three-dimensional model of a pipeline class.
Background
At present, in useUnity3dIn the process of developing three-dimensional products by software, the number of three-dimensional models to be displayedWhen the size of the product is too large, the product is large in size, the use is blocked, the development process is slow, and time is wasted. This is very common in the development of three-dimensional products, and it is common practice to optimize three-dimensional models by specialized three-dimensional rendering software such as:3DMAXMAYAand the quality of the three-dimensional model is reduced, the quantity of the three-dimensional model is reduced, or a plurality of three-dimensional models jointly use a three-dimensional material picture and other modes, the quantity of the models is reduced to a certain extent, the consumption is reduced, but the optimization often has certain limitation, the efficiency is low, the time cost is high, a plug-in is required to be installed, the use is complicated, and the problem is solved by no effective mode at present.
Disclosure of Invention
In order to solve the above technical problems in the related art, the present invention provides a method based onUnity3dThe method for optimizing the three-dimensional model of the pipeline can overcome the defects in the prior art.
In order to achieve the technical purpose, the technical scheme of the invention is realized as follows:
based onUnity3dA method of optimizing a three-dimensional model of a pipeline class, the method comprising the steps of:
s1: extracting the parameters of each pipeline, and compiling the extracted parameter information inExcelIn the file of the table, the parameters are position coordinates, name, length, broadband and direction, and the number of the files is set according to the data volume;
s2: preparing an original three-dimensional model, whereinUnity3dAdding two models into software, and drawing all pipelines by continuously copying on the basis of the two models;
s3: drawing a pipeline model;
the step S3 includes the steps of:
s31: use ofUnity3dWith ready software readingExcelA file;
s32: copying a cylindrical model;
s32: modifying parameters of the copied cylinder model according to the information of each line in the file, wherein the modified information comprises a pipeline position, a pipeline name, a pipeline length, a pipeline width and a pipeline direction;
s33: copying a sphere model at the turning or ending position of the pipeline, and setting the sphere model as a turning weld crater of the pipeline;
s34: repeating the steps S31-S33 to draw the pipelines of the whole system;
s4: adding a collision body to the pipeline model;
the step S4 includes the steps of:
s41: copying the whole set of three-dimensional model of the pipeline, and adding a collision body to the cylindrical model;
s42: deleting model information of the cylinder model, wherein the cylinder model after deletion is only a collision volume file;
s5: merging models of pipes, in which the grouping is dependentExcelDocument, adoptUnity3dThe method of merging models of (1) merges the pipeline models of each group into a large three-dimensional model.
Further, in the step S1,Exceleach row of the table represents information for one pipe.
Further, in step S1, the two models added are: cylinder models and sphere models.
Further, in step S41, the copied whole set of three-dimensional pipeline model is a copy.
The invention has the beneficial effects that: by the method, plug-in units are not required to be installed, and the use is simple; the development and use efficiency of the channel type three-dimensional products is greatly improved; the time cost is reduced; the memory volume of the model is reduced; the number of models is reduced; the consumption is reduced; the problem that the interior of the industry is generally puzzled is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a computer-based system according to an embodiment of the present inventionUnity3dAnd a flow diagram of a method for optimizing the three-dimensional model of the pipeline class.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
As shown in fig. 1, a base according to an embodiment of the present inventionUnity3dThe method for optimizing the three-dimensional model of the pipeline class comprises the following steps:
s1: extracting the parameters of each pipeline, and compiling the extracted parameter information inExcelIn the file of the table, the parameters are position coordinates, name, length, broadband and direction, and the number of the files is set according to the data volume;
s2: preparing an original three-dimensional model, whereinUnity3dAdding two models into software, and drawing all pipelines by continuously copying on the basis of the two models;
s3: drawing a pipeline model;
step S3 includes the following steps:
s31: use ofUnity3dWith ready software readingExcelA file;
s32: copying a cylindrical model;
s32: modifying parameters of the copied cylinder model according to the information of each line in the file, wherein the modified information comprises a pipeline position, a pipeline name, a pipeline length, a pipeline width and a pipeline direction;
s33: copying a sphere model at the turning or ending position of the pipeline, and setting the sphere model as a turning weld crater of the pipeline;
s34: repeating the steps S31-S33 to draw the pipelines of the whole system;
s4: adding a collision body to the pipeline model;
step S4 includes the following steps:
s41: copying the whole set of three-dimensional model of the pipeline, and adding a collision body to the cylindrical model;
s42: deleting model information of the cylinder model, wherein the cylinder model after deletion is only a collision volume file;
s5: merging models of pipes, in which the grouping is dependentExcelDocument, adoptUnity3dThe method of merging models of (1) merges the pipeline models of each group into a large three-dimensional model.
In one embodiment of the present invention, in step S1,Exceleach row of the table represents information for one pipe.
In an embodiment of the present invention, in the step S1, the two added models are: cylinder models and sphere models.
In an embodiment of the present invention, in the step S41, the copied whole set of pipeline three-dimensional model is one copy.
In order to facilitate understanding of the above-described aspects of the present invention, the above-described aspects of the present invention will be described in detail below.
The optimization of the three-dimensional model is almost a work which is required in the development process of each three-dimensional product, and the three-dimensional model is optimized by reducing the number of the three-dimensional models, reducing the quality of the models, controlling the display mode and the like, so that the final effect of the three-dimensional product is smooth, and the experience is improved. However, the optimization tends to have certain limitations, and the numbers are taken as examples: for example, the model scale can be optimized from 100 to 80, and is almost impossible if one wants to optimize from 100 to 10 or even 1. The invention solves the problem, and uses the characteristics of the three-dimensional model of the pipeline classUnity3dThe replication function of (2) redrawing the whole set of three-dimensional model of the pipeline, combiningUnity3dThe model combination method can fundamentally reduce the volume of the three-dimensional model and enable the three-dimensional model to regenerate, thereby greatly reducing the volume of the product, improving the quality and the fluency of the product and realizing the optimization from 100 to 10 or even 1.
In a particular embodiment of the invention, in particular use, a base according to the inventionUnity3dThe method for optimizing the three-dimensional model of the pipeline class comprises the following processes:
the method is characterized in that the pipeline models are mostly cylinders, different places of the pipeline models are extracted, and the same places are finished by a copying method, so that the three-dimensional models are drawn, the whole set of three-dimensional models is optimized, and the following description is given by taking the three-dimensional software product for optimizing a set of thermal power plant display boiler pipelines as an example:
first, the boiler system of a thermal power plant is composed of about 3.5 ten thousand pipelines.
In the first step, the parameters of each pipeline are extracted. The parameters include: position coordinate, name, length, width and direction, and writing them inExcelIn the table, each row of the table is information of one pipe. Because the data volume is large, for the convenience of management, the data volume can be divided into a plurality of files, and about 5000 pieces of information of the pipeline are one file, so about 18 pieces of information are neededExcelFiles to store all the pipe information.
The purpose of this step is to extract the different characteristics of each pipe.
Second, the original three-dimensional model is prepared. In thatUnity3dThe software adds a cylinder model and a sphere model, and all the pipelines of the whole set of boiler system are drawn by continuous copying based on the two files.
And thirdly, drawing a pipeline model. Use ofUnity3dReady for reading of softwareExcelAnd the file is used for copying the cylindrical model, modifying the parameters of the copied cylindrical model according to the information of each line in the file, and modifying the information of the pipeline position, the pipeline name, the pipeline length, the pipeline width and the pipeline direction one by one. At the turn or end of the pipe, the sphere model is copied out as the weld crater of the turn of the pipe. Repeating the steps, and drawing the pipelines of the whole system.
In this step, the use of three-dimensional modeling software to draw all pipeline models is avoided, and the three-dimensional models are drawn in a copying mode instead, so that the time can be saved, and the memory volume of the models can be reduced.
And fourthly, adding a collision body to the pipeline model. A collision body is arranged atUnity3dAre called in softwareColliderIt is used for monitoring mouse click. The whole set of pipeline three-dimensional model is copied, a collision body is added to the cylinder model, and then model information of the cylinder model is deleted, so that the cylinder model is not a three-dimensional model file any more, but a collision body file only.
The purpose of this step is to make each pipeline model support the click function of the mouse, and better satisfy the use of software products.
And fifthly, combining the pipeline models. According to the foregoingExcelGrouping of files, useUnity3dA method of merging models is provided that merges the pipeline models of each group into a large three-dimensional model. That is, as mentioned above, about 5000 tubes are combined into one large three-dimensional model, and 3.5 million tubes of the entire boiler system are composed of about 18 large three-dimensional models.
The purpose of the step is to utilize the characteristics of computer batch processing, pack and compress a plurality of small files into a plurality of compressed packets in a manner similar to the compressed packets, so that the loading and the use are faster.
Through the operation, the 3.5 ten thousand boiler pipelines can be displayed and completed only by more than ten large three-dimensional models, the memory volume and the rendering speed are greatly improved compared with the prior art, and finally, the actual measurement is carried out, and the memory volume of the 3.5 ten thousand pipeline dimensional models is only the memory volume25MBAnd the opening can be completed within 10 seconds and the process is operated.
Through a series of operations, the work of extracting, redrawing, adding collision bodies and combining the information of all three-position pipeline models is completed, the volume of model files can be greatly reduced, the rendering and loading speed is increased, the information of a certain pipeline can be checked by clicking with a mouse, and the normal use is met. Meanwhile, the development time cost is greatly saved, the working efficiency is improved, and multiple purposes are achieved.
In one embodiment of the invention, the thermal power plant boiler wear-resistant and explosion-proof system comprises: with the development and popularization of three-dimensional visualization technology, the application of the three-dimensional visualization technology in the shop industry is more and more. The anti-abrasion and anti-explosion system of the boiler of the thermal power plant is a three-dimensional system commonly used in the thermal power plant, and aims to solve the problems of too many pipelines, difficult searching and difficult maintenance of a boiler room of the thermal power plant, the whole boiler system is modeled in a three-dimensional mode and displayed integrally, so that the anti-abrasion and anti-explosion system can be used by workers greatly, the working efficiency is improved, and the personal safety of the workers is also guaranteed. By applying the invention, tens of thousands of boiler pipelines can be displayed in a three-dimensional product, can be checked at will and clicked at will, the power consumption of rendering and loading is low, a commonly configured computer can be started, the requirement on the network speed is not high, the checking at any time and any place is realized, the dilemma that the watching can be realized only by using a high-distribution computer and a light-speed broadband network in the prior art is broken, and the invention makes positive contribution to the safe operation and maintenance production of a thermal power plant.
In summary, according to the technical scheme of the invention, the method does not need to install a plug-in unit and is simple to use; the development and use efficiency of the channel type three-dimensional products is greatly improved; the time cost is reduced; the memory volume of the model is reduced; the number of models is reduced; the consumption is reduced; the problem that the interior of the industry is generally puzzled is solved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (4)

1. Based onUnity3dThe method for optimizing the three-dimensional model of the pipeline is characterized by comprising the following steps of:
s1: extracting the parameters of each pipeline, and compiling the extracted parameter information inExcelIn the file of the table, the parameters are position coordinates, name, length, broadband and direction, and the number of the files is set according to the data volume;
s2: preparing an original three-dimensional model, whereinUnity3dAdding two models into software, and drawing all pipelines by continuously copying on the basis of the two models;
s3: drawing a pipeline model;
the step S3 includes the steps of:
s31: use ofUnity3dWith ready software readingExcelA file;
s32: copying a cylindrical model;
s32: modifying parameters of the copied cylinder model according to the information of each line in the file, wherein the modified information comprises a pipeline position, a pipeline name, a pipeline length, a pipeline width and a pipeline direction;
s33: copying a sphere model at the turning or ending position of the pipeline, and setting the sphere model as a turning weld crater of the pipeline;
s34: repeating the steps S31-S33 to draw the pipelines of the whole system;
s4: adding a collision body to the pipeline model;
the step S4 includes the steps of:
s41: copying the whole set of three-dimensional model of the pipeline, and adding a collision body to the cylindrical model;
s42: deleting model information of the cylinder model, wherein the cylinder model after deletion is only a collision volume file;
s5: merging models of pipes, in which the grouping is dependentExcelDocument, adoptUnity3dThe method of merging models of (1) merges the pipeline models of each group into a large three-dimensional model.
2. A method according to claim 1Unity3dMethod for optimizing a three-dimensional model of a pipeline class, characterized in that, in step S1,Exceleach row of the table represents information for one pipe.
3. A method according to claim 1Unity3dMethod for optimizing a three-dimensional model of a pipeline, characterized in that said method comprisesIn step S1, the two models added are: cylinder models and sphere models.
4. A method according to claim 1Unity3dThe method for optimizing the three-dimensional models of the pipelines is characterized in that in the step S41, the copied whole set of three-dimensional models of the pipelines is one copy.
CN202010337011.4A 2020-04-26 2020-04-26 Method for optimizing pipeline three-dimensional model based on Unity3d Pending CN111415418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337011.4A CN111415418A (en) 2020-04-26 2020-04-26 Method for optimizing pipeline three-dimensional model based on Unity3d

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337011.4A CN111415418A (en) 2020-04-26 2020-04-26 Method for optimizing pipeline three-dimensional model based on Unity3d

Publications (1)

Publication Number Publication Date
CN111415418A true CN111415418A (en) 2020-07-14

Family

ID=71492083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337011.4A Pending CN111415418A (en) 2020-04-26 2020-04-26 Method for optimizing pipeline three-dimensional model based on Unity3d

Country Status (1)

Country Link
CN (1) CN111415418A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150080128A1 (en) * 2013-09-18 2015-03-19 Zynga Inc. Content management system
CN105320806A (en) * 2015-08-21 2016-02-10 中国核电工程有限公司 Method for summarizing nuclear power technology piping materials by combing PML with Excel-VBA to perform data processing
CN106095840A (en) * 2016-06-04 2016-11-09 山东天元信息技术股份有限公司 Pipe network and facility information three-dimensional display method in a kind of multi-purpose station three-dimensional station
CN110210120A (en) * 2019-05-30 2019-09-06 北京工业大学 Railway engineering automation modeling method based on parametrization
CN110750590A (en) * 2019-09-11 2020-02-04 南京太亚科技股份有限公司 Automatic generation method of pipeline three-dimensional visualization platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150080128A1 (en) * 2013-09-18 2015-03-19 Zynga Inc. Content management system
CN105320806A (en) * 2015-08-21 2016-02-10 中国核电工程有限公司 Method for summarizing nuclear power technology piping materials by combing PML with Excel-VBA to perform data processing
CN106095840A (en) * 2016-06-04 2016-11-09 山东天元信息技术股份有限公司 Pipe network and facility information three-dimensional display method in a kind of multi-purpose station three-dimensional station
CN110210120A (en) * 2019-05-30 2019-09-06 北京工业大学 Railway engineering automation modeling method based on parametrization
CN110750590A (en) * 2019-09-11 2020-02-04 南京太亚科技股份有限公司 Automatic generation method of pipeline three-dimensional visualization platform

Similar Documents

Publication Publication Date Title
CN110245368A (en) A kind of the structuring processing and storage method of BIM data
US9881388B2 (en) Compression and decompression of a 3D modeled object
EP3451206B1 (en) Method, apparatus, and device for generating a visual model layout of a space
CN102087657B (en) IO (Input/output) to point method and IO (Input/output) to point for nuclear power plant simulation platform
CN109885967B (en) Deepening method for design of anti-seismic support and hanger
CN110096270A (en) A kind of design drawing method for splitting and system based on .NET plug-in unit
CN112989482B (en) BIM model data generation method and device and building method and device
CN102339327A (en) Device for displaying three-dimensional lightweight data format
CN110990933A (en) Modeling method for shield tunnel
CN112100296B (en) GIS system convenient to carry out GIS vector data editing
CN110781550B (en) Method for converting and optimizing bridge structure calculation information into BIM information flow
CN111415418A (en) Method for optimizing pipeline three-dimensional model based on Unity3d
Liu et al. Generating sparse self-supporting wireframe models for 3D printing using mesh simplification
Li et al. Virtual monitoring system for a robotic manufacturing station in intelligent manufacturing based on Unity 3D and ROS
JP2021125262A (en) Predictive modeling
CN110598346B (en) Interaction method of construction management system and GIM (graphic information management) model
Patpatiya et al. Approaches for concising AutoCAD files
CN110826185A (en) Method for establishing bearing part library based on CAD secondary development
CN102270219B (en) Construction method for Mars detector component-level virtual model machine library
CN108763767A (en) Big data quantity IGS industry pattern POLYGON conversion methods towards VR engines
CN103984724A (en) Visualization interaction method based on space optimization tree layout
Sehmi et al. Automated post-processing for sheet metal component manufacturing
CN112307725A (en) Method for adding table information on two-dimensional drawing interface
CN114117586B (en) Method for establishing association relation between support and hanger and rooting object in S3D software
Sun et al. Laplacian deformation algorithm based on mesh model simplification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination