CN115115800A - BIM model simplification method and device - Google Patents

BIM model simplification method and device Download PDF

Info

Publication number
CN115115800A
CN115115800A CN202110297037.5A CN202110297037A CN115115800A CN 115115800 A CN115115800 A CN 115115800A CN 202110297037 A CN202110297037 A CN 202110297037A CN 115115800 A CN115115800 A CN 115115800A
Authority
CN
China
Prior art keywords
bim model
original
bounding box
point
corner
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110297037.5A
Other languages
Chinese (zh)
Inventor
张萌之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Glodon Co Ltd
Original Assignee
Glodon 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 Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202110297037.5A priority Critical patent/CN115115800A/en
Publication of CN115115800A publication Critical patent/CN115115800A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)

Abstract

The invention provides a BIM model simplification method and a device, and the method comprises the following steps: obtaining an original BIM model; calculating bounding box information of the original BIM model; calculating a center point of the original BIM model based on the bounding box information; determining four-corner patches by using the central point and bounding box information along the Z-axis direction of the central point; and simplifying the original BIM model based on the four-corner patches to generate a simplified BIM model. The central point of the original BIM model is determined by utilizing bounding box information of the original model, and then four corner patches which can represent plane geometric characteristics of the original BIM model most are determined to simplify the original BIM model, so that under the condition of keeping the geometric characteristics of the BIM model, the data volume of the simplified BIM model is greatly reduced, the simplification speed is high, the efficiency is high, the simplification processing of a large-scale BIM model is facilitated, the large-scale BIM model is favorably combined and applied, and the application range of the BIM model is further improved.

Description

