Solid model hiding method, device, electronic equipment and storage medium

Through plane projection and area division of the solid model, and parallel blanking processing, the problem of low computational efficiency caused by the large amount of solid model data is solved, and more efficient blanking calculation is achieved.

CN113628102BActive Publication Date: 2024-09-10GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110937466.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-16
Publication Date
2024-09-10
Estimated Expiration
2041-08-16

AI Technical Summary

Technical Problem

When there are many entity models in the space, the amount of data involved in blanking calculation for each entity model is huge, resulting in low efficiency of blanking calculation and unable to meet the development needs of modern society.

Method used

By traversing the entity model in the space, projecting it planarly and dividing the area, determining the area to which each entity model belongs according to the preset rules, performing blanking processing in parallel, and finally extracting and splicing the blanking results from the regional blanking processing results. entity model.

Benefits of technology

Through regional parallel blanking processing, the blanking calculation efficiency is significantly improved and the processing speed is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113628102B
    Figure CN113628102B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, electronic device and storage medium for entity model hiding, the method comprising: traversing each entity model to be hidden in the space, performing plane projection on each entity model to be hidden, and determining the overall plane boundary after the projection of each entity model to be hidden; dividing the overall plane boundary into regions according to a preset division rule, and determining the region to which each entity model to be hidden belongs; hiding the entity model to be hidden in each region in parallel, and obtaining the regional hiding processing result of the entity model to be hidden in each region; extracting the hiding processing result of each entity model to be hidden from the regional hiding processing result and performing splicing processing to obtain each entity model to be hidden after hiding. By dividing the space into multiple regions, the entity models are classified according to the region where they are located, and parallel hiding processing is performed on the entity models in each region, such a method based on regional parallel hiding can significantly improve the efficiency of hiding calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of image processing technology, and in particular to a method, device, electronic device and storage medium for hiding a solid model. Background Art

[0002] With the development of science and technology, large-scale and complex solid models need to be modeled and projected on computers to display or generate two-dimensional wireframe drawings to guide the actual production and installation of objects. However, due to the limitations of computer processors and other hardware, when the volume of solid model hidden data to be calculated is too large, the calculation efficiency of solid model hidden data is low and cannot meet the development needs of today's society.

[0003] In order to improve the efficiency of hidden face removal calculation, various methods have been derived to improve the efficiency of hidden face removal calculation through processing methods. Generally, the projection surface data of a single entity model is reduced through rendering, projection and other methods, thereby improving the efficiency of hidden face removal calculation. However, when there are many entity models in the space, the amount of data involved in the hidden face removal calculation of each entity model is still quite large, so the efficiency of hidden face removal calculation is still not significantly improved. Summary of the invention

[0004] In order to solve the above-mentioned technical problem that when there are many entity models in the space, the amount of data involved in the hidden calculation of each entity model is still quite large, and therefore the hidden calculation efficiency is still not significantly improved, the embodiments of the present invention provide a entity model hidden calculation method, device, electronic device and storage medium.

[0005] In a first aspect of an embodiment of the present invention, a method for hiding a solid model is first provided, the method comprising:

[0006] Traversing each to-be-hidden entity model in the space, performing plane projection on each to-be-hidden entity model, and determining the overall plane boundary after the projection of each to-be-hidden entity model;

[0007] According to a preset division rule, the overall plane boundary is divided into regions, and the region to which each of the to-be-hidden entity models belongs is determined;

[0008] Performing a hidden process on the entity models to be hidden in each region in parallel to obtain a regional hidden process result of the entity models to be hidden in each region;

[0009] From the region hidden processing results, the hidden processing results of each of the entity models to be hidden are extracted and spliced ​​to obtain each of the entity models to be hidden after hidden processing.

[0010] In an optional implementation, traversing each to-be-hidden entity model in the space and performing plane projection on each to-be-hidden entity model includes:

[0011] Traversing each entity model to be hidden in the space, and numbering each entity model to be hidden;

[0012] Performing plane projection on each of the entity models to be hidden according to the viewing direction to obtain the plane boundary of each of the entity models to be hidden after projection;

[0013] The step of extracting the hidden processing results of each of the entity models to be hidden from the region hidden processing results comprises:

[0014] According to the serial number of each entity model to be hidden, the hidden processing result of each entity model to be hidden is extracted from the regional hidden processing result.

