CN109683858A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN109683858A
CN109683858A CN201811431568.3A CN201811431568A CN109683858A CN 109683858 A CN109683858 A CN 109683858A CN 201811431568 A CN201811431568 A CN 201811431568A CN 109683858 A CN109683858 A CN 109683858A
Authority
CN
China
Prior art keywords
geometric object
geometric
data
module
extracted
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.)
Granted
Application number
CN201811431568.3A
Other languages
Chinese (zh)
Other versions
CN109683858B (en
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.)
Tunnel Tang Technology Co Ltd
Original Assignee
Tunnel Tang 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 Tunnel Tang Technology Co Ltd filed Critical Tunnel Tang Technology Co Ltd
Priority to CN201811431568.3A priority Critical patent/CN109683858B/en
Publication of CN109683858A publication Critical patent/CN109683858A/en
Application granted granted Critical
Publication of CN109683858B publication Critical patent/CN109683858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The application provides a kind of data processing method and device, comprising: obtains geometric object, wherein the geometric object is the component part for the object module for including in target IFC file;The geometric data of geometric object and the project data of geometric object are extracted from geometric object, wherein geometric data is the spatial coordinated information of three-dimensional space basic element required for constructing geometric object.By obtaining the geometric object in object module, and extract the geometric data in geometric object and project data, to obtain the critical data of object module, in order to utilize the geometric data and project data extracted in geometric object, new model is established in other software, geometric object is restored in new model, to restore the object module of geometric object building, across the software use of final implementation model.

Description