BIM model simplification method and device
Technical Field
The invention relates to the technical field of engineering construction, in particular to a BIM model simplification method and device.
Background
In the field of Building, a Building Information model (Building Information model, abbreviated as BIM model) contains a lot of Building Information, and the BIM model can be regarded as a parameterized Building 3D geometric model. The BIM model can be used for knowing the quantity and common characteristics of the materials in real time, easily distinguishing and defining the engineering range, and is widely applied to the field of constructional engineering. An urban Information organic complex of a three-dimensional digital space is constructed based on technologies such as a BIM model and a Geographic Information System (GIS), and the CIM model includes a large number of BIM models of different building objects.
With the higher and higher precision of the BIM model, the data volume contained in the BIM model also increases rapidly, for example: in the CIM model, the number of BIM models corresponding to vegetation such as trees, shrubs, grass and the like is large, and the number of triangular patches contained in each BIM model is large, so that huge data pressure is brought to the establishment of the CIM model. Because the geometric characteristics of the vegetation such as trees, shrubs, grass and the like are not obvious and are huge in quantity, the requirement of the CIM model can be met as long as the basic characteristics such as the color and the shape of the model can be distinguished visually. Although the existing BIM model simplification method can realize the simplification of the BIM model, most of the simplification ideas aim to retain original model characteristics as much as possible, so that the data volume of the simplified BIM model is still large. Therefore, how to simplify the BIM model with unobvious geometric features such as vegetation and the like to reduce the data volume of the BIM to the maximum extent has important significance for flexible application of the BIM model.
Disclosure of Invention
In view of this, embodiments of the present invention provide a BIM model simplification method and apparatus to solve the problem that the BIM model simplified by the BIM model simplification method in the prior art has a large data volume and is not favorable for large-scale BIM model combined application.
According to a first aspect, an embodiment of the present invention provides a BIM model simplification method, including:
obtaining an original BIM model, wherein the original BIM model is a triangular mesh model;
calculating bounding box information of the original BIM model;
calculating a center point of the original BIM model based on the bounding box information;
determining a four-corner surface patch by using the central point and the bounding box information along the Z-axis direction of the central point, wherein the central point is positioned on a plane where the four-corner surface patch is positioned;
and simplifying the original BIM model based on the four corner patches to generate a simplified BIM model.
Optionally, the calculating the central point of the original BIM model based on the bounding box information includes:
respectively calculating the maximum value and the minimum value of the three-dimensional coordinates of each point on the bounding box based on the information of the bounding box;
and determining the three-dimensional coordinate of the central point based on the average value of the maximum value and the minimum value of the three-dimensional coordinate.
Optionally, the simplifying the original BIM model based on the four-corner patches to generate a simplified BIM model includes:
rotating the four-corner patches along the Z-axis direction of the central point to obtain a plurality of four-corner patches;
and generating a simplified BIM (building information modeling) model based on a plurality of four-corner patches.
Optionally, the rotating the four corner patches along the Z-axis direction of the central point to obtain a plurality of four corner patches includes:
and rotating the four-corner surface patches along the Z-axis direction of the central point according to a preset requirement to obtain a plurality of four-corner surface patches.
Optionally, the simplifying the original BIM model based on the four-corner patches to generate a simplified BIM model includes:
acquiring uv coordinates of space points in the original BIM model;
splitting the four-corner surface patch into a triangular sub-network formed by two triangular surface patches;
performing two-dimensional plane mapping on the triangular net subnet, and determining a two-dimensional image corresponding to the four corner surface patches in a two-dimensional space;
and filling texture attributes of the two-dimensional image based on the pixel points in the two-dimensional image and uv coordinates of corresponding space points in the original BIM model, and determining texture maps corresponding to the four corner patches to obtain the simplified BIM model.
Optionally, the performing texture attribute filling on the two-dimensional image based on the uv coordinates of the pixel points in the two-dimensional image and the corresponding spatial points in the original BIM model includes:
acquiring a current pixel point in the two-dimensional image;
determining a first space point corresponding to the current pixel point in the simplified BIM based on the current pixel point;
determining the coordinates of a second space point corresponding to a first space point in the original BIM model based on the coordinates of the first space point;
determining a triangular patch corresponding to the second space point according to the coordinate of the second space point;
acquiring uv coordinates of three vertexes of the triangular surface patch corresponding to the second space point, and calculating the uv coordinates corresponding to the second space point;
and determining the uv coordinates corresponding to the second space point as the texture attribute of the current pixel point.
Optionally, the calculating bounding box information of the original BIM model includes:
and calculating bounding box information of an AABB bounding box of the original BIM model, or calculating bounding box information of a bounding sphere of the original BIM model.
According to a second aspect, an embodiment of the present invention provides a BIM model simplifying apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an original BIM model which is a triangular mesh model;
the first processing module is used for calculating bounding box information of the original BIM model;
the second processing module is used for calculating the central point of the original BIM model based on the bounding box information;
the third processing module is used for determining a four-corner surface patch by using the central point and the bounding box information along the Z-axis direction of the central point, wherein the central point is positioned on a plane where the four-corner surface patch is positioned;
and the fourth processing module is used for simplifying the original BIM based on the four-corner patches to generate a simplified BIM.
According to a third aspect, embodiments of the present invention provide a non-transitory computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of the first aspect of the present invention and any one of its alternatives.
According to a fourth aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, and the processor being configured to execute the computer instructions to perform the method according to the first aspect of the present invention and any one of the alternatives thereof.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a BIM model simplification method and device, wherein an original BIM model is obtained and is a triangular mesh model; calculating bounding box information of the original BIM model; calculating a center point of the original BIM model based on the bounding box information; determining the four-corner surface patches by using the central point and the bounding box information along the Z-axis direction of the central point, wherein the central point is positioned on a plane where the four-corner surface patches are positioned; and simplifying the original BIM based on the four-corner patch to generate a simplified BIM. Therefore, the central point of the original BIM model is determined by utilizing the bounding box information of the original model, the four-corner patches which can represent the plane geometric characteristics of the original BIM model most are further determined, and then the original BIM model is simplified by utilizing the four-corner patches, so that under the condition of keeping the geometric characteristics of the BIM model, the data volume of the simplified BIM model is greatly reduced, the simplification speed is high, the efficiency is high, the simplification processing of the large-scale BIM model is facilitated, the large-scale BIM model is beneficial to combined application, and the application range of the BIM model is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a BIM model reduction method according to an embodiment of the present invention;
FIG. 2 is a diagram of an original BIM model and its bounding box according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the relationship between bounding boxes and four corner patches in an embodiment of the present invention;
FIG. 4 is a simplified BIM model according to an embodiment of the present invention;
FIG. 5 is a schematic view of a boxing process in the embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating texture attribute padding according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating determination of a point of identity using normal solution in an embodiment of the present invention;
FIG. 8 is a diagram illustrating texture mapping in accordance with an embodiment of the present invention;
FIG. 9 is a schematic diagram of a BIM model reduction apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Furthermore, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In the prior art, although the existing BIM model simplification method can realize the simplification of the BIM model, most of the simplification ideas aim to retain original model features as much as possible, so that the data volume of the simplified BIM model is still large. Such a big-data-volume BIM model is not beneficial to large-scale application of the BIM model, for example, a lot of vegetation BIM models such as trees, shrubs, grasses and the like are usually involved in the CIM model, and the vegetation is usually only used as an identifier of respective characteristics of regional buildings in the CIM model without paying attention to detailed characteristics such as shapes of branches and leaves of trees, so that the big-data-volume BIM model can greatly increase the data processing amount of the CIM model.
Based on the above problems, an embodiment of the present invention provides a BIM model simplification method, which can be used in electronic devices, such as computers, mobile phones, tablet computers, and the like, and as shown in fig. 1, the BIM model simplification method specifically includes the following steps:
step S101: an original BIM model is obtained.
The original BIM model is a triangular mesh model and is formed by splicing a plurality of triangular patches, and can be a model generated by building design software or a BIM directly imported from the outside.
Step S102: bounding box information of the original BIM model is calculated.
The bounding box of the original BIM model may adopt an AABB bounding box, that is, bounding box information of the AABB bounding box of the original BIM model is calculated, or may also adopt a bounding sphere, that is, bounding box information of the bounding sphere of the original BIM model is calculated, and in addition, other types of bounding boxes may also be selected according to actual needs and corresponding bounding box information is calculated, which is not limited by the present invention. The bounding box mentioned above, denoted bounding box in english, refers to the smallest hexahedron containing all the vertices of the model; the AABB bounding box, which is expressed as Axis-aligned bounding box in english, refers to the smallest hexahedron that contains all the vertices of the model and has 12 sides parallel to the coordinate axes. The bounding box information includes coordinate information of each point on the bounding box, and as shown in fig. 2 of the AABB bounding box, the bounding box information includes: spatial coordinate information of the vertices of the respective faces on the bounding box, and the like. In the embodiment of the present invention, the following description will be given by taking the AABB bounding box as an example, which is only taken as an example and not limited thereto.
In practical application, taking AABB bounding box as an example, the original BIM model M is subjected to 1 The bounding box of (A) is calculated to obtain a bounding box B 1 ={(x min ,y min ,z min ),(x max ,y max ,z max ) In which (x) min ,y min ,z min ) Minimum Point coordinate representing bounding Box, (x) max ,y max ,z max ) Representing the maximum point of the bounding box. The bounding box is calculated as follows: m 1 Where V denotes a vertex set and F denotes a face set. Sequentially traversing all vertexes V in V i When point coordinates x < x ═ x, y min When B is 1 X of min Is replaced by x, and equivalent point coordinates y < y min When B is 1 Y of (A) to (B) min Is replaced by y when the point coordinate z < z min When B is 1 Z of (a) min Is replaced by z, when the point coordinate x > x max When B is 1 X of max Is replaced by x, and the equivalent point coordinates y > y max When B is 1 Y of (A) to (B) max Is replaced by y, equivalently, the coordinate z > z of the current point max At time B 1 Z of (a) max Is replaced by z. The bounding box information corresponding to the original BIM model can be obtained through the process.
Step S103: based on the bounding box information, the center point of the original BIM model is calculated.
Specifically, the maximum value and the minimum value of three-dimensional coordinates of each point on the bounding box are respectively calculated based on the bounding box information; and determining the three-dimensional coordinate of the central point based on the average value of the maximum value and the minimum value of the three-dimensional coordinate. The central point of the original BIM model is a point where the three-dimensional coordinate corresponding to the average of the maximum value and the minimum value of the three-dimensional coordinate on the bounding box is located, i.e., the central point inside the AABB bounding box, and the point P shown in fig. 3 is the central point of the original BIM model.
Step S104: and determining the four-corner surface patch by using the central point and the bounding box information along the Z-axis direction of the central point.
The central point is located on the plane where the four-corner patch is located, the four-corner patch can determine the visual angle of the four-corner patch according to the visual requirement simplified by the BIM, and four vertexes of a minimum external quadrangle corresponding to the projection graph of the original BIM form the four-corner patch in the visual angle direction. Taking the AABB bounding box as an example, four vertices of a four-corner patch are all located on the bounding box, for example: the rectangular patches may be rectangular patches each including four points a, b, c, and d including the center point M as shown in fig. 3, rectangular patches each including four points h, i, j, and k, or rectangular patches each including four vertices A, B, C, D on the bounding box. The invention is not limited thereto. In practical applications, if the bounding box is a bounding sphere, the four corner patches are formed by four vertices of a minimum bounding quadrilateral shape of the bounding sphere including a sphere center, and the invention is not limited thereto.
Step S105: and simplifying the original BIM model based on the four-corner patches to generate a simplified BIM model.
The method comprises the steps of obtaining a plurality of four-corner patches, and combining the four-corner patches to obtain the simplified BIM model.
By executing the steps, the BIM model simplification method provided by the embodiment of the invention determines the central point of the original BIM model by using the bounding box information of the original model, further determines the four-corner patches which can represent the plane geometric characteristics of the original BIM model most, and then simplifies the original BIM model by using the four-corner patches, so that under the condition of keeping the geometric characteristics of the BIM model, the data volume of the simplified BIM model is greatly reduced, the simplification speed is high, the efficiency is high, the simplification processing of the large-scale BIM model is facilitated, the large-scale BIM model is beneficial to the combined application of the large-scale BIM model, and the application range of the BIM model is further improved.
Specifically, in an embodiment, the step S105 specifically includes the following steps:
step S201: and rotating the four-corner patches along the Z-axis direction of the central point to obtain a plurality of four-corner patches.
Specifically, the four-corner patches are rotated according to a preset requirement along the Z-axis direction of the central point to obtain a plurality of four-corner patches. The preset requirement may be that the same or different rotation angles are set to rotate the four corner patches, for example, n four corner patches intersecting with the longitudinal axis may be obtained by rotating the four corner patches by the same angle δ, where an angle formed by every two adjacent four corner patches is δ, and fig. 4 shows a schematic diagram of obtaining 3 four corner patches by rotating the four corner patches. In addition, in practical applications, the preset requirement may be to determine the number of the four corner patches according to a predetermined algorithm setting requirement, and further determine a rotation manner of the four corner patches, and the present invention is not limited thereto.
Step S202: and generating a simplified BIM (building information modeling) model based on the plurality of four-corner patches.
As shown in fig. 4, the simplified BIM model is a three-dimensional model formed by all the intersecting four corner patches. Therefore, the four-corner patches with different numbers can be obtained through rotation according to the requirement of model simplified data volume, so that the BIM model can be simplified as required, and the model simplification requirements of different users can be met.
Specifically, in an embodiment, the step S105 further includes the following steps:
step S301: and acquiring uv coordinates of the space points in the original BIM model.
And the uv coordinates of the space points in the original BIM model are texture information corresponding to the space points.
Step S302: and splitting the four corner patches into triangular subnets formed by two triangular patches.
Each four-corner surface patch consists of two connected triangular surface patches, called as a triangular subnet, and then n four-corner surface patches can generate n triangular subnets, wherein n is a positive integer.
Step S303: and performing two-dimensional plane mapping on the triangular net subnet, and determining a two-dimensional image corresponding to the four-corner surface patch in a two-dimensional space.
Specifically, a preset binning algorithm may be adopted to determine the two-dimensional image corresponding to the simplified BIM model in the two-dimensional space. All the images in the triangulation sub-network are put into a user-input area, which is usually m × m, where m represents the number of image side edges, for example, by Guillotine Algorithm. The specific boxing process is as follows:
in the first step, width and height rectangles R ═ w, h are given to the user, and the triangulation network subnet sequence obtained in the above steps.
Secondly, a two-dimensional bounding box rectangle R of a triangular sub-grid in the triangular sub-grid sequence is formed i Put into the lower left corner or any other corner of R as shown in FIG. 5, and cut R away from R i To obtain R/R i
Third, cutting R/R transversely or longitudinally i Two sub-rectangles are obtained. Continue to put the next R i Trying to put the sub-rectangles into all the obtained sub-rectangles, returning to the second step until all R corresponding to the triangulation sub-nets in the triangulation sub-net sequence i And generating a two-dimensional image after all the distribution is finished. So far, each vertex of the three-dimensional grid of the simplified BIM model, namely the vertex of each four-corner patch, has a unique mapping in the two-dimensional image, and the coordinates (u, v) are used for representing texture coordinates of the vertex of the grid, so that a texture image basis is provided for subsequent texture mapping.
Step S304: and based on the uv coordinates of the pixel points in the two-dimensional image and the corresponding space points in the original BIM model, performing texture attribute filling on the two-dimensional image, and determining texture maps corresponding to the four corner patches to obtain the simplified BIM model.
Specifically, the step S304 is implemented by the following steps: acquiring a current pixel point in a two-dimensional image; determining a first space point corresponding to the current pixel point in the BIM based on the current pixel point; determining the coordinates of a second space point corresponding to the first space point in the BIM original model based on the coordinates of the first space point; determining a triangular patch corresponding to the second space point according to the coordinate of the second space point; acquiring uv coordinates of three vertexes of the triangular surface patch corresponding to the second space point, and calculating the uv coordinates corresponding to the second space point; and determining the uv coordinates corresponding to the second space point as the texture attribute of the current pixel point.
In practical application, as shown in fig. 6, for a texture image corresponding to the simplified BIM model, traversing each pixel in the image, and obtaining a corresponding spatial point r on the simplified BIM model through affine interpolation 2 Then, obtaining the simplified pre-model, namely the corresponding point r on the BIM original model by the corresponding method of the homonymy point 1 Then likewise by means of affine interpolation from this point r 1 The uv values of the three vertexes of the triangular patch are calculated to obtain r 1 And (4) writing the uv value in the original texture image into the simplified texture image according to the uv value of the point in the original texture image.
The affine interpolation method is calculated as follows:
according to the coordinates v of three vertexes of the triangle 1 v 2 v 3 And a uv value uv corresponding to each vertex 1 uv 2 uv 3 The uv coordinates of the triangle interior points v are calculated. Wherein v is i =(x i ,y i ) And v ═ x, y can be calculated
x=λ 1 x 12 x 23 x 3
y=λ 1 y 12 y 23 y 3
λ 123 =1
By calculating to obtain λ 1 ,λ 2 ,λ 3
Figure BDA0002984738030000141
Figure BDA0002984738030000142
λ 3 =1-λ 12
Uv coordinates of v can be obtained
Figure BDA0002984738030000143
The above affine interpolation method is a prior art, and specific reference may be made to the related description of the prior art, and detailed description thereof is omitted here.
When determining the corresponding relationship between the BIM original model and the simplified BIM model with the same name, the used method may be intersection or the method using the closest distance, or a combination of the two methods, which is not limited in the present invention.
The above affine interpolation method is also used in a normal intersection method, based on v 1 v 2 v 3 Three vertices calculating the Normal of the vertex v
Figure BDA0002984738030000144
Using likewise λ 1 ,λ 2 ,λ 3
The normal vector of v can be obtained
Figure BDA0002984738030000145
Coordinates of the object
Figure BDA0002984738030000146
According to the mapping point v and the normal vector on the simplified BIM model M2
Figure BDA0002984738030000147
Finding original BIM model M 1 The method of the above homologous point may use the following method:
1. normal intersection method, as shown in FIG. 7, from M 2 At point A in the normal direction of point A
Figure BDA0002984738030000151
For emitting rays in a direction, the ray is summed with M 1 The intersection point A' can be accelerated in the intersection process by using an octree, a kd-tree or other methods, and the time required for building the tree can be avoided by traversing a search patch when aiming at a small model, so that the efficiency is improved。
2. The nearest distance method can use a standby method 'nearest distance' to search for the homonymous point when the normal intersection method fails in the embodiment of the invention. The mixed use mode can ensure that pixel points in all texture islands on the generated texture map have corresponding pixel values in the queryable original texture. The specific implementation processes of the normal intersection method and the nearest distance method are described in the prior art, and are not described herein again.
By obtaining the pixel relationship between the simplified texture image and the texture image before simplification, each pixel point of the simplified texture image can be filled in turn in a traversing manner, so that a final simplified texture map is obtained as shown in fig. 8, and finally the obtained simplified model and the texture map are output. Therefore, texture attributes of a two-dimensional image corresponding to a two-dimensional space are filled by using the simplified BIM to obtain a texture map of the simplified BIM, so that texture information of the original BIM, such as vegetation color and the like, can be better reserved.
By executing the steps, the BIM model simplification method provided by the embodiment of the invention determines the central point of the original BIM model by using the bounding box information of the original model, further determines the four-corner patches which can represent the plane geometric characteristics of the original BIM model most, and then simplifies the original BIM model by using the four-corner patches, so that under the condition of keeping the geometric characteristics of the BIM model, the data volume of the simplified BIM model is greatly reduced, the simplification speed is high, the efficiency is high, the simplification processing of the large-scale BIM model is facilitated, the large-scale BIM model is beneficial to the combined application of the large-scale BIM model, and the application range of the BIM model is further improved.
An embodiment of the present invention further provides a BIM model simplifying apparatus, as shown in fig. 9, the BIM model simplifying apparatus includes:
the first obtaining module 101 is configured to obtain an original BIM model, where the original BIM model is a triangular mesh model. For details, refer to the related description of step S101 in the above method embodiment. And will not be described in detail herein.
A first processing module 10 for calculating bounding box information of the original BIM model. For details, refer to the related description of step S102 in the above method embodiment. And will not be described in detail herein.
And the second processing module 103 is used for calculating the central point of the original BIM model based on the bounding box information. For details, refer to the related description of step S103 in the above method embodiment. And will not be described in detail herein.
And the third processing module 104 is configured to determine the four corner patches by using the central point and the bounding box information along the Z-axis direction of the central point, where the central point is located on a plane where the four corner patches are located. For details, refer to the related description of step S104 in the above method embodiment. And will not be described in detail herein.
And a fourth processing module 105, configured to simplify the original BIM model based on the four-corner patches, and generate a simplified BIM model. For details, refer to the related description of step S105 in the above method embodiment. And will not be described in detail herein.
Further functional descriptions of the modules are the same as those of the corresponding method embodiments, and are not repeated herein.
Through the cooperative cooperation of the above components, the BIM model simplifying apparatus provided by the embodiment of the present invention determines the central point of the original BIM model by using the bounding box information of the original model, further determines the four corner patches that can represent the planar geometric features of the original BIM model most, and then simplifies the original BIM model by using the four corner patches, so that under the condition of keeping the geometric features of the BIM model, the data volume of the simplified BIM model is greatly reduced, the simplification speed is high, the efficiency is high, the large-scale BIM model is conveniently simplified, the large-scale BIM model is beneficial to the combined application of the large-scale BIM model, and the application range of the BIM model is further improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 10, the electronic device may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 10 takes the connection by the bus as an example.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present invention. The processor 901 executes various functional applications and data processing of the processor, i.e., implements the above-described method, by executing non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods described above.
The specific details of the electronic device may be understood by referring to the corresponding related description and effects in the above method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (10)

