CN110136235B - Three-dimensional BIM model shell extraction method and device and computer equipment - Google Patents

Three-dimensional BIM model shell extraction method and device and computer equipment Download PDF

Info

Publication number
CN110136235B
CN110136235B CN201910406575.6A CN201910406575A CN110136235B CN 110136235 B CN110136235 B CN 110136235B CN 201910406575 A CN201910406575 A CN 201910406575A CN 110136235 B CN110136235 B CN 110136235B
Authority
CN
China
Prior art keywords
bim model
bim
texture
rendering
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.)
Active
Application number
CN201910406575.6A
Other languages
Chinese (zh)
Other versions
CN110136235A (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.)
Zhongzhi Software Co.,Ltd.
Original Assignee
Luoyang Zhongzhi Software 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 Luoyang Zhongzhi Software Technology Co ltd filed Critical Luoyang Zhongzhi Software Technology Co ltd
Priority to CN201910406575.6A priority Critical patent/CN110136235B/en
Publication of CN110136235A publication Critical patent/CN110136235A/en
Application granted granted Critical
Publication of CN110136235B publication Critical patent/CN110136235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Abstract

The application relates to a three-dimensional BIM model shell extraction method, a device and computer equipment, wherein the three-dimensional BIM model shell extraction method comprises the steps of reading BIM data in a three-dimensional BIM model, and generating a BIM model with multiple colors according to the BIM data; rendering all the outer facades of the BIM model with various colors to obtain texture images of all the outer facades of the BIM model with various colors; and generating a three-dimensional BIM model shell according to the texture object. According to the method, the number of the triangular meshes in the shell extraction process can be reduced, so that the loading speed in the model display process is increased, the three-dimensional BIM model shell is automatically generated without manual intervention, and the reuse degree of the method can be improved.

Description

Three-dimensional BIM model shell extraction method and device and computer equipment
Technical Field
The application relates to the technical field of three-dimensional geographic space information systems, in particular to a three-dimensional BIM model shell extraction method, a three-dimensional BIM model shell extraction device and computer equipment.
Background
BIM (Building Information Modeling) is translated into a Building Information model. BIM is a technology for creating and applying a digital model to each stage of the whole life cycle of a building project, is also a digital expression of physical and functional characteristics of a building, has an expression form of basic information resources with information, and is a core and data basis for specific application and various performance analyses of each stage of the whole life cycle of the building project. The Geographic Information System GIS (Geographic Information System) is a subject that has developed with the development of geoscience, computer technology, remote sensing technology, and Information science. GIS is mainly used in three-dimensional model display: geospatial presentation, positioning reference, assisted spatial analysis, and the like. GIS is the important carrier that shows BIM building data information. In three-dimensional model display, building data are provided to the GIS by the BIM, and all the building information transmitted by the BIM is displayed by the GIS. The three-dimensional model display is that a data model is established by using BIM, standard data of all components are transmitted to the GIS and are displayed completely, so that a plurality of invisible components are loaded, the data quantity of the GIS needing to be loaded is increased, computer space is wasted, the number of buildings which can be displayed in the same memory is reduced, and the display of the whole three-dimensional model is influenced finally.
In the related technology, the adopted BIM model lightweight method is to set the LOD display range of each sub-model in the BIM model, so that only the building outline can be seen when the building is seen from far away, and the detailed information in the BIM model can be seen when the building is seen from near. However, the number of grids is not reduced by the method per se, great pressure is still caused to loading, scheduling, rendering and displaying when the method is used in the three-dimensional GIS field, the LOD range of each sub-module in the BIM model is difficult to accurately set, the LOD range is set by experience mainly according to a specific model through manual work, the multiplexing degree of the set range is low, and the manual intervention degree is high.
Disclosure of Invention
In order to overcome the problems that the LOD display range of each sub-module in the BIM is set, the number of grids is not reduced essentially, great pressure is still caused on loading scheduling and rendering display when the BIM is used in the three-dimensional GIS field, the LOD range of each sub-module in the BIM is difficult to accurately set, the BIM is set by experience according to a specific model mainly according to manpower, the multiplexing degree of the set range is low, and the manual intervention degree is high, at least to a certain extent, the lightweight method of the BIM adopted in the related technology is characterized in that the LOD display range of each sub-module in the BIM is set.
In a first aspect, the present application provides a three-dimensional BIM model shell extraction method, including:
reading BIM data in the three-dimensional BIM model, and generating a BIM model with multiple colors according to the BIM data;
rendering all the outer facades of the BIM model with the multiple colors, and acquiring texture images of all the outer facades of the BIM model with the multiple colors;
and generating the three-dimensional BIM model shell according to the texture object.
Further, the generating a BIM model with a plurality of colors according to the BIM data includes:
generating a first Node according to the BIM data, wherein the first Node comprises a plurality of triangles;
numbering the plurality of triangles;
and converting the serial number into a color value, and coloring the triangle according to the color value to obtain the BIM model with multiple colors.
Further, the numbering the triangles includes numbering with arithmetic sequence values.
Further, the rendering all the outer facades of the BIM model with multiple colors to obtain texture images of all the outer facades of the BIM model with multiple colors includes:
calculating to obtain the size of a rendering view and the size of a rendering view port by using a bounding box algorithm;
and performing orthogonal view rendering on the BIM model with multiple colors according to the rendering view size and the rendering viewport size, and generating texture images corresponding to all the outer facades of the BIM model with multiple colors.
Further, the generating the three-dimensional BIM model shell according to the texture object includes:
analyzing the texture object to obtain a triangle number corresponding to the texture object;
and reconstructing the second Node according to the triangle number to obtain the three-dimensional BIM model shell.
Further, the analyzing the texture object to obtain a triangle number corresponding to the texture object includes:
the RGBA values for each pixel in the texture object are obtained,
converting each bit in the RGBA value into 8 binary numbers;
and combining the binary numbers obtained by each bit to obtain a 32-bit binary number, wherein the 32-bit binary number is the triangle number.
Further, the reconstructing the second Node according to the triangle number includes:
finding out a corresponding triangle according to the triangle number, wherein the triangle comprises geometric texture information;
and re-creating the second Node according to the geometric texture information.
Further, the method further comprises:
sorting the texture objects in size;
setting the threshold value of the mosaic of the texture object, and carrying out mosaic on the texture object with the size smaller than the threshold value of the mosaic of the texture object by using a binary mosaic algorithm.
In a second aspect, the present application provides a three-dimensional BIM model shell extraction apparatus, including:
the BIM model building module with multiple colors is used for reading BIM data in the three-dimensional BIM model and generating the BIM model with multiple colors according to the BIM data;
the model outer facade texture image acquisition module is used for rendering all outer facades of the BIM model with multiple colors and acquiring texture images of all outer facades of the BIM model with multiple colors;
and the model shell generation module is used for generating the three-dimensional BIM model shell according to the texture object.
In a third aspect, the present application provides a computer device comprising:
a memory storing a computer program and a processor being a GPU, which computer program, when executed by the processor, causes the processor to perform the steps of the above method.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
through the BIM model that generates the multiple color in this application, it is right all outer facades of the BIM model that has the multiple color are rendered, acquire the texture image of all outer facades of the BIM model that has the multiple color, according to the texture object generates three-dimensional BIM model shell is not rendered to all components in the BIM model, consequently, can reduce the triangle net number in the three-dimensional BIM model by a wide margin to do not need artificial intervention, further, the treater is GPU among the computer equipment, and is strong in parallel computing power, improves the processing speed of mass data in the big scene.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of a three-dimensional BIM model shell extraction method according to an embodiment of the present application.
Fig. 2 is a flowchart of a three-dimensional BIM model shell extraction method according to another embodiment of the present application.
Fig. 3 is a block diagram of an apparatus for extracting a three-dimensional BIM model shell according to an embodiment of the present application.
Fig. 4 is an internal structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and examples.
Fig. 1 is a flowchart of a three-dimensional BIM model shell extraction method according to an embodiment of the present application.
As shown in fig. 1, the method of the present embodiment is used for three-dimensional BIM model shell extraction, and includes:
s11: reading BIM data in the three-dimensional BIM model, and generating a BIM model with multiple colors according to the BIM data;
s12: rendering all the outer facades of the BIM model with various colors to obtain texture images of all the outer facades of the BIM model with various colors;
s13: and generating the three-dimensional BIM model shell according to the texture object.
The BIM data is geometrical data of BIM, and a model with triangular surfaces of different colors is generated according to the BIM geometrical data; the triangular surface includes vertex data, UV coordinates and a normal. The BIM model is spliced by a plurality of triangular surfaces, and a plurality of texture colors of the BIM model are reflected by the triangular surfaces with different colors. The method comprises the steps of performing 720-degree surrounding rendering on a model with triangular surfaces of different colors to obtain pictures of all visual angles, wherein the obtained pictures are all outer vertical surfaces of the model, so that texture images of all outer vertical surfaces of a BIM model with multiple colors are obtained, only texture images of the outer vertical surfaces are obtained, an internal structure is shielded by the outer vertical surfaces, all the texture images rendered around are outer vertical surface texture images, then analyzing is performed on the basis of the outer vertical surface texture images, so that outer vertical surface triangular surfaces corresponding to all the outer vertical surface texture images are obtained, inner triangular surfaces which are not rendered in the BIM model with multiple colors are abandoned, so that the number of analyzed triangular grids is reduced, manual intervention is not needed, the three-dimensional BIM model shell is automatically generated, the reuse degree of the method is improved, and the method is convenient for a user to directly use.
The three-dimensional BIM model shell extraction method is applied to city planning three-dimensional aid decision making, three-dimensional underground pipeline systems and three-dimensional city systems, and can cause that the system cannot normally operate or is very stuck because a complex BIM model is directly put into the three-dimensional system, so that the BIM model needs to be simplified before being put into the three-dimensional system.
In this embodiment, the BIM model with multiple colors is generated, all the outer facades of the BIM model with multiple colors are rendered, texture images of all the outer facades of the BIM model with multiple colors are obtained, the three-dimensional BIM model shell is generated according to the texture objects, and not all components in the BIM model are rendered, so that the number of triangular meshes in the three-dimensional BIM model can be greatly reduced, the pressure brought to a processing system by loading, scheduling and rendering display is reduced, manual intervention is not needed, and the reuse degree of the method is improved.
Referring to fig. 2, as an improvement of the above method, the embodiment of the present invention provides another three-dimensional BIM model shell extraction method.
As shown in fig. 2, on the basis of the previous embodiment, the method of the present embodiment includes:
s11: reading BIM data in the three-dimensional BIM model, and generating a BIM model with multiple colors according to the BIM data;
as an optional implementation manner of the present invention, the generating a BIM model with multiple colors according to the BIM data includes:
s111: generating a first Node according to the BIM data, wherein the first Node comprises a plurality of triangles;
s112: numbering the plurality of triangles;
s113: and converting the serial number into a color value, and coloring the triangle according to the color value to obtain the BIM model with multiple colors.
According to the BIM data standard serialization format, geometric texture information such as vertex coordinates, normal lines, UV coordinates, matrix (material), texture pictures and the like in BIM data is deserialized and read, the geometric texture information is converted into Geometry, and a first Node capable of being displayed in a three-dimensional scene is generated according to the Geometry.
Converting the number to a color value includes:
firstly, converting the serial number into a binary number;
converting the binary number into an RGBA color value, each color value of the RGBA occupies 8 binary bits, so that the binary number needs to be converted into a group of 8 bits, and then calculating decimal values of each 8 bits, such as "00000000 00100010 01001000 10100000" to be converted into "0, 34, 72, 160", and then dividing each bit by 255 to obtain RGBA (0,0.13333333,0.28235294,0.62745098);
creating a vertex attribute for each vertex of the triangle;
one vertex attribute is assigned as an RGBA color value.
By binding the numbers with the triangle vertexes, the numbers corresponding to the triangle vertexes can be found out after rendering, and therefore the accuracy of data used in reconstruction is guaranteed.
As an optional implementation manner of the present invention, the numbering the triangles includes numbering by using arithmetic difference series values.
The method includes the steps that renumbering is carried out according to triangles contained in generated geometric information of a first Node, sequence numbering is carried out from 1, the number value can be supported to about 42 hundred million, the number of the current triangle profiles is already known when a BIM model is analyzed, if the number of the profiles is below hundred million, the method can calculate a proper arithmetic progression value according to the specific value of the maximum number for numbering, for example, numbering is carried out according to an arithmetic progression 10, the numbering result is 1, 11, 21, 31 … … and the like, the larger the difference between the numerical numbers is, the higher the accuracy of subsequent calculation is, and therefore the extracted shell is guaranteed to keep the effect of the outer contour of the original BIM model unchanged.
S12: rendering all the outer facades of the BIM model with various colors to obtain texture images of all the outer facades of the BIM model with various colors;
as an optional implementation manner of the present invention, the rendering all the facades of the BIM model with multiple colors to obtain texture images of all the facades of the BIM model with multiple colors includes:
s121: calculating to obtain the size of a rendering view and the size of a rendering view port by using a bounding box algorithm;
s122: and performing orthogonal view rendering on the BIM model with multiple colors according to the rendering view size and the rendering viewport size, and generating texture images corresponding to all the outer facades of the BIM model with multiple colors.
The process of shading the color values in the rendering of the orthogonal view by writing the color values into the texture vertex shader and the fragment shader through the vertex shader and the fragment shader comprises the following steps: the color value corresponding to each vertex is read in an 'attribute vec4 aColor' mode, and then the color value is transmitted to the fragment shader. And the fragment shader receives the color value in the vertex shader, sets the color value to the fragment, and renders the fragment according to the set color value.
The method comprises the steps of adopting orthogonal views for rendering, calculating the proper rendering view size and rendering view port size according to a current scene model bounding box before rendering, using a camera in a scene for multi-view rendering, rendering all outer facades of a BIM model with multiple colors, and generating a texture image when rendering one view angle each time.
S13: and generating the three-dimensional BIM model shell according to the texture object.
As an optional implementation manner of the present invention, the generating the three-dimensional BIM model shell according to the texture object includes:
s131: analyzing the texture object to obtain a triangle number corresponding to the texture object;
s132: and reconstructing the second Node according to the triangle number to obtain the three-dimensional BIM model shell.
As an implementation manner that can be selected by the present invention, the analyzing the texture object to obtain a triangle number corresponding to the texture object includes:
RGBA values are obtained for each pixel in the texture object,
converting each bit in the RGBA value into 8 binary numbers;
and combining the binary numbers obtained by each bit to obtain a 32-bit binary number, wherein the 32-bit binary number is the triangle number.
And obtaining an RGBA value of each pixel in the texture object, wherein the RGBA value is a numerical value of 0-255, converting each bit of the RGBA into 8 binary digits, and finally combining the binary digits converted by the RGBA into a 32-bit binary digit, so that the geometric information of the outer facade of the three-dimensional BIM in the Node of the first Node can be found out according to the triangular number.
As an optional implementation manner of the present invention, the reconstructing the second Node according to the triangle number includes:
finding out a corresponding triangle according to the triangle number, wherein the triangle comprises geometric texture information;
and re-creating the second Node according to the geometric texture information.
And finding out a corresponding triangle and other geometric texture information corresponding to the triangle, such as information of a normal line, a uv coordinate and the like, according to the number of the triangle, and re-creating a second Node according to the information of the normal line, the uv coordinate and the like, wherein the second Node is the shell for extracting the three-dimensional BIM.
As an implementation manner selectable by the present invention, the method further includes:
s141: sorting the texture objects in size;
s142: setting the threshold value of the mosaic of the texture object, and carrying out mosaic on the texture object with the size smaller than the threshold value of the mosaic of the texture object by using a binary mosaic algorithm.
The BIM model shell extracted from the second Node is directly recreated according to the geometric texture information of the triangle, the outer surface of the BIM model shell is provided with a plurality of fine and broken surfaces, and the matrix (material) or the texture corresponding to each surface is not identical, so that a plurality of rendering batches are needed, therefore, the small textures are spliced into a texture large graph by using a binary puzzle algorithm, the texture large graph is rendered, and the maximization of the utilization rate of the texture large graph is ensured.
And combining the finely-divided texture maps by a binary puzzle algorithm, so that the reduction of rendering batches can be realized under the condition of keeping the effect of the outer contour of the original BIM model unchanged.
The second Node is exported to be the extracted shell, and various general three-dimensional model format files such as fbx,3ds, obj, osg, osgb and the like can be generated during exporting.
The experimental results show that: the method can be used for rapidly simplifying the complex BIM model, the BIM model with more than 50 million triangular surfaces is provided, more than 1 million triangular surfaces are provided after simplification, the simplified data is subjected to rendering batch optimization, and the rendering efficiency in a large scene is improved. The method can be used in the field of three-dimensional GIS, and also can be used in the field of profession, such as railway, bridge and other fields for simplifying BIM model.
In addition. The method can be manufactured into an independent exe program or a plug-in, and is loaded into other GIS systems, so that the method is convenient for users to use.
In this embodiment, when the second Node is created again according to the geometric texture information, the finely divided texture maps may be merged by a binary puzzle algorithm, thereby reducing the rendering batch while maintaining the effect of the outer contour of the original BIM model.
Fig. 3 is a block diagram of a three-dimensional BIM model shell extraction apparatus according to an embodiment of the present application.
As shown in fig. 3, the apparatus includes:
the BIM model establishing module 31 with multiple colors is used for reading BIM data in the three-dimensional BIM model and generating the BIM model with multiple colors according to the BIM data;
a model outer facade texture image obtaining module 32, configured to render all outer facades of the BIM model with multiple colors, and obtain texture images of all outer facades of the BIM model with multiple colors;
and a model shell generation module 33, configured to generate the three-dimensional BIM model shell according to the texture object.
Reading BIM data in the three-dimensional BIM through a BIM model establishing module 31 with multiple colors, and generating a BIM model with multiple colors according to the BIM data; rendering all the outer facades of the BIM model with multiple colors through a model outer facade texture image obtaining module 32 to obtain texture images of all the outer facades of the BIM model with multiple colors; the three-dimensional BIM model shell is generated by the model shell generating module 33 according to the texture object, the number of grids in the extracted three-dimensional BIM model shell can be reduced, the loading and dispatching speed in the three-dimensional GIS field is reduced, manual intervention is not needed, and the reusability of the method is improved.
The device further comprises:
the numbering module is used for numbering the triangles, and an arithmetic progression is adopted for numbering during numbering, so that the accuracy of data used during shell extraction is improved;
the conversion module is used for converting the serial number into a color value, setting the color value as the attribute of a triangle vertex, and loading the serial number into the BIM through the color value by converting the serial number into the color value;
the rendering module is used for rendering all the external facades with the BIM models in multiple colors according to the color values to obtain multiple texture objects;
the analysis module is used for analyzing the texture objects and obtaining the triangle numbers again;
and the reconstruction module is used for reconstructing the second Node according to the triangle number and generating the BIM model shell according to the second Node.
The texture object is obtained through rendering, the texture object is analyzed through the analysis module 35, the triangle numbers of all the outer vertical surfaces of the BIM model can be obtained again, the second Node nodes are reconstructed through the reconstruction module 36 according to the triangle numbers of all the outer vertical surfaces of the BIM model, and the BIM model shell is generated according to the second Node nodes, so that the number of grids in the shell is reduced, and the pressure brought to the system when the model shell is loaded and displayed is reduced.
And the picture splicing module is used for carrying out picture splicing on the texture object by using a binary picture splicing algorithm.
Setting the threshold value of the mosaic of the texture objects, and carrying out mosaic on the texture objects with the size smaller than the threshold value of the mosaic of the texture objects in the mosaic module by using a binary mosaic algorithm can reduce the pressure of an operating system caused by rendering and displaying and improve the loading speed.
In this embodiment, the rendering module renders all the exterior facades of the BIM model according to the color values to obtain a plurality of texture objects, so that the number of grids in the extracted shell can be reduced, and further, the puzzle module performs puzzle splicing on the texture objects with the size smaller than the threshold value of the puzzle splicing of the texture objects by using a binary puzzle algorithm, so that the operating system pressure caused by rendering and display can be reduced, and the loading speed can be increased.
Fig. 4 is an internal structural diagram of a computer device according to an embodiment of the present invention. The computer device may be a terminal or a server. As shown in fig. 3, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and also stores a computer program, the processor is a GPU, and when the computer program is executed by the processor, the processor can realize the three-dimensional BIM model shell extraction method. The GPU has much stronger parallel computing capability than that of a CPU, and particularly has more obvious advantages on a GPU with mass data. Thereby increasing the data processing speed when extracting the shell.
The internal memory may also store a computer program, and when the computer program is executed by the processor, the processor may execute the three-dimensional BIM model shell extraction method. The network interface is used for communicating with an external device. Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the three-dimensional BIM model shell extraction method provided by the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 3.
In addition, the present invention also proposes a computer device comprising a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to perform the steps of: reading BIM data in the three-dimensional BIM model, and generating a BIM model with multiple colors according to the BIM data; rendering all the outer facades of the BIM model with the multiple colors, and acquiring texture images of all the outer facades of the BIM model with the multiple colors; and generating the three-dimensional BIM model shell according to the texture object.
In one embodiment, the generating a BIM model having a plurality of colors from the BIM data includes:
generating a first Node according to the BIM data, wherein the first Node comprises a plurality of triangles;
numbering the plurality of triangles;
and converting the serial number into a color value, and coloring the triangle according to the color value to obtain the BIM model with multiple colors.
Further, the numbering the plurality of triangles includes numbering with arithmetic sequence values.
In one embodiment, the rendering all of the facades of the BIM model with multiple colors, obtaining texture images of all of the facades of the BIM model with multiple colors, includes:
calculating to obtain the size of a rendering view and the size of a rendering viewport by using a bounding box algorithm;
and performing orthogonal view rendering on the BIM model with multiple colors according to the rendering view size and the rendering viewport size, and generating texture images corresponding to all the outer facades of the BIM model with multiple colors.
In one embodiment, the generating the three-dimensional BIM model shell from the texture object includes:
analyzing the texture object to obtain a triangle number corresponding to the texture object;
and reconstructing the second Node according to the triangle number to obtain the three-dimensional BIM model shell.
Further, the analyzing the texture object to obtain a triangle number corresponding to the texture object includes:
the RGBA values for each pixel in the texture object are obtained,
converting each bit in the RGBA value into 8 binary numbers;
and combining the binary numbers obtained by each bit to obtain a 32-bit binary number, wherein the 32-bit binary number is the number of the triangle.
Further, the reconstructing the second Node according to the triangle number includes:
finding out a corresponding triangle according to the triangle number, wherein the triangle comprises geometric texture information;
and re-creating the second Node according to the geometric texture information.
In one embodiment, the computer program, when executed by the processor, is further configured to perform the steps of:
sorting the texture objects in size;
setting the threshold value of the mosaic of the texture object, and carrying out mosaic on the texture object with the size smaller than the threshold value of the mosaic of the texture object by using a binary mosaic algorithm.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar contents in other embodiments may be referred to for the contents which are not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer-readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
It should be noted that the present invention is not limited to the above-mentioned preferred embodiments, and those skilled in the art can obtain other products in various forms without departing from the spirit of the present invention, but any changes in shape or structure can be made within the scope of the present invention with the same or similar technical solutions as those of the present invention.

