Building modeling method, electronic device and computer storage medium

By obtaining sketch lines and using neural network algorithms to identify building types, parametric modeling is performed based on this type, which solves the complex and unrealistic problems of existing building modeling methods and achieves a flexible and realistic modeling process and model generation. .

CN114021222BActive Publication Date: 2024-10-15SHENZHEN INST OF ADVANCED TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111161670.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-10-15
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

Existing building modeling methods are complex and produce unrealistic models that cannot feature complex details and structures.

Method used

By obtaining sketch lines, the neural network algorithm is used to determine the building type, and parametric modeling is performed based on the type to generate an architectural model. The method includes detecting user drawing actions or analyzing architectural pictures to obtain sketch lines, identifying building types, and generating a three-dimensional model through parametric modeling.

Benefits of technology

It achieves the flexibility of the modeling process and the authenticity of the model, reduces the need for users to input complex algorithms, and improves the modeling efficiency and the richness of model details.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021222B_ABST
    Figure CN114021222B_ABST
Patent Text Reader

Abstract

The present application relates to a building modeling method, electronic equipment and computer storage medium, the modeling method comprising: obtaining sketch lines; using a neural network algorithm to determine the building type corresponding to the sketch lines, the building type including main body type, roof type and other types; performing parametric modeling on the sketch lines based on the determined building type to generate a building model. The modeling method of the present application can simulate a more realistic building.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of modeling. More specifically, the present application relates to a building modeling method, an electronic device and a computer storage medium. Background Art

[0002] The application background of architectural modeling technology is to allow users to freely draw building models that do not exist in real life based on aesthetics and engineering experience, and rely on the assistance of modeling algorithms to achieve efficient output. The current building modeling methods are mainly divided into rule-based parametric modeling, data-driven building reconstruction and hand-drawn sketch-based modeling.

[0003] In parametric modeling, a programmatic syntax is set to generate a building model. When modeling, a specific syntax needs to be entered to build the model. This method is time-consuming and labor-intensive, and the generated model is fixed and cannot have complex details and structures. Sketch modeling uses a three-dimensional algorithm to build a three-dimensional model through a drawn sketch. The algorithm required by this method is too complex, and the authenticity of the model built is not high. Summary of the invention

[0004] The present application provides a building modeling method, electronic equipment and computer storage medium to solve the problem that the existing building modeling process is complicated and unrealistic.

[0005] In order to solve the above technical problems, the present application proposes a building modeling method, which includes: obtaining sketch lines; using a neural network algorithm to determine the building type corresponding to the sketch lines, the building type including main body type, roof type and other types; based on the determined building type, parametrically modeling the sketch lines to generate a building model.

[0006] In one embodiment, obtaining the sketch lines includes: detecting a user's drawing action to obtain the sketch lines; or analyzing a building picture to obtain the sketch lines in the building picture.

[0007] In one embodiment, the modeling method further includes: detecting an operation gesture of a user to transform the shape of the building model based on the operation gesture.

[0008] In one embodiment, the modeling method further includes: displaying a building detail selection menu; obtaining a selection event through the building detail selection menu to adjust the building details of the building model based on the selection event, the building details including window types or exterior wall textures.

[0009] In one embodiment, the step of obtaining sketch lines, determining the building type corresponding to the sketch lines using a neural network algorithm, and parametrically modeling the sketch lines based on the determined building type to generate a building model includes: obtaining top-level shape lines from the sketch lines; determining that the building type corresponding to the top-level shape lines is a main body type using a neural network algorithm; and parametrically modeling the top-level shape lines based on the main body type to generate a main building model.

[0010] In one embodiment, obtaining the top-level shape lines in the sketch lines includes: obtaining regular top-level shape lines in the sketch lines; using a neural network algorithm to determine that the building type corresponding to the top-level shape lines is a main body type includes: using a neural network algorithm to determine that the building type corresponding to the top-level shape lines is a regular main body type; parameterizing the top-level shape lines based on the main body type to generate a building main body model includes: fitting the regular top-level shape lines to generate polygons or circles, and generating polygons or cylinders based on the polygons or circles to form a building main body model.

[0011] In one embodiment, obtaining the top-level shape lines in the sketch lines includes: obtaining irregular top-level shape lines in the sketch lines; using a neural network algorithm to determine that the building type corresponding to the top-level shape lines is a main body type includes: using a neural network algorithm to determine that the building type corresponding to the top-level shape lines is an irregular main body type; parameterizing the top-level shape lines based on the main body type to generate a main building model includes: dividing the irregular top-level shape lines into multiple line segments, generating a main exterior wall from each line segment to form a main building model.

