Tower model generation method and device, electronic equipment and storage medium

CN115758822BActive Publication Date: 2026-09-08NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211439474.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2026-09-08
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

若纯粹由人工手动构建塔楼模型,显然需要耗费大量的人力成本,存在构建成本高昂且十分耗时的问题

Benefits of technology

在本申请的实施例中,通过确定与待构建的塔楼模型的建筑区域对应的方形面片;将方形面片划分为多个子方形面片,根据第一预设高度范围设置每个子方形面片的高度;子方形面片表征用于建造房屋的平台,使得生成的塔楼模型高低错落,提高生成的塔楼模型的真实性;根据每个子方形面片的各个顶点,生成连接各顶点与地面的柱状模型;柱状模型表征塔楼的钢筋支架;地面是指塔楼模型底面所在的平面;提取每个子方形面片的一条边作为目标边,并生成连接各目标边与地面的楼梯模型;获取底面为方形的部件模型与立方体类模型的侧面及顶面拼接而成的建筑模型,将建筑模型的底部与每个子方形面片进行拼接,以生成塔楼模型;可以实现自动、灵活地生成塔楼模型,提高塔楼模型生成效率,同时可以提高塔楼模型的真实性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115758822B_ABST
    Figure CN115758822B_ABST
Patent Text Reader

Abstract

The application provides a tower model generation method and device, electronic equipment and a storage medium, wherein the method comprises: determining a square patch corresponding to a building area of a to-be-constructed tower model; dividing the square patch into a plurality of sub-square patches, setting a height of each sub-square patch according to a first preset height range; generating a columnar model connecting each vertex of each sub-square patch and a ground, wherein the ground refers to a plane on which a bottom surface of the tower model is located; extracting an edge of each sub-square patch as a target edge, and generating a staircase model connecting the target edge and the bottom surface; obtaining a building model obtained by splicing a component model with a square bottom surface and side surfaces and top surfaces of a cubic model; and splicing the bottom surface of the building model with each sub-square patch respectively to generate the tower model. The embodiments of the application can automatically and flexibly generate the tower model, and improve the tower model generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to methods, apparatus, electronic devices and storage media for generating tower models. Background Technology

[0002] With the booming development of the gaming industry, the content encompassed within game worlds is becoming increasingly diverse. Various types of architecture are used in the creation of game or animated video scenes.

[0003] In games and animated videos, densely packed container tower-like structures often appear. These container towers are massive structures formed by staggered stacked container houses fixedly connected to a concrete frame. If these tower models were to be built purely manually, it would obviously require a huge amount of manpower, resulting in high construction costs and being extremely time-consuming.

[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] In view of the above problems, this application is made to provide a method, apparatus, electronic device, and storage medium for generating tower models that overcomes or at least partially solves the above problems, including: A method for generating a tower model, the method comprising: Determine the square facets corresponding to the building areas of the tower model to be constructed; The square face is divided into multiple sub-square facets, and the height of each sub-square facet is set according to a first preset height range; Based on each vertex of each of the sub-square facets, a columnar model is generated connecting each vertex to the ground; the ground refers to the plane where the bottom surface of the tower model is located; Extract one edge from each of the sub-square facets as a target edge, and generate a staircase model connecting each target edge to the ground; The bottom of the building model is spliced ​​with each of the sub-square facets to generate the tower model; the building model is a model spliced ​​with the side and top faces of a cube-like model and a component model with a square bottom.

[0006] An apparatus for generating a tower model, the apparatus comprising: The patch acquisition module is used to determine the square patches corresponding to the building areas of the tower model to be constructed; A panel segmentation module is used to divide the square panel into multiple sub-square panels, and to set the height of each sub-square panel according to a first preset height range; The column model generation module is used to generate a column model connecting each vertex to the ground based on each vertex of each of the sub-square facets; the ground refers to the plane where the bottom surface of the tower model is located; The staircase model generation module is used to extract one edge of each of the sub-square facets as a target edge and generate a staircase model connecting each target edge to the ground. The tower model generation module is used to splice the bottom of the building model with each of the sub-square facets to generate the tower model; the building model is a model spliced ​​together with the side and top faces of a cube-like model.

[0007] An electronic device includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method for generating a tower model as described above.

[0008] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for generating a tower model as described above.

[0009] This application has the following advantages: In the embodiments of this application, a square facet corresponding to the building area of ​​the tower model to be constructed is determined; the square facet is divided into multiple sub-square facets, and the height of each sub-square facet is set according to a first preset height range; the sub-square facets represent platforms used for building houses, so that the generated tower model has varying heights, improving the realism of the generated tower model; a columnar model connecting each vertex to the ground is generated based on each vertex of each sub-square facet; the columnar model represents the steel reinforcement support of the tower; the ground refers to the plane where the bottom surface of the tower model is located; one edge of each sub-square facet is extracted as a target edge, and a staircase model connecting each target edge to the ground is generated; a building model is obtained by splicing the component model with a square bottom surface and the side and top surfaces of a cube-type model, and the bottom of the building model is spliced ​​with each sub-square facet to generate the tower model; this can realize the automatic and flexible generation of tower models, improve the generation efficiency of tower models, and at the same time improve the realism of tower models. Attached Figure Description

[0010] To more clearly illustrate the technical solution of this application, the drawings used in the description of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a flowchart illustrating the steps of a method for generating a tower model according to an embodiment of this application; Figure 2 This is a schematic diagram of a square facet used to display the interface in one example of this application; Figure 3 This is a schematic diagram of square facet segmentation in an example of this application; Figure 4 This is a schematic diagram illustrating how a square facet is divided into multiple sub-square facests in an example of this application; Figure 5 A schematic diagram illustrating the spacing of multiple sub-rectangular facets in an example of this application; Figure 6 This is a schematic diagram illustrating the generation of a columnar model in one example of this application; Figure 7 This is a schematic diagram of a staircase model generated in one example of this application; Figure 8 This is a schematic diagram illustrating the splicing of a sub-square facet with an architectural model in one example of this application; Figure 9 This is a schematic diagram of a building model generated in one example of this application; Figure 10 This is a schematic diagram showing the side of a cube-type model and the first component model being spliced ​​together in an example of this application; Figure 11 This is a schematic diagram of the process for generating the second component model in one example of this application; Figure 12 This is a schematic diagram of random division of a plane in one example of this application; Figure 13 This is a schematic diagram illustrating the extraction of the target subplane in an example of this application; Figure 14 This is a schematic diagram of a wooden board model generated in one example of this application; Figure 15 This is a schematic diagram of the second crossbar model generated in one example of this application; Figure 16 This is a schematic diagram of a scaffold model generated in one example of this application; Figure 17 This is a schematic diagram illustrating the generation of a bounding edge model in one example of this application; Figure 18This is a schematic diagram illustrating another bounding edge model generated in one example of this application; Figure 19 This is a schematic diagram of the second component model generated in one example of this application; Figure 20 This is a schematic diagram illustrating the generation of a platform model in one example of this application; Figure 21 This is a schematic diagram illustrating the generation of the first crossbar model in one example of this application; Figure 22 This is a schematic diagram of the curve model generated in one example of this application; Figure 23 This is a schematic diagram of a tower model generated in one example of this application; Figure 24 This is a structural block diagram of a tower model generation device according to an embodiment of this application. Detailed Implementation

[0012] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0013] Dense container tower-like structures are frequently used as backgrounds in games or animated videos. For example, when the plot of a game or animated video aims to depict themes of poverty, backwardness, or dense population, such structures are often used as the backdrop. To match the storyline and achieve a better visual effect, these dense container tower-like structures in game or animated video scenes are generally considered to be unplanned architectural creations. Therefore, they often need to present a staggered layout, and different container towers often have different shapes. When creating game or animated video scenes, manually constructing such dense container tower-like architectural models would obviously require a significant amount of manpower, resulting in high construction costs and being extremely time-consuming.

[0014] In view of this, this application provides a method for generating a tower model. By dividing the square facets corresponding to the building area of ​​the tower model into multiple sub-square facets, the dense characteristics of the tower model are reflected. Then, the height of the multiple sub-square facets is set to reflect the staggered height characteristics of the tower model. Next, columnar models connecting the vertices of the sub-square facets to the ground are generated as steel reinforcement supports for the sub-square facets. Staircase models connecting the sub-square facets to the ground are also generated. At the same time, building models are spliced ​​on each sub-square facet. These building models are the container houses in the tower model. This method can quickly generate tower models with staggered heights and diverse shapes, improving the generation efficiency and quality of tower models.

[0015] Reference Figure 1 This application illustrates a method for generating a tower model according to an embodiment of the present application. This method can be executed by a terminal device or jointly by a terminal device and a server. The terminal device and server can be, but are not limited to, various personal computers, laptops, smartphones, tablets, etc. The server can be a standalone server or a server cluster consisting of multiple servers.

[0016] In this embodiment of the application, the method for generating the tower model may include the following steps: Step 101: Determine the square facets corresponding to the building area of ​​the tower model to be constructed.

[0017] When creating a tower model, the first step is to determine the square facet corresponding to the building area of ​​the tower model to be constructed, based on the actual production requirements, so that the tower model can be generated on the basis of the square facet.

[0018] Step 102: Divide the square face into multiple sub-square facets, and set the height of each sub-square facet according to a first preset height range.

[0019] After obtaining the square facet, it is divided into multiple sub-square facets of different sizes. These sub-square facets represent the platforms used to build container houses in the tower model. By setting the height of each sub-square facet according to a first preset height range, the generated tower model can exhibit a visual effect of varying heights.

[0020] Step 103: Generate a columnar model connecting each vertex to the ground based on each vertex of each sub-square face; the ground refers to the plane where the bottom surface of the tower model is located.

[0021] By obtaining each vertex of each sub-rectangular facet, and then generating a columnar model connecting that vertex to the ground based on each vertex, the columnar model represents the steel reinforcement support of the tower model, thus achieving the effect of supporting the sub-rectangular facet. Here, the ground refers to the plane where the bottom surface of the tower model is located.

[0022] Step 104: Extract one edge of each of the sub-square facets as a target edge, and generate a staircase model connecting each target edge to the ground.

[0023] Each sub-square facet needs to be connected to the ground via a staircase model. This can be achieved by extracting one edge of each sub-square facet as the target edge and generating a staircase model that connects the target to the ground, making the generated tower model more realistic.

[0024] Step 105: Obtain the building model, and splice the bottom of the building model with each of the sub-square facets to generate the tower model.

[0025] The architectural model is a model created by piecing together a component model with a square base and the sides and top of a cube-like model. This architectural model represents the container houses in the tower model. By piecing together the bottom of the architectural model with the sub-square panels, and placing the architectural model on top of the corresponding sub-square panels, the effect of building container houses on each sub-square panel is achieved, thus generating the tower model.

[0026] When a terminal device executes the tower model generation method of this application embodiment, the terminal device can send the generated tower model to the server, and the server can store the tower model to send it to other devices.

[0027] Specifically, the terminal device can display a drawing interface for drawing the model, respond to the drawing operations in the drawing interface for building the tower model, generate drawing instructions, and determine the square facets corresponding to the building area of ​​the tower model to be built according to the drawing instructions; then, divide the square facets into multiple sub-square facets, and set the height of each sub-square facet according to a first preset height range; next, generate columnar models connecting each vertex to the ground according to each vertex of each sub-square facet; at the same time, extract one edge of each sub-square facet as a target edge, and generate a staircase model connecting the target edge to the ground; and by acquiring the building model, splice the bottom of the building model with each sub-square facet to generate the tower model.

[0028] When the tower model of this application embodiment is executed jointly by the terminal device and the server, the terminal device displays a drawing interface for drawing the model, responds to the drawing operation for constructing the tower model in the drawing interface, generates drawing instructions, and sends the tower model drawing instructions to the server. The server can respond to the drawing instructions by determining the square facets corresponding to the building area of ​​the tower model to be constructed, randomly dividing the square facets into multiple sub-square facets, and setting the height of each sub-square facet according to a first preset height range; then, based on each vertex of each sub-square facet, generating columnar models connecting each vertex to the ground; simultaneously, extracting one edge of each sub-square facet as a target edge, and generating a staircase model connecting the target edge to the ground; and by acquiring the building model, splicing the bottom of the building model with each sub-square facet to generate the tower model. The generated tower model can also be returned to the terminal device, which can then display the tower model in the drawing interface.

[0029] The embodiments of this application determine the square facets corresponding to the building areas of the tower model to be constructed; divide the square facets into multiple sub-square facets, and set the height of each sub-square facet according to a first preset height range; this results in a tower model with varying heights and sizes, improving the realism of the generated tower model; based on each vertex of each sub-square facet, generate columnar models connecting the vertices to the ground; extract one edge of each sub-square facet as a target edge, and generate a staircase model connecting the target edge to the ground; obtain the building model from the resource library, and splice the bottom of the building model with each sub-square facet to generate the tower model; this can achieve automatic and flexible generation of tower models, improve the efficiency of tower model generation, and enhance the realism of the tower model.

[0030] The method for generating the tower model in this exemplary embodiment will be further explained below, taking an application to a terminal device as an example.

[0031] In step 101, square patches corresponding to the building areas of the tower model to be constructed are determined.

[0032] The terminal device can run model-making software and display a drawing interface on the screen for drawing the model. In response to drawing instructions for building the tower model, it determines the square facets corresponding to the architectural areas of the tower model to be built and displays them on the drawing interface, such as... Figure 2 The image shows a square facet used to display an interface in an example. In this embodiment, both the square facet and its sub-square facets are rectangular.

[0033] The drawing instructions can be triggered by user actions on the drawing interface. These actions can include, but are not limited to, mouse dragging, swipe gestures, or clicking on a rectangle of a preset size. Through the drawing operations used to construct the tower model, square patches corresponding to the building areas of the tower model to be constructed can be determined. It can be understood that this embodiment generates the tower model based on these determined square patches.

[0034] In step 102, the square face is divided into multiple sub-square facets, and the height of each sub-square facet is set according to a first preset height range.

[0035] The sub-square facets represent the platforms used to build container houses in the tower model. By dividing the square facets into multiple sub-square facets of different sizes, the dense and unplanned characteristics of the tower model can be reflected. By setting the height of each sub-square facet, the staggered layout of the tower model can also be shown.

[0036] For example, the square facets can be randomly divided to obtain multiple sub-square facets, so as to reflect the unplanned nature of the tower model.

[0037] For example, in setting the height of each sub-rectangular facet according to the first preset height range, multiple sub-rectangular facets can be set to the same height in the same direction. For instance, for each sub-rectangular facet, a height can be randomly selected from the first preset height range, and the corresponding sub-rectangular facet can be raised to that height in the vertically upward direction. Multiple sub-rectangular facets can also be set to the corresponding height in a relative height direction. For instance, for each sub-rectangular facet, a height can be randomly selected from the first preset height range, and the corresponding sub-rectangular facet can be adjusted vertically upward or downward.

[0038] In this embodiment of the application, to make the resulting sub-rectangular patches more aesthetically pleasing, each division can be limited to splitting the longer side of the square patch or sub-rectangular patch, resulting in two sub-rectangular patches. For example... Figure 3 As shown, sides a and b are the longer opposite sides of the square face, and sides c and d are the shorter opposite sides of the square face. Figure 3 When dividing the square face shown, a point O can be randomly selected from side a, and then a point O' corresponding to point O in side b can be determined. That is, the line connecting O and O' is perpendicular to both sides a and b. Finally, connecting points O and O' will... Figure 3 The square face shown is divided into two sub-square faces.

[0039] The process of randomly dividing a square face into multiple sub-square faces involves the number of divisions and the range of proportions for each division. The range of proportions for each division refers to the ratio of each segment after dividing the square face or sub-square face by its longer side to that longer side. The number of divisions and / or the range of proportions for each division can be preset or set as needed.

[0040] The pre-set parameters can be considered as default settings, including specific default values ​​and their corresponding relationships. For example, the default number of divisions is 4, and the default division ratio range for each division is [0.2, 0.8]. This means that regardless of the area of ​​the square face, it will be divided 4 times, with each division ratio range being [0.2, 0.8]. Alternatively, by recording the relationship between the size of the square face and the number of divisions and the division ratio range in a table, after determining the square face, the number of divisions can be determined using the relationship between the square face size and the number of divisions recorded in the table. At each division, the division ratio range is determined by the relationship between the ratio of the long side to the short side of the square face recorded in the table and the division ratio range.

[0041] The "set as needed" can be considered as user-defined settings; that is, each time a tower model is drawn, the user needs to set the number of times the square face is divided and the range of the division scale for each division. For example, the drawing interface can display a preset value editing area for the user to determine the number of divisions, and a preset scale range editing area related to the division scale for each division. The preset value editing area provides the user with the function of setting preset values, and the preset scale range editing area provides the user with the function of setting preset scale ranges. The terminal device can receive the information edited through the preset value editing area and the preset scale range editing area, and determine the preset values ​​and preset scales based on the edited information.

[0042] Similarly, the aforementioned preset height can be pre-set or set as needed.

[0043] After determining the number of times the square face is divided and the range of the division ratio for each division, the square face is divided into multiple sub-square faces. The height of each sub-square face is set according to a first preset height range, which may specifically include: When the counter value is less than the preset value, the square face or each sub-square face obtained in the previous division is randomly divided within the preset ratio range to obtain multiple sub-square face. The counter's count value is incremented by 1; When the counter value equals the preset value, the height of each sub-square facet is set according to the first preset height range.

[0044] This embodiment uses a counter to record the actual number of divisions, and the preset value can be understood as the number of divisions. For example... Figure 4 As shown, assuming the preset value is 4, the counter value can be initialized before each drawing operation. For example, the initialized counter value can be 0. At this time, the counter value is less than the preset value. The square face is randomly divided within the preset ratio range to obtain two sub-square faces. To facilitate differentiation, the sub-square face obtained from the first division is recorded as the first sub-square face.

[0045] After the first division is performed, the counter value is incremented by 1. At this time, the counter value is 1, which is still less than the preset value. Then, the first sub-square face is randomly divided within the preset ratio range to obtain 4 second sub-square face. After the second division is performed, the counter count is incremented by 1. At this time, the counter count is 2, which is still less than the preset value. Then, each second sub-square face is randomly divided within the preset ratio range to obtain 8 third sub-square faces. After the third division is performed, the counter count is incremented by 1. At this time, the counter count is 3, which is still less than the preset value. Then, the third sub-square face is randomly divided within the preset ratio range to obtain 16 fourth sub-square faces. After the fourth division, the counter count is incremented by 1. At this time, the counter count is 4, which is equal to the preset value. Then, the height of each sub-square facet is set according to the first preset height range. That is, the height of each fourth sub-square facet is randomly set so that the height of each fourth sub-square facet is within the preset height range.

[0046] Optionally, such as Figure 5 As shown, the above-mentioned method of randomly dividing the square face into multiple sub-square faces and randomly setting the height of each sub-square face according to a first preset height range may further include: The multiple sub-square patches are spaced apart by a preset distance.

[0047] The preset distance can be pre-set or set as needed. By spacing multiple sub-square panels at preset distances and then setting the height of each sub-square panel according to a preset height range, the generated container houses can have intervals, making the generated tower model more reasonable and realistic.

[0048] In step 103, a columnar model connecting each vertex to the ground is generated based on each vertex of each sub-square facet; the ground refers to the plane on which the bottom surface of the tower model is located.

[0049] Each sub-square face represents a platform used to build container houses in the tower model. Therefore, it is necessary to construct a steel support frame to support each sub-square face, that is, a columnar model connecting the sub-square face to the ground to represent the steel support frame of the tower model.

[0050] In this embodiment of the application, a columnar model connecting each vertex to the ground can be generated based on each vertex of each sub-square face. For example, as shown... Figure 6 As shown, each vertex of each sub-square face can be extracted. For each vertex, a ray is emitted from the vertex along the height direction towards the ground. The line segment located between the vertex and the ground is expanded into a columnar model. This can be understood as constructing a columnar model with the ray as the central axis, the height of which lies between the corresponding vertex and the ground. The columnar model can be a cylindrical model, a prism model, etc.

[0051] like Figure 6 As shown, in order to improve the realism of the column model, in an optional embodiment of this application, a base model can also be set at the connection between the column model and the ground. The base model represents the base of the steel reinforcement support. The cross-section of the base model parallel to the ground is larger than the cross-section of the column model parallel to the ground, so as to present a more stable support effect.

[0052] In step 104, one edge of each of the sub-square facets is extracted as a target edge, and a staircase model connecting each target edge to the ground is generated.

[0053] In addition to being supported by steel frames, each platform of the tower model also needs a staircase model connected to the ground for the virtual character to climb or walk on. In this embodiment, a staircase model connecting the target to the ground is generated by extracting one edge of each sub-square face as the target edge.

[0054] For example, such as Figure 7 As shown, for each sub-rectangular facet, one edge of that facet can be randomly extracted as the target edge. Then, starting from the target edge, multiple parallel staircase structures are generated along the height direction towards the ground at fixed or random intervals to obtain the staircase model. Here, random interval means that the distance between any two adjacent staircase structures is within a set interval range. Optionally, the length of the staircase structure can also be limited to a set length range, making the staircase structure in the staircase model appear uneven, more closely resembling a real tower model and improving realism.

[0055] In step 105, a building model is obtained, and the bottom of the building model is spliced ​​with each of the sub-square facets to generate the tower model.

[0056] The architectural model is constructed by piecing together a component model with a square base and the sides and top of a cube-like model. The architectural model represents the container houses within the tower model. After building the columnar model of the tower model, the staggered and varying sizes of the sub-square panels, and the staircase model connecting the sub-square panels, the architectural model is then pieced together on the sub-square panels to obtain the tower model. This piecing together can be understood as scaling the architectural model to the size of the corresponding sub-square panel, ensuring that the bottom of the architectural model perfectly matches the side of the corresponding sub-square panel facing away from the ground. In other words, the architectural model sits atop the corresponding sub-square panel, and the height of the architectural model's bottom matches the height of the corresponding sub-square panel, thus creating the effect of building container houses on sub-square panels.

[0057] Specifically, such as Figure 8 As shown, for each sub-square facet, the center and side length of the sub-square facet can be determined first. Then, the center of the extracted building model is aligned with the center of the sub-square facet. Finally, the building model is scaled using the side length of the sub-square facet as a parameter so that the bottom of the building model coincides with the sub-square facet.

[0058] In an optional embodiment of this application, the process of obtaining the building model and splicing the bottom of the building model with each of the sub-square panels to generate the tower model may include: Obtain the building model corresponding to each of the sub-square patches, and splice the building model with the corresponding sub-square patch to generate the tower model.

[0059] In this embodiment, a corresponding building model can be obtained for each sub-square facet, that is, the obtained building model corresponds one-to-one with the sub-square facet. Different sub-square facets can correspond to different building models to generate diverse tower models.

[0060] In an optional embodiment of this application, the above-mentioned building model can be obtained from a database. The database can store a variety of building models. In the process of obtaining the building model from the database, the building model corresponding to each sub-square face can be randomly obtained from the database, so that the building model spliced ​​by multiple sub-square faces is not completely the same, further reflecting the unplanned characteristics of the tower model.

[0061] In an optional embodiment of this application, the obtained building model can also be generated by a terminal device. The generation process of the building model will be explained below. It can be understood that this embodiment may include the following steps before obtaining the building model: Obtain the cube class model; For the side surface of the cube-shaped model, the first component model is spliced ​​to the side surface; For the top surface of the cube-shaped model, the second component model is spliced ​​with the top surface to generate a building model.

[0062] Cube-type models include cuboid models and cubic models. The first and second component models can both be component models with square bases. The first component model represents the side profile of the architectural model, and the second component model represents the top profile. For example... Figure 9 As shown, in this embodiment of the application, the corresponding component model and cube-type model are spliced ​​together to make the cube-type model present a richer form. The spliced ​​cube-type model is the architectural model representing the container house in the tower model.

[0063] Optionally, the generated building model can also be stored in a resource library so that the corresponding building model can be directly obtained from the resource library during the subsequent generation of tower models, thereby improving the generation efficiency of tower models.

[0064] Specifically, the first component library can store multiple first component models, and the second component model can store multiple second component models. The above-mentioned splicing of the first component model with the side surface of the cube-like model can include: For each side of the cube-type model, a first component model is randomly selected from the first component library, and the selected first component model is spliced ​​with the corresponding side.

[0065] In this embodiment, the first component model of each side splicing is randomly obtained, so that the first component models of the four sides splicing of the cube-type model are not completely the same, further reflecting the unplanned characteristics of the tower model.

[0066] Optionally, the above-described method of splicing the first component model to the side of the cube-like model may include: The side of the cube-shaped model is divided into multiple square sub-sides; Obtain the first component model corresponding to each of the sub-sides, and then stitch the first component model with the corresponding sub-side.

[0067] In this embodiment, each side of the cube-type model can be segmented, and for each segmented sub-side, a corresponding first component model can be obtained. The obtained first component model can be spliced ​​with the corresponding sub-side, which can further improve the diversity of building models and thus improve the diversity of tower models.

[0068] The process of dividing each side is similar to the process of dividing the square face described above, and will not be repeated here.

[0069] like Figure 10 As shown, one side of the cube-like model is divided into two sub-sides, namely the first sub-side and the second sub-side. Each sub-side is assembled with a different first component model, such as... Figure 10 The first sub-side is spliced ​​with the first component model A, and the second sub-side is spliced ​​with the first component model B.

[0070] Please see Figure 11 As shown, in an optional embodiment of this application, the second component model can be generated by a terminal device. Before obtaining the second component model, the following steps may also be included: Step 1101: Generate a plane that matches the top face of the cube-type model, and divide the plane into multiple sub-planes.

[0071] like Figure 12 As shown, based on the top face of the cube-type model, a plane of the same size as the top face is generated, and then the plane is divided or randomly divided to obtain multiple sub-planes.

[0072] Step 1102: After sorting the multiple subplanes in descending order of area, obtain the target subplanes that are at the top of the order and a preset number of them.

[0073] like Figure 13 As shown, after obtaining multiple subplanes, the subplanes can be sorted from largest to smallest area, and the target subplanes with the highest order and a preset number can be retained, while the other subplanes can be discarded.

[0074] Step 1103: Stretch each of the target sub-planes within the second preset height range to obtain the corresponding wooden board model.

[0075] Since the target subplane is a planar structure, this embodiment needs to make the building model appear as if it is under construction. Therefore, the target subplane needs to be stretched along the height direction to obtain the corresponding wooden plank model, which represents the wooden planks of the scaffolding erected on the top of the tower model.

[0076] Specifically, the target subplane can be randomly stretched according to the second preset height range, so that the thickness of the generated wooden board model is controlled within the second preset height range, making the generated wooden board model more realistic.

[0077] The second preset height range can be pre-set or set as needed.

[0078] Step 1104: Extend each of the wooden board models by a second preset length in a direction parallel to the top surface, and set the height of the wooden board models according to a third preset height range.

[0079] like Figure 14As shown, the wooden board model is extended by a second preset length in a direction parallel to the top surface, and the height of the wooden board model is randomly set according to a third preset height range, so that the wooden board models present an effect of stacking each other.

[0080] Step 1105: Randomly extract multiple sub-plane edges from the multiple sub-planes, and generate the corresponding second crossbar model with each sub-plane edge as the central axis.

[0081] Step 1106: Set the height of each of the second crossbar models according to the fourth preset height range.

[0082] The third preset height range is within the fourth preset height range. For example, assuming the height of the plane containing the ground is 0, the maximum value of the fourth preset height range is greater than the maximum value of the third preset height range, and the minimum value of the fourth preset height range is less than the minimum value of the third preset height range.

[0083] For a building under construction, in addition to the wooden plank model, there are also a second horizontal bar model and a support model to form the scaffolding required for construction. It can be understood that the second horizontal bar model represents the horizontal bars used to build the wooden plank model, and the support model represents the supports used to hold the horizontal bars in place. Figure 15 The image shows the generated second horizontal bar model. The height of the second horizontal bar model falls within a fourth preset height range, and the maximum value within the fourth preset height range is greater than the maximum value within the second preset height range corresponding to the height of the wooden board model. The minimum value within the fourth preset height range is less than the minimum value within the third preset height range. This allows the second horizontal bar model to be positioned above or below the wooden board model, thus presenting a more realistic architectural scaffolding effect. Step 1107: Extract multiple target vertices from multiple vertices of multiple sub-planes and generate a support model for connecting each target vertex to the top surface.

[0084] like Figure 16 The generated scaffold model is shown. The generation process of this scaffold model is similar to that of the column model described earlier, and will not be repeated here.

[0085] Step 1108: Generate a bounding edge model that surrounds the top surface based on the edges of the top surface.

[0086] Specifically, such as Figure 17 As shown, the top border can be obtained, each edge of the top border can be segmented and expanded into a corresponding editable mesh, and then each segment in the editable mesh can be randomly extruded to a certain height along the height direction to form a bounding edge model. This bounding edge model represents the wall at the top of the tower model.

[0087] Optionally, such as Figure 18As shown, it can also be extruded along the plane of the top surface towards the center of the top surface, and then extruded along the height direction to form another type of bounding edge model.

[0088] Optionally, Figure 17 The bounding edge model shown and Figure 18 The bounding edge models shown can be merged to obtain another bounding edge model.

[0089] Step 1109: Generate a second component with a square bottom surface based on the wooden board model, the second crossbar model, the support model, and the surrounding edge model.

[0090] like Figure 19 The diagram shows a combination of the wooden plank model, the second crossbar model, the support model, and the surrounding edge model to obtain the second component model; the generated architectural model is as follows. Figure 9 As shown.

[0091] Furthermore, in an optional embodiment of this application, the method for generating the tower model may further include: Each of the sub-square facets is copied multiple times to obtain multiple copies of each sub-square facet; Multiple platform models are generated based on multiple copies of the aforementioned sub-square facets; Each of the platform models is spaced apart between the corresponding sub-square facet and the ground.

[0092] In this embodiment, each sub-square face is copied multiple times. The number of copies for different sub-square faces can vary, resulting in multiple copies of the sub-square face. Alternatively, multiple sub-square faces can be copied the same number of times, and then some of the copied sub-square face copies can be randomly deleted.

[0093] like Figure 20 As shown, since the sub-square facet replicas are planar structures, corresponding platform models need to be constructed based on them. This can be understood as the platform model being obtained by stretching the sub-square facet replicas to a certain height, which can be preset or set as needed. This platform model represents the platform of the container house to be built in the tower model. Then, multiple platform models generated from multiple sub-square facet replicas are spaced apart between the corresponding sub-square facet and the ground to give the tower model a multi-layered effect. It can be understood that the platform models corresponding to sub-square facet replicas copied from the same sub-square facet are spaced apart between that same sub-square facet and the ground. The spacing between the multiple platform models can be fixed or random. Random spacing means that the distance between any two adjacent platform models is not fixed but random within a preset spacing range.

[0094] Optionally, sub-platform models can be spliced ​​together from at least some of the platform models to enhance the richness of the tower model. Specifically, identical or different sub-platform models can be spliced ​​together from one or more sides of at least some of the platform models. The base of the platform model with spliced ​​sub-platform models is larger than the base of any of the spliced ​​sub-platform models to achieve a more aesthetically pleasing overall effect. The sub-platform models can be obtained by segmenting or scaling the platform models to which they are spliced.

[0095] Optionally, at least one target platform model can be randomly selected from multiple platform models. The architectural models of each target platform model are then obtained and combined with the corresponding target platform models to generate a tower model containing more container houses, reflecting the dense nature of the container tower model. The method of combining the architectural model with the target platform model is similar to the method of combining the architectural model with the sub-square facets described above, and will not be repeated here.

[0096] Furthermore, in an optional embodiment of this application, the above method may further include: Extract the edges of each of the sub-square facets and the edges of each copy of the sub-square facet; Each edge of the sub-square facet and each edge of the copy of the sub-square facet are extended by a first preset length to obtain multiple extended edges; Using each of the extended sides as the central axis, generate the corresponding first crossbar model.

[0097] In this embodiment, to demonstrate that the tower model is under construction, the edges of each sub-square face and the edges of each copy of the sub-square face can be extracted. Specifically, as follows: Figure 21 As shown, the wireframes of the sub-rectangular facets and their copies can be extracted, and each edge can be broken to extract the edges of the sub-rectangular facets and their copies. Then, the extracted edges are extended by a first preset length to obtain extended edges, where the first preset length can be pre-set or set as needed. Finally, a first horizontal bar model is generated with each extended edge as the central axis; the length of this first horizontal bar model is the length of the extended edge. The first horizontal bar model represents the horizontal bar used to build the tower model platform. For example, the first horizontal bar model can be generated with the extended edge as the central axis according to a preset radius, where the preset radius can be pre-set or set as needed. The first horizontal bar model intersects with the column model to present a construction effect.

[0098] Furthermore, in an optional embodiment of this application, the above method may further include: Extract the edges set along the first direction from each of the sub-square patches; Based on the two endpoints of the edge set along the first direction, a curve model is generated that connects the two endpoints and descends towards the ground. The curve model represents the cables of the tower model.

[0099] In game or animated video scenes, tower models also feature cables, such as power cables used to supply electricity to the virtual characters living within the tower model. Figure 22 As shown, the edges set along the first direction in each sub-square patch can be extracted. Based on the two endpoints of these edges, a curved model connecting the two endpoints and drooping downwards towards the ground can be generated to serve as cables in the tower model, making the generated tower model more realistic. Figure 23 This is a schematic diagram of a tower model generated according to an embodiment of this application.

[0100] One embodiment of this application determines a square facet corresponding to the building area of ​​the tower model to be constructed; randomly divides the square facet into multiple sub-square facets, and randomly sets the height of each sub-square facet according to a first preset height range; this results in a tower model with varying heights and random sizes, improving the realism of the generated tower model; based on each vertex of each sub-square facet, a columnar model connecting the vertices to the ground is generated; one edge of each sub-square facet is randomly extracted as a target edge, and a staircase model connecting the target edge to the ground is generated; the building model is obtained, and the bottom of the building model is spliced ​​with each sub-square facet to generate the tower model; this allows for automatic and flexible generation of tower models, improving the efficiency of tower model generation while also enhancing the realism of the tower model.

[0101] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.

[0102] Reference Figure 24 This diagram illustrates a structural block diagram of an embodiment of a tower model generation apparatus according to this application. Corresponding to the above-described tower model generation method embodiment, in this embodiment, the apparatus may include the following modules: The patch acquisition module 2401 is used to determine the square patches corresponding to the building area of ​​the tower model to be constructed; The sheet segmentation module 2402 is used to divide the square sheet into multiple sub-square sheets, and set the height of each sub-square sheet according to a first preset height range; The column model generation module 2403 is used to generate a column model connecting each vertex to the ground based on each vertex of each of the sub-square facets; the ground refers to the plane where the bottom surface of the tower model is located; The staircase model generation module 2404 is used to extract one edge of each of the sub-square facets as a target edge and generate a staircase model connecting each target edge to the ground. The tower model generation module 2405 is used to obtain the building model and splice the bottom of the building model with each of the sub-square facets to generate the tower model; the building model is a model spliced ​​together with the side and top faces of the cube-like model and the component model with a square bottom.

[0103] Optionally, the patch acquisition module 2401 is specifically used to determine the square patch corresponding to the building area of ​​the tower model to be constructed in response to the drawing instruction for constructing the tower model.

[0104] Optionally, the patch segmentation module 2402 includes: The segmentation submodule is used to randomly segment the square face or each sub-square face obtained in the previous segmentation within a preset ratio range when the counter value is less than a preset value, so as to obtain multiple sub-square face. The counting submodule is used to increment the counter value by 1; The first height adjustment module is used to set the height of each sub-square facet according to a first preset height range when the counter value is equal to a preset value.

[0105] Optionally, the device further includes: The copy generation module is used to copy each of the sub-square face multiple times to obtain multiple sub-square face copies of each sub-square face; The platform model generation module is used to generate multiple platform models based on multiple copies of the sub-square facets; The platform model setting module is used to set each of the platform models at intervals between the corresponding sub-square facets and the ground.

[0106] Optionally, the device further includes: The first extraction module is used to extract the edges of each of the sub-square facets and the edges of each copy of the sub-square facet; The first extension module is used to extend the edge of each of the sub-square facets and the edge of each copy of the sub-square facet by a first preset length to obtain multiple extended edges; The first crossbar model generation module is used to generate the corresponding first crossbar model with each of the extended sides as the central axis.

[0107] Optionally, the component model includes a first component model and a second component model, and the device further includes: The cube class model acquisition module is used to acquire cube class models; An initial building model generation module is used to stitch the first component model to the side of the cube-shaped model. The first building model generation module is used to splice the second component model with the top surface of the cube-shaped model to generate a building model.

[0108] Optionally, the device further includes: The top surface partitioning module is used to generate a plane that matches the top surface of the cube-type model, and to divide the plane into multiple sub-planes. The sorting module is used to sort the multiple subplanes in descending order of area and then obtain a preset number of target subplanes that are at the top of the order. The wooden board model generation module is used to stretch each of the target sub-planes within a second preset height range to obtain the corresponding wooden board model; The third height adjustment module is used to extend each of the wooden board models by a second preset length in a direction parallel to the top surface, and to set the height of the wooden board models according to a third preset height range; The second crossbar model generation module is used to randomly extract multiple sub-plane edges from the multiple sub-planes, and generate a corresponding second crossbar model with each sub-plane edge as the central axis. The fourth height adjustment module is used to set the height of each of the second crossbar models according to a fourth preset height range, wherein the third preset height range is within the fourth preset height range; The scaffold model generation module is used to extract multiple target vertices from multiple vertices of multiple sub-planes and generate a scaffold model for connecting each target vertex to the top surface; The bounding edge model generation module is used to generate a bounding edge model that surrounds the top surface based on the edges of the top surface; The second building model generation module is used to generate a second component with a square bottom surface based on the wooden board model, the second crossbar model, the support model, and the surrounding edge model.

[0109] Optionally, the initial building model generation module includes: The side segmentation submodule is used to segment the side of the cube-type model into multiple square sub-sides; The side panel stitching module is used to obtain the first component model corresponding to each of the sub-side panels and stitch the first component model with the corresponding sub-side panel.

[0110] Optionally, the tower model generation module 2405 is used to obtain the building model corresponding to each of the sub-square patches, and to splice the building model with the corresponding sub-square patches to generate the tower model.

[0111] Optionally, the device further includes: The second extraction module is used to extract the edges set along the first direction in each of the sub-square facets; The curve model generation module is used to generate a curve model that connects the two endpoints of the side set along the first direction and descends towards the ground, the curve model representing the cable of the tower model.

[0112] Optionally, the patch segmentation module is also used to space multiple sub-square patches at a preset distance.

[0113] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0114] This application also discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the tower model generation method as described above.

[0115] This application also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the tower model generation method described above.

[0116] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0117] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0118] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0119] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0121] All information acquisition actions described in this application embodiment are carried out in compliance with the relevant data protection laws and policies of the country where the location is located, and with authorization from the owner of the corresponding device.

[0122] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.

[0123] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0124] The above provides a detailed description of the tower model generation method, apparatus, electronic device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for generating a tower model, characterized in that, The method includes: Determine the square facets corresponding to the building areas of the tower model to be constructed; The square face is divided into multiple sub-square facets, and the height of each sub-square facet is set according to a first preset height range; Based on each vertex of each of the sub-square facets, a columnar model is generated connecting each vertex to the ground; the ground refers to the plane where the bottom surface of the tower model is located; Extract one edge from each of the sub-square facets as a target edge, and generate a staircase model connecting each target edge to the ground; Obtain the building model, and then splice the bottom of the building model with each of the sub-square facets to generate the tower model; the building model is a model formed by splicing the side and top faces of a component model with a square bottom facet and a cube-like model. The method further includes: Each of the sub-square facets is copied multiple times to obtain multiple copies of each sub-square facet; Multiple platform models are generated based on multiple copies of the aforementioned sub-square facets; Each of the platform models is spaced apart between the corresponding sub-square facet and the ground; Extract the edges of each of the sub-square facets and the edges of each copy of the sub-square facet; Each edge of the sub-square facet and each edge of the copy of the sub-square facet are extended by a first preset length to obtain multiple extended edges; Using each of the extended sides as the central axis, generate the corresponding first crossbar model.

2. The method according to claim 1, characterized in that, The determination of the square facet corresponding to the building area of ​​the tower model to be constructed includes: In response to the drawing command to build the tower model, determine the square face corresponding to the building area of ​​the tower model to be built.

3. The method according to claim 1, characterized in that, The step of dividing the square face into multiple sub-square facets and setting the height of each sub-square facet according to a first preset height range includes: When the counter value is less than the preset value, the square face or each sub-square face obtained in the previous division is randomly divided within the preset ratio range to obtain multiple sub-square face. Increment the counter value by 1; When the counter value equals the preset value, the height of each sub-square facet is set according to the first preset height range.

4. The method according to claim 1, characterized in that, The component model includes a first component model and a second component model, wherein the first component model represents the side profile of the building model and the second component model represents the top profile of the building model. Prior to obtaining the building model, the method further includes: Obtain the cube class model; For the side surface of the cube-shaped model, the first component model is spliced ​​to the side surface; For the top surface of the cube-shaped model, the second component model is spliced ​​with the top surface to generate a building model.

5. The method according to claim 4, characterized in that, Before splicing the second component model to the top surface, the method further includes: A plane matching the top face of the cube-type model is generated, and the plane is divided into multiple sub-planes. After sorting the multiple subplanes in descending order of area, obtain the target subplanes that are at the top of the order and a preset number of them. The target sub-planes are stretched within a second preset height range to obtain the corresponding wooden board model; Each of the wooden board models is extended by a second preset length in a direction parallel to the top surface, and the height of the wooden board model is set according to a third preset height range; Multiple sub-plane edges are randomly extracted from the multiple sub-planes, and a corresponding second crossbar model is generated using each sub-plane edge as the central axis; The height of each of the second crossbar models is set according to the fourth preset height range, and the third preset height range is within the fourth preset height range; Multiple target vertices are extracted from multiple vertices of the multiple sub-planes to generate a support model for connecting each target vertex to the top surface; Generate a bounding edge model that surrounds the top surface based on the edges of the top surface; A second component with a square bottom is generated based on the wooden board model, the second crossbar model, the support model, and the surrounding edge model.

6. The method according to claim 5, characterized in that, The step of splicing the first component model to the side of the cube-shaped model includes: The side of the cube-shaped model is divided into multiple square sub-sides; Obtain the first component model corresponding to each of the sub-sides, and then stitch the first component model with the corresponding sub-side.

7. The method according to any one of claims 1-6, characterized in that, The process of obtaining the building model, and splicing the bottom of the building model with each of the sub-square panels to generate the tower model, includes: Obtain the building model corresponding to each of the sub-square patches, and splice the building model with the corresponding sub-square patch to generate the tower model.

8. The method according to claim 1, characterized in that, The method further includes: Extract the edges set along the first direction from each of the sub-square patches; Based on the two endpoints of the edge set along the first direction, a curve model is generated that connects the two endpoints and descends towards the ground. The curve model represents the cables of the tower model.

9. The method according to claim 1, characterized in that, The step of dividing the square face into multiple sub-square facets and setting the height of each sub-square facet according to a first preset height range further includes: The multiple sub-square patches are spaced apart by a preset distance.

10. A device for generating a tower model, characterized in that, The device includes: The patch acquisition module is used to determine the square patches corresponding to the building areas of the tower model to be constructed; A panel segmentation module is used to divide the square panel into multiple sub-square panels, and to set the height of each sub-square panel according to a first preset height range; The column model generation module is used to generate a column model connecting each vertex to the ground based on each vertex of each of the sub-square facets; the ground refers to the plane where the bottom surface of the tower model is located; The staircase model generation module is used to extract one edge of each of the sub-square facets as a target edge and generate a staircase model connecting each target edge to the ground. The tower model generation module is used to splice the bottom of the building model with each of the sub-square facets to generate the tower model; the building model is a model spliced ​​together with the side and top faces of a cube-like model; The device further includes: The copy generation module is used to copy each of the sub-square face multiple times to obtain multiple sub-square face copies of each sub-square face; The platform model generation module is used to generate multiple platform models based on multiple copies of the sub-square facets; The platform model setting module is used to set each of the platform models at intervals between the corresponding sub-square facets and the ground. The first extraction module is used to extract the edges of each of the sub-square facets and the edges of each copy of the sub-square facet; The first extension module is used to extend the edge of each of the sub-square facets and the edge of each copy of the sub-square facet by a first preset length to obtain multiple extended edges; The first crossbar model generation module is used to generate the corresponding first crossbar model with each of the extended sides as the central axis.

11. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method for generating a tower model as described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the method for generating a tower model as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Generation method and device of virtual building model in game, processor and terminal

    CN110102058A

  • Modeling method and device

    CN113256790A