Data processing method and device
Technical field
This application involves technical field of data processing, in particular to a kind of data processing method and device.
Background technique
Currently, since traditional BIM (Building Information Modeling, Building Information Model) software is flat Platform, belongs to closed using the ecosphere, so the model established in the software on the software platform, audient is relatively single, several It is used just for the designer in circle, is unfavorable for across the software use of model.
Summary of the invention
In view of this, the application's is designed to provide a kind of data processing method and device, it is traditional at present to improve BIM software platform is closed using the ecosphere due to belonging to, and is unfavorable for the mould established based on the software on the software platform The problem of across software use of type.
To achieve the goals above, embodiments herein is accomplished in that
In a first aspect, embodiments herein provides a kind of data processing method, comprising: obtain geometric object, wherein The geometric object is the component part for the object module for including in target IFC file;Institute is extracted from the geometric object State the geometric data of geometric object and the project data of the geometric object, wherein the geometric data is to construct the geometry The spatial coordinated information of three-dimensional space basic element required for object.
In the embodiment of the present application, by obtaining the geometric object of the building object module in IFC file, geometry pair is extracted The mode of geometric data and project data as in, it is hereby achieved that in multiple geometric objects of object module with geometry pair As one-to-one geometric data and project data, in order to utilize the geometric data and engineering number extracted in geometric object According to, new model is established in other software, and restore geometric object in new model, thus restore geometric object building Object module finally realizes across the software use for the model established based on the software on BIM software platform.
With reference to first aspect, in the first possible implementation of the first aspect, above-mentioned from the geometric object Extract the geometric data of the geometric object and the project data of the geometric object, comprising: carry out to the geometric object Processing generates geometric object data set;The geometry number of the geometric object is extracted from the geometric object data set According to;The project data of the geometric object is extracted from the geometric object data set.
In the embodiment of the present application, by handling geometric object, extract respectively geometric object for indicating several Geometric datas of information such as what object size shaped position and for indicating material color and vein etc. of the geometric object in construction The project data of information so as to meticulously restore geometric object, and then restores object module, realizes and is based on BIM software Software on platform and across the software use of model established.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, the above-mentioned project data that the geometric object is extracted from the geometric object data set, comprising: obtain described several The Global ID of what object and filename generate globally unique ID according to the Global ID and the filename, wherein the overall situation Unique ID is corresponding for carrying out with the geometric object;The project data is extracted from the geometric object data set, and will The project data is stored in file corresponding with the globally unique ID.
In the embodiment of the present application, by obtaining Global ID and the filename of geometric object, globally unique ID is generated, will be mentioned The project data of the geometric object of taking-up is stored in file corresponding with globally unique ID, so as to realize multiple geometry The project data of object is corresponding with respective geometric object, avoids the entanglement of project data corresponding.Thereby it is ensured that geometry The reduction of object is realized to guarantee the reduction of the object module constructed by geometric object based on the software on BIM software platform And across the software use for the model established.
With reference to first aspect, and with reference to first aspect the possible implementation of the first, second of possible realization Mode, in a third possible implementation of the first aspect, above-mentioned acquisition geometric object, comprising: parse the target IFC File obtains M geometric object, wherein M is positive integer;The M geometric object is handled, determines N number of geometry pair As, wherein N is the positive integer less than or equal to M;Determine that any one geometric object in N number of geometric object is described several What object.
In the embodiment of the present application, M geometry of the building object module in IFC file is obtained by parsing IFC file Object determines N number of geometric object after handling M geometric object.It can be a with the M determined after analytically IFC file N number of geometric object that there is more high correlation with object module is determined in geometric object, excludes the foundation with object module Unrelated geometric object, so that calculation amount is reduced, so as to restore more quickly on the basis of guaranteeing object module reduction Object module out.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect In, it is above-mentioned that the M geometric object is handled, determine N number of geometric object, comprising: obtain in the M geometric object Each geometric object vertex quantity, determine that vertex quantity in the M geometric object meets the S of the first preset range A geometric object, wherein S is less than or equal to M and more than or equal to the integer of N;Obtain each geometry in the S geometric object The triangular facet quantity of object determines that the triangular facet quantity in the S geometric object meets the described N number of of the second preset range Geometric object.
In the embodiment of the present application, by carrying out the index of vertex quantity and triangular facet quantity to M geometric object, thus It determines N number of geometric object that there is more high correlation with the foundation of object module, excludes some foundation nothings with object module It closes, such as the geometric objects such as landform, point element, line element, so as to reduce on the basis of guaranteeing object module reduction Calculation amount restores object module more quickly.
Second aspect, embodiments herein provide a kind of data processing equipment, comprising: object obtains module, is used for Obtain geometric object, wherein the geometric object is the component part for the object module for including in target IFC file;Data mention Modulus block, for extracting the geometric data of the geometric object and the engineering number of the geometric object from the geometric object According to, wherein the geometric data is the spatial coordinated information of three-dimensional space basic element required for the building geometric object.
In conjunction with second aspect, in the first possible implementation of the second aspect, above-mentioned data extraction module is also used It is handled in the geometric object, generates geometric object data set;It is extracted from the geometric object data set described The geometric data of geometric object;The engineering number of the geometric object is extracted from the geometric object data set According to.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, above-mentioned data extraction module is also used to obtain Global ID and the filename of the geometric object, according to the Global ID and institute It states filename and generates globally unique ID, wherein the globally unique ID is corresponding for carrying out with the geometric object;From described several What object dataset extracts the project data, and the project data is stored in text corresponding with the globally unique ID In part.
In conjunction with second aspect, and combine the first possible implementation of second aspect, second of possible realization Mode, in the third possible implementation of the second aspect, above-mentioned object obtain module, are also used to parse the target IFC file obtains M geometric object, wherein M is positive integer;The M geometric object is handled, is determined N number of several What object, wherein N is the positive integer less than or equal to M;Determine any one geometric object in N number of geometric object for institute State geometric object.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, above-mentioned object obtains module, is also used to obtain the vertex quantity of each geometric object in the M geometric object, determines The vertex quantity in the M geometric object meets S geometric object of the first preset range out, wherein S is less than or equal to M And it is more than or equal to the integer of N;The triangular facet quantity for obtaining each geometric object in the S geometric object, determines the S Triangular facet quantity in a geometric object meets N number of geometric object of the second preset range.
The third aspect, the embodiment of the present application provide a kind of server, and the server includes: processor, memory, always Line and communication interface;The processor, the communication interface and memory are connected by the bus.The memory, is used for Store program.The processor, for the program by calling storage in the memory, to execute first aspect or first Data processing method described in any optional implementation of aspect.
Fourth aspect, the embodiment of the present application provide a kind of calculating of non-volatile program code that can be performed with processor The readable storage medium of machine, for storing program code, said program code executes first party when being readable by a computer and running Data processing method described in any optional implementation of face or first aspect.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the structural block diagram of a kind of electronic equipment of the application first embodiment offer;
Fig. 2 shows a kind of first pass figures for data processing method that the application second embodiment provides;
Fig. 3 shows the sub-process figure of step S100 in a kind of data processing method of the application second embodiment offer;
Fig. 4 shows the sub-process figure of step S200 in a kind of data processing method of the application second embodiment offer;
Fig. 5 shows a kind of structural block diagram of data processing equipment of the application 3rd embodiment offer.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art not into Row goes out all other embodiment obtained under the premise of creative work, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Term " first ", " the Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.Furthermore term in the application " and/ Or ", only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can be with table Show: individualism A exists simultaneously A and B, these three situations of individualism B.
First embodiment
Referring to Fig. 1, the embodiment of the present application provides a kind of electronic equipment 10, electronic equipment 10 can be server, It can be terminal.It when electronic equipment 10 is server, such as can be network server, database server, Cloud Server Or the server set being made of multiple child servers at etc.;Alternatively, when electronic equipment 10 is terminal, such as can be personal electricity Brain (personal computer, PC), tablet computer, smart phone, personal digital assistant (personal digital Assistant, PDA) etc..Certainly, the above-mentioned equipment enumerated is that should not be used as being easy to understand the present embodiment to this implementation The restriction of example.
In the present embodiment, electronic equipment 10 may include: memory 11, communication interface 12, bus 13 and processor 14. Wherein, processor 14, communication interface 12 and memory 11 are connected by bus 13.
Processor 14 is for executing the executable module stored in memory 11, such as computer program.Electricity shown in FIG. 1 The component and structure of sub- equipment 10 be it is illustrative, and not restrictive, as needed, electronic equipment 10 also can have it His component and structure.
Memory 11 may include high-speed random access memory (Random Access Memory RAM), it is also possible to also Including non-labile memory (non-volatile memory), for example, at least two magnetic disk storages.In the present embodiment, Memory 11 stores program required for configuration for executing data processing.
Bus 13 can be isa bus, pci bus or eisa bus etc..It is total that bus can be divided into address bus, data Line, control bus etc..Only to be indicated with a four-headed arrow in Fig. 1, it is not intended that an only bus or one convenient for indicating The other bus of type.
Processor 14 may be a kind of processing capacity IC chip with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 14 or the instruction of software form.Above-mentioned Processor 14 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate circuit or transistor logic Device, discrete hardware components.General processor can be microprocessor or the processor is also possible to any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute completion, Or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory, dodge It deposits, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register are mature to deposit In storage media.
Method performed by the device of stream process or definition that the embodiment of the present application any embodiment discloses can be applied to In processor 14, or realized by processor 14.Processor 14 is stored in after receiving and executing instruction by the calling of bus 13 After program in memory 11, processor 14 controls communication interface 12 by bus 13 then can be with the stream of configuration for executing data processing Journey.
Second embodiment
In data processing method provided in this embodiment, data processing method is applied to electronic equipment, can be from electronics The angle of equipment is described.Hereinafter, Fig. 2-Fig. 4 will be combined to each step of the data processing method in the embodiment of the present application It is described in detail.
Referring to Fig. 2, Fig. 2 is the first pass figure of data processing method provided in this embodiment.The present embodiment provides Data processing method in, may include: step S100 and step S200.
Step S100: geometric object is obtained, wherein the geometric object is the object module for including in target IFC file Component part.
Step S200: extracted from the geometric object geometric object geometric data and the geometric object Project data, wherein the geometric data is that the space of three-dimensional space basic element required for the building geometric object is sat Mark information.
In the present embodiment, it before electronic equipment executes step S100, can obtain there are many mode comprising target mould IFC (Industry Foundation Classes, industrial foundation class) file of type.For example, can be directly used comprising target The IFC file of model;Or the other kinds of file comprising object module, the other types comprising object module can be used This document through format conversion can switch to IFC file;It can also be by a Bentley groupware (serial engineering Software), such as OpenRoadsDesigner (a multi-specialized three-dimensional modeling application program), OpenBridgeModeler (one Money three-dimensional bridge modeling software) etc. establish object module in softwares, it is soft using Bentley series after being successfully established object module Export function in part, selection export IFC file format, such as IFC can be exported according to IFC2X3 standard or IFC4 standard etc. File, to obtain the IFC file comprising object module.
Since IFC file format is currently international BIM (Building Information Modeling, building Information model) standard, many BIM softwares all use IFC file format as the standard of data exchange now, for example, Revit (title of a set of groupware of autodesk, inc. the aims at BIM building) groupware and the Bentley groupware are all supported to lead The file of IFC format out.Therefore, the IFC file comprising object module can be relatively easily obtained, thus to be soft based on BIM Software on part platform and across the software use of object module established provides the basis realized, bring more conveniences.
It should be noted that in the present embodiment, obtaining the mode of the IFC file comprising object module, including but unlimited In above-mentioned mentioned mode, the IFC file comprising object module can also be obtained using other modes, for example, by using Revit The groupware constructs object module, exports as IFC file format, so that the IFC file comprising object module is obtained, therefore, this Place is not construed as the restriction to the application.In addition, under normal circumstances, object module is made of multiple geometric objects, and geometry pair Shape, size, position, material, color, surface paint, surface texture and other grade much informations of elephant, can build Parameter configuration is carried out to geometric object when vertical object module.It certainly, is multiple geometric objects under normal circumstances, when special circumstances, Such as only one geometric object be built into object module when, it should also in the range of the application is protected.
After electronic equipment obtains the IFC file comprising object module, step S100 can be executed.
Referring to Fig. 3, in the present embodiment, step S100 includes: step S110, step S120 and step S130.
Step S110: parsing the target IFC file, obtains M geometric object, wherein M is positive integer.
Step S120: the M geometric object is handled, determines N number of geometric object, wherein N be less than or equal to The positive integer of M.
Step S130: determine that any one geometric object in N number of geometric object is the geometric object.
In the present embodiment, after electronic equipment obtains the IFC file comprising object module, step S110 can be executed.Electricity Sub- equipment can parse the IFC file, for example, can be to the IFC file according to IFC2X3 standard, IFC4 standard etc. Deng being parsed to the IFC file.For convenience of description, in the present embodiment, using IFC2X3 standard to the IFC file It is parsed, but is not construed as the restriction to the application.
After electronic equipment parses the IFC file, the IFC internal storage data pair comprising M geometric object can be generated As.Electronic equipment can obtain the M geometric object from IFC internal storage data object again.
After electronic equipment obtains M geometric object, step S120 can be executed.
In the present embodiment, electronic equipment can be handled M geometric object, and processing herein can be at screening Reason, i.e., screen M geometric object, filters out and wherein constructs N number of geometric object required for object module.
In the present embodiment, vertex quantity index and triangular facet quantity index mode can be taken M geometric object, It determines to construct N number of geometric object required for object module in M geometric object.
In the present embodiment, electronic equipment first can carry out vertex quantity index to M geometric object.Electronic equipment obtains It is default to determine that vertex quantity meets first from M geometric object for the vertex quantity of each geometric object in M geometric object S geometric object of range.For example, electronic equipment obtain M geometric object in each geometric object vertex quantity after, with The vertex quantity of first preset range is compared, and can be excluded the geometric object that vertex quantity is greater than 65000, be determined to meet It is required that S geometric object.
Electronic equipment can continue to carry out triangular facet quantity rope to S geometric object after determining S geometric object Draw.Electronic equipment obtains the triangular facet quantity of each geometric object in S geometric object, determines three from S geometric object Edged surface quantity meets S geometric object of the second preset range.For example, electronic equipment is each several in obtaining S geometric object After the triangular facet quantity of what object, it is compared with the triangular facet quantity of the second preset range, it is small that triangular facet quantity can be excluded In 3 geometric object, so that it is determined that going out the N number of geometric object met the requirements.
It should be noted that in the present embodiment, the processing to M geometric object be first carry out number of vertex amount index, then Triangular facet quantity index is carried out, but in some other optional embodiment, can also first carry out triangular facet quantity index, then Vertex quantity index is carried out, or carries out triangular facet quantity index and vertex quantity index simultaneously, is not construed as herein to this Shen Restriction please.Furthermore it is also possible to using some other processing modes to M geometric object, for example, in certain optional realities It applies in example, can use a certain project data and M geometric object is screened, select the geometry pair with this project data As etc..Therefore, these are not construed as the restriction to the application.
In the present embodiment, it is indexed by vertex quantity index and triangular facet, can exclude some to be obviously not belonging to target The geometric object of model, so that the quantity for needing to carry out the geometric object of subsequent processing is reduced, to improve entire data processing The execution efficiency of method.It should be noted that illustrate in the present embodiment listed vertex quantity and triangular facet quantity, only For convenience of explanation, in some other optional implementation, vertex quantity may be other quantity, such as 60000, 50000 etc., triangular facet quantity may be the other quantities such as 5,6, be not construed as limiting herein.
After electronic equipment determines N number of geometric object, step S130 can be executed.
Electronic equipment can determine any one geometric object from N number of geometric object, as progress subsequent processing Geometric object.In the present embodiment, the determination of this geometric object, which can be, randomly selects, and is also possible to according to certain standard It is determined, such as can be determined according to the vertex quantity of several objects with pure random determination, it can be according to geometry pair The triangular facet quantity of elephant is determined, can be determined according to the world coordinates of geometric object etc., it is not construed as limiting herein.
Referring to Fig. 4, step S200 can be executed after electronic equipment determines geometric object.In the present embodiment, it walks Rapid S200 includes: step S210, step S220 and step S230.
Step S210: handling the geometric object, generates geometric object data set.
Step S220: the geometric data of the geometric object is extracted from the geometric object data set.
Step S230: the project data of the geometric object is extracted from the geometric object data set.
In the present embodiment, after electronic equipment determines geometric object, step S210 can be executed.Due to including target mould The vertex position of all geometric objects in the IFC file of type be based on world coordinates origin, so, electronic equipment can be right The vertex position of geometric object is relocated, and coordinate origin is centered to geometric object center.
Electronic equipment can carry out Recursion process to the geometric object for relocating vertex position is had already passed through, several based on this What object generates geometric object data set.In the present embodiment, geometric object data set may include being somebody's turn to do by Recursion process Data on each node of geometric object.
Geometric object is handled in electronic equipment, after generating geometric object data set, step S220 can be executed, electricity Sub- equipment can extract geometric data from geometric object data set.
In the present embodiment, geometry number is extracted from geometric object data set using data extraction tool in electronic equipment According to preceding, the filename of Global ID (GlobalID, the overall situation number) and the geometric object of the available geometric object of electronic equipment, In conjunction with Global ID and filename, 16 MD5 (Message-Digest Algorithm 5, Message-Digest Algorithm 5) character is generated String, as the globally unique ID (ID, Identity, identity are numbered) of the geometric object, in this, as in object module Mapping between geometric object and geometric data avoids several as far as possible to realize the one-to-one correspondence of geometric data and geometric object There is corresponding inconsistent problem with geometric object in what data.
It should be noted that being raw using the Global ID of geometric object and the filename of geometric object in the present embodiment At 16 MD5 character strings, to obtain the globally unique ID of geometric object, in some other optional embodiment, can adopt With other methods, globally unique ID is generated, (Universally Unique Identifier leads to for example, UUID can be used With unique identifier) mode, generated by Twitter-Snowflake algorithm (a kind of generate unique ID in the way of) globally unique Therefore ID etc. mode is not construed as the restriction to the application herein.
In the present embodiment, the geometric data in geometric object data set, geometry can be extracted using data extraction tool Data can be the coordinate on geometric object position in a model, size, shape, each vertex etc. much information data.Number The data extraction tool that can be customized development according to extracting tool is also possible to be applicable in IFC2X3 standard or IFC4 standard Extracting tool, under normal circumstances, for more flexible and more accurately progress data extraction, using the number of customized development when more According to extracting tool, the geometric data in geometric object data set is extracted, but is not construed as limiting herein.
After electronic equipment extracts the geometric data in geometric object data set using data extraction tool, it can will mention The geometric data of taking-up is stored as a kind of format for being convenient for data exchange, so as to be in BIM application platform Across the software use for the object module established in column modeling software provides the basis realized.
For example, in the present embodiment, the geometric data sequence extracted from geometric object data set can be turned to FBX File format (format that the FilmBoX groupware uses), since FBX file format can be supported by many modeling softwares, Such as 3D Studio Max (a three-dimensional animation rendering and Software for producing), Autodesk Maya (a Three-dimensional Animation Software) Deng, it is thereby achieved that the geometric data that will be extracted realizes data exchange with other software by FBX file format, from And the geometric attribute of object module is restored in other software, it realizes and is established in the serial modeling software in BIM application platform Object module across software use.
It should be noted that in the present embodiment, cited FBX file format is the text of the serializing of plurality of optional One of part form can turn to OBJ (a kind of threedimensional model document form), STL in other alternative-embodiments with sequence The diversified forms such as (a kind of threedimensional model document form), PLY (a kind of threedimensional model document form) are therefore not construed as herein Restriction to the application.
Electronic equipment can execute step S230 after the geometric data sequence that will be extracted turns to FBX document form.
In the present embodiment, engineering number is extracted from geometric object data set using data extraction tool in electronic equipment According to preceding, the filename of Global ID (GlobalID, the overall situation number) and the geometric object of the available geometric object of electronic equipment, In conjunction with Global ID and filename, 16 MD5 character strings are generated, as the globally unique ID of the geometric object, in this, as target Mapping in model between geometric object and project data, to realize the one-to-one correspondence of project data and geometric object, as far as possible Project data is avoided corresponding inconsistent problem occur with geometric object.
The overall situation of geometric object is generated only using the Global ID of geometric object and the filename of geometric object in electronic equipment After one ID, step S230 can be executed.In the present embodiment, electronic equipment can extract geometry from geometric object data set The project data of object, project data can be the material of geometric object, surface texture, surface oil when corresponding to work progress Paint, color etc. various engineering information data.It can use data extraction tool, extract the engineering number in geometric object data set According to, it is for instance possible to obtain the number of species of project data, then to geometric object data set according to the kind of the project data of acquisition Class quantity is traversed, to obtain all project data of geometric object.
It should be noted that in the present embodiment, the project data of geometric object, Ke Yigao are obtained by the way of traversal Extract to effect all project data of geometric object in geometric object data set.In some other optional embodiment, also The extraction that project data can be carried out using other modes, is not construed as the restriction to the application herein.
After the project data that electronic equipment extracts in geometric object data set, the project data that can will be extracted, It is stored as a kind of format for being convenient for data exchange, so as to build in the serial modeling software in BIM application platform Across the software use of vertical object module provides the basis realized.For example, in the present embodiment, the engineering number that can will be extracted JSON (JavaScript Object Notation, JavaScript object numbered musical notation) file is turned to according to sequence, since JSON is A kind of data interchange format of lightweight is easy to machine parsing and generates, and effectively promotes network transmission efficiency, so as to It realizes the project data that will be extracted, by JSON file format, data exchange is realized with other software, thus in other software The engineering attribute of middle reduction object module, realizes the object module established in the serial modeling software in BIM application platform Across software use.
It should be noted that in the present embodiment, when extracting geometric data, the generation step of globally unique ID can be placed on Before extracting geometric data, it can also be placed on after extracting geometric data;When extracting project data, the generation step of globally unique ID Suddenly it can be placed on before extracting project data, can also be placed on after extracting project data, execution sequence is not as restriction, only It needs to realize and carries out function that is corresponding and can distinguishing with other geometric objects with geometric object.In addition, in this implementation In example, the extraction of the geometric data and project data of single geometric object is described in detail, very when facing multiple geometric objects When to multiple object modules, data extraction can be carried out simultaneously using multiple geometric objects, single geometric object carries out data and mentions It takes or the partial geometry object in multiple geometric objects while carrying out data extraction etc., these modes are ok, in reality In can select the data extracting mode of geometric object according to actual needs, realize that the data for efficiently carrying out geometric object are extracted.
After the geometric data of geometric object and project data are extracted and sequence turns to corresponding file File is imported in other software, object module is restored, to carry out wanting the operation of progress in other software.For example, BIM Software rendering effect in application platform is dissatisfied, it is desirable to render, or use to object module in 3D Studio Max Other function, to achieve the effect that anticipation.It is flat that BIM application can be realized in the data processing method provided through this embodiment Across the software use for the model established in software on platform, so as to so that object module being capable of more effectively custom service function Can, interactive mode is customized for greater flexibility.
3rd embodiment
Referring to Fig. 5, Fig. 5 is a kind of structural block diagram of data processing equipment 100 provided by the embodiments of the present application.
The embodiment of the present application provides a kind of data processing equipment 100, comprising:
Object obtains module 110, for obtaining geometric object, wherein the geometric object, which is in target IFC file, includes Object module component part;
Data extraction module 120, for extracting geometric data and the institute of the geometric object from the geometric object State the project data of geometric object, wherein the geometric data is that three-dimensional space required for constructing the geometric object is basic The spatial coordinated information of element.
In the present embodiment, the data extraction module 120 is also used to handle the geometric object, generates several What object data set;The geometric data of the geometric object is extracted from the geometric object data set;From described several What object dataset extracts the project data of the geometric object.
In the present embodiment, the data extraction module 120 is also used to from the Global ID and text for obtaining the geometric object Part name generates globally unique ID according to the Global ID and the filename, wherein the globally unique ID be used for it is described several What object is corresponded to;The project data is extracted from the geometric object data set, and the project data is stored in In file corresponding with the globally unique ID.
In the present embodiment, the object obtains module 110, is also used to parse the target IFC file, and it is a several to obtain M What object, wherein M is positive integer;The M geometric object is handled, determines N number of geometric object, wherein N is small In the positive integer for being equal to M;Determine that any one geometric object in N number of geometric object is the geometric object.
In the present embodiment, the object obtains module 110, and it is several to be also used to obtain each of described M geometric object The vertex quantity of what object determines that the vertex quantity in the M geometric object meets S geometry pair of the first preset range As, wherein S is less than or equal to M and more than or equal to the integer of N;Obtain three of each geometric object in the S geometric object Edged surface quantity determines that the triangular facet quantity in the S geometric object meets N number of geometry pair of the second preset range As.
In conclusion embodiments herein provides a kind of data processing method, comprising: obtain geometric object, wherein The geometric object is the component part for the object module for including in target IFC file;Institute is extracted from the geometric object State the geometric data of geometric object and the project data of the geometric object, wherein the geometric data is to construct the geometry The spatial coordinated information of three-dimensional space basic element required for object.
By obtaining the geometric object of the building object module in IFC file, and extract the geometric data in geometric object And project data, so that the critical data of object module is obtained, in order to utilize the geometric data extracted in geometric object And project data, new model is established in other software, restores geometric object in new model, to restore geometric object The object module of building finally realizes across the software use for the model established based on the software on BIM software platform.
The above is only preferred embodiment of the present application, are not intended to limit this application, for those skilled in the art For member, various changes and changes are possible in this application.Within the spirit and principles of this application, it is made it is any modification, Equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter are under Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing It is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (10)