1. A BIM model simplification method is characterized by comprising the following steps:
obtaining an original BIM model, wherein the original BIM model is a triangular mesh model;
calculating bounding box information of the original BIM model;
calculating a center point of the original BIM model based on the bounding box information;
determining a four-corner surface patch by using the central point and the bounding box information along the Z-axis direction of the central point, wherein the central point is positioned on a plane where the four-corner surface patch is positioned;
and simplifying the original BIM model based on the four corner patches to generate a simplified BIM model.
2. The method of claim 1, wherein calculating the center point of the original BIM model based on the bounding box information comprises:
respectively calculating the maximum value and the minimum value of three-dimensional coordinates of each point on the bounding box based on the bounding box information;
and determining the three-dimensional coordinate of the central point based on the average value of the maximum value and the minimum value of the three-dimensional coordinate.
3. The method of claim 1, wherein the simplifying the original BIM model based on the four corner patches to generate a simplified BIM model comprises:
rotating the four-corner patches along the Z-axis direction of the central point to obtain a plurality of four-corner patches;
and generating a simplified BIM (building information modeling) model based on a plurality of four-corner patches.
4. The method of claim 3, wherein rotating the four corner patches along the Z-axis of the center point to obtain a plurality of four corner patches comprises:
and rotating the four-corner patches according to a preset requirement along the Z-axis direction of the central point to obtain a plurality of four-corner patches.
5. The method of claim 1, wherein the simplifying the original BIM model based on the four corner patches to generate a simplified BIM model comprises:
acquiring uv coordinates of space points in the original BIM model;
splitting the four-corner surface patch into a triangular sub-network formed by two triangular surface patches;
performing two-dimensional plane mapping on the triangular net subnet, and determining a two-dimensional image corresponding to the four corner surface patches in a two-dimensional space;
and filling texture attributes of the two-dimensional image based on the pixel points in the two-dimensional image and uv coordinates of corresponding space points in the original BIM model, and determining texture maps corresponding to the four corner patches to obtain the simplified BIM model.
6. The method of claim 5, wherein the texture attribute filling of the two-dimensional image based on uv coordinates of pixel points in the two-dimensional image and corresponding spatial points in the original BIM model comprises:
acquiring a current pixel point in the two-dimensional image;
determining a first space point corresponding to the current pixel point in the simplified BIM based on the current pixel point;
determining the coordinates of a second space point corresponding to a first space point in the original BIM model based on the coordinates of the first space point;
determining a triangular patch corresponding to the second space point according to the coordinate of the second space point;
acquiring uv coordinates of three vertexes of the triangular surface patch corresponding to the second space point, and calculating the uv coordinates corresponding to the second space point;
and determining the uv coordinates corresponding to the second space point as the texture attribute of the current pixel point.
7. The method according to claim 1, wherein the calculating bounding box information of the original BIM model comprises:
and calculating bounding box information of an AABB bounding box of the original BIM model, or calculating bounding box information of a bounding sphere of the original BIM model.
8. A BIM model reduction apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an original BIM model which is a triangular mesh model;
the first processing module is used for calculating bounding box information of the original BIM model;
the second processing module is used for calculating the central point of the original BIM model based on the bounding box information;
the third processing module is used for determining a four-corner surface patch by using the central point and the bounding box information along the Z-axis direction of the central point, wherein the central point is positioned on a plane where the four-corner surface patch is positioned;
and the fourth processing module is used for simplifying the original BIM based on the four-corner patches to generate a simplified BIM.
9. A non-transitory computer-readable storage medium storing computer instructions that, when executed by a processor, implement the method of any one of claims 1-7.
10. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the method of any of claims 1-7 by executing the computer instructions.
CN202110297037.5A 2021-03-19 2021-03-19 BIM model simplification method and device Pending CN115115800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110297037.5A CN115115800A (en) 2021-03-19 2021-03-19 BIM model simplification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110297037.5A CN115115800A (en) 2021-03-19 2021-03-19 BIM model simplification method and device