Claims (7)

1. A three-dimensional BIM model shell extraction method is characterized by comprising the following steps:
reading BIM data in the three-dimensional BIM model, and generating the BIM model with multiple colors according to the BIM data, wherein the BIM model comprises the following steps: generating a first Node according to the BIM data, wherein the first Node comprises a plurality of triangles; numbering the plurality of triangles; converting the serial number into a color value, and coloring the triangle according to the color value to obtain a BIM model with multiple colors;
rendering all the outer facades of the BIM model with the plurality of colors, and acquiring texture images of all the outer facades of the BIM model with the plurality of colors, wherein the rendering comprises the following steps: calculating to obtain the size of a rendering view and the size of a rendering viewport by using a bounding box algorithm; performing orthogonal view rendering on the BIM with multiple colors according to the rendering view size and the rendering viewport size to generate texture images corresponding to all outer facades of the BIM with multiple colors;
generating the three-dimensional BIM model shell according to the texture object, comprising: analyzing the texture object to obtain a triangle number corresponding to the texture object; and reconstructing the second Node according to the triangle number to obtain the three-dimensional BIM model shell.
2. The method of claim 1, wherein numbering the plurality of triangles comprises numbering with arithmetic sequence values.
3. The method according to claim 1, wherein the parsing the texture object to obtain the triangle number corresponding to the texture object comprises:
the RGBA values for each pixel in the texture object are obtained,
converting each bit in the RGBA value into 8 binary numbers;
and combining the binary numbers obtained by each bit to obtain a 32-bit binary number, wherein the 32-bit binary number is the number of the triangle.
4. The method of claim 1 wherein said reconstructing a second Node from said triangle number comprises:
finding out a corresponding triangle according to the triangle number, wherein the triangle comprises geometric texture information;
and re-creating the second Node according to the geometric texture information.
5. The method of claim 1, further comprising:
sorting the texture objects in size;
setting the threshold value of the mosaic of the texture object, and carrying out mosaic on the texture object with the size smaller than the threshold value of the mosaic of the texture object by using a binary mosaic algorithm.
6. A three-dimensional BIM model shell extraction element which characterized in that includes:
the BIM model building module with multiple colors is used for reading BIM data in the three-dimensional BIM model and generating the BIM model with multiple colors according to the BIM data, and comprises the following steps: generating a first Node according to the BIM data, wherein the first Node comprises a plurality of triangles; numbering the plurality of triangles; converting the serial number into a color value, and coloring the triangle according to the color value to obtain a BIM model with multiple colors;
the model outer facade texture image obtaining module is used for rendering all outer facades of the BIM model with multiple colors and obtaining texture images of all outer facades of the BIM model with multiple colors, and comprises: calculating to obtain the size of a rendering view and the size of a rendering viewport by using a bounding box algorithm; performing orthogonal view rendering on the BIM with multiple colors according to the rendering view size and the rendering viewport size to generate texture images corresponding to all outer facades of the BIM with multiple colors;
the model shell generation module is used for generating the three-dimensional BIM model shell according to the texture object and comprises: analyzing the texture object to obtain a triangle number corresponding to the texture object; and reconstructing the second Node according to the triangle number to obtain the three-dimensional BIM model shell.
7. A computer device, comprising: memory storing a computer program and a processor being a GPU, which computer program, when executed by the processor, causes the processor to perform the steps of the method according to any of claims 1 to 5.
CN201910406575.6A 2019-05-16 2019-05-16 Three-dimensional BIM model shell extraction method and device and computer equipment Active CN110136235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910406575.6A CN110136235B (en) 2019-05-16 2019-05-16 Three-dimensional BIM model shell extraction method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910406575.6A CN110136235B (en) 2019-05-16 2019-05-16 Three-dimensional BIM model shell extraction method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN110136235A CN110136235A (en) 2019-08-16
CN110136235B true CN110136235B (en) 2023-03-31