1. a kind of data processing method, which is characterized in that the described method includes:
Obtain geometric object, wherein the geometric object is the component part for the object module for including in target IFC file;
The geometric data of the geometric object and the project data of the geometric object are extracted from the geometric object, In, the geometric data is the spatial coordinated information of three-dimensional space basic element required for the building geometric object.
2. data processing method according to claim 1, which is characterized in that described to extract institute from the geometric object State the geometric data of geometric object and the project data of the geometric object, comprising:
The geometric object is handled, geometric object data set is generated;
The geometric data of the geometric object is extracted from the geometric object data set;
The project data of the geometric object is extracted from the geometric object data set.
3. data processing method according to claim 2, which is characterized in that described to be mentioned from the geometric object data set Take out the project data of the geometric object, comprising:
Global ID and the filename for obtaining the geometric object generate globally unique according to the Global ID and the filename ID, wherein the globally unique ID is corresponding for carrying out with the geometric object;
The project data is extracted from the geometric object data set, and the project data is stored in the overall situation only In the corresponding file of one ID.
4. data processing method described in -3 any claim items according to claim 1, which is characterized in that the acquisition geometry Object, comprising:
The target IFC file is parsed, obtains M geometric object, wherein M is positive integer;
The M geometric object is handled, determines N number of geometric object, wherein N is the positive integer less than or equal to M;
Determine that any one geometric object in N number of geometric object is the geometric object.
5. data processing method according to claim 4, which is characterized in that it is described to the M geometric object at Reason, determines N number of geometric object, comprising:
The vertex quantity for obtaining each geometric object in the M geometric object determines the top in the M geometric object Point quantity meets S geometric object of the first preset range, wherein S is less than or equal to M and more than or equal to the integer of N;
The triangular facet quantity for obtaining each geometric object in the S geometric object is determined in the S geometric object Triangular facet quantity meets N number of geometric object of the second preset range.
6. a kind of data processing equipment, which is characterized in that described device includes:
Object obtains module, for obtaining geometric object, wherein the geometric object is the target for including in target IFC file The component part of model;
Data extraction module, for extracting the geometric data and the geometry pair of the geometric object from the geometric object The project data of elephant, wherein the geometric data is the sky of three-dimensional space basic element required for the building geometric object Between coordinate information.
7. data processing equipment according to claim 6, which is characterized in that the data extraction module is also used to institute It states geometric object to be handled, generates geometric object data set;The geometry pair is extracted from the geometric object data set The geometric data of elephant;The project data of the geometric object is extracted from the geometric object data set.
8. data processing equipment according to claim 7, which is characterized in that the data extraction module is also used to obtain The Global ID of the geometric object and filename generate globally unique ID according to the Global ID and the filename, wherein institute It is corresponding for carrying out with the geometric object to state globally unique ID;The engineering number is extracted from the geometric object data set According to, and the project data is stored in file corresponding with the globally unique ID.
9. according to data processing equipment described in claim 6-8 any claim item, which is characterized in that the object obtains Module is also used to parse the target IFC file, obtains M geometric object, wherein M is positive integer;To the M geometry pair As being handled, N number of geometric object is determined, wherein N is the positive integer less than or equal to M;It determines in N number of geometric object Any one geometric object be the geometric object.
10. data processing equipment according to claim 9, which is characterized in that the object obtains module, is also used to obtain The vertex quantity of each geometric object in the M geometric object determines that the vertex quantity in the M geometric object is full S geometric object of the first preset range of foot, wherein S is less than or equal to M and more than or equal to the integer of N;It is a several to obtain the S The triangular facet quantity of each geometric object in what object determines triangular facet quantity satisfaction in the S geometric object the N number of geometric object of two preset ranges.
CN201811431568.3A 2018-11-27 2018-11-27 Data processing method and device Active CN109683858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811431568.3A CN109683858B (en) 2018-11-27 2018-11-27 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811431568.3A CN109683858B (en) 2018-11-27 2018-11-27 Data processing method and device