Publications (1)

Publication Number Publication Date
CN115115800A true CN115115800A (en) 2022-09-27

Family

ID=83324536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110297037.5A Pending CN115115800A (en) 2021-03-19 2021-03-19 BIM model simplification method and device

Country Status (1)

Country Link
CN (1) CN115115800A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544411A (en) * 2022-11-07 2022-12-30 中交第四航务工程勘察设计院有限公司 Rapid loading and displaying method and system of webpage-side BIM (building information modeling)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544411A (en) * 2022-11-07 2022-12-30 中交第四航务工程勘察设计院有限公司 Rapid loading and displaying method and system of webpage-side BIM (building information modeling)
CN115544411B (en) * 2022-11-07 2023-03-10 中交第四航务工程勘察设计院有限公司 Rapid loading and displaying method and system of webpage-side BIM (building information modeling)

Similar Documents

Publication Publication Date Title
CN112561788B (en) Two-dimensional unfolding method of BIM model and texture mapping method and device
CN107358649B (en) Processing method and device of terrain file
US20070182734A1 (en) Adaptive Quadtree-based Scalable Surface Rendering
WO2022021309A1 (en) Method and apparatus for establishing model, electronic device, and computer readable storage medium
US9311748B2 (en) Method and system for generating and storing data objects for multi-resolution geometry in a three dimensional model
CN114627219A (en) Rendering method and device of three-dimensional scene data, storage medium and electronic device
WO2024067209A1 (en) Three-dimensional model unfolding method and apparatus, device, computer-readable storage medium, and computer program product
CN115222806B (en) Polygon processing method, device, equipment and computer readable storage medium
CN116416366A (en) 3D model construction method and device and electronic equipment
CN113256782A (en) Three-dimensional model generation method and device, storage medium and electronic equipment
CN114241151A (en) Three-dimensional model simplification method and device, computer equipment and computer storage medium
CN116385672A (en) Construction method of three-dimensional terrain scene model data product
CN115578536A (en) Node merging method and device for layered and partitioned three-dimensional model and electronic device
CN110675323B (en) Three-dimensional map semantic processing method, system, equipment and computer medium
US20200211256A1 (en) Apparatus and method for generating 3d geographic data
CN115115800A (en) BIM model simplification method and device
CN113744403A (en) Method and system for generating three-dimensional model of building
US20230351696A1 (en) Data processing method and apparatus, device, computer-readable storage medium, and computer program product
CN109448135A (en) A method of the threedimensional model repairing based on multi-source data
CN112687007A (en) LOD technology-based stereo grid map generation method
CN111754617A (en) Method and system for optimizing large-volume BIM model data
CN117152237A (en) Distance field generation method and device, electronic equipment and storage medium
CN115619986B (en) Scene roaming method, device, equipment and medium
CN110930509A (en) Linear quad-tree multilayer model driven DEM (digital elevation model) real-time visualization method
CN112967396A (en) Mirror reflection-based 3D model spherical surface area-preserving parameterization method and system

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