Family

ID=67574489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910406575.6A Active CN110136235B (en) 2019-05-16 2019-05-16 Three-dimensional BIM model shell extraction method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN110136235B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116258809B (en) * 2022-12-13 2024-04-12 江苏重华数字科技有限公司 Working method of lightweight 3D model storage structure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005332028A (en) * 2004-05-18 2005-12-02 Nippon Telegr & Teleph Corp <Ntt> Method and apparatus for generating three-dimensional graphic data, generating texture image, and coding and decoding multi-dimensional data, and program therefor
CN108460823A (en) * 2018-02-11 2018-08-28 浙江科澜信息技术有限公司 A kind of display methods and system of rendering three-dimensional scenes model
CN108876931A (en) * 2017-05-12 2018-11-23 腾讯科技(深圳)有限公司 Three-dimension object color adjustment method, device, computer equipment and computer readable storage medium
CN109118569A (en) * 2018-08-16 2019-01-01 Oppo广东移动通信有限公司 Rendering method and device based on threedimensional model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005332028A (en) * 2004-05-18 2005-12-02 Nippon Telegr & Teleph Corp <Ntt> Method and apparatus for generating three-dimensional graphic data, generating texture image, and coding and decoding multi-dimensional data, and program therefor
CN108876931A (en) * 2017-05-12 2018-11-23 腾讯科技(深圳)有限公司 Three-dimension object color adjustment method, device, computer equipment and computer readable storage medium
CN108460823A (en) * 2018-02-11 2018-08-28 浙江科澜信息技术有限公司 A kind of display methods and system of rendering three-dimensional scenes model
CN109118569A (en) * 2018-08-16 2019-01-01 Oppo广东移动通信有限公司 Rendering method and device based on threedimensional model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于颜色差异的全局纹理优化方法;马东岭等;《测绘工程》;20190515(第03期);全文 *

Also Published As

Publication number Publication date
CN110136235A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN108648269B (en) Method and system for singulating three-dimensional building models
US7164420B2 (en) Ray tracing hierarchy
Kopf et al. One shot 3d photography
US10137646B2 (en) Preparing a polygon mesh for printing
Remondino From point cloud to surface: the modeling and visualization problem
Fabio From point cloud to surface: the modeling and visualization problem
US10997774B2 (en) Layered, object space, programmable and asynchronous surface property generation system
US8253730B1 (en) System and method for construction of data structures for ray tracing using bounding hierarchies
US20080180440A1 (en) Computer Graphics Shadow Volumes Using Hierarchical Occlusion Culling
CN107464286B (en) Method, device, equipment and readable medium for repairing holes in three-dimensional city model
CN112785696A (en) Three-dimensional live-action model generation method based on game engine and oblique photography data
CN113112581A (en) Texture map generation method, device and equipment for three-dimensional model and storage medium
CN113012269A (en) Three-dimensional image data rendering method and equipment based on GPU
CN114494024B (en) Image rendering method, device and equipment and storage medium
US9704290B2 (en) Deep image identifiers
CN110136235B (en) Three-dimensional BIM model shell extraction method and device and computer equipment
CN116612223B (en) Digital twin simulation space generation method, device, computer equipment and medium
CN111950057A (en) Loading method and device of Building Information Model (BIM)
KR20160068204A (en) Data processing method for mesh geometry and computer readable storage medium of recording the same
CN113593028A (en) Three-dimensional digital earth construction method for avionic display control
CN113379814A (en) Three-dimensional space relation judgment method and device
CN115496818B (en) Semantic graph compression method and device based on dynamic object segmentation
Fu et al. Dynamic shadow rendering with shadow volume optimization
CN115457189B (en) PBD (skeletal driven software) simulation system and method based on cluster coloring
US20240005601A1 (en) Hierarchical depth data generation using primitive fusion

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method, device, and computer equipment for extracting the shell of a three-dimensional BIM model

Granted publication date: 20230331

Pledgee: Industrial and Commercial Bank of China Limited Luoyang Jili Branch

Pledgor: Luoyang Zhongzhi Software Technology Co.,Ltd.

Registration number: Y2024980003551

CP03 Change of name, title or address

Address after: Floor 13, 14 and 15, building 3, lianfei building, No.1, Fenghua Road, high tech Development Zone, Luoyang City, Henan Province, 471000

Patentee after: Zhongzhi Software Co.,Ltd.

Country or region after: China

Address before: Floor 13, 14 and 15, building 3, lianfei building, No.1, Fenghua Road, Luoyang hi tech Development Zone, Luoyang City, Henan Province, 471000

Patentee before: Luoyang Zhongzhi Software Technology Co.,Ltd.

Country or region before: China