Publications (2)

Publication Number Publication Date
CN109683858A true CN109683858A (en) 2019-04-26
CN109683858B CN109683858B (en) 2022-05-27

Family

ID=66185071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811431568.3A Active CN109683858B (en) 2018-11-27 2018-11-27 Data processing method and device

Country Status (1)

Country Link
CN (1) CN109683858B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135020A (en) * 2019-04-28 2019-08-16 椭圆方程(深圳)信息技术有限公司 A kind of transformat of BIM model data communication
CN112199758A (en) * 2020-10-30 2021-01-08 华中科技大学 Foundation pit engineering design and dynamic risk analysis method and system based on BIM technology
CN112507427A (en) * 2020-11-30 2021-03-16 同济大学建筑设计研究院(集团)有限公司 Automatic conversion method, medium and system for EICAD and IFC route data
CN114443592A (en) * 2021-12-29 2022-05-06 万翼科技有限公司 Data storage method and device, electronic equipment and storage medium
CN117436180A (en) * 2023-12-14 2024-01-23 中建三局集团有限公司 Intelligent equipment production driving method, system and medium based on central database

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101268492A (en) * 2005-09-23 2008-09-17 皇家飞利浦电子股份有限公司 A method of and a system for adapting a geometric model using multiple partial transformations
US20120233198A1 (en) * 2011-03-10 2012-09-13 Microsoft Corporation Creating virtual worlds from existing data structures
CN105912655A (en) * 2016-04-11 2016-08-31 东南大学 WebGL-based three-dimensional model display method and corresponding Web-BIM engineering information integration management system
CN105957148A (en) * 2016-05-20 2016-09-21 江苏得得空间信息科技有限公司 Granularity balance data organization method of complicated three-dimensional building model
CN107609268A (en) * 2017-09-12 2018-01-19 上海同岩土木工程科技股份有限公司 A kind of method of three-dimensional geological model based on TIN and BIM Model couplings
US20180247004A1 (en) * 2015-09-07 2018-08-30 Siemens Product Lifecycle Management Software Inc. Modelling method and system
CN108647330A (en) * 2018-05-11 2018-10-12 厦门海迈科技股份有限公司 A kind of 3D lightweight conversion methods based on BIM model files

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101268492A (en) * 2005-09-23 2008-09-17 皇家飞利浦电子股份有限公司 A method of and a system for adapting a geometric model using multiple partial transformations
US20120233198A1 (en) * 2011-03-10 2012-09-13 Microsoft Corporation Creating virtual worlds from existing data structures
US20180247004A1 (en) * 2015-09-07 2018-08-30 Siemens Product Lifecycle Management Software Inc. Modelling method and system
CN105912655A (en) * 2016-04-11 2016-08-31 东南大学 WebGL-based three-dimensional model display method and corresponding Web-BIM engineering information integration management system
CN105957148A (en) * 2016-05-20 2016-09-21 江苏得得空间信息科技有限公司 Granularity balance data organization method of complicated three-dimensional building model
CN107609268A (en) * 2017-09-12 2018-01-19 上海同岩土木工程科技股份有限公司 A kind of method of three-dimensional geological model based on TIN and BIM Model couplings
CN108647330A (en) * 2018-05-11 2018-10-12 厦门海迈科技股份有限公司 A kind of 3D lightweight conversion methods based on BIM model files

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135020A (en) * 2019-04-28 2019-08-16 椭圆方程(深圳)信息技术有限公司 A kind of transformat of BIM model data communication
CN110135020B (en) * 2019-04-28 2023-04-04 椭圆方程(深圳)信息技术有限公司 BIM model data communication transmission method
CN112199758A (en) * 2020-10-30 2021-01-08 华中科技大学 Foundation pit engineering design and dynamic risk analysis method and system based on BIM technology
CN112199758B (en) * 2020-10-30 2024-07-16 华中科技大学 BIM technology-based foundation pit engineering design and dynamic risk analysis method and system
CN112507427A (en) * 2020-11-30 2021-03-16 同济大学建筑设计研究院(集团)有限公司 Automatic conversion method, medium and system for EICAD and IFC route data
CN114443592A (en) * 2021-12-29 2022-05-06 万翼科技有限公司 Data storage method and device, electronic equipment and storage medium
CN117436180A (en) * 2023-12-14 2024-01-23 中建三局集团有限公司 Intelligent equipment production driving method, system and medium based on central database
CN117436180B (en) * 2023-12-14 2024-03-19 中建三局集团有限公司 Intelligent equipment production driving method, system and medium based on central database