[0015] In an optional implementation, the determining of the overall plane boundary after projection of each of the to-be-hidden solid models includes:

[0016] The plane boundaries after the projection of the entity models to be hidden are merged to obtain the overall plane boundaries after the projection of each entity model to be hidden.

[0017] In an optional implementation, determining the region to which each of the to-be-hidden entity models belongs includes:

[0018] For any of the entity models to be hidden, performing intersection calculation between the plane boundary after the projection of the entity model to be hidden and each area;

[0019] The region to which the to-be-erased entity model belongs is determined according to the intersection between the plane boundary after the projection of the to-be-erased entity model and each region.

[0020] In an optional implementation, determining the region to which the to-be-eliminated entity model belongs according to the intersection between the plane boundary after the projection of the to-be-eliminated entity model and each region includes:

[0021] If the plane boundary after the projection of the to-be-eliminated entity model completely intersects or partially intersects with the target area, the to-be-eliminated entity model is included in the target area, and the target area is any area among the areas.

[0022] In an optional implementation, the performing of the splicing process to obtain the hidden entity models to be hidden includes:

[0023] According to the area to which each of the entity models to be hidden belongs, the hidden processing results of each of the entity models to be hidden are spliced ​​to obtain each of the entity models to be hidden after hidden.

[0024] In an optional implementation, the step of performing a splicing process on the hidden processing results of each of the entity models to be hidden according to the region to which each of the entity models to be hidden belongs, to obtain each of the entity models to be hidden after hidden, comprises:

[0025] For any of the entity models to be hidden, if the area to which the entity model to be hidden belongs is one, a solid line in the hidden processing result of the entity model to be hidden is selected to obtain the entity model to be hidden after hidden;

[0026] If the entity model to be hidden belongs to multiple regions, select a main region from the multiple regions, and obtain the solid lines and dotted lines in the hidden processing result of the entity model to be hidden in the main region;

[0027] Obtaining the dotted lines in the hidden processing results of the entity model to be hidden in the remaining areas, and deleting the dotted lines that are repeated with the dotted lines in the hidden processing results of the entity model to be hidden in the main area from the dotted lines in the hidden processing results of the entity model to be hidden in the remaining areas;

[0028] Traversing the remaining dotted lines in the hidden processing result of the entity model to be hidden in the remaining areas, and determining whether the remaining dotted lines overlap with the solid lines in the hidden processing result of the entity model to be hidden in the main area;

[0029] If the remaining dotted line is repeated with a solid line in the hidden processing result of the to-be-hidden entity model of the main area, the solid line in the hidden processing result of the to-be-hidden entity model of the main area is deleted;

[0030] If the remaining dotted line overlaps with a solid line portion in the hidden processing result of the to-be-hidden entity model of the main body area, deleting the overlapping solid line portion in the hidden processing result of the to-be-hidden entity model of the main body area;

[0031] The remaining solid lines in the hidden processing result of the entity model to be hidden in the main area are selected to obtain the entity model to be hidden after hidden.

[0032] In a second aspect of an embodiment of the present invention, a solid model hiding device is provided, the device comprising:

[0033] A model projection module, used for traversing each entity model to be hidden in the space, performing plane projection on each entity model to be hidden, and determining the overall plane boundary after the projection of each entity model to be hidden;

[0034] A region division module, used to divide the overall plane boundary into regions according to a preset division rule, and determine the region to which each of the to-be-hidden entity models belongs;

[0035] A hidden processing module is used to perform hidden processing on the entity models to be hidden in each region in parallel to obtain the regional hidden processing results of the entity models to be hidden in each region;

[0036] The result splicing module is used to extract the hidden processing results of each entity model to be hidden from the regional hidden processing results and perform splicing processing to obtain each entity model to be hidden after hidden.

[0037] In a third aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0038] Memory, used to store computer programs;

[0039] The processor is used to implement the entity model hidden layer method described in the first aspect when executing the program stored in the memory.

[0040] In a fourth aspect of the embodiments of the present invention, a storage medium is further provided, wherein instructions are stored in the storage medium, and when the instructions are executed on a computer, the computer executes the entity model hidden layer method described in the first aspect.

[0041] In a fifth aspect of the embodiments of the present invention, a computer program product comprising instructions is also provided. When the computer program product is run on a computer, the computer executes the entity model hidden layer method described in the first aspect.

[0042] The technical solution provided by the embodiment of the present invention traverses each entity model to be hidden in the space, performs plane projection on each entity model to be hidden, determines the overall plane boundary after the projection of each entity model to be hidden, divides the overall plane boundary into regions according to the preset division rules, determines the region to which each entity model to be hidden belongs, performs hiding processing on the entity models to be hidden in each region in parallel, obtains the regional hiding processing results of the entity models to be hidden in each region, extracts the hiding processing results of each entity model to be hidden from the regional hiding processing results and performs splicing processing to obtain each entity model to be hidden after hiding. By dividing the space into multiple regions, the entity models are classified according to the region where they are located, and parallel hiding processing is adopted for the entity models in each region, so that the hiding calculation efficiency can be significantly improved based on the regional parallel hiding method. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0045] Figure 1 It is a schematic diagram of an implementation flow of a solid model hiding method shown in an embodiment of the present invention;

[0046] Figure 2 is a schematic diagram of an overall plane boundary shown in an embodiment of the present invention;

[0047] Figure 3 It is a schematic diagram of a horizontal equal division of an overall plane boundary shown in an embodiment of the present invention;

[0048] Figure 4 A schematic diagram showing a physical model divided into corresponding areas in an embodiment of the present invention;

[0049] Figure 5 It is a structural schematic diagram of a solid model blanking device shown in an embodiment of the present invention;

[0050] Figure 6 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] like Figure 1 FIG. 1 is a schematic diagram of an implementation flow of a method for hiding a solid model provided by an embodiment of the present invention. The method is applied to a processor and may specifically include the following steps:

[0054] S101, traversing each entity model to be hidden in the space, performing plane projection on each entity model to be hidden, and determining the overall plane boundary of each entity model to be hidden after projection.

[0055] In the embodiment of the present invention, the entity model can be roughly divided into a regular entity model and an irregular entity model. The entity model corresponds to an object in an actual scene, such as a table, a chair, etc., and the embodiment of the present invention does not limit this.

[0056] Based on this, the embodiment of the present invention can traverse each entity model to be hidden in the space, which means traversing the entity models that need to be hidden in the entire space. In addition, each entity model to be hidden needs to be numbered.

[0057] For example, the space includes 10 entity models. The entity models that need to be hidden in the entire space are traversed, and each entity model to be hidden is numbered: entity model 1, entity model 2, ..., entity model 10.

[0058] It should be noted that each entity model to be hidden is numbered here. The number is the identity of each entity model to be hidden, is unique, corresponds to the entity model to be hidden, and is used to distinguish the hidden processing results of each entity model to be hidden later.

[0059] In addition, plane projection is performed on the entity models to be hidden in the space, that is, plane projection is performed on each entity model to be hidden in the space according to the viewing direction to obtain the plane boundaries of each entity model to be hidden after projection.

[0060] At this point, for the plane boundaries after the projection of each to-be-erased entity model, the plane boundaries after the projection of the to-be-erased entity model can be merged to obtain the overall plane boundaries after the projection of each to-be-erased entity model.

[0061] For example, the space includes 10 entity models to be hidden: entity model 1, entity model 2, ..., entity model 10. All entity models to be hidden in the entire space are projected in a plane according to the top-down view direction, and the plane boundary of each entity model to be hidden after projection can be obtained.

[0062] For the plane boundary after the projection of each to-be-hidden solid model, merge the plane boundary after the projection of each to-be-hidden solid model to obtain the overall plane boundary after the projection of all to-be-hidden solid models, such as Figure 2 shown.

[0063] S102, dividing the overall plane boundary into regions according to a preset division rule, and determining the region to which each of the to-be-hidden entity models belongs.

[0064] For the overall plane boundary after the projection of each to-be-hidden solid model, the overall plane boundary is divided into regions according to a preset division rule, so that the overall plane boundary can be divided into multiple regions.

[0065] For example, for the overall plane boundary after projection of all solid models to be hidden, assuming that the projection plane is the XOY plane, the length of the overall plane boundary on the X-axis is 2000mm, the overall plane boundary can be divided into 4 areas, each area has a length of 500mm on the X-axis, and the length of each area on the Y-axis is the same as the length of the overall plane boundary on the Y-axis.

[0066] It should be noted that the division rule of the overall plane boundary here can be specifically horizontally divided equally, such as Figure 3 As shown, the whole plane boundary is divided into three regions horizontally, and of course it can also be divided vertically, which is not limited in the embodiment of the present invention.

[0067] In addition, after the overall plane boundary is divided into regions, the regions to which the entity models to be hidden belong are determined. Figure 2 As shown, all the entity models to be hidden in the entire space (entity model 1, entity model 2, ..., entity model 10) determine the area to which each entity model to be hidden belongs, such as Figure 4 shown.

[0068] Among them, for any of the entity models to be hidden, the intersection of the plane boundary after the projection of the entity model to be hidden and each area is calculated; according to the intersection of the plane boundary after the projection of the entity model to be hidden and each area, the area to which the entity model to be hidden belongs is determined.

[0069] Here, for any of the entity models to be hidden, if the plane boundary after projection of the entity model to be hidden completely intersects or partially intersects with the target area, the entity model to be hidden is included in the target area, and the target area is any area among the areas.

[0070] For example, Figure 4As shown, for entity model 1, the plane boundary after the projection of entity model 1 completely intersects with area 1, and the plane boundary after the projection of entity model 1 does not intersect with areas 2 and 3 at all, so entity model 1 can be classified into area 1.

[0071] For entity model 4, the plane boundary after the projection of entity model 4 partially intersects with area 1 and area 2, and the plane boundary after the projection of entity model 4 does not intersect with area 3 at all, so entity model 4 can be divided into area 1 and area 2.

[0072] Similarly, for other entity models, the processing is similar to the above, that is, if the plane boundary after projection of the entity model completely intersects or partially intersects with one or more regions, the entity model is classified into one or more regions, and the embodiments of the present invention will not be described one by one here.

[0073] It should be noted that a certain entity model to be hidden belongs to at least one region. Figure 4 The physical model 4 shown belongs to area 1 and also belongs to area 2, which is not limited in the embodiment of the present invention.

[0074] S103, performing a hidden process on the entity models to be hidden in each region in parallel to obtain a regional hidden process result of the entity models to be hidden in each region.

[0075] In the embodiment of the present invention, taking each region as a unit, the entity model to be hidden in each region is hidden in parallel to obtain the regional hidden processing result of the entity model to be hidden in each region.

[0076] For example, Figure 4 As shown, for region 1, region 2, and region 3, the models of region 1, region 2, region 3, etc. are hidden in parallel to obtain the regional hidden processing results of the solid models of region 1, region 2, region 3, etc.

[0077] It should be noted that, since the hidden processing of each area is performed independently, a multi-threaded method can be used to perform hidden processing on the entity models to be hidden in each area in parallel, which means that multiple areas are hidden simultaneously. In addition, the algorithm for performing the hidden processing here can be any current hidden processing algorithm, which is not limited in the embodiment of the present invention.

[0078] S104, extracting the hidden processing results of each of the entity models to be hidden from the region hidden processing results and performing splicing processing to obtain each of the entity models to be hidden after hidden.

[0079] For the regional hidden processing results of the entity models to be hidden in each region, in an embodiment of the present invention, the hidden processing results of each entity model to be hidden are extracted from the regional hidden processing results.

[0080] Wherein, for the hidden processing results of each entity model to be hidden, the hidden processing results of each entity model to be hidden can be extracted from the regional hidden processing results according to the serial number of each entity model to be hidden.

[0081] For example, taking region 1 as an example, for the regional hidden processing results of entity model 1, entity model 2, entity model 3, entity model 4, and entity model 5 of region 1, according to the numbers of entity model 1, entity model 2, entity model 3, entity model 4, and entity model 5, the hidden processing results of entity model 1, entity model 2, entity model 3, entity model 4, and entity model 5 can be extracted from these regional hidden processing results to obtain the hidden processing results of entity model 1, entity model 2, entity model 3, entity model 4, and entity model 5. Among them, the visible boundary line is represented by a solid line, and the blocked boundary line is represented by a dotted line.

[0082] In addition, the hidden processing results of each entity model to be hidden are spliced ​​in the embodiment of the present invention to obtain each entity model to be hidden after being hidden. According to the area to which each entity model to be hidden belongs, the hidden processing results of each entity model to be hidden are spliced ​​to obtain each entity model to be hidden after being hidden.

[0083] In the embodiment of the present invention, in the process of dividing the entity model into regions, the entity model may be divided into one or more regions. Therefore, for any entity model to be hidden, if the region to which the entity model to be hidden belongs is one, the solid line in the hidden processing result of the entity model to be hidden is selected to obtain the entity model to be hidden after hidden.

