CN113961294A - Method and device for analyzing model shell, electronic equipment and computer readable storage medium - Google Patents
Method and device for analyzing model shell, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113961294A CN113961294A CN202111240432.6A CN202111240432A CN113961294A CN 113961294 A CN113961294 A CN 113961294A CN 202111240432 A CN202111240432 A CN 202111240432A CN 113961294 A CN113961294 A CN 113961294A
- Authority
- CN
- China
- Prior art keywords
- model
- simulated
- coordinate system
- component
- simulation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004088 simulation Methods 0.000 claims abstract description 44
- 238000004458 analytical method Methods 0.000 claims abstract description 16
- 230000000007 visual effect Effects 0.000 claims abstract description 7
- 238000010276 construction Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 abstract 1
- 101150060512 SPATA6 gene Proteins 0.000 description 34
- 238000010586 diagram Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 13
- 238000012545 processing Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
Embodiments of the present disclosure relate to methods, apparatuses, electronic devices, and computer-readable storage media for model shell analysis. The method comprises the following steps: constructing an external sphere of the model and a nested Hash retrieval list of the components in the model based on the coordinate system parameters of the components in the model; constructing a simulation visual field surface based on the external ball of the model; constructing a simulation viewpoint on a simulation view plane based on configurable precision; obtaining an externally visible component of the model by utilizing a nested Hash retrieval list through judgment of contact between a simulated sight line of a simulated viewpoint and a component in the model and rotation of a simulated view plane; an outer shell of the model is generated based on the externally visible component. By using the method, the model shell analysis method with controllable accuracy can be provided, the detection performance is improved, and the memory occupation is reduced.
Description
Technical Field
Embodiments of the present disclosure relate generally to the field of Building Information Models (BIMs). And more particularly to a method, apparatus, electronic device, and computer-readable storage medium for model shell analysis.
Background
Along with the development of informatization and digitization of the construction industry, more and more functions required by the construction industry need to be displayed and used at various terminals, including model display of a BIM scene and a GIS scene, model data is large and detailed data, and if the models with large volume and large mass are displayed at the terminals, the problems of slow loading and blockage can be faced on common or even higher configured machines; in some scenarios, only the shell of the model needs to be displayed, and components inside the model do not need to be displayed to relieve the display pressure of the terminal, such as region/city level display, use of a model coordinate system calibration platform, and the like.
Disclosure of Invention
Embodiments of the present disclosure provide a method, apparatus, electronic device, and computer-readable storage medium for model shell analysis.
In a first aspect of the disclosure, a model shell analysis method is provided. The method comprises the following steps: constructing an external sphere of the model and a nested Hash retrieval list of the components in the model based on the coordinate system parameters of the components in the model; constructing a simulation visual field surface based on the external ball of the model; constructing a simulation viewpoint on a simulation view plane based on configurable precision; obtaining an externally visible component of the model by utilizing a nested Hash retrieval list through judgment of contact between a simulated sight line of a simulated viewpoint and a component in the model and rotation of a simulated view plane; and generating a shell of the model based on the externally visible component.
In a second aspect of the present disclosure, a model shell analysis apparatus is provided. The device includes: the external sphere construction module is configured to construct an external sphere of the model based on the coordinate system parameters of the members in the model; the nested Hash retrieval list building module is configured to build a nested Hash retrieval list of the components in the model based on the coordinate system parameters of the components in the model; a view plane construction module configured to construct a simulation view plane based on an outer sphere of the model; a simulation viewpoint construction module configured to construct a simulation viewpoint on a simulation view plane based on a configurable precision; the external visible component retrieval module is used for obtaining the external visible component of the model by utilizing a nested Hash retrieval list through judgment of contact between a simulated sight line of a simulated viewpoint and a component in the model and rotation of a simulated view plane; and a model shell generation module that generates a shell of the model based on the externally visible component.
In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: a memory and a processor; wherein the memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.
In a fourth aspect of the disclosure, a computer-readable storage medium is provided. The computer readable storage medium has stored thereon one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
In a fifth aspect of the disclosure, a computer program product is provided. The computer program product comprises one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
FIG. 1 shows a schematic diagram of an exemplary environment in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates a flow diagram of an exemplary model shell analysis method in accordance with an embodiment of the present disclosure;
FIG. 3 illustrates a block diagram of an example model shell analysis apparatus, in accordance with an embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of an exemplary simulated view plane, simulated viewpoint, according to an embodiment of the disclosure;
FIG. 5 illustrates a schematic diagram of an exemplary nested hash retrieval list, in accordance with embodiments of the present disclosure; and
FIG. 6 illustrates a block diagram of a computing system in which one or more embodiments of the disclosure may be implemented.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
As used herein, the terms "comprises," comprising, "and variations thereof are intended to be open-ended, i.e.," including, but not limited to. The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment". Relevant definitions for other terms will be given in the following description.
The inventor notices that along with the development of informatization and digitization of the construction industry, more and more functions required by the construction industry need to be displayed and used on various terminals, including model display of a BIM scene and a GIS scene, model data is large and detailed data, if a large-size model and a super-large-size model are displayed on the terminals, great pressure is possibly generated, and the problems of slow loading and blocking can be faced on common and even higher-configuration machines; in some scenarios, only the shell of the model needs to be displayed, and components inside the model do not need to be displayed to relieve the display pressure of the terminal, such as region/city level display, use of a model coordinate system calibration platform, and the like.
In the embodiment of the disclosure, through the provided analysis method of the model shell, the shell displayed by the model can be generated rapidly, and the requirements of generating the model shell with different accuracies can be met. Firstly, a nested Hash retrieval list is constructed based on the coordinate system parameters of the components in the model to be displayed, so that the components can be quickly searched based on the coordinate parameters, and the components are prevented from being repeatedly appeared in the Hash list. In terms of acquiring the visible components of the model, the method of the embodiment of the present disclosure first constructs the circumscribed sphere of the model based on the coordinate system parameters of the components in the model, and on this basis constructs the simulated view plane and the simulated line of sight on the simulated view plane. The simulated line of sight may be set with a configurable precision to meet model shell construction for different precision requirements. By utilizing the nested Hash retrieval list constructed based on the coordinate system parameters of the components in the model, the components visible outside the simulation view plane at the position can be quickly found through judgment of contact between the simulation sight line and the components in the model. Further, the above finding process is repeated at different positions where the simulation view plane passes by, by simulating the rotation of the view plane along the outer sphere of the model, to obtain the visible members of all angles of the model. Based on all visible components obtained, a model shell is generated.
By the technical scheme, the method realizes the high-efficiency and controllable accuracy degree of model shell analysis. By adopting a rotary scanning method and constructing a nested Hash retrieval list aiming at the components in the model, the model shell analysis is avoided depending on a method of a third-party library such as GPU rendering, the efficiency of judging the contact between a simulation sight line and the components in the model is improved, and a reliable technical scheme is provided for quickly and accurately analyzing the model shell.
FIG. 1 shows a flow diagram of an exemplary model shell analysis method according to an embodiment of the present disclosure.
At a computing device, e.g., computing device 120 of fig. 1, an input model, e.g., input model 110 of fig. 1, is obtained (e.g., received). The input model includes a plurality of BIM components and requires the acquisition of visible external components therein to generate a visible shell of the model.
The computing device 120 obtains the externally visible components of the model by: firstly, judging the contact between the simulated sight line from the simulated viewpoint and the model at the current position of the simulated view field, namely, searching a corresponding component in a nested Hash search list and carrying out contact judgment calculation to obtain all visible components at the position of the simulated view field. And then, the simulation visual field surface rotates along the spherical surface of the circumscribed ball to move to a new position, and the judgment process of the contact between the simulation visual line and the circumscribed ball is repeated. After the simulated field of view has completed all the angular rotations along the sphere, the visible components of the model at all angles can be obtained. Based on these visible components, a visible shell of the model, for example, the model shell 130 of FIG. 1, can be constructed.
In some embodiments, computing device 120 may include, but is not limited to, a personal computer, a server computer, a hand-held or laptop device, a mobile device (such as a mobile phone, a Personal Digital Assistant (PDA), a media player, etc.), a multiprocessor system, a consumer electronics, a minicomputer, a mainframe computer, a distributed computing environment that includes any of the above systems or devices, and the like.
A process of generating a model shell according to the disclosed embodiments will be described in detail below with reference to the accompanying drawings. For ease of understanding, specific data mentioned in the following description are exemplary and are not intended to limit the scope of the present disclosure. It is to be understood that the described methods may include additional acts not shown and/or may omit acts shown, as the scope of the disclosure is not limited in this respect.
FIG. 2 shows a flow diagram of an exemplary model shell analysis method, according to an embodiment of the present disclosure.
At block 202, an circumsphere of the model is constructed based on coordinate system parameters of the members in the model, e.g., the construction of the circumsphere is performed in a circumsphere construction module. And determining the construction size of the external ball by acquiring the coordinate system parameters of all the components of the model, so that the external ball comprises all the components of the model. And constructing a nested hash search list based on the coordinate system parameters of the components in the model, e.g., as performed in a nested hash search list construction module. The nested hash retrieval list can realize quick searching of the components in the model, and the nested hash structure is adopted to avoid repeated storage of the components in the hash list. In some embodiments, different coordinate systems may be employed to accommodate different models. In some embodiments, the coordinate system parameters include longitude, latitude, and depth.
At block 204, a simulation field of view is constructed based on the circumscribing sphere of the model. For example, in a viewing surface construction module. By simulating the field of view, the visible field of view of the observer viewing the model at that location can be simulated. In some embodiments, as shown in fig. 4, the simulation view is a square section of the circumscribed sphere of the model, the tangent points of the sections are points on the spherical surface of the circumscribed sphere, and the length and width of the sections are the diameters of the circumscribed sphere respectively.
At block 206, a simulated viewpoint on the simulated field of view plane is constructed based on a configurable precision. For example, by a simulation viewpoint construction module. The simulation viewpoints are arranged with configurable accuracy over a simulation field of view to simulate viewpoint positions of different viewing models of the observer over the field of view plane. In some embodiments, the configurable precision includes an arrangement of density and position of simulated viewpoint arrangements to meet model shell building of different precision requirements.
At block 208, an externally visible component of the model is obtained using the nested hash search list by a determination that the simulated line of sight of the simulated viewpoint is in contact with a component in the model and a rotation of the simulated view plane.
The process of obtaining a visible component comprises the following steps:
first, at the current position of the simulation visual field, contact between the model and the simulation visual line from the simulation viewpoint is determined. The judgment process is to search the component in a nested hash retrieval list constructed by a component coordinate system. In some embodiments, as shown in FIG. 4, the simulated line of sight extends perpendicular to the field of view plane and toward the model, and coordinate system parameter values are obtained through which the simulated line of sight passes in extension. And searching a component needing to be in contact judgment with the simulated sight line in the nested Hash retrieval list according to the coordinate system parameter values, and performing contact judgment calculation. By nesting the hash search list, the range of the component needing to be subjected to contact judgment can be reduced.
If the member in contact with the simulated sight line is calculated through the contact judgment, the member is a visible member, and the simulated sight line stops extending. If the member in contact with the simulated sight line is not found, the simulated sight line continues to extend and the contact member is found until the member extends to the boundary of the circumscribed ball. By repeating the above determination process for all simulated lines of sight on the simulated field of view, all visible components at the position of the simulated field of view can be obtained.
After all the visible members of the current simulated view plane position are obtained, as shown in fig. 4, the simulated view plane is rotated along the spherical surface circumscribing the ball to move to a new position, and the above-described determination process of the simulated sight line contacting the member in the model is repeated. After the simulated field of view has completed all the angular rotations along the sphere, the visible components of the model at all angles can be obtained. In some embodiments, the rotation of the simulation field of view can be configured by parameters of different magnitudes to meet model shell construction for different accuracy requirements.
In some embodiments, as shown in FIG. 5, nested hash search lists perform different levels of hash table construction with component coordinate system parameter values. The step of obtaining the visible component needing to be subjected to contact judgment by using the nested hash retrieval list comprises the following steps: searching all entries of the nested Hash search list which are equal to the coordinate system parameter values to obtain corresponding model components; and retrieving all sub-hash tables of the entries of the nested hash retrieval list larger than the coordinate system parameter value, and if the sub-hash tables have entries equal to the coordinate system parameter value, obtaining the model components corresponding to the corresponding entries.
Illustratively, when hashing (e.g., hash value is 35) the corresponding contact member according to the current position of the simulated view ray, entries smaller than 35 are not considered, entries equal to 35 are all considered, and entries larger than 35 are determined whether the sub-hash table has entries equal to 35, and if yes, the entries are considered.
At block 210, a shell of the model is generated based on the externally visible components. After all visible components obtained at block 208, a visible shell of the model is constructed from the visible components.
FIG. 3 illustrates a block diagram of an example model shell analysis apparatus, in accordance with an embodiment of the present disclosure.
An circumsphere construction module 302 configured to construct an circumsphere of the model based on the coordinate system parameters of the members in the model.
A nested hash search list construction module 304 configured to construct a nested hash search list of components in the model based on the coordinate system parameters of the components in the model.
A viewing surface construction module 306 configured to construct a simulated viewing surface based on the circumscribed sphere of the model.
A simulated viewpoint construction module 308 configured to construct a simulated viewpoint on the simulated view plane based on a configurable precision.
An externally visible member retrieval module 310 configured to obtain an externally visible member of the model by using the nested hash retrieval list by determination that the simulated view of the simulated viewpoint is in contact with the member in the model and rotation of the simulated view plane.
A model shell generation module 312 configured to generate a shell of the model based on the externally visible components.
In some embodiments, the simulation view plane is a tangent plane of an outer sphere of the model, the tangent points of the tangent plane are points on the spherical surface of the outer sphere, and the length and width of the tangent plane are the diameters of the outer sphere respectively.
In some embodiments, the configurable precision includes, among other things, density and location of the simulation viewpoints on the simulation field of view plane.
In some embodiments, wherein the externally visible component retrieval module is further configured to: emitting a simulated sight line from each simulated viewpoint in a direction perpendicular to the view plane and facing the model; obtaining a coordinate system parameter value through which each simulated sight line passes; based on a coordinate system parameter value, quickly judging the component in the model contacted with the simulated sight line by using the nested Hash retrieval list to obtain the external visible component; and rotating the simulated view field surface along the spherical surface circumscribing the ball, and repeating the steps until all externally visible members are obtained.
In some embodiments, wherein the externally visible component retrieval module is further configured to: retrieving all first entries of the nested Hash retrieval list which are equal to the coordinate system parameter values to obtain a component of a model corresponding to the first entries; and searching all sub-hash tables of the second entries of the nested hash search list larger than the coordinate system parameter values, and obtaining the components of the model corresponding to the entries, equal to the coordinate system parameter values, in the sub-hash tables.
In some embodiments, wherein the externally visible member retrieval module is further configured to simulate rotation of the viewing surface by a configurable amount.
In some embodiments, the parameters of the coordinate system include longitude, latitude, and depth.
In some embodiments, wherein the coordinate system is a spherical coordinate system.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. For example, electronic device 600 may be used to implement computing device 120 shown in fig. 1. As shown, device 600 includes a Central Processing Unit (CPU)601 that may perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM)602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the device 600 can also be stored. The CPU 601, ROM 602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The present disclosure may be methods, apparatus, systems, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure. In some embodiments, the methods described in this disclosure may be used in fabricated building design. In some embodiments, the methods described in this disclosure may be implemented in the prefabricated building design software PKPM-PC.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, any non-transitory memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (19)
1. A model shell analysis method, comprising:
constructing an external sphere of the model and a nested Hash retrieval list of the members in the model based on the coordinate system parameters of the members in the model;
constructing a simulation visual field surface based on the external ball of the model;
constructing a simulated viewpoint on the simulated view plane based on a configurable precision;
obtaining an externally visible component of the model by using the nested hash retrieval list through judgment of contact between a simulated sight line of the simulated viewpoint and a component in the model and rotation of the simulated view plane; and
generating an outer shell of the model based on the externally visible component.
2. The method of claim 1, wherein the simulation view plane is a tangent plane of an circumscribing sphere of the model, the tangent points of the tangent plane are points on a spherical surface of the circumscribing sphere, and the length and width of the tangent plane are the diameters of the circumscribing sphere, respectively.
3. The method of claim 1, wherein the configurable precision comprises a density and a position of the simulation viewpoints on the simulation view plane.
4. The method of claim 1, wherein deriving the externally visible component of the model from the search list based on a determination of contact of a simulated line of sight of the simulated viewpoint with a component in the model and rotation of the simulated view plane comprises:
issuing the simulated view from each of the simulated viewpoints in a direction facing the model perpendicular to the field of view;
calculating the parameter value of the coordinate system through which each simulated sight line passes;
based on the coordinate system parameter value, quickly judging the component in the model contacted with the simulated sight line by using the nested Hash retrieval list to obtain the external visible component;
rotating the simulated view plane along the spherical surface of the circumscribed ball, repeating the above steps until all of the externally visible members are obtained.
5. The method of claim 4, wherein obtaining the externally visible component using a nested hashed search list of the model based on the coordinate system parameter values comprises:
retrieving all first entries of the nested hash retrieval list equal to the coordinate system parameter value, and obtaining a component of the model corresponding to the first entries; and
and retrieving all sub-hash tables of second entries of the nested hash retrieval list larger than the coordinate system parameter value, and obtaining the component of the model corresponding to the entries, in the sub-hash tables, of the coordinate system parameter value.
6. The method of claim 4, wherein the simulated view plane is rotated by a configurable magnitude.
7. The method of claim 1, wherein the parameters of the coordinate system include longitude, latitude, and depth.
8. The method of claim 1, wherein the coordinate system is a spherical coordinate system.
9. A model shell analysis apparatus, comprising:
an external ball construction module configured to construct an external ball of the model based on coordinate system parameters of members in the model
The nested hash retrieval list building module is configured to build a nested hash retrieval list of the components in the model based on the coordinate system parameters of the components in the model;
a view plane construction module configured to construct a simulation view plane based on an outer sphere of the model;
a simulation viewpoint construction module configured to construct a simulation viewpoint on the simulation view plane based on a configurable precision;
an externally visible component retrieval module configured to obtain an externally visible component of the model using the nested hash retrieval list by determination that a simulated sight line of the simulated viewpoint is in contact with a component in the model and rotation of the simulated view plane; and
a model shell generation module configured to generate a shell of the model based on the externally visible component.
10. The apparatus of claim 9, wherein the simulation view plane is a tangent plane of an circumscribing ball of the model, the tangent points of the tangent plane are points on a spherical surface of the circumscribing ball, and the length and width of the tangent plane are the diameters of the circumscribing ball, respectively.
11. The apparatus of claim 9, wherein the configurable precision comprises a density and a position of the simulation viewpoint on the simulation view plane.
12. The apparatus of claim 9, wherein the externally visible component retrieval module is further configured to:
issuing the simulated view from each of the simulated viewpoints in a direction facing the model perpendicular to the field of view;
calculating the parameter value of the coordinate system through which each simulated sight line passes;
based on the coordinate system parameter value, quickly judging the component in the model contacted with the simulated sight line by using the nested Hash retrieval list to obtain the external visible component; and
rotating the simulated view plane along the spherical surface of the circumscribed ball, repeating the above steps until all of the externally visible members are obtained.
13. The apparatus of claim 12, wherein the externally visible component retrieval module is further configured to:
retrieving all first entries of the nested hash retrieval list equal to the coordinate system parameter value, and obtaining a component of the model corresponding to the first entries; and
and retrieving all sub-hash tables of second entries of the nested hash retrieval list larger than the coordinate system parameter value, and obtaining the component of the model corresponding to the entries, in the sub-hash tables, of the coordinate system parameter value.
14. The apparatus of claim 12, wherein the externally visible component retrieval module is further configured to:
the simulated field of view face is rotated by a configurable amplitude.
15. The apparatus of claim 9, wherein the parameters of the coordinate system comprise longitude, latitude, and depth.
16. The device of claim 9, wherein the coordinate system is a spherical coordinate system.
17. An electronic device, comprising:
a memory and a processor;
wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the processor to implement the method of any one of claims 1 to 8.
18. A computer readable storage medium having one or more computer instructions stored thereon, wherein the one or more computer instructions are executed by a processor to implement the method of any one of claims 1 to 8.
19. A computer program product comprising one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111240432.6A CN113961294A (en) | 2021-10-25 | 2021-10-25 | Method and device for analyzing model shell, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111240432.6A CN113961294A (en) | 2021-10-25 | 2021-10-25 | Method and device for analyzing model shell, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113961294A true CN113961294A (en) | 2022-01-21 |
Family
ID=79466750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111240432.6A Pending CN113961294A (en) | 2021-10-25 | 2021-10-25 | Method and device for analyzing model shell, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113961294A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105160707A (en) * | 2015-08-18 | 2015-12-16 | 南京禹步信息科技有限公司 | Three-dimensional model fast visualization method based on viewpoint indexes |
CN111476910A (en) * | 2020-04-03 | 2020-07-31 | 上海银欣高新技术发展股份有限公司 | Intelligent building BIM 3D model display method, system, medium and display terminal |
CN111522989A (en) * | 2020-07-06 | 2020-08-11 | 南京梦饷网络科技有限公司 | Method, computing device, and computer storage medium for image retrieval |
US20210225074A1 (en) * | 2020-01-17 | 2021-07-22 | Apple Inc. | Multi-resolution voxel meshing |
-
2021
- 2021-10-25 CN CN202111240432.6A patent/CN113961294A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105160707A (en) * | 2015-08-18 | 2015-12-16 | 南京禹步信息科技有限公司 | Three-dimensional model fast visualization method based on viewpoint indexes |
US20210225074A1 (en) * | 2020-01-17 | 2021-07-22 | Apple Inc. | Multi-resolution voxel meshing |
CN111476910A (en) * | 2020-04-03 | 2020-07-31 | 上海银欣高新技术发展股份有限公司 | Intelligent building BIM 3D model display method, system, medium and display terminal |
CN111522989A (en) * | 2020-07-06 | 2020-08-11 | 南京梦饷网络科技有限公司 | Method, computing device, and computer storage medium for image retrieval |
Non-Patent Citations (1)
Title |
---|
孙小虎;李扬;许刚;: "电缆三维模型可视化及数据高效索引研究", 计算机***应用, no. 07, 15 July 2020 (2020-07-15), pages 44 - 51 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110222775B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
US10403035B2 (en) | Rendering images using ray tracing with multiple light sources | |
JP7235788B2 (en) | Map coordinate processing method, map coordinate processing device, electronic device, storage medium and computer program product | |
CN113077548B (en) | Collision detection method, device, equipment and storage medium for object | |
CN109976999B (en) | Method and device for measuring coverage rate of test cases | |
CN110209748B (en) | Method and apparatus for indexing geofences | |
CN111737603B (en) | Method, device, equipment and storage medium for judging whether interest points are visible | |
KR20210042278A (en) | Method and apparatus for generating information, electronic device, storage medium and program | |
JP2023026531A (en) | Virtual character generating method, apparatus, electronic equipment, storage medium, and computer program | |
CN113961294A (en) | Method and device for analyzing model shell, electronic equipment and computer readable storage medium | |
CN112967369B (en) | Light ray display method and device | |
US20170323457A1 (en) | Method and electronic device for determining whether a point lies within a polygon in a multidimensional space | |
JP7422222B2 (en) | Collision detection method, apparatus, electronic device, storage medium and computer program for object | |
CN114674328A (en) | Map generation method, map generation device, electronic device, storage medium, and vehicle | |
CN114814802A (en) | Positioning method and device | |
CN111078812B (en) | Fence generation method and device and electronic equipment | |
US10832466B2 (en) | View-dependent stochastic volume rendering with Monte Carlo ray exploration | |
US10163006B2 (en) | Selection determination for freehand marks | |
CN111354070A (en) | Three-dimensional graph generation method and device, electronic equipment and storage medium | |
CN116228991B (en) | Coordinate conversion method and device, electronic equipment and storage medium | |
US20230013055A1 (en) | Method for determining region attribute information, computing device, and storage medium | |
CN113469877B (en) | Object display method, scene display method, device and computer readable medium | |
CN117618896A (en) | Method, device, equipment, storage medium and computer program product for generating land block | |
US9728004B2 (en) | Identifying a selected feature on tessellated geometry | |
CN116999845A (en) | Abnormality detection method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |