Information processing method and device of virtual model, storage medium and electronic device
By recording the relationship between the grid nodes of the virtual model and the virtual sub-model, it is possible to quickly determine whether to demolish the affected virtual sub-model, thus solving the problem of low efficiency in virtual model demolition and achieving efficient chain demolition.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-06-08
- Publication Date
- 2026-07-31
AI Technical Summary
Existing technologies suffer from low efficiency in virtual model demolition, high computational overhead, and repetitive traversal, making it impossible to complete the chain demolition of a large number of virtual sub-models in a short period of time.
By recording the relationship between the grid nodes of the virtual model and the virtual sub-model, it is possible to quickly determine whether to demolish the affected virtual sub-model during demolition, and to carry out chain demolition by utilizing the relationship between the grid nodes and the virtual sub-model.
It improves the demolition efficiency of virtual models, reduces computational overhead, and enables a rapid chain demolition process.
Smart Images

Figure CN116726490B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of game technology, and more specifically, to a method, apparatus, storage medium, and electronic device for processing information on a virtual model. Background Technology
[0002] Currently, when dismantling virtual models, such as sandbox building models or construction system models, the main method is to use a traversal search. After dismantling each virtual sub-model that constitutes the virtual model, it is necessary to determine whether other virtual sub-models affected by the dismantled virtual sub-model are in contact with the ground. If the affected virtual sub-model is in contact with the ground, it means that the virtual sub-model has load-bearing wall support and does not need to be dismantled; if the affected virtual sub-model is not in contact with the ground, it means that the virtual sub-model is suspended and the virtual sub-model board needs to be dismantled.
[0003] In the above method, since each virtual sub-model needs to be judged and a traversal search is required for each judgment, the computational cost is large, making it impossible to complete the chain demolition of a large number of virtual sub-models in a short time. There may also be repeated traversal, resulting in the technical problem of low efficiency in the demolition of virtual models.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This disclosure provides at least some embodiments of a method, apparatus, storage medium, and electronic device for processing information on virtual models, in order to at least solve the technical problem of low efficiency in dismantling virtual models.
[0006] According to one embodiment of this disclosure, an information processing method for a virtual model is provided. The method may include: determining a virtual model to be demolished, wherein the virtual model is constructed from multiple virtual sub-models, the virtual sub-models are generated based on a set of mesh nodes, and the mesh nodes in the set of mesh nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-model is associated with at least one associated mesh node in the set of mesh nodes of the multiple virtual sub-models; in response to the demolition of a target virtual sub-model from the virtual model, obtaining a first target associated mesh node associated with the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models; obtaining a target associated virtual sub-model associated with the first target associated mesh node in the multiple virtual sub-models; and, based on a second target associated mesh node associated with the target associated virtual sub-model in the set of mesh nodes of the multiple virtual sub-models, demolishing the target associated virtual sub-model from the virtual model, or preventing the demolition of the target associated virtual sub-model from the virtual model.
[0007] According to one embodiment of this disclosure, an information processing apparatus for a virtual model is also provided. The apparatus may include: a determining unit, configured to determine a virtual model to be demolished, wherein the virtual model is constructed from multiple virtual sub-models, the virtual sub-models are generated based on a set of mesh nodes, and the mesh nodes in the set of mesh nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-model is associated with at least one associated mesh node in the set of mesh nodes of the multiple virtual sub-models; a first obtaining unit, configured to, in response to the demolition of a target virtual sub-model from the virtual model, obtain a first target associated mesh node associated with the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models; a second obtaining unit, configured to obtain a target associated virtual sub-model associated with the first target associated mesh node in the multiple virtual sub-models; and a processing unit, configured to, based on the second target associated mesh node associated with the target associated virtual sub-model in the set of mesh nodes of the multiple virtual sub-models, demolish the target associated virtual sub-model from the virtual model, or prevent the demolition of the target associated virtual sub-model from the virtual model.
[0008] According to one embodiment of the present disclosure, a computer-readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the information processing method of the virtual model in any of the preceding claims when running.
[0009] According to one embodiment of this disclosure, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the information processing method of the virtual model in any of the preceding claims.
[0010] In at least some embodiments of this disclosure, a virtual model to be demolished can be determined, wherein the virtual model is established by multiple virtual sub-models, the virtual sub-models are generated based on a set of mesh nodes, the mesh nodes in the set of mesh nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-model is associated with at least one associated mesh node in the set of mesh nodes of the multiple virtual sub-models; in response to the demolition of a target virtual sub-model from the virtual model, a first target associated mesh node associated with the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models is obtained; a target associated virtual sub-model associated with the first target associated mesh node in the multiple virtual sub-models is obtained; based on a second target associated mesh node associated with the target associated virtual sub-model in the set of mesh nodes of the multiple virtual sub-models, the target associated virtual sub-model is demolished from the virtual model, or the demolition of the target associated virtual sub-model from the virtual model is prohibited. In other words, in this embodiment of the disclosure, when constructing a virtual model, the grid nodes of the virtual model record the virtual sub-models associated with them, and the virtual sub-models record the grid nodes associated with them. Thus, when dismantling the virtual model, the association between the grid nodes and the virtual sub-models can be used to quickly determine whether to dismantle the affected virtual sub-models, thereby achieving the purpose of chain-reaction dismantling of the virtual model. This improves the efficiency of dismantling the virtual model and solves the technical problem of low efficiency in dismantling the virtual model. Attached Figure Description
[0011] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this disclosure, illustrate exemplary embodiments of the present disclosure and are used to explain the disclosure, but do not constitute an undue limitation of the disclosure. In the drawings:
[0012] Figure 1 This is a hardware structure block diagram of a mobile terminal for a virtual model information processing method according to an embodiment of the present disclosure.
[0013] Figure 2 This is a flowchart of an information processing method for a virtual model according to one embodiment of the present disclosure;
[0014] Figure 3 This is a flowchart of another information processing method for a virtual model according to one embodiment of the present disclosure;
[0015] Figure 4 This is a structural block diagram of an information processing apparatus for a virtual model according to one embodiment of the present disclosure;
[0016] Figure 5 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present disclosure, and not all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present disclosure.
[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0019] In one possible implementation, regarding the dismantling of virtual models in the field of game technology, existing technologies typically employ a traversal search method. When dismantling a virtual model, it is necessary to determine whether other virtual sub-models affected by the dismantled virtual sub-model are in contact with the ground. These virtual sub-models can be building materials used to construct the virtual model, such as vertical boards, horizontal boards, walls, and floors. If an affected virtual sub-model is in contact with the ground, it indicates that the virtual sub-model has load-bearing wall support and does not need to be dismantled; if the affected virtual sub-model is not in contact with the ground, it indicates that the virtual sub-model is suspended and needs to be dismantled. Since each virtual sub-model needs to be determined, and a traversal search is required for each determination, the computational cost is high, making it impossible to complete the chained dismantling of a large number of virtual sub-models in a short time. There may also be repeated traversals, leading to low efficiency in virtual model dismantling.
[0020] However, this disclosure provides an information processing method for virtual models, which can be applied to sandbox building games. The method identifies a virtual model to be demolished, wherein the virtual model is constructed from multiple virtual sub-models. In response to the demolition of a target virtual sub-model from the virtual model, the method obtains a first target associated mesh node in the set of mesh nodes of the target virtual sub-model within the set of mesh nodes of the multiple virtual sub-models; obtains a target associated virtual sub-model in the set of mesh nodes of the first target associated mesh node within the multiple virtual sub-models; and, based on a second target associated mesh node in the set of mesh nodes of the target associated virtual sub-model within the set of mesh nodes of the multiple virtual sub-models, demolishes the target associated virtual sub-model from the virtual model, or prevents the demolition of the target associated virtual sub-model from the virtual model. In other words, in this embodiment of the disclosure, when the virtual model is constructed, the grid nodes of the virtual model record the virtual sub-models associated with them, and the virtual sub-models record the grid nodes associated with them. In this way, when the virtual model is dismantled, the association between the grid nodes and the virtual sub-models can be used to quickly determine whether to dismantle the affected virtual sub-models, thereby achieving the purpose of chain-reaction dismantling of the virtual model. This achieves the technical effect of improving the efficiency of dismantling the virtual model and solves the technical problem of low efficiency in dismantling the virtual model.
[0021] The methods and embodiments described above in this disclosure can be executed on mobile terminals, computer terminals, or similar computing devices. Taking a mobile terminal as an example, the mobile terminal can be a smartphone, a tablet computer (Portable Android Device, abbreviated as PAD), a handheld computer, a mobile internet device, a game console, or other terminal device. Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of processing illumination information according to an embodiment of this disclosure. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. Processor 102 (processor 102 may include, but is not limited to, a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) chip, micro controller unit (MCU), field programmable gate array (FPGA), neural network processing unit (NPU), tensor processing unit (TPU), artificial intelligence (AI) type processor, etc.) and memory 104 for storing data. In one embodiment of this disclosure, it may also include: transmission device 106, input / output device 108 and display device 110.
[0022] In some optional embodiments primarily focused on gaming scenarios, the aforementioned device may also provide a human-computer interaction interface with a touch-sensitive surface. This interface can sense finger contact and / or gestures to interact with a graphical user interface (GUI). The human-computer interaction functions may include the following: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. Executable instructions for performing the aforementioned human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media.
[0023] Those skilled in the art will understand that Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0024] According to one embodiment of this disclosure, an embodiment of an information processing method for a virtual model is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0025] In one possible implementation, embodiments of this disclosure provide an information processing method for a virtual model. Figure 2 This is a flowchart of an information processing method for a virtual model according to one embodiment of the present disclosure, such as... Figure 2 As shown, the method includes the following steps:
[0026] Step S201: Determine the virtual model to be demolished.
[0027] In the technical solution provided in step S201 above, the virtual model can be a model located in a virtual scene, wherein the virtual scene can be a virtual game scene, and the virtual model can contain multiple virtual models, wherein the virtual model is a virtual building model, such as a sandbox building model or a construction system model. Based on this, the virtual model to be demolished can be determined in the virtual scene. The virtual model is built from multiple virtual sub-models, and the virtual sub-models are generated based on a set of mesh nodes. The virtual sub-model can be a regular cube, such as a regular cube or a regular cuboid. Each mesh node in the set of mesh nodes is associated with at least one associated virtual sub-model in the multiple virtual sub-models, and each virtual sub-model is associated with at least one associated mesh node in the set of mesh nodes of the multiple virtual sub-models.
[0028] In this embodiment, virtual models such as the sandbox building model and the construction system model are composed of basic construction materials in the virtual construction system. These basic construction materials are virtual sub-models, which can be virtual panels, such as a single vertical wall unit or a single floor unit. Virtual panels can be composed of meshes, where the mesh is a cubic mesh composed of the smallest units in the virtual construction system. Virtual panels can typically only be built on any one face of the mesh, while stairs can be built on two diagonal sides of the mesh. The mesh has mesh nodes, and each mesh node can correspond to three different node states, such as closed, supportable, and extendable.
[0029] It should be noted that, as described above, the virtual model is built from multiple virtual sub-models, which are composed of meshes. That is, there is a relationship between the virtual sub-models and the meshes. The mesh includes mesh nodes, which can correspond to three different node states, such as closed, supportable, and extendable. When a mesh node is in the closed state, it means that the mesh node does not have a supporting function, that is, the virtual board supported by the mesh node should be removed. When a mesh node is in the supportable state, it means that a vertical board can be built on the mesh node. When a mesh node is in the extendable state, it means that both horizontal and vertical boards can be built on the mesh node.
[0030] Optionally, the multiple virtual sub-models can be vertical slab models built vertically or horizontally in the virtual model, such as vertical slabs, horizontal slabs, walls, floors, stairs, etc. Each grid node in the grid node set is associated with at least one associated virtual sub-model in the multiple virtual sub-models, and each node can store the identification information of its associated virtual sub-model, where the identification information can be the number of the associated sub-model. Furthermore, each virtual sub-model is associated with at least one associated grid node in the grid node set of the multiple virtual sub-models, and each virtual sub-model can store the identification information of its associated grid node, where the identification information can be the number of the associated grid node.
[0031] For example, multiple virtual sub-models in a virtual model are each assigned a number, and multiple mesh nodes in the virtual model are also assigned numbers. Based on this, each virtual sub-model can store the numbers of its associated mesh nodes, where mesh nodes associated with a virtual sub-model can constitute the edge corners of that virtual sub-model. Similarly, a mesh node can also store the numbers of its associated virtual sub-models within its own node, where virtual sub-models associated with a mesh node can be those connected to that mesh node. It should be noted that this is merely an illustrative example and does not limit the identification information. Any method used to identify virtual sub-models and mesh nodes is within the scope of this disclosure, and will not be elaborated upon further here.
[0032] Step S202: In response to the removal of the target virtual sub-model from the virtual model among multiple virtual sub-models, obtain the first target associated mesh node of the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models.
[0033] In step S202 above, after determining the virtual model to be demolished, the virtual model can be demolished. When the target virtual sub-model is demolished from the virtual model among multiple virtual sub-models, the first target associated grid node of the target virtual sub-model in the grid node set of multiple virtual sub-models can be obtained. The target virtual sub-model can be a vertical plate model built in the vertical building direction or a horizontal plate model built in the horizontal building direction.
[0034] In this embodiment, as described in step S201, the virtual sub-model is associated with at least one associated mesh node in the set of mesh nodes of multiple virtual sub-models, and each virtual sub-model can store mesh nodes that are associated with it. Based on this, after the target virtual sub-model is removed from the virtual model, the first target associated mesh node associated with the target virtual sub-model can be further obtained from the mesh nodes stored in the target virtual sub-model. There can be multiple first target associated mesh nodes. For example, when the target virtual sub-model is a horizontal plate, the first target associated mesh node can be the node corresponding to the edge corner of the horizontal plate.
[0035] For example, as described above, the target virtual sub-model stores the identification information of the grid nodes associated with it. Based on this, the identification information of the grid nodes associated with it stored in the target virtual sub-model can be obtained, and then the first target associated grid node associated with the target virtual sub-model can be determined from multiple grid nodes based on the identification information.
[0036] Step S203: Obtain the target associated virtual sub-models in which the first target associated mesh node is associated in multiple virtual sub-models.
[0037] In step S203 above, as described in step S201 above, each grid node in the grid node set is associated with at least one associated virtual sub-model in multiple virtual sub-models, and each node can store the associated virtual sub-model it is associated with. Based on this, after determining the first target associated grid node, the associated virtual sub-model recorded in the first target associated grid node can be further determined. The associated virtual sub-model is the virtual sub-model associated with the first target associated grid node in multiple virtual sub-models.
[0038] In this embodiment, since the first target associated grid node stores the identification information of the virtual sub-model associated with it, after determining the first target associated grid node, the identification information of the associated virtual sub-model stored inside the first target associated grid node can be further obtained, and then the target associated virtual sub-model associated with the first target associated grid node can be determined from multiple virtual sub-models based on the identification information.
[0039] Step S204: Based on the second target-associated mesh node associated with the target-associated virtual sub-model in the set of mesh nodes of multiple virtual sub-models, remove the target-associated virtual sub-model from the virtual model, or prevent the removal of the target-associated virtual sub-model from the virtual model.
[0040] In step S204 above, after the target associated virtual sub-model is determined, since the target associated virtual sub-model stores the associated mesh nodes, the second target associated mesh node associated with the target associated virtual sub-model can be obtained from the target associated virtual sub-model. Then, based on the second target associated mesh node, the target associated virtual sub-model is removed from the virtual model, or the removal of the target associated virtual sub-model from the virtual model is prohibited.
[0041] In this embodiment, as described above, each grid node can have three different node states: closed, supportable, and extendable. When a grid node is in the closed state, it means that the grid node does not have a supporting function, that is, the virtual sub-model supported by the grid node should be demolished. When a grid node is in the supportable state, it means that a vertical board can be built on the grid node. When a grid node is in the extendable state, it means that both horizontal and vertical boards can be built on the grid node.
[0042] For example, after identifying the second target-associated mesh node, its state can be further determined. If the second target-associated mesh node is in a closed state, it means that the second target-associated mesh node does not have a supporting function. In this case, the target-associated virtual sub-model associated with the second target-associated mesh node can be removed from the virtual model. If the second target-associated mesh node is in an extendable state, it means that both horizontal and vertical boards can be built on the second target-associated mesh node. In this case, it is forbidden to remove the target-associated virtual sub-model from the virtual model. If the second target-associated mesh node is in a supportable state, it can notify its associated virtual sub-model of its own state. The notified virtual sub-model can further determine whether there are other extendable nodes.
[0043] Optionally, when removing the target-associated virtual sub-model from the virtual model is prohibited based on the second target-associated mesh node, the virtual sub-model can still be removed from the virtual model in response to a user's manual removal operation.
[0044] Based on steps S201 to S204 above, when the virtual model is constructed, the mesh nodes of the virtual model record the virtual sub-models associated with them, and the virtual sub-models record the mesh nodes associated with them. In this way, when the virtual model is dismantled, the association between the mesh nodes and the virtual sub-models can be used to quickly determine whether to dismantle the affected virtual sub-models, thereby achieving the purpose of chain-reaction dismantling of the virtual model. This achieves the technical effect of improving the efficiency of dismantling the virtual model and solves the technical problem of low efficiency in dismantling the virtual model.
[0045] The method described above in this embodiment will be further illustrated with examples below.
[0046] As an optional implementation, step S202, obtaining the first target associated mesh node of the target virtual sub-model in the mesh node set of multiple virtual sub-models, includes: obtaining the first target associated mesh node from the mesh node set of multiple virtual sub-models based on the establishment direction of the target virtual sub-model in the virtual model.
[0047] In this example, the virtual model includes horizontally built virtual sub-models and vertically built virtual sub-models. Based on this, after the target virtual sub-model in the virtual model is demolished, the building direction of the target virtual sub-model in the virtual model can be determined, and then the first target associated mesh node can be obtained from the set of mesh nodes of multiple virtual sub-models.
[0048] For example, if a target virtual sub-model is vertically constructed within a virtual model, and this virtual sub-model corresponds to four nodes, where the four nodes are the top two nodes and the bottom two nodes of the target virtual sub-model, with a one-to-one correspondence between the top two nodes and the bottom two nodes, and a parent-child relationship between the top two nodes and the bottom two nodes (e.g., the bottom two nodes can be parent nodes, and the top two nodes can be child nodes), then the bottom two nodes of the target virtual sub-model can be determined as the first target associated mesh nodes. It should be noted that the number of nodes corresponding to the virtual sub-model here is merely illustrative and does not limit the scope of this disclosure.
[0049] For another example, if the target virtual sub-model is built horizontally in the virtual model, the node corresponding to the edge corner of the target virtual sub-model can be determined as the first target associated mesh node associated with the target virtual sub-model.
[0050] As an optional implementation, based on the establishment direction of the target virtual sub-model in the virtual model, a first target associated mesh node is obtained from the mesh node set of multiple virtual sub-models, including: in response to the establishment direction being the vertical establishment direction of the virtual model, obtaining a target parent mesh node in the mesh node set of the target virtual sub-model, wherein the first target associated mesh node includes the target parent mesh node, and the target parent mesh node is located at the bottom of the target virtual sub-model in the vertical establishment direction; in response to the establishment direction being the horizontal establishment direction of the virtual model, obtaining an edge mesh node in the mesh node set of the target virtual sub-model, wherein the first target associated mesh node includes the edge mesh node, and the edge mesh node is located at the vertex of the edge of the target virtual sub-model.
[0051] In this embodiment, since the virtual sub-model includes both horizontally established virtual sub-models and vertically established virtual sub-models, the methods for determining the associated mesh nodes of the horizontally established virtual sub-models and the associated mesh nodes of the vertically established virtual sub-models are different. It should be noted that the virtual sub-model is usually a regular cube, such as a regular cuboid or a regular cube.
[0052] For example, a three-dimensional Cartesian coordinate system can be established with the plane where the bottom of the virtual model is located as the XY plane and any point at the bottom of the virtual model as the origin. The X-axis can be the horizontal direction and the Z-axis can be the vertical direction. This three-dimensional Cartesian coordinate system can be a three-dimensional Cartesian coordinate system.
[0053] Optionally, when the direction of the establishment of the target virtual sub-model is the vertical direction of the establishment of the virtual model, the target parent mesh node in the set of mesh nodes of the target virtual sub-model is obtained, wherein the first target associated mesh node includes the target parent mesh node, and the target parent mesh node is located at the bottom of the target virtual sub-model in the vertical direction of establishment.
[0054] Optionally, when the direction of the establishment of the target virtual sub-model is the horizontal direction of the virtual model, the edge mesh nodes in the set of mesh nodes of the target virtual sub-model are obtained. The first target associated mesh node includes the edge mesh node, which is located on the vertex of the edge of the target virtual sub-model. For example, when the target virtual sub-model is a quadrilateral, the edge mesh node can be a node of the four vertices of the edge of the target virtual sub-model.
[0055] As an optional implementation, obtaining the target associated virtual sub-models associated with the first target associated mesh node in multiple virtual sub-models includes: removing the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target sub-mesh node is located above the target parent mesh node in the vertical establishment direction; and obtaining the target associated virtual sub-models in multiple virtual sub-models based on the first target sub-mesh node after removing the parent-child association.
[0056] In this embodiment, after determining the first target associated mesh node associated with the target virtual sub-model, the target associated virtual sub-models associated with the first target associated mesh node in multiple virtual sub-models can be obtained.
[0057] For example, as described above, when the target virtual sub-model is a vertically built virtual sub-model, the mesh nodes associated with it include the bottom and top nodes. The bottom node is the target parent mesh node in the target virtual sub-model's mesh node set, and the top node is the first target child mesh node in the same set. A parent-child relationship exists between the target parent mesh node and the first target child mesh node. Therefore, the parent-child relationship between the target parent mesh node and the first target child mesh node can be terminated first. For instance, the target parent mesh node can send a notification message to the first target child mesh node, instructing it to terminate the parent-child relationship. The first target child mesh node is located above the target parent mesh node in the vertical building direction; that is, the first target child mesh node is the top node of the target virtual sub-model.
[0058] After the parent-child relationship is severed, the target associated virtual sub-model can be obtained from multiple virtual sub-models based on the first target sub-mesh node after the parent-child relationship is severed. For example, the virtual sub-model represented by the identification information of the virtual sub-model stored in the first target mesh node can be searched from multiple virtual sub-models based on the identification information, and then the found virtual sub-model can be determined as the target associated virtual sub-model.
[0059] As an optional implementation, the information processing method of the virtual model further includes: in response to the node state of the edge mesh node being a first target node state, determining the edge mesh node as a target parent mesh node, and performing the removal of the parent-child association between the target parent mesh node and the corresponding first target child mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target node state is used to indicate that it is allowed to build the corresponding virtual sub-model on the edge mesh node in the vertical building direction.
[0060] In this embodiment, as described above, the node states of a grid node include a closed state, a supportable state, and an extendable state. The supportable state can be determined as the first target node state. Based on this, when the node state of the edge grid node is the first target node state, the edge grid node of the target virtual sub-model can be determined as the target parent grid node, and then the release step is performed to release the parent-child relationship between the target parent grid node and the corresponding first target child grid node in the set of grid nodes of multiple virtual sub-models.
[0061] As an optional implementation, based on the first target sub-mesh node after the parent-child relationship is severed, the target associated virtual sub-model is obtained from multiple virtual sub-models, including: adjusting the node state of the first target sub-mesh node to the state of the second target node in response to the first target sub-mesh node; determining the second target sub-mesh node with the first target sub-mesh node as the parent mesh node from the set of mesh nodes of multiple virtual sub-models, wherein the state of the second target node is at least used to indicate that the corresponding virtual sub-model is prohibited from being built on the first target sub-mesh node in the vertical building direction, for example, the state of the second target node is used to indicate that the corresponding virtual sub-model is prohibited from being built on the first target sub-mesh node in the vertical building direction and the horizontal building direction; and obtaining the target associated virtual sub-models associated with the second target sub-mesh node in multiple virtual sub-models.
[0062] In this embodiment, as described above, the node states of a grid node include a closed state, a supportable state, and an extendable state. Based on this, the closed state can be determined as the second target node state. Therefore, when the node state of the first target sub-grid node is adjusted from the first target state to the second target state in response to the first target sub-grid node, it indicates that the first target sub-grid node does not have a support function. In this case, a second target sub-grid node with the first target sub-grid node as its parent grid node can be further determined from the set of grid nodes of multiple virtual sub-models. The second target sub-grid node can be a child node of the first target sub-grid node. When the first target sub-grid node is in the second target state, it indicates that the first target sub-grid node does not have a support function. That is, it is prohibited to build the corresponding virtual sub-model on the first target sub-grid node in the vertical building direction.
[0063] After identifying the second target sub-grid node, we can further obtain the target associated virtual sub-models that the second target sub-grid node is associated with in multiple virtual sub-models.
[0064] For example, as described above, a grid node stores a virtual sub-model associated with it. Based on this, after determining the second target sub-grid node, the virtual sub-model stored in the second target sub-grid node can be identified as the target associated virtual sub-model that the second target sub-grid node is associated with among multiple virtual sub-models.
[0065] As an optional implementation, after determining the second target sub-mesh node with the first target sub-mesh node as its parent mesh node in the set of mesh nodes of multiple virtual sub-models, the method further includes: determining the first target sub-mesh node as the target parent mesh node and the second target sub-mesh node as the first target sub-mesh node, and returning to perform the process of removing the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, until a corresponding virtual sub-model is established in the horizontal building direction of the first target sub-mesh node, or the first target sub-mesh node is associated with a corresponding parent mesh node.
[0066] In this embodiment, after determining the first target sub-mesh node and the second target sub-mesh node, the first target sub-mesh node can be designated as the target parent mesh node, and the second target sub-mesh node can be designated as the first target sub-mesh node. Then, a release step is performed to sever the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, until a corresponding virtual sub-model is established in the horizontal direction of the first target sub-mesh node, or the first target sub-mesh node is associated with a corresponding parent mesh node. The specific implementation of the release step can be found in the previously described method, and will not be repeated here.
[0067] As an optional implementation, the information processing method of the virtual model further includes: in response to the fact that no corresponding virtual sub-model has been established in the horizontal establishment direction of the first target sub-grid node and the first target sub-grid node is not associated with a corresponding parent grid node, adjusting the node state of the first target sub-grid node to the state of the second target node.
[0068] In this embodiment, it can be determined whether the first target sub-mesh node has no corresponding virtual sub-model established in the horizontal establishment direction and whether the first target sub-mesh node is not associated with a corresponding parent mesh node. If so, for example, when the reference count of the child nodes of the first target sub-mesh node is 0, it indicates that the first target sub-mesh node has no horizontally associated virtual sub-model. Here, the reference count is used to represent the number of virtual sub-models associated with the child nodes of the first target sub-mesh node in the horizontal establishment direction. When it is responded that the first target sub-mesh node has no corresponding virtual sub-model established in the horizontal establishment direction and the first target sub-mesh node is not associated with a corresponding parent mesh node, in this case, the node state of the first target sub-mesh can be adjusted to the second target state, that is, the node state of the first target sub-mesh can be adjusted to the closed state.
[0069] It should be noted that during virtual model building, when a grid node has a virtual sub-model built in the horizontal direction, the reference count of that grid node is incremented by 1. The reference count of a grid node represents the number of virtual sub-models associated with that grid node in the horizontal direction, i.e., the number of virtual sub-models built by that grid node in the horizontal direction. Based on this, during virtual model demolition, for each virtual sub-model demolished in the horizontal direction, the reference count of the grid nodes associated with that virtual sub-model is decremented by 1. The reference count of a grid node is related to its node state; changes in the reference count can cause changes in the node state.
[0070] As an optional implementation, the information processing method of the virtual model further includes: in response to the fact that a corresponding virtual sub-model is established in the lateral establishment direction of the first target sub-grid node and the first target sub-grid node is not associated with a corresponding parent grid node, adjusting the node state of the first target sub-grid node and notifying the target to associate with the virtual sub-model.
[0071] In this embodiment, after determining whether the first target sub-mesh node has not established a corresponding virtual sub-model in the horizontal establishment direction and whether the first target sub-mesh node is not associated with a corresponding parent mesh node, if not, it is determined that the first target sub-mesh node has established a corresponding virtual sub-model in the horizontal establishment direction and whether the first target sub-mesh node is associated with a corresponding parent mesh node. For example, the first target sub-mesh node is a child node and the parent mesh node is a parent node. If the reference count of the child node is zero, it means that there are no other horizontal plates around this child node and the child node has no corresponding parent node. At this time, the child node also needs to adjust its state and notify the target to associate the virtual sub-model. The target associated virtual sub-model is also the associated object of the child node. Then the associated object can detect whether its own node contains a node in an extendable state.
[0072] Optionally, for cases where a corresponding virtual sub-model is established in the horizontal direction of the first target sub-mesh node, and the first target sub-mesh node is not associated with a corresponding parent mesh node, this embodiment can determine the original node state of the first target sub-mesh node. If the original node state of the first target sub-mesh node is an extendable state, when the parent mesh node notifies the first target sub-mesh node that the association relationship has been terminated, even if the reference count of the first target sub-mesh node is not zero, the node state of the first target sub-mesh node still needs to be changed from the extendable state to the supportable state. That is, if no other horizontal board can be built on the first target sub-mesh node, it needs to notify its target associated virtual sub-model that it has become a supportable state.
[0073] It should be noted that the above-described extensional state to supportable state to closed state in this embodiment is a hierarchical relationship. As long as it descends to the next level, the target associated virtual sub-model can be notified. Optionally, the target associated virtual sub-model includes associated horizontal boards and associated vertical boards. If it is changing from the extensional state to the supportable state, all associated horizontal boards can be notified; if it is changing from the supportable state to the closed state, associated vertical boards and child nodes should be notified (because there will be no associated horizontal boards, or even if associated horizontal boards are built, they will not become the fulcrum of the horizontal boards because they are insufficient to support them); if it is going directly from the extensional state to the closed state, then all associated vertical boards, associated horizontal boards, and child nodes should be notified, which is equivalent to descending to the supportable state and then to the closed state.
[0074] Optionally, in this embodiment, after determining whether the first target sub-mesh node has not established a corresponding virtual sub-model in the horizontal establishment direction and whether the first target sub-mesh node is not associated with a corresponding parent mesh node, if no, and it is not the case that the first target sub-mesh node has not established a corresponding virtual sub-model in the horizontal establishment direction and whether the first target sub-mesh node is not associated with a corresponding parent mesh node, then no processing can be performed on the first target sub-mesh node.
[0075] As an optional implementation, based on the second target-associated mesh node associated with the target-associated virtual sub-model in the mesh node set of multiple virtual sub-models, the target-associated virtual sub-model is removed from the virtual model, or the removal of the target-associated virtual sub-model from the virtual model is prohibited. This includes: removing the target-associated virtual sub-model from the virtual model in response to the node state of the second target-associated mesh node not being a third target node state, wherein the third target node state is used to indicate that the corresponding virtual sub-model is allowed to be built on the second target-associated mesh node in the vertical building direction and the horizontal building direction; and prohibiting the removal of the target-associated virtual sub-model from the virtual model in response to the node state of the second target-associated mesh node being a third target node state.
[0076] In this embodiment, the third node state can be an extendable state. Based on this, when the node state of the second target associated grid node is not the third target node state, the target associated virtual sub-model can be removed from the virtual model. That is, when the node state of the second target associated grid node is not an extendable state, the target associated sub-model can be removed from the virtual model. The third target node state is used to indicate that the corresponding virtual sub-model is allowed to be built on the second target associated grid node in the vertical building direction and the horizontal building direction.
[0077] In this embodiment, when the node state of the second target associated mesh is the third target node state, it means that the second target associated mesh node can establish a corresponding virtual sub-model in both the horizontal and vertical directions. In this case, it is prohibited to remove the target associated virtual sub-model from the virtual model.
[0078] Optionally, when the node state of the second target associated mesh node is the fourth target node state, prohibiting the removal of the target associated virtual sub-model from the virtual model, the target associated virtual sub-model can still be removed from the virtual model in response to the user's manual removal operation.
[0079] As an optional implementation, the information processing method for the virtual model further includes: in response to removing the target-associated virtual sub-model from the virtual model, adjusting the node state of the second target-associated grid node to the fourth target node state, wherein the fourth target node state is at least used to indicate that it is prohibited to build the corresponding virtual sub-model on the two target-associated grid node in the vertical building direction, for example, the fourth target node state is used to indicate that it is prohibited to build the corresponding virtual sub-model on the two target-associated grid node in the vertical building direction and the horizontal building direction.
[0080] In this embodiment, in response to removing the target-associated virtual sub-model from the virtual model, the node state of the second target-associated mesh node can be adjusted to the fourth target node state, wherein the fourth target node state is used to indicate that the second target-associated mesh node is in a closed state. In this case, it is prohibited to build the corresponding virtual sub-model on the second target-associated mesh node in the vertical building direction.
[0081] The technical solutions of the present invention will be further illustrated below with reference to preferred embodiments.
[0082] In related technologies, when dismantling virtual models, a traversal search method is usually adopted. After the virtual model to be dismantled is determined, for each board of the virtual model to be dismantled, it is necessary to determine whether other boards affected by the dismantled board are in contact with the ground. If the affected boards are in contact with the ground, it means that the board has load-bearing wall support and does not need to be dismantled; if the affected boards are not in contact with the ground, it means that the board is suspended and needs to be dismantled. Since each board needs to be determined and a traversal search is required for each determination, the computational cost is large, making it impossible to complete the chain dismantling of a large number of boards in a short time. There may also be repeated traversal, resulting in the technical problem of low efficiency in dismantling virtual models in virtual scenes.
[0083] This disclosure provides an information processing method for virtual models, applicable to sandbox building games. The method identifies a virtual model to be demolished, wherein the virtual model is constructed from multiple virtual sub-models. These sub-models can be building materials used to construct the virtual model, such as vertical boards, horizontal boards, walls, and floors. In response to the demolition of a target virtual sub-model from the virtual model, the method obtains a first target associated mesh node in the set of mesh nodes of the multiple virtual sub-models. It then obtains a target associated virtual sub-model associated with the first target associated mesh node in the multiple virtual sub-models. Based on a second target associated mesh node in the set of mesh nodes of the multiple virtual sub-models, the method either demolishes the target associated virtual sub-model from the virtual model or prevents its demolition. In other words, in this embodiment of the disclosure, when the virtual model is built, the grid points record the associated boards, and the boards record the associated points. In this way, when the virtual model is dismantled, the association between the grid points and the boards can be used to quickly determine whether the affected virtual model should be dismantled, so as to achieve the purpose of chain-reaction dismantling of the virtual model. This achieves the technical effect of improving the efficiency of dismantling the virtual model and solves the technical problem of low dismantling efficiency of the virtual model.
[0084] The dismantling of the virtual model in the embodiments of this disclosure will be further described below.
[0085] Figure 3 This is a flowchart of another method for dismantling a virtual model according to one embodiment of the present disclosure, such as... Figure 3 As shown, the method includes the following steps:
[0086] Step S301: Remove the vertical panel.
[0087] In step S301 above, the virtual model is constructed from multiple virtual sub-models, which are construction materials used to construct the virtual model, such as horizontal boards, vertical boards, walls, stairs, etc. Based on this, the virtual sub-models to be demolished in the virtual model can be determined, and then the determined virtual sub-models to be demolished can be demolished. The virtual sub-model can be a vertical board.
[0088] In step S302, the parent node of the vertical panel receives a shutdown notification.
[0089] In step S302 above, after the vertical board in the virtual model is removed, since the vertical board contains a bottom node and a top node, and the bottom node and the top node have a parent-child relationship, the bottom node can be the parent node and the top node can be the child node, based on this, after the vertical board is removed, the parent node of the vertical board will receive a closure notification. The closure notification is used to instruct the parent node to send a closure command to the child node. The closure command is used to instruct the child node to adjust its own node state.
[0090] For example, a node's state includes a closed state, an extendable state, and a supportable state. When a node is in a closed state, it means that the node does not have a support or extension function. When a node is in an extendable state, it means that a horizontal slab can be built in the horizontal construction direction, and a vertical slab can be built in the vertical construction direction. When a node is in a supportable state, it means that a vertical slab can be built in the vertical construction direction.
[0091] Step S303: The parent node notifies the child node to terminate the association relationship.
[0092] In step S303 above, after receiving the closure notification, the parent node can also notify the child node to terminate the association relationship with the parent node. This association relationship is the parent-child association relationship between the parent node and the child node.
[0093] Step S304: The child node determines whether to adjust the node state to the closed state.
[0094] In step S304 above, after the child node removes the parent-child association with the parent node, the child node can further determine whether to adjust its own node state to the closed state. The child node can make this determination through the following step S305.
[0095] Step S305: Check if the number of child node references is zero and if the child node has no corresponding parent node.
[0096] In step S305 above, when a child node determines whether to adjust its own node state to the closed state, it can first determine whether the child node has a reference count of zero and no parent node. If yes, that is, when the child node has a reference count of zero and the child node has no corresponding parent node, then step S306 is executed to adjust its own node state to the closed state. If no, for example, the child node has no corresponding parent node and the child node has a reference count of not zero, step 3071 can be executed. Otherwise, step S3072 can be executed, that is, the child node does not perform any processing.
[0097] Step S306: The child node adjusts its own node state to the closed state.
[0098] In step S306 above, when the number of references to a child node is 0 and the child node has no corresponding parent node, the child node can be closed, that is, its own node state is adjusted to the closed state, and then step S308 can be executed.
[0099] Step S3071: If a child node has no corresponding parent node, but the reference count of the child node is not zero, the child node needs to adjust its node state and notify the associated object.
[0100] In this embodiment, if a child node has no corresponding parent node, but the child node's reference count is not zero, the child node also needs to adjust its state and notify its associated objects. Optionally, for the case where a child node has no corresponding parent node, but the child node's reference count is not zero, this embodiment can determine the original node state of the child node. If the original node state of the child node was an extendable state, when the parent node notifies the child node to terminate the association, even if the child node's reference count is not zero, the node state of the child node needs to be changed from the extendable state to the supportable state. That is, if no other horizontal plank can be built on the child node, it needs to notify its associated objects that it has become a supportable state, and then step S309 can be executed.
[0101] It should be noted that the above-described extensionable state to supportable state to closed state in this embodiment is a hierarchical relationship. As long as it descends to the next level, the associated objects can be notified. Optionally, if it is a change from an extensionable state to a supportable state, all associated horizontal plates can be notified; if it is a change from a supportable state to a closed state, the associated vertical plates and child nodes should be notified (because there will be no associated horizontal plates, or even if associated horizontal plates are built, they will not become the fulcrum of the horizontal plates because they are insufficient to support them); if it is a direct change from an extensionable state to a closed state, then all associated vertical plates, associated horizontal plates, and child nodes should be notified, which is equivalent to descending to the supportable state and then descending to the closed state.
[0102] In step S3072, no processing is required for child nodes in other cases.
[0103] In step S3072 above, after determining whether the reference count of the child node is zero and whether there is no parent node, if not, and it is not the case that the child node has no corresponding parent node and the reference count of the child node is not zero, then the child node can be left unprocessed.
[0104] Step S308: The child node notifies the associated object of its own node status.
[0105] In step S308 above, after a child node adjusts its own node state to the closed state, it can notify the associated object or associated node of its own state.
[0106] For example, when the associated object is a vertical board, the child node can notify the vertical board of its own node status, and the vertical board can determine the node status of its own parent node through the following step S309.
[0107] For example, when the associated object is a horizontal board, the child node can notify the horizontal board of its own node status. The horizontal board can detect whether any of the four surrounding nodes are in an extendable state through the following step S309.
[0108] Step S309: The associated object detects whether its own nodes contain nodes in an extendable state.
[0109] In step S309 above, when the associated object is a vertical board, the vertical board can detect the node status of its own parent node. If the node status of the parent node is closed, then step S310 is executed. If the node status of the parent node is not closed, then step S311 is executed.
[0110] When the associated object is a horizontal board, the horizontal board can detect whether there are any nodes in the four surrounding nodes that are in an extendable state. If there are no nodes in the extendable state, then the following step S310 is executed; if there are nodes in the extendable state, then the following step S311 is executed.
[0111] Step S310: Destroy the associated object.
[0112] In step S310 above, if the associated object is a vertical board and the node state of the parent node of the vertical board is closed, then the vertical board is destroyed.
[0113] If the associated object is a horizontal board, and none of the four surrounding nodes of the horizontal board are in an extendable state, then the horizontal board will be destroyed.
[0114] Step S311: No processing is performed on the associated objects.
[0115] In step S311 above, if the associated object is a vertical board and the node state of the parent node of the vertical board is not closed, then no processing is performed on the vertical board.
[0116] If the associated object is a horizontal board, and the four nodes surrounding the horizontal board are in an extendable state, then no action is taken on the horizontal board.
[0117] Step S312: Remove the horizontal board.
[0118] In step S312 above, when the virtual sub-model that is removed in step S301 is a horizontal board in the virtual model, the following step S313 can be executed.
[0119] Step S313: The horizontal board notifies all associated nodes to dismantle themselves.
[0120] In step S313 above, after the horizontal board is removed, all associated nodes can be notified that it has been removed. The associated nodes can be regarded as parent nodes. Then, steps S303 to S311 above are executed.
[0121] In this embodiment, when the virtual model is built, the grid points record the associated boards, and the boards record the associated points. In this way, when the virtual model is dismantled, the association between the grid points and the boards can be used to quickly determine whether the affected virtual model should be dismantled, so as to achieve the purpose of chain demolition. This achieves the technical effect of improving the efficiency of virtual model dismantling and solves the technical problem of low efficiency in virtual model dismantling.
[0122] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.
[0123] This embodiment also provides an information processing device for a virtual model, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "unit" and "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0124] Figure 4 This is a structural block diagram of an information processing apparatus for a virtual model according to one embodiment of the present disclosure, such as... Figure 4 As shown, the information processing device 400 for the virtual model includes: a determining unit 401, a first acquiring unit 402, a second acquiring unit 403, and a processing unit 404.
[0125] The determining unit 401 is used to determine the virtual model to be demolished, wherein the virtual model is established by multiple virtual sub-models, the virtual sub-models are generated based on a set of grid nodes, and the grid nodes in the set of grid nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-models are associated with at least one associated grid node in the set of grid nodes of the multiple virtual sub-models.
[0126] The first acquisition unit 402 is used to acquire the first target associated mesh node of the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models in response to the removal of the target virtual sub-model from the virtual model.
[0127] The second acquisition unit 403 is used to acquire the target associated virtual sub-models associated with the first target associated mesh node in multiple virtual sub-models.
[0128] The processing unit 404 is used to remove the target associated virtual submodel from the virtual model or prevent the removal of the target associated virtual submodel from the virtual model based on the second target associated mesh node associated in the mesh node set of multiple virtual submodels.
[0129] Optionally, the first acquisition unit 401 includes: an establishment module, used to acquire the first target associated mesh node from a set of mesh nodes of multiple virtual sub-models based on the establishment direction of the target virtual sub-model in the virtual model.
[0130] Optionally, the creation module includes: a first acquisition submodule, used to acquire a target parent mesh node in the mesh node set of the target virtual submodel in response to the vertical creation direction in the virtual model, wherein the first target associated mesh node includes the target parent mesh node and the target parent mesh node is located at the bottom of the target virtual submodel in the vertical creation direction; and a second acquisition submodule, used to acquire an edge mesh node in the mesh node set of the target virtual submodel in response to the horizontal creation direction in the virtual model, wherein the first target associated mesh node includes the edge mesh node and the edge mesh node is located at the vertex of the edge of the target virtual submodel.
[0131] Optionally, the creation module further includes: a removal submodule, used to remove the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target sub-mesh node is located above the target parent mesh node in the vertical creation direction; and a third acquisition submodule, used to acquire the target associated virtual sub-model in multiple virtual sub-models based on the first target sub-mesh node after removing the parent-child association.
[0132] Optionally, the information processing device 400 of the virtual model further includes: a determining unit, configured to determine the edge grid node as the target parent grid node in response to the node state of the edge grid node being the first target node state, and to perform the removal of the parent-child association between the target parent grid node and the corresponding first target child grid node in the set of grid nodes of multiple virtual sub-models, wherein the first target node state is used to indicate that the corresponding virtual sub-model is allowed to be built on the edge grid node in the vertical building direction.
[0133] Optionally, the third acquisition submodule is used to adjust the node state of the first target sub-mesh node to the second target node state in response to the first target sub-mesh node, determine the second target sub-mesh node with the first target sub-mesh node as the parent mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the second target node state is used to indicate that the corresponding virtual sub-model is prohibited from being built on the first target sub-mesh node in the vertical building direction; and acquire the target associated virtual sub-models of the second target sub-mesh node in the multiple virtual sub-models.
[0134] Optionally, the third acquisition submodule is further configured to determine the first target sub-mesh node as the target parent mesh node and the second target sub-mesh node as the first target sub-mesh node, and return to perform the removal of the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, until a corresponding virtual sub-model is established in the horizontal establishment direction of the first target sub-mesh node, or the first target sub-mesh node is associated with a corresponding parent mesh node.
[0135] Optionally, the information processing device 400 for the virtual model further includes: an adjustment unit, used to adjust the node state of the first target sub-grid node to the state of the second target node in response to the fact that no corresponding virtual sub-model has been established in the lateral establishment direction of the first target sub-grid node and the first target sub-grid node is not associated with a corresponding parent grid node.
[0136] Optionally, the processing unit 404 is further configured to: remove the target-associated virtual sub-model from the virtual model when the node state of the second target-associated mesh node is not the third target node state, wherein the third target node state is used to indicate that the corresponding virtual sub-model is allowed to be built on the second target-associated mesh node in the vertical building direction and the horizontal building direction; and prohibit the removal of the target-associated virtual sub-model from the virtual model when the node state of the second target-associated mesh node is the third target node state.
[0137] Optionally, the information processing device 400 of the virtual model is further configured to: in response to removing the target-associated virtual sub-model from the virtual model, adjust the node state of the second target-associated grid node to the fourth target node state, wherein the fourth target node state is used to indicate that it is prohibited to build the corresponding virtual sub-model on the two target-associated grid node in the vertical building direction.
[0138] In the information processing device for the virtual model in this embodiment, the grid points of the virtual model record the associated boards during construction, and the boards record the associated points. In this way, when the virtual model is dismantled, the association between the grid points and the boards can be used to quickly determine whether the affected virtual model should be dismantled, thereby achieving the purpose of chain demolition and thus improving the technical effect of improving the efficiency of dismantling the virtual model, thereby solving the technical problem of low dismantling efficiency of the virtual model.
[0139] It should be noted that the above-mentioned units and modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but not limited to these: all the above-mentioned units and modules are located in the same processor; or, the above-mentioned units and modules are located in different processors in any combination.
[0140] Embodiments of this disclosure also provide a computer-readable storage medium storing a computer program configured to perform the steps in any of the above method embodiments when executed.
[0141] Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0142] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0143] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0144] S1, determine the virtual model to be demolished, wherein the virtual model is established by multiple virtual sub-models, the virtual sub-models are generated based on a set of grid nodes, the grid nodes in the set of grid nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-models are associated with at least one associated grid node in the set of grid nodes of the multiple virtual sub-models.
[0145] S2, in response to the removal of the target virtual sub-model from the virtual model among multiple virtual sub-models, obtains the first target associated mesh node of the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models.
[0146] S3, obtain the target associated virtual sub-models in which the first target associated mesh node is associated in multiple virtual sub-models.
[0147] S4, based on the second target-associated mesh node associated with the target-associated virtual sub-model in the set of mesh nodes of multiple virtual sub-models, remove the target-associated virtual sub-model from the virtual model, or prevent the removal of the target-associated virtual sub-model from the virtual model.
[0148] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: obtaining a first target associated mesh node from a set of mesh nodes of multiple virtual sub-models based on the building direction of the target virtual sub-model in the virtual model.
[0149] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: in response to the building direction being the vertical building direction in the virtual model, obtaining a target parent mesh node from the mesh node set of the target virtual sub-model, wherein the first target associated mesh node includes the target parent mesh node, and the target parent mesh node is located at the bottom of the target virtual sub-model in the vertical building direction; in response to the building direction being the horizontal building direction in the virtual model, obtaining an edge mesh node from the mesh node set of the target virtual sub-model, wherein the first target associated mesh node includes the edge mesh node, and the edge mesh node is located at the vertex of the edge of the target virtual sub-model.
[0150] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: removing the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target sub-mesh node is located above the target parent mesh node in the vertical creation direction; and obtaining the target associated virtual sub-model in the multiple virtual sub-models based on the first target sub-mesh node after removing the parent-child association.
[0151] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: in response to the node state of the edge mesh node being a first target node state, determining the edge mesh node as a target parent mesh node, and performing the removal of the parent-child association between the target parent mesh node and the corresponding first target child mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target node state is used to indicate that it is permissible to build the corresponding virtual sub-model on the edge mesh node in the vertical building direction.
[0152] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: in response to the node state of the first target sub-mesh node being adjusted to the second target node state, determining a second target sub-mesh node with the first target sub-mesh node as its parent mesh node in a set of mesh nodes of multiple virtual sub-models, wherein the second target node state is used to indicate that the corresponding virtual sub-model is prohibited from being built on the first target sub-mesh node in the vertical building direction; and obtaining the target associated virtual sub-models associated with the second target sub-mesh node in the multiple virtual sub-models.
[0153] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: determining a first target sub-mesh node as a target parent mesh node, and determining a second target sub-mesh node as a first target sub-mesh node, returning to perform the removal of the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, until a corresponding virtual sub-model is established in the lateral establishment direction of the first target sub-mesh node, or the first target sub-mesh node is associated with a corresponding parent mesh node.
[0154] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: in response to the fact that no corresponding virtual sub-model has been established in the lateral establishment direction of the first target sub-mesh node, and the first target sub-mesh node is not associated with a corresponding parent mesh node, the node state of the first target sub-mesh node is adjusted to the state of the second target node.
[0155] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: in response to the node state of the second target-associated mesh node not being the third target node state, removing the target-associated virtual sub-model from the virtual model, wherein the third target node state is used to indicate that it is permissible to establish corresponding virtual sub-models on the second target-associated mesh node in the vertical and horizontal establishment directions; in response to the node state of the second target-associated mesh node being the third target node state, prohibiting the removal of the target-associated virtual sub-model from the virtual model.
[0156] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: in response to removing the target-associated virtual sub-model from the virtual model, adjusting the node state of the second target-associated mesh node to a fourth target node state, wherein the fourth target node state is used to indicate that it is prohibited to build the corresponding virtual sub-model on the two target-associated mesh node in the vertical building direction.
[0157] In this embodiment, a computer-readable storage medium provides a method for processing a virtual model. During the construction of the virtual model, grid points record associated boards, and boards record associated points. Thus, when dismantling the virtual model, the association between grid points and boards allows for rapid determination of whether to dismantle the affected virtual model, thereby improving the efficiency of virtual model dismantling and solving the technical problem of low dismantling efficiency.
[0158] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a Compact Disc Read-Only Memory, abbreviated as CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0159] In exemplary embodiments of this disclosure, a computer-readable storage medium stores a program product capable of implementing the methods described above in this embodiment. In some possible implementations, various aspects of the embodiments of this disclosure may also be implemented as a program product including program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps according to various exemplary embodiments of this disclosure described in the "Exemplary Methods" section above.
[0160] The program product for implementing the above-described method according to embodiments of the present disclosure may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the embodiments of the present disclosure is not limited thereto. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0161] The aforementioned program product may take the form of any combination of one or more computer-readable media. Such computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (not exhaustive) of computer-readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0162] It should be noted that the program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, (Radio Frequency, RF) and so on, or any suitable combination thereof.
[0163] Embodiments of this disclosure also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0164] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0165] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0166] S1, determine the virtual model to be demolished, wherein the virtual model is established by multiple virtual sub-models, the virtual sub-models are generated based on a set of grid nodes, the grid nodes in the set of grid nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-models are associated with at least one associated grid node in the set of grid nodes of the multiple virtual sub-models.
[0167] S2, in response to the removal of the target virtual sub-model from the virtual model among multiple virtual sub-models, obtains the first target associated mesh node of the target virtual sub-model in the set of mesh nodes of the multiple virtual sub-models.
[0168] S3, obtain the target associated virtual sub-models in which the first target associated mesh node is associated in multiple virtual sub-models.
[0169] S4, based on the second target-associated mesh node associated with the target-associated virtual sub-model in the set of mesh nodes of multiple virtual sub-models, remove the target-associated virtual sub-model from the virtual model, or prevent the removal of the target-associated virtual sub-model from the virtual model.
[0170] Optionally, the processor may also be configured to perform the following steps via a computer program: based on the building direction of the target virtual sub-model in the virtual model, obtain the first target associated mesh node from the set of mesh nodes of multiple virtual sub-models.
[0171] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to the building direction being the vertical building direction in the virtual model, obtaining the target parent mesh node in the mesh node set of the target virtual sub-model, wherein the first target associated mesh node includes the target parent mesh node, and the target parent mesh node is located at the bottom of the target virtual sub-model in the vertical building direction; in response to the building direction being the horizontal building direction in the virtual model, obtaining the edge mesh node in the mesh node set of the target virtual sub-model, wherein the first target associated mesh node includes the edge mesh node, and the edge mesh node is located at the vertex of the edge of the target virtual sub-model.
[0172] Optionally, the processor may also be configured to perform the following steps via a computer program: severing the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target sub-mesh node is located above the target parent mesh node in the vertical creation direction; and obtaining the target associated virtual sub-model in the multiple virtual sub-models based on the first target sub-mesh node after severing the parent-child association.
[0173] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to the node state of the edge mesh node being a first target node state, determining the edge mesh node as a target parent mesh node, and performing the removal of the parent-child association between the target parent mesh node and the corresponding first target child mesh node in the set of mesh nodes of multiple virtual sub-models, wherein the first target node state is used to indicate that the corresponding virtual sub-model is allowed to be built on the edge mesh node in the vertical building direction.
[0174] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to the node state of the first target sub-mesh node being adjusted to the second target node state, determining a second target sub-mesh node with the first target sub-mesh node as its parent mesh node in a set of mesh nodes of multiple virtual sub-models, wherein the second target node state is used to indicate that the corresponding virtual sub-model is prohibited from being built on the first target sub-mesh node in the vertical building direction; and obtaining the target associated virtual sub-models associated with the second target sub-mesh node in the multiple virtual sub-models.
[0175] Optionally, the processor may also be configured to perform the following steps via a computer program: determining the first target sub-mesh node as the target parent mesh node and the second target sub-mesh node as the first target sub-mesh node, returning to perform the removal of the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of multiple virtual sub-models, until a corresponding virtual sub-model is established in the horizontal building direction of the first target sub-mesh node, or the first target sub-mesh node is associated with a corresponding parent mesh node.
[0176] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to the fact that no corresponding virtual sub-model has been established in the lateral establishment direction of the first target sub-mesh node and the first target sub-mesh node is not associated with a corresponding parent mesh node, the node state of the first target sub-mesh node is adjusted to the state of the second target node.
[0177] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to the node state of the second target-associated mesh node not being the third target node state, removing the target-associated virtual sub-model from the virtual model, wherein the third target node state is used to indicate that the corresponding virtual sub-model is allowed to be built on the second target-associated mesh node in the vertical building direction and the horizontal building direction; in response to the node state of the second target-associated mesh node being the third target node state, prohibiting the removal of the target-associated virtual sub-model from the virtual model.
[0178] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to removing the target-associated virtual sub-model from the virtual model, adjusting the node state of the second target-associated mesh node to the fourth target node state, wherein the fourth target node state is used to indicate that it is prohibited to build the corresponding virtual sub-model on the two target-associated mesh node in the vertical building direction.
[0179] In the electronic device of this embodiment, a method for processing virtual models is provided. During the construction of the virtual model, grid points record associated boards, and boards record associated points. Thus, when dismantling the virtual model, the association between grid points and boards allows for rapid determination of whether to dismantle the affected virtual model, thereby improving the efficiency of virtual model dismantling and solving the technical problem of low dismantling efficiency.
[0180] Figure 5 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure. Figure 5 As shown, the electronic device 500 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0181] like Figure 5 As shown, the electronic device 500 is presented in the form of a general-purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one processor 510, at least one memory 520, a bus 530 connecting different system components (including memory 520 and processor 510), and a display 540.
[0182] The memory 520 stores program code that can be executed by the processor 510, causing the processor 510 to perform the steps described in the method section of the embodiments of this disclosure according to various exemplary implementations of this disclosure.
[0183] The memory 520 may include a readable medium in the form of volatile memory cells, such as random access memory (RAM) 5201 and / or cache memory 5202, and may further include read-only memory (ROM) 5203, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
[0184] In some instances, memory 520 may also include programs / utilities 5204 having a set (at least one) of program modules 5205, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Memory 520 may further include memory remotely located relative to processor 510, which can be connected to electronic device 500 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0185] Bus 530 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, peripheral bus, graphics acceleration port, processor 510, or a local bus using any of the various bus structures.
[0186] The display 540 may be, for example, a touch-screen liquid crystal display (LCD), which allows the user to interact with the user interface of the electronic device 500.
[0187] Optionally, the electronic device 500 can also communicate with one or more external devices 600 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 500, and / or any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via the input / output (I / O) interface 550. Furthermore, the electronic device 500 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via a network adapter 560. Figure 5 As shown, network adapter 560 communicates with other modules of electronic device 500 via bus 530. It should be understood that, although... Figure 5 As not shown in the diagram, other hardware and / or software modules may be used in conjunction with electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (RAID systems), tape drives, and data backup storage systems.
[0188] The aforementioned electronic device 500 may also include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply, and / or a camera.
[0189] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device 500 may also include components that are more... Figure 5 The more or fewer components shown, or having the same Figure 1 Different configurations are shown. The memory 520 can be used to store computer programs and corresponding data, such as the computer program and corresponding data corresponding to the illumination information processing method in this embodiment. The processor 510 executes various functional applications and data processing by running the computer program stored in the memory 520, thereby implementing the aforementioned illumination information processing method.
[0190] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0191] In the above embodiments of this disclosure, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0192] In the several embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0193] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0194] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0195] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0196] The above description is only a preferred embodiment of this disclosure. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of this disclosure, and these improvements and modifications should also be considered within the scope of protection of this disclosure.
Claims
1. An information processing method of a virtual model characterized by, include: The virtual model to be demolished is determined, wherein the virtual model is established by multiple virtual sub-models, the virtual sub-models are generated based on a set of grid nodes, and the grid nodes in the set of grid nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-models are associated with at least one associated grid node in the set of grid nodes of the multiple virtual sub-models. In response to the removal of a target virtual sub-model from the virtual model among the plurality of virtual sub-models, the first target associated mesh node of the target virtual sub-model in the mesh node set of the plurality of virtual sub-models is obtained; Obtain the target associated virtual sub-models that the first target associated mesh node is associated with in the plurality of virtual sub-models; Based on the second target associated mesh node associated with the target associated virtual sub-model in the mesh node set of the plurality of virtual sub-models, the target associated virtual sub-model is removed from the virtual model, or the removal of the target associated virtual sub-model from the virtual model is prohibited. The process of obtaining the target associated virtual sub-model associated with the first target associated mesh node in the plurality of virtual sub-models includes: removing the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of the plurality of virtual sub-models, wherein the target parent mesh node is located at the bottom of the target virtual sub-model in the vertical construction direction, and the first target sub-mesh node is located above the target parent mesh node in the vertical construction direction; and obtaining the target associated virtual sub-model in the plurality of virtual sub-models based on the first target sub-mesh node after removing the parent-child association.
2. The method according to claim 1, characterized in that, Obtaining the first target associated mesh node of the target virtual sub-model in the set of mesh nodes of the plurality of virtual sub-models includes: Based on the establishment direction of the target virtual sub-model in the virtual model, the first target associated grid node is obtained from the grid node set of the plurality of virtual sub-models.
3. The method according to claim 2, characterized in that, Based on the building direction of the target virtual sub-model in the virtual model, the first target associated mesh node is obtained from the mesh node set of the plurality of virtual sub-models, including: In response to the establishment direction being the vertical establishment direction of the virtual model, the target parent mesh node in the mesh node set of the target virtual sub-model is obtained, wherein the first target associated mesh node includes the target parent mesh node; In response to the establishment direction being the horizontal establishment direction of the virtual model, edge mesh nodes in the mesh node set of the target virtual sub-model are obtained, wherein the first target associated mesh node includes the edge mesh node, and the edge mesh node is located at the vertex of the edge of the target virtual sub-model.
4. The method according to claim 3, characterized in that, The method further includes: In response to the edge mesh node being in the first target node state, the edge mesh node is determined as the target parent mesh node, and the parent-child association between the target parent mesh node and the corresponding first target child mesh node in the set of mesh nodes of the plurality of virtual child models is terminated. The first target node state is used to indicate that the corresponding virtual child model is allowed to be built on the edge mesh node in accordance with the vertical building direction.
5. The method according to claim 1 or 4, characterized in that, Based on the first target sub-mesh node after the parent-child association is severed, the target associated virtual sub-model is obtained from the plurality of virtual sub-models, including: In response to the node state of the first target sub-mesh node being adjusted to the second target node state, a second target sub-mesh node with the first target sub-mesh node as its parent mesh node is determined from the set of mesh nodes of the plurality of virtual sub-models. The second target node state is at least used to indicate that it is prohibited to build the corresponding virtual sub-model on the first target sub-mesh node in accordance with the vertical building direction. Obtain the target associated virtual sub-model that the second target sub-mesh node is associated with in the plurality of virtual sub-models.
6. The method according to claim 5, characterized in that, After determining a second target sub-mesh node with the first target sub-mesh node as its parent node from the set of mesh nodes of the plurality of virtual sub-models, the method further includes: The first target sub-mesh node is determined as the target parent mesh node, and the second target sub-mesh node is determined as the first target sub-mesh node. Then, the process of removing the parent-child association between the target parent mesh node and the corresponding first target sub-mesh node in the set of mesh nodes of the multiple virtual sub-models is performed until a corresponding virtual sub-model is established in the horizontal direction of the first target sub-mesh node, or the first target sub-mesh node is associated with a corresponding parent mesh node.
7. The method according to claim 5, characterized in that, The method further includes: In response to the fact that no corresponding virtual sub-model has been established in the horizontal direction of the first target sub-mesh node and the first target sub-mesh node is not associated with a corresponding parent mesh node, the node state of the first target sub-mesh node is adjusted to the state of the second target node.
8. The method according to any one of claims 1 to 4, characterized in that, Based on the second target-associated mesh node associated with the target-associated virtual sub-model in the mesh node set of the plurality of virtual sub-models, the target-associated virtual sub-model is removed from the virtual model, or the removal of the target-associated virtual sub-model from the virtual model is prohibited, including: In response to the second target associated mesh node's node state not being the third target node state, the target associated virtual sub-model is removed from the virtual model, wherein the third target node state is used to indicate that it is allowed to build corresponding virtual sub-models on the second target associated mesh node in the vertical building direction and the horizontal building direction; In response to the node state of the second target associated mesh node being the third target node state, removing the target associated virtual sub-model from the virtual model is prohibited.
9. The method according to any one of claims 1 to 4, characterized in that, The method further includes: In response to removing the target-associated virtual sub-model from the virtual model, the node state of the second target-associated mesh node is adjusted to the fourth target node state, wherein the fourth target node state is at least used to indicate that it is prohibited to build the corresponding virtual sub-model on the two target-associated mesh nodes in the vertical building direction.
10. The method according to any one of claims 1 to 4, characterized in that, The virtual model is a virtual building model, and the target virtual sub-model is a vertical slab model built in the vertical direction or a horizontal slab model built in the horizontal direction.
11. An information processing device for a virtual model, characterized in that, include: A determining unit is used to determine a virtual model to be demolished, wherein the virtual model is established by multiple virtual sub-models, the virtual sub-models are generated based on a set of grid nodes, the grid nodes in the set of grid nodes are associated with at least one associated virtual sub-model in the multiple virtual sub-models, and the virtual sub-models are associated with at least one associated grid node in the set of grid nodes of the multiple virtual sub-models; The first acquisition unit is configured to, in response to the removal of a target virtual sub-model from the virtual model among the plurality of virtual sub-models, acquire the first target associated mesh node of the target virtual sub-model in the mesh node set of the plurality of virtual sub-models; The second acquisition unit is used to acquire the target associated virtual sub-models associated with the first target associated mesh node in the plurality of virtual sub-models; The processing unit is configured to remove the target associated virtual sub-model from the virtual model, or prevent the removal of the target associated virtual sub-model from the virtual model, based on the second target associated mesh node associated with the target associated virtual sub-model in the mesh node set of the plurality of virtual sub-models; The second acquisition unit is further configured to: remove the parent-child association between the target parent grid node and the corresponding first target sub-grid node in the set of grid nodes of the plurality of virtual sub-models, wherein the target parent grid node is located at the bottom of the target virtual sub-model in the vertical building direction, and the first target sub-grid node is located above the target parent grid node in the vertical building direction; and based on the first target sub-grid node after removing the parent-child association, acquire the target associated virtual sub-model in the plurality of virtual sub-models.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to perform the method described in any one of claims 1 to 10 when executed by a processor.
13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 10.