[0084] For example, Figure 4 As shown, taking entity model 1 as an example, entity model 1 is classified into region 1, and the region to which entity model 1 belongs is one, then the solid line in the hidden processing result of entity model 4 in region 1 can be selected to obtain the hidden entity model 4. Similarly, the processing for entity model 2, entity model 3, entity model 6, entity model 8, entity model 9, and entity model 10 is similar, and the embodiments of the present invention will not be repeated here one by one.

[0085] For any of the entity models to be hidden, if there are multiple regions to which the entity model to be hidden belongs, a main region is selected from the multiple regions, and solid lines and dashed lines in the hidden processing result of the entity model to be hidden in the main region are obtained; dashed lines in the hidden processing result of the entity model to be hidden in the remaining regions are obtained, and dashed lines that are repeated with dashed lines in the hidden processing result of the entity model to be hidden in the main region are deleted from the dashed lines in the hidden processing result of the entity model to be hidden in the remaining regions; the remaining dashed lines in the hidden processing result of the entity model to be hidden in the remaining regions are traversed to determine whether the remaining dashed lines overlap with the dashed lines in the hidden processing result of the entity model to be hidden in the main region. The solid lines in the hidden processing result of the entity model to be hidden in the area are repeated; if the remaining dotted lines are repeated with the solid lines in the hidden processing result of the entity model to be hidden in the main area, the solid lines in the hidden processing result of the entity model to be hidden in the main area are deleted; if the remaining dotted lines are repeated with the solid line part in the hidden processing result of the entity model to be hidden in the main area, the repeated part of the solid line in the hidden processing result of the entity model to be hidden in the main area is deleted; the remaining solid lines in the hidden processing result of the entity model to be hidden in the main area are selected to obtain the entity model to be hidden after being hidden.

[0086] For example, Figure 4 As shown, taking the entity model 4 as an example, for the entity model 4, the entity model 4 is divided into area 1 and area 2, then the entity model belongs to two areas, and one area is randomly selected from area 1 and area 2 as the main area. For example, area 1 is selected, and the solid lines and dotted lines in the hidden processing result of the entity model 4 in area 1 are obtained; the dotted lines in the hidden processing result of the entity model 4 in area 2 are obtained, and the dotted lines that are repeated in the hidden processing result of the entity model 4 in area 1 are deleted from the dotted lines in the hidden processing result of the entity model 4 in area 2; if there are still remaining dotted lines in the hidden processing result of the entity model 4 in area 2, the hidden processing result of the entity model 4 in area 2 is traversed. The remaining dotted lines are judged whether these remaining virtual lines are repeated with the solid lines in the hidden processing result of the entity model 4 in area 1; if these remaining dotted lines are (completely) repeated with the solid lines in the hidden processing result of the entity model 4 in area 1, the solid lines in the hidden processing result of the entity model 4 in area 1 are deleted; if these remaining dotted lines are (partially) repeated with the solid lines in the hidden processing result of the entity model 4 in area 1, the repeated part of the solid lines in the hidden processing result of the entity model 4 in area 1 is deleted; if there are still solid lines remaining in the hidden processing result of the entity model 4 in area 1, the remaining solid lines in the hidden processing result of the entity model 4 in area 1 are selected as the final result, that is, the entity model 4 after hidden is obtained.

[0087] Through the above description of the technical solution provided by the embodiment of the present invention, each entity model to be hidden in the space is traversed, and each entity model to be hidden is plane-projected to determine the overall plane boundary after the projection of each entity model to be hidden. According to the preset division rule, the overall plane boundary is divided into regions, and the region to which each entity model to be hidden belongs is determined. The entity models to be hidden in each region are hidden in parallel to obtain the regional hidden processing results of the entity models to be hidden in each region. From the regional hidden processing results, the hidden processing results of each entity model to be hidden are extracted and spliced ​​to obtain the entity models to be hidden after being hidden. By dividing the space into multiple regions, the entity models are classified according to the region where they are located, and parallel hidden processing is adopted for the entity models in each region, so that the efficiency of hidden calculation can be significantly improved based on the regional parallel hidden method.

[0088] Corresponding to the above method embodiment, the embodiment of the present invention also provides a solid model hiding device, such as Figure 5 As shown, the device may include: a model projection module 510, a region division module 520, a hidden processing module 530, and a result stitching module 540.

[0089] The model projection module 510 is used to traverse each entity model to be hidden in the space, perform plane projection on each entity model to be hidden, and determine the overall plane boundary after the projection of each entity model to be hidden;

[0090] The region division module 520 is used to divide the overall plane boundary into regions according to a preset division rule, and determine the region to which each of the to-be-hidden entity models belongs;

[0091] The hidden processing module 530 is used to perform hidden processing on the entity models to be hidden in each region in parallel to obtain the regional hidden processing results of the entity models to be hidden in each region;

[0092] The result splicing module 540 is used to extract the hidden processing results of each of the to-be-hidden entity models from the region hidden processing results and perform splicing processing to obtain each of the to-be-hidden entity models after hidden processing.

[0093] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64.

[0094] Memory 63, used for storing computer programs;

[0095] The processor 61 is used to execute the program stored in the memory 63 to implement the following steps:

[0096] Traverse each entity model to be hidden in the space, perform plane projection on each entity model to be hidden, and determine the overall plane boundary after the projection of each entity model to be hidden; divide the overall plane boundary into regions according to a preset division rule, and determine the region to which each entity model to be hidden belongs; perform hiding processing on the entity model to be hidden in each region in parallel to obtain the regional hiding processing result of the entity model to be hidden in each region; extract the hiding processing results of each entity model to be hidden from the regional hiding processing results and perform splicing processing to obtain each entity model to be hidden after hiding.

[0097] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0098] The communication interface is used for communication between the above electronic device and other devices.

[0099] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0100] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0101] In another embodiment provided by the present invention, a storage medium is provided, in which instructions are stored. When the instructions are executed on a computer, the computer executes the entity model hiding method described in any one of the above embodiments.

[0102] In another embodiment provided by the present invention, a computer program product including instructions is also provided, and when the computer is run on the computer, the computer executes the entity model hiding method described in any one of the above embodiments.

[0103] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium, or transmitted from one storage medium to another storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0104] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0105] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for hiding solid models, It is characterized in that The method comprises: Traversing each entity model to be hidden in the space, performing plane projection on each entity model to be hidden, and determining the overall plane boundary after the projection of each entity model to be hidden, wherein there are multiple entity models to be hidden; According to a preset division rule, the overall plane boundary is divided into regions, and the regions to which each of the to-be-hidden entity models belongs are determined, including: for any of the to-be-hidden entity models, performing intersection calculations on the plane boundary after the projection of the to-be-hidden entity model and each region; determining the region to which the to-be-hidden entity model belongs according to the intersection between the plane boundary after the projection of the to-be-hidden entity model and each region; According to the intersection of the plane boundary after the projection of the entity model to be hidden and each area, determining the area to which the entity model to be hidden belongs, including: if the plane boundary after the projection of the entity model to be hidden completely intersects or partially intersects with the target area, the entity model to be hidden is included in the target area, and the target area is any area in each area; Performing a hidden process on the to-be-hidden entity model in each region in parallel to obtain a regional hidden process result of the to-be-hidden entity model in each region; Extracting the hidden processing results of each of the to-be-hidden entity models from the regional hidden processing results and performing splicing processing to obtain the hidden entity models to be hidden after being hidden; The performing of the splicing process to obtain the entity models to be hidden after being hidden includes: performing a splicing process on the hidden processing results of the entity models to be hidden according to the regions to which the entity models to be hidden belong, to obtain the entity models to be hidden after being hidden; The method comprises: for any of the entity models to be hidden, if the entity model to be hidden belongs to multiple areas, selecting a main area from the multiple areas, obtaining solid lines and dotted lines in the hidden processing results of the entity model to be hidden in the main area; obtaining dotted lines in the hidden processing results of the entity model to be hidden in the remaining areas, deleting the dotted lines that are repeated with the dotted lines in the hidden processing results of the entity model to be hidden in the main area from the dotted lines in the hidden processing results of the entity model to be hidden in the remaining areas; traversing the entity models to be hidden in the remaining areas, The remaining dotted lines in the hidden processing result of the entity model are judged whether the remaining dotted lines are repeated with the solid lines in the hidden processing result of the entity model to be hidden in the main area; if the remaining dotted lines are repeated with the solid lines in the hidden processing result of the entity model to be hidden in the main area, the solid lines in the hidden processing result of the entity model to be hidden in the main area are deleted; if the remaining dotted lines are repeated with the solid line part in the hidden processing result of the entity model to be hidden in the main area, the repeated part of the solid line in the hidden processing result of the entity model to be hidden in the main area is deleted; the remaining solid lines in the hidden processing result of the entity model to be hidden in the main area are selected to obtain the entity model to be hidden after being hidden.

2. The method according to claim 1, It is characterized in that The traversing each entity model to be hidden in the space and performing plane projection on each entity model to be hidden includes: Traversing each entity model to be hidden in the space, and numbering each entity model to be hidden; Performing plane projection on each of the entity models to be hidden according to the viewing direction to obtain the plane boundary of each of the entity models to be hidden after projection; The step of extracting the hidden processing results of each of the entity models to be hidden from the region hidden processing results comprises: According to the serial number of each entity model to be hidden, the hidden processing result of each entity model to be hidden is extracted from the regional hidden processing result.

3. The method according to claim 1, It is characterized in that The step of determining the overall plane boundary after projection of each of the to-be-hidden solid models comprises: The plane boundaries after the projection of the entity models to be hidden are merged to obtain the overall plane boundaries after the projection of each entity model to be hidden.

4. The method according to claim 1, It is characterized in that The step of performing a splicing process on the hidden processing results of each of the entity models to be hidden according to the area to which each of the entity models to be hidden belongs, so as to obtain each of the entity models to be hidden after being hidden, comprises: For any of the entity models to be hidden, if the area to which the entity model to be hidden belongs is one, a solid line in the hidden processing result of the entity model to be hidden is selected to obtain the entity model to be hidden after hidden.

5. A device for blanking out a solid model, It is characterized in that The device comprises: A model projection module, used to traverse each entity model to be hidden in the space, perform plane projection on each entity model to be hidden, and determine the overall plane boundary after the projection of each entity model to be hidden, wherein there are multiple entity models to be hidden; A region division module is used to divide the overall plane boundary into regions according to a preset division rule, and determine the region to which each of the entity models to be hidden belongs, including: for any entity model to be hidden, performing intersection calculation between the plane boundary after the projection of the entity model to be hidden and each region; and determining the region to which the entity model to be hidden belongs according to the intersection between the plane boundary after the projection of the entity model to be hidden and each region; According to the intersection of the plane boundary after the projection of the entity model to be hidden and each area, determining the area to which the entity model to be hidden belongs, including: if the plane boundary after the projection of the entity model to be hidden completely intersects or partially intersects with the target area, the entity model to be hidden is included in the target area, and the target area is any area in each area; A hidden processing module is used to perform hidden processing on the entity models to be hidden in each region in parallel to obtain the regional hidden processing results of the entity models to be hidden in each region; A result splicing module, used for extracting the hidden processing results of each entity model to be hidden from the regional hidden processing results and performing splicing processing to obtain each entity model to be hidden after hidden; The performing of the splicing process to obtain the entity models to be hidden after being hidden includes: performing a splicing process on the hidden processing results of the entity models to be hidden according to the regions to which the entity models to be hidden belong, to obtain the entity models to be hidden after being hidden; The method comprises: for any of the entity models to be hidden, if the entity model to be hidden belongs to multiple areas, selecting a main area from the multiple areas, obtaining solid lines and dotted lines in the hidden processing results of the entity model to be hidden in the main area; obtaining dotted lines in the hidden processing results of the entity model to be hidden in the remaining areas, deleting the dotted lines that are repeated with the dotted lines in the hidden processing results of the entity model to be hidden in the main area from the dotted lines in the hidden processing results of the entity model to be hidden in the remaining areas; traversing the entity models to be hidden in the remaining areas, The remaining dotted lines in the hidden processing result of the entity model are judged whether the remaining dotted lines are repeated with the solid lines in the hidden processing result of the entity model to be hidden in the main area; if the remaining dotted lines are repeated with the solid lines in the hidden processing result of the entity model to be hidden in the main area, the solid lines in the hidden processing result of the entity model to be hidden in the main area are deleted; if the remaining dotted lines are repeated with the solid line part in the hidden processing result of the entity model to be hidden in the main area, the repeated part of the solid line in the hidden processing result of the entity model to be hidden in the main area is deleted; the remaining solid lines in the hidden processing result of the entity model to be hidden in the main area are selected to obtain the entity model to be hidden after being hidden.

6. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, configured to implement the method according to any one of claims 1 to 4 when executing a program stored in a memory.

7. A storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.