[0012] In one embodiment, obtaining the top-level shape lines in the sketch lines includes: obtaining the top-level shape lines and downwardly extending lines in the sketch lines; and parametrically modeling the top-level shape lines based on the main body type to generate a building main body model includes: generating the top layer of the building main body model with the top-level shape lines, and generating the outer wall of the building main body model with downwardly extending lines to constitute the building main body model.

[0013] In one embodiment, the step of obtaining sketch lines, determining the building type corresponding to the sketch lines using a neural network algorithm, and performing parameterized modeling on the sketch lines based on the determined building type to generate a building model also includes: obtaining roof shape lines in the sketch lines; determining that the building type corresponding to the roof shape lines is a roof type using a neural network algorithm; performing parameterized modeling on the roof shape lines based on the roof type to generate a building roof model; and fusing the building main body model and the building roof model if the building main body model and the building roof model meet preset conditions.

[0014] In one embodiment, the step of obtaining sketch lines, determining the building type corresponding to the sketch lines using a neural network algorithm, and parametrically modeling the sketch lines based on the determined building type to generate a building model also includes: obtaining wavy lines in the sketch lines; determining that the building type corresponding to the wavy lines is other types using a neural network algorithm, wherein the other type is a staircase type; and parametrically modeling the wavy lines based on the staircase type to generate a building staircase model, wherein the building staircase model is connected to the main building model.

[0015] In one embodiment, the obtaining of sketch lines includes: obtaining a plurality of sketch lines; the performing of parametric modeling on the sketch lines based on the determined building types to generate a building model includes: performing parametric modeling on the plurality of sketch lines based on the determined plurality of building types to generate a plurality of building models; the modeling method further includes: if the distance between the plurality of building models is less than a threshold value, dividing the plurality of building models into the same hierarchical tree structure.

[0016] In order to solve the above technical problems, the present application proposes an electronic device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the steps of the above method.

[0017] In order to solve the above technical problem, the present application proposes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is executed to implement the steps of the above method.

[0018] Different from the prior art, the modeling method of the present application first obtains sketch lines; uses a neural network algorithm to determine the building type corresponding to the sketch lines, which includes main body type, roof type, and other types; and parametrically models the sketch lines based on the determined building type to generate a building model. The acquisition of sketch lines in the modeling method of the present application makes modeling more flexible, and the sketch lines are divided into types and then parametrically modeled, making the model more realistic. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0020] Figure 1 It is a flow chart of an embodiment of a building modeling method of the present application;

[0021] Figure 2 It is a schematic diagram of modeling based on a building picture in the modeling method of the present application;

[0022] Figure 3 It is a schematic diagram of modeling based on sketch lines in the modeling method of the present application;

[0023] Figure 4 It is a schematic diagram corresponding to the sketch lines of different building types in the modeling method of this application;

[0024] Figure 5 It is a schematic diagram of the network structure for identifying different building types in the modeling method of this application;

[0025] Figure 6 It is a schematic diagram of modeling irregular top layer shape lines in the modeling method of the present application;

[0026] Figure 7 It is a schematic diagram of modeling the top shape lines and the downward extending lines in the modeling method of the present application;

[0027] Figure 8 It is a schematic diagram of modeling the roof shape lines in the modeling method of the present application;

[0028] Fig. 9 It is a schematic diagram of the model structure after the building model is integrated in the modeling method of this application;

[0029] Fig.10 It is a hierarchical tree structure diagram of the building model in the modeling method of the present application;

[0030] Fig.11 is a flow chart of another embodiment of the building modeling method of the present application;

[0031] Fig.12 It is a schematic diagram of the user interaction interface in the modeling method of this application;

[0032] Fig.13 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0033] Fig.14It is a structural diagram of an embodiment of the computer storage medium of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0035] The specific implementation of the present disclosure is described in detail below with reference to the accompanying drawings. Figure 1 , Figure 1 The figure is a flow chart of an embodiment of a building modeling method of the present application. The modeling method of the embodiment includes the following steps.

[0036] S11: Get sketch lines.

[0037] The sketch lines obtained in this step are two-dimensional sketches. In the following steps, the two-dimensional sketches are converted into complex three-dimensional shapes by combining parametric modeling methods, without the need to design complex deep learning algorithms. There may be many ways to obtain the sketch lines in this step depending on the application. For example, the user's drawing actions can be detected to obtain the sketch lines, that is, the user draws the model himself. Please refer to Figure 3 , Figure 3 It is a schematic diagram of modeling based on sketch lines in the modeling method of this application.

[0038] Figure 3 In (a) the user draws lines to outline the main shape of the building. (bd) the system automatically interprets the lines drawn by the user and then generates a specific building model using a parametric modeling method. At the same time, the user draws new lines to create more building elements. (e) The generated building elements can be freely moved and rotated by the user and then combined together to form a more complex building model.

[0039] User-drawn modeling can further utilize VR technology, where the user can draw directly in the air. Specifically, the Leap Motion device can capture the position of the user's hands in the air in real time.

[0040] You can also analyze architectural pictures to obtain the sketch lines in the architectural pictures, so that you can build models based on the architectural pictures. The results of modeling based on architectural pictures can be found in Figure 2 , Figure 2 It is a schematic diagram of modeling based on building pictures in the modeling method of this application.

[0041] S12: Using a neural network algorithm to determine the building type corresponding to the sketch line, the building type includes main body type, roof type and other types.

[0042] In this embodiment, the building is modularized and mainly divided into main body type, roof type and other types, and other types may include staircase type. Specifically in this embodiment, the sketch line can represent 10 different building types, including 3 main body types (cube, cylinder and free body), 6 roof types (triangular roof, conical roof, pyramid roof, terrace roof, truncated cone roof and ellipsoid roof), and 1 other type (staircase).

[0043] See also Figure 4 , Figure 4 1 is a schematic diagram of the sketch lines corresponding to different building types in the modeling method of the present application, which shows 10 pre-defined building types and corresponding line drawing designs. (ac) are the cube, ellipsoid and free body in the building body. (di) are the triangular top, conical top, pyramid top, terrace top, truncated cone top and ellipsoid top. (e) is a staircase.

[0044] In this step S12, a recognition neural network based on LSTM is specifically used to infer the building type corresponding to the sketch line. Figure 5 , Figure 5 It is a schematic diagram of the network structure for identifying different building types in the modeling method of this application. The network takes multiple lines as input and then outputs the type number that best matches it. As data preprocessing, in this embodiment, all vertices contained in the input lines are normalized into a unit ball and then sent to the recognition network. The network then outputs a 10-dimensional vector representing the possible probabilities of 10 different drawing types, and then selects the type with the highest probability to generate the corresponding set graph. The network uses cross entropy as the output function and is composed of common neural network units, including two LSTM units using the Relu activation function, two fully connected units, and an output unit using the argmax function as output.

[0045] S13: Parametrically modeling the sketch lines based on the determined building type to generate a building model.

[0046] After the above step S12 infers the building type corresponding to the sketch line, in this step S13, a geometric model matching the current line shape can be automatically synthesized, that is, a building model is generated. In this process, parametric modeling is specifically adopted, and parametric modeling is to set a programmed rule grammar to correspond to modeling. The difference between this application and the existing parametric modeling method is that the building type corresponding to the sketch line is automatically identified in this application, and parametric modeling can be directly performed according to the corresponding building type. There is no need to manually input the preset rule grammar.

[0047] In the parametric modeling process, if the geometric parameters can be obtained from the sketch lines, the obtained geometric parameters are used. For example, the height and inclination angle of the main body and the roof can be directly obtained from the three-dimensional lines. If they cannot be obtained, the default parameters are used.

[0048] This embodiment can realize the modeling of main body type, roof type and other types. The details are as follows:

[0049] For the principal type.

[0050] First, a top-level shape line in the sketch line is obtained, and the top-level shape line can be a regular top-level shape line or an irregular top-level shape line.

[0051] Then, a neural network algorithm is used to determine that the building type corresponding to the top-level shape lines is a main body type, including a regular main body type and an irregular main body type.

[0052] Finally, the top-level shape lines are parametrically modeled based on the main body type to generate the main building model.

[0053] For regular top-level shape lines, specifically circles or polygons, the regular top-level shape lines are fitted to generate polygons or circles, and polygons or cylinders are generated based on the polygons or circles to form the main building model.

[0054] For irregular top-level shape lines, the irregular top-level shape lines are specifically divided into multiple line segments, and each line segment generates a main exterior wall to form the main building model. Figure 6 , Figure 6 Schematic diagram of modeling irregular top-level shape lines in the modeling method of the present application. The result of segmenting the lines representing the free body using PointNet as the segmentation network. (a) Lines depicting the top-level shape of the free body. (b) The segmentation result of the line using the PointNet network includes curve points, straight line points and corner points. (c) The generated building body.

[0055] In this embodiment, irregular lines are allowed to be drawn to design a building main body with a freer top shape, which can be called a free body. However, unlike other main bodies with regular geometric structures, the top line shape of a free body is usually arbitrary, and it is generally difficult to directly generate the corresponding exterior wall based on such lines. In order to solve this problem, this embodiment assumes that the lines representing the free body can be divided into a relatively regular array of line segments, namely straight line segments and curve segments. Therefore, the lines representing the top shape will first be automatically divided into several line segments, and then the exterior walls will be generated from each line segment, and finally together constitute the final building main body. We divide each vertex into three categories according to the local characteristics of the line vertex, namely corner points, curve points and straight line points, and use PointNet as a point set segmentation network to perform segmentation processing. After the line segmentation is completed, we directly fit the continuous straight line points into a straight line, and then use the spline interpolation algorithm to smooth the curve segments, and then the free body building top surface can be formed.

[0056] If there are only top-level shape lines, the main exterior wall is generated at a default angle. In this embodiment, the main model can also be generated based on the top-level shape lines and the downward extending lines in the sketch lines, specifically, the top layer of the main building model is generated with the top-level shape lines, and the outer circle of the main building model is generated with the downward extending lines to form the main building model.

[0057] See also Figure 7 , Figure 7 This is a schematic diagram of modeling the top-level shape lines and downward-extending lines in the modeling method of this application. That is, when creating a building body, the user can draw a line to outline the shape of the top of the building body, and can also add several downward lines at the same time to determine the angle of the corresponding exterior wall.

[0058] This embodiment currently implements the modeling of three main building elements, including regular bodies: cubes, cylinders, and irregular bodies: free bodies. The top shape of the main building can be described by a line, and several additional downward lines can be drawn to specify the height and inclination angle of the exterior wall. The order in which the lines are drawn can be arbitrary, because the lines representing the top shape can be directly located and identified according to their highest Y-axis position.

[0059] When constructing the top shape of the main building, we first project the top lines to a horizontal position of uniform height, and then use rectangles, ellipses, straight lines, and cubic spline curves to fit cubes, cylinders, and free bodies according to the line type. For cubes, we first find the minimum convex hull of the top shape lines, and then use the rotating caliper algorithm to find the outer rectangle of the minimum area of ​​the convex hull. For cylinders, the top lines are fitted using the ellipse fitting of the least squares algorithm. For free bodies, the top shape is segmented and fitted.

[0060] The building facade structure can be determined by the additional downward lines drawn by the user. In the simplest case, if the user only draws the top line, the system will automatically generate a vertical facade with a default height. If additional lines exist, they can create facade structures with more varying tilt angles. The specific implementation of the tilted facade is created by connecting the downward lines with the nearest fitted top line. The final height of the facade is obtained by the average height of all downward lines.

[0061] For roof type

[0062] Firstly, the roof shape lines in the sketch lines are obtained; then the neural network algorithm is used to determine that the building type corresponding to the roof shape lines is the roof type; finally, the roof shape lines are parametrically modeled based on the roof type to generate a building roof model.

[0063] This embodiment supports the creation of multiple different types of roofs. For each type, a specific drawing style is specified to depict the overall shape characteristics of the roof to facilitate recognition by the recognition network. For example, to create a conical roof, two downward lines can be used to draw its sides, and then the corresponding geometric shape roof is generated based on the three-dimensional line structure. Users do not need to draw strictly according to the rules. On the contrary, the lines drawn freely by the user can help generate more styles of roofs. In addition, users can flexibly combine simple roofs to form a roof with a more complex shape.

[0064] See also Figure 8 , Figure 8 Schematic diagram of modeling the roof shape lines in the modeling method of the present application. Schematic diagram of diverse roofs and roof combinations generated by different lines. (ad) Four roofs generated by different three-dimensional strokes. (e) A complex roof composed of four simple roofs.

[0065] In addition, if the main building model and the building roof model meet the preset conditions, the main building model and the building roof model will be merged. If the shapes of the two are close enough and the main body type and the roof type are compatible with each other, the system will automatically adjust the bottom shape of the roof to adapt to the shape of the main building below it, such as a cube and a pyramid top, or a cylinder and an ellipsoid top. In other cases, if the two types are inconsistent and the distance between them is less than a threshold, we simply adsorb the roof as an independent component to the adjacent main building. See Fig. 9 , Fig. 9 It is a schematic diagram of the model structure after the building model is integrated in the modeling method of this application.

[0066] For other types, stair type

[0067] First, the wavy lines in the sketch lines are obtained, and then the neural network algorithm is used to determine that the building model corresponding to the wavy lines is a staircase type; finally, the wavy lines are parametrically modeled based on the staircase type to generate a building staircase model, and the building staircase model is connected to the main building model.

[0068] In this embodiment, wavy lines are used to represent stairs, and stairs can be further limited to be generated only at positions closely connected to the outer wall. The stair model is obtained from a pre-prepared model library, and the actual number of floors of the stair is the same as the number of floors of the outer wall to which it is attached.

[0069] In order to better manage and assemble multiple building elements, we use a hierarchical tree structure to describe the building. First, multiple sketch lines are obtained; then, based on the determined multiple building types, multiple sketch lines are parametrically modeled to generate multiple building models; wherein, if the distance between multiple building models is less than a threshold, the multiple building models are divided into the same hierarchical tree structure. Fig.10 , Fig.10 It is a schematic diagram of the hierarchical tree structure of the building model in the modeling method of this application.

[0070] The root of the tree in the hierarchical tree structure is usually the first element created by the user through sketching. Every time the user creates a new object or moves an existing object, the hierarchy is immediately updated. We stipulate that when the minimum distance between the surfaces of two building elements is less than a small threshold, they automatically become objects belonging to the same hierarchy. In addition, our system can easily simulate building complexes using multiple hierarchical tree structures. If a new building element has no adjacent elements around it, it will be created as the root element of a new tree.

[0071] This embodiment combines 3D sketches with deep learning, which minimizes the accuracy requirements of 3D sketches, frees users from the creation of low-level model details, and allows them to focus more on the high-level semantics of the overall shape design of the building. It also provides a new way of building modeling, which decomposes the modeling task into a step-by-step building module design problem and a combination problem between different modules. It further proposes a novel aerial hand-drawn sketch system to facilitate novice users to intuitively create 3D building models. This is the first exploration of building modeling technology in the field of virtual reality.

[0072] See also Fig.11 , Fig.11 1 is a flow chart of another embodiment of the building modeling method of the present application. The modeling method of this embodiment includes:

[0073] S21: Get sketch lines.

[0074] S22: Determine the building model corresponding to the sketch lines using a neural network algorithm, where the building model includes a main body type, a roof type, and other types.

[0075] S23: Parametrically modeling the sketch lines based on the determined building type to generate a building model.

[0076] The above steps are similar to those in the above embodiment and will not be described in detail.

[0077] S24: Detecting the user's operation gesture to transform the shape of the building model based on the operation gesture.

[0078] Users can use gestures to rotate, shift, and perform other operations on the building model.

[0079] S25: Display a building detail selection menu.

[0080] S26: Obtain a selection event through the building detail selection menu to adjust the building details of the building model based on the selection event, where the building details include window types or exterior wall types.

[0081] See also Fig.12 , Fig.12 The actual operation interface and UI menu of the present invention allow users to adjust the building appearance and some modeling parameters, such as window type, exterior wall texture, floor height, etc.

[0082] This embodiment combines the sketch input that is easy for users to understand with parametric building modeling, and adopts gesture interaction, which is more natural and flexible to use. At the same time, with the help of virtual reality technology, it overcomes the disadvantage that the depth information of the two-dimensional sketch is difficult to infer, and improves the efficiency of users in creating building models according to their ideal shapes. It also breaks through the limitation of the drawing type of the building body, allowing users to truly create building models with any top shape.

[0083] The above-mentioned building modeling method can be implemented by an electronic device, so this application also proposes an electronic device, please refer to Fig.13 , Fig.13 1 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 100 of the present embodiment may be a computer, which includes a processor 11 and a memory 12 connected to each other. The electronic device 100 of the present embodiment may implement the embodiment of the above method. The memory 12 stores a computer program, and the processor 11 is used to execute the computer program to implement the above method.

[0084] The processor 11 may be an integrated circuit chip having signal processing capability. The processor 11 may also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The general purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0085] The method of the above embodiment may exist in the form of a computer program, so the present application proposes a computer storage medium, see Fig.14 , Fig.14 The computer storage medium 200 of this embodiment stores a computer program 21, which can be executed to implement the method in the above embodiment.

[0086] The computer storage medium 200 of this embodiment can be a medium that can store program instructions, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, or it can also be a server that stores the program instructions. The server can send the stored program instructions to other devices for execution, or it can also execute the stored program instructions by itself.

[0087] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0088] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0089] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0090] Although this specification has shown and described multiple embodiments of the present application, it is obvious to those skilled in the art that such embodiments are provided only by way of example. Those skilled in the art will think of many changes, modifications and alternatives without departing from the thought and spirit of the present application. It should be understood that in the process of practicing the present application, various alternatives to the embodiments of the present application described herein can be adopted. The attached claims are intended to limit the scope of protection of the present application, and therefore cover the modular composition, equivalent or alternatives within the scope of these claims.

Claims

1. A building modeling method, characterized in that: The modeling method comprises: Get sketch lines; Determine the building type corresponding to the sketch line by using a neural network algorithm, wherein the building type includes a main body type, a roof type, and a staircase type; Performing parameterized modeling on the sketch lines based on the determined building type to generate a building model; The step of obtaining the sketch lines, determining the building type corresponding to the sketch lines by using a neural network algorithm, and performing parameterized modeling on the sketch lines based on the determined building type to generate a building model includes: obtaining top-level shape lines from the sketch lines; determining the building type corresponding to the top-level shape lines as a main body type by using a neural network algorithm; and performing parameterized modeling on the top-level shape lines based on the main body type to generate a main body model of the building; Wherein, the obtaining of the top-layer shape lines in the sketch lines comprises: obtaining irregular top-layer shape lines in the sketch lines; The using of a neural network algorithm to determine that the building type corresponding to the top-level shape lines is a main body type includes: using a neural network algorithm to determine that the building type corresponding to the top-level shape lines is an irregular main body type; The parametric modeling of the top-layer shape lines based on the main body type to generate the main building model includes: dividing the irregular top-layer shape lines into multiple line segments, generating the main body exterior wall from each line segment to form the main building model.

2. The modeling method according to claim 1, characterized in that: The step of obtaining the sketch lines comprises: Detecting the user's drawing action to obtain the sketch line; or, The architectural image is analyzed to obtain sketch lines in the architectural image.

3. The modeling method according to claim 1, characterized in that: The modeling method also includes: The user's operation gesture is detected to transform the shape of the building model based on the operation gesture.

4. The modeling method according to claim 1, characterized in that: The modeling method also includes: Displays the building detail selection menu; A selection event is obtained through the building detail selection menu to adjust the building details of the building model based on the selection event, wherein the building details include window types or exterior wall textures.

5. The modeling method according to claim 1, characterized in that: The step of obtaining the sketch lines, determining the building type corresponding to the sketch lines by using a neural network algorithm, and performing parameterized modeling on the sketch lines based on the determined building type to generate a building model also includes: Obtaining roof shape lines from the sketch lines; Determine using a neural network algorithm the building type corresponding to the roof shape line as the roof type; Parametric modeling of roof shape lines based on roof type to generate building roof models; If the main building model and the roof model of the building meet the preset conditions, the main building model and the roof model of the building are fused.

6. The modeling method according to claim 1, characterized in that: The step of obtaining the sketch lines, determining the building type corresponding to the sketch lines by using a neural network algorithm, and performing parameterized modeling on the sketch lines based on the determined building type to generate a building model also includes: Obtaining wavy lines in the sketch line; Determining by using a neural network algorithm that the building type corresponding to the wavy lines is a staircase type; The wavy lines are parametrically modeled based on the staircase type to generate a building staircase model, and the building staircase model is connected to the building main body model.

7. The modeling method according to claim 1, characterized in that: The obtaining of sketch lines comprises: obtaining a plurality of sketch lines; The performing parameterized modeling on the sketch lines based on the determined building types to generate a building model comprises: performing parameterized modeling on a plurality of sketch lines based on the determined plurality of building types to generate a plurality of building models; The modeling method also includes: If the distance between multiple building models is less than a threshold, the multiple building models are divided into the same hierarchical tree structure.

8. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the computer program to implement the steps of the method according to any one of claims 1 to 7.

9. A computer storage medium, characterized in that The computer storage medium stores a computer program, and the computer program is executed to implement the steps of the method according to any one of claims 1 to 7.