Also Published As

Publication number Publication date
CN109683858B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN109683858A (en) Data processing method and device
US10048946B2 (en) Converting visual diagrams into code
CN110196953A (en) A kind of application buries point methods, device, calculates equipment and system
CN109146943A (en) Detection method, device and the electronic equipment of stationary object
US11100703B2 (en) Dynamic frontend-driven generation of an HLOD tree
CN105631925A (en) Three-dimensional scene generation method based on OSG three-dimensional rendering engine preprocessing and device thereof
CN102054217B (en) Entity morphing in metamodel-based tools
CN110032368B (en) Information configuration method and device
CN116152460B (en) Method, device, terminal and medium for generating rock stratum model based on UE4
CN108830779A (en) Processing method, device, electronic equipment and the storage medium of three-dimensional modeling data
CN110120087A (en) The label for labelling method, apparatus and terminal device of three-dimensional sand table
CN112717414A (en) Game scene editing method and device, electronic equipment and storage medium
CN109544703B (en) Data center Web3D model loading method easy to realize interaction
CN106202456B (en) Send the method and device of picture
CN115952252B (en) Semantic tile data processing method and device based on dynamic rendering and electronic equipment
JP2010262469A (en) Apparatus and method for processing information, and program
CN116402937A (en) Web-based 3D visual simplified development method for complex data
CN116245982A (en) Animation file generation method and device, electronic equipment and storage medium
CN112711783B (en) Jewelry design method and system based on three-dimensional software and illusion engine
CN113687815B (en) Method and device for processing dynamic effects of multiple components in container, electronic equipment and storage medium
CN104408184A (en) Two-dimensional visual data display method and device based on data cubes
CN117115805B (en) Random irregular object identification method and device under Unreal Engine platform
CN112380660B (en) Network layout configuration method and device, electronic equipment and storage medium
WO2024148926A1 (en) Event sequence data display method and apparatus, terminal device, and storage medium
CN116342758A (en) Animation file generation method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant