A model display method, system, electronic device and readable storage medium

By segmenting the model set and utilizing ray collision detection and user input, the problem of selecting models when they are clustered or overlapping is solved, achieving accurate selection and highlighting of the target model and meeting user needs.

CN116129095BActive Publication Date: 2026-02-13BEIJING MINGHAI BONA TECH DEV CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211694298.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-02-13
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

In educational software, when multiple models cluster or overlap, existing technologies struggle to accurately select the target model, leading to misselection or the need to move the model for selection.

Method used

By cutting the model set to form a disassembled model set and a corresponding table, and using the ray collision detection method to select the target model, the model movement is controlled by the insensitivity parameter and the highlight probability is adjusted by the user input information to achieve accurate selection of the target model.

Benefits of technology

It improves the selection problem when models are clustered or overlapping, and achieves accurate picking and highlighting of target models, meeting the selective display needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116129095B_ABST
    Figure CN116129095B_ABST
Patent Text Reader

Abstract

The application relates to a model display method and system, an electronic device and a readable storage medium, which comprises the following steps: acquiring a model set; cutting the model set according to preset cutting rules to form a disassembled model set and a disassembled model corresponding table; and selecting a target model according to the disassembled model set and a preset ray collision detection method. The application improves the problem that models are not easy to select when multiple models appear to be gathered or overlapped.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of model display, and in particular to a model display method and system, an electronic device, and a readable storage medium. BACKGROUND

[0002] For software with 3D model operation function, it usually has the function of selecting a model or positioning a model part. Especially in teaching software, it is necessary to accurately position and select the model for teaching. In the prior art, the implementation of this function is to use a mouse to click on the model, and the clicked model becomes the selected state. A "collision detection ray" is emitted from the click point to the model, and when the ray collides with the model, the name of the first model it collides with is returned to the program, and the collision detection is stopped, so that the program selects the model.

[0003] In teaching software, a model is usually composed of multiple small models. When multiple small models appear in clusters or overlap, it is difficult for the user to select the object model he wants to select. At this time, multiple mis-clicks may occur, or the other models may need to be moved or rotated before selection.

[0004] The prior art in the above has the following defects: when multiple models appear in clusters or overlap, the model is not easy to select. SUMMARY

[0005] In order to improve the problem that the model is not easy to select when multiple models appear in clusters or overlap, the present application provides a model display method, system, electronic device and readable storage medium.

[0006] In the first aspect of the present application, a model display method is provided. The method comprises:

[0007] obtaining a model set;

[0008] cutting the model set according to a preset cutting rule and forming a disassembled model set and a disassembled model corresponding table;

[0009] selecting a target model according to the disassembled model set, the disassembled model corresponding table and a preset ray collision detection method.

[0010] From the above technical solution, the model set is cut and a disassembled model set and a disassembled model corresponding table are formed. The disassembled model set is detected according to the preset ray collision detection method, and the corresponding target model is selected according to the disassembled model corresponding table. By cutting the model set and then picking up the target model according to the ray collision detection method, the problem that the model is not easy to select when multiple models appear in clusters or overlap is improved.

[0011] In a possible implementation, the cutting the model set according to the preset cutting rule and forming the disassembled model set and the disassembled model corresponding table comprise:

[0012] traversing the model set and obtaining a coincident sub-model set;

[0013] cutting the models in the model set according to the coincident sub-model set and a preset model disassembling rule and forming the disassembled model set;

[0014] obtaining the correspondence between the model set and the disassembled model set and forming the disassembled model corresponding table.

[0015] In a possible implementation, the selecting the target model according to the disassembled model set, the disassembled model corresponding table and a preset ray collision detection method comprises:

[0016] obtaining a picking point and a depth value;

[0017] determining a detection model according to the picking point and the ray collision detection method;

[0018] obtaining a first target model according to the disassembled model corresponding table and the detection model;

[0019] when the depth at which the picking point is located is the same as the depth value, the first target model is the target model.

[0020] In a possible implementation, the method further comprises:

[0021] obtaining a blunt parameter, a starting point and an ending point, the blunt parameter comprising a blunt peak value and a blunt ratio, the blunt ratio representing a moving speed ratio value of distances of adjacent two segments;

[0022] determining a variable speed critical point according to the blunt peak value;

[0023] generating a control instruction according to a preset interpolation rule, the variable speed critical point, the blunt ratio, the starting point and the ending point;

[0024] controlling the model to move according to the control instruction.

[0025] In a possible implementation, the method further comprises:

[0026] obtaining user input information and a data set, the data set comprising selection times of models in the model set, and the user input information comprising models with a highlight probability of zero;

[0027] determining an initial highlight probability of each model in the model set according to a preset smoothing algorithm and the data set;

[0028] According to the initial highlight probability, the user input information, and a preset probability distribution rule, a target highlight probability of a model in the model set is determined.

[0029] In a possible implementation, the method further includes:

[0030] obtaining a model state table and a target time point, the model state table including different states of the model set at different time points;

[0031] According to the target time point and the model state table, a target state of the model set is retrieved.

[0032] In a possible implementation, the smoothing algorithm is a Good-Turing smoothing algorithm.

[0033] In a second aspect of the present application, a model display system is provided. The system includes:

[0034] a data acquisition module configured to acquire a model set;

[0035] a model cutting module configured to cut the model set according to a preset cutting rule and form a disassembled model set and a disassembled model corresponding table;

[0036] a model selection module configured to select a target model according to the disassembled model set, the disassembled model corresponding table, and a preset ray collision detection method.

[0037] In a third aspect of the present application, an electronic device is provided. The electronic device includes a memory and a processor, the memory having a computer program stored thereon, and the processor implementing the model display method as described above when executing the program.

[0038] In a fourth aspect of the present application, a computer readable storage medium is provided, having a computer program stored thereon, the program being executed by a processor to implement the method according to the first aspect of the present application.

[0039] In summary, the present application includes at least one of the following beneficial technical effects:

[0040] 1. By cutting the model set and then picking up the target model according to the ray collision detection method, the problem that the models are not easy to select when multiple models appear to be clustered or overlapped is improved.

[0041] 2. By calculating the target highlight probability of the model in the model set according to the user input information and the data set, different degrees of highlight display of the model can be achieved according to different user needs. BRIEF DESCRIPTION OF DRAWINGS

[0042] Figure 1 is a flowchart of a model display method provided by the present application.

[0043] Figure 2 is a structural diagram of a model display system provided by the present application.

[0044] Figure 3 is a structural diagram of an electronic device provided by the present application.

[0045] In the figure, 200, model display system; 201, data acquisition module; 202, model cutting module; 203, model selection module; 301, CPU; 302, ROM; 303, RAM; 304, I / O interface; 305, input part; 306, output part; 307, storage part; 308, communication part; 309, driver; 310, detachable medium. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme of the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0047] In addition, the term "and / or" herein is only to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can mean that there are three cases of A alone, A and B together, and B alone. In addition, the character " / " herein, unless otherwise specified, generally represents an "or" relationship between the associated objects before and after it.

[0048] The embodiments of the present application will be further described in detail below in combination with the drawings of the specification.

[0049] The embodiments of the present application provide a model display method, and the main flow of the above method is described as follows.

[0050] As shown in Figure 1

[0051] Step S101: Acquire a model set.

[0052] Specifically, for a large model, it is composed of a plurality of small models, and the plurality of small models form a model set. The model set is pre-stored in a database by a user. The model set to be displayed is called from the database.

[0053] ​Step S102: Cutting the model set according to the preset cutting rule and forming a disassembled model set and a disassembled model corresponding table.

[0054] Specifically, the above small model is stored in the database in the form of multiple three-dimensional coordinates, that is, a small model is composed of multiple three-dimensional coordinates. For any two small models, when the three-dimensional coordinates of the two small models are the same, it means that the two small models overlap, and the overlapping part of the model is combined to form an overlapping sub-model set. For each small model, cut the overlapping part and the non-overlapping part to form two models, respectively. All small models in the above model set are cut, and the cut models are combined to form a disassembled model set. The correspondence between the models in the model set and the models in the disassembled model set is stored and a disassembled model corresponding table is formed. The models in the above disassembled model set do not overlap.

[0055] Step S103: Selecting a target model according to the disassembled model set, the disassembled model corresponding table and the preset ray collision detection method.

[0056] Specifically, the pickup point and the depth value are obtained, both of which are input by the user according to the demand. The pickup point is a three-dimensional coordinate, and the depth value is a coordinate direction and the value corresponding to the coordinate direction, for example, when the depth value is x=3, it means that the depth along the x-axis direction is 3. According to the pickup point and the ray collision detection method, the pickup point sends a ray to the disassembled model set at the default depth, and the model in the disassembled model set that the ray collides with is the detection model. According to the detection model and the disassembled model corresponding table, the corresponding model in the model set can be obtained, which is the first target model. It is judged whether the depth of the pickup point is the same as the depth value, if they are the same, the first target model is the target model, if they are not the same, the depth value of the pickup point is changed, and the ray collision is continued until the depth value of the pickup point and the depth value input by the user are the same. The ray collision detection method is known to those skilled in the art, and will not be described here.

[0057] Step S104: Obtaining the blunt parameter and controlling the movement of the model according to the blunt parameter.

[0058] In order to meet the delay effect in the model moving process, i.e. the model can move to the next spatial position at variable speed, the method comprises: obtaining a numbness parameter, a starting point and an ending point, the numbness parameter comprising a numbness peak value and a numbness ratio, the numbness peak value representing a position at which the model needs to move at variable speed, and the numbness ratio representing a speed ratio of two distance moving speeds. According to the numbness peak value, a variable speed critical point can be determined, the variable speed critical point being a position between the starting point position and the ending point position, and representing a three-dimensional coordinate in space. According to a preset interpolation rule, the variable speed critical point, the numbness ratio, the starting point and the ending point, a control instruction is generated, the model moving speed from the starting point to the variable speed critical point being a speed preset value, the numbness ratio being a ratio of the speed preset value and the speed from the variable speed critical point to the ending point, and the starting point and the ending point both being a position in a three-dimensional space. The speed from the variable speed critical point to the ending point can be calculated according to the speed preset value and the numbness ratio. According to the starting point, the variable speed critical point, the model moving speed from the starting point to the variable speed critical point and the speed from the variable speed critical point to the ending point, the model is controlled to move. The preset interpolation rule is an interpolation function, and the interpolation function can obtain a uniform intermediate point through two spatial positions. The interpolation function is a technology known to those skilled in the art, and will not be described here.

[0059] Step S105: obtaining a data set and user input information and determining a target highlight probability according to the data set and the user input information.

[0060] Specifically, user input information and a data set are obtained, the data set including selection times of each small model in a model set, and the user input information including a small model with a highlight probability of zero. When a model in the model set needs to be displayed, an initial highlight probability of each model in the model set is calculated according to a preset smoothing algorithm and the data set, the preset smoothing algorithm being a Good-Turing smoothing algorithm, and the initial highlight probability calculated by the smoothing algorithm all being nonzero. According to the user input information, the small model with the highlight probability of zero can be obtained, and the initial highlight probability of the corresponding small model is modified to zero. According to a preset allocation rule, the initial highlight probability of the small model with the probability of zero is allocated to small models with nonzero highlight probabilities in proportion to the probability ratio of the initial highlight probability, and after the probability allocation is completed, a target highlight probability of each model in the model set is determined. In this embodiment, the model set includes a first model, a second model and a third model, the initial highlight probability of the first model is 0.2, the initial highlight probability of the second model is 0.2, and the initial highlight probability of the third model is 0.6. The user input information includes the first model, that is, the initial highlight probability of the first model is set to 0, and then 0.2 is proportionally allocated to the second model and the third model, the target highlight probability of the second model is 0.2+0.2×[0.2 / (0.2+0.6)]=0.25, and the target highlight probability of the third model is 0.6+0.2×[0.6 / (0.2+0.6)]=0.75. According to the target highlight probability calculated above, the small models in the model set can be displayed with different degrees of highlight display according to different importance levels.

[0061] Step S106: obtaining a model state table and a target time point, and adjusting a target state of the model set according to the model state table and the target time point.

[0062] Specifically, the model state table is pre-stored in the database, and the model state table includes different states of the model set at different time points. The target time point is obtained, and the target time point is input by the user according to requirements. The target state of the model set is called according to the target time point, and the target state of the model set is displayed. Through the above manner, the state control of the model set can be realized.

[0063] The embodiment of the application provides a model display system 200, referring to Figure 2 , the model display system 200 includes:

[0064] The data acquisition module 201 is configured to acquire the model set.

[0065] The model cutting module 202 is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table.

[0066] The model selection module 203 is configured to select a target model according to the set of disassembly models, the disassembly model corresponding table, and a preset ray collision detection method.

[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described modules can refer to the corresponding process in the foregoing method embodiments, which will not be described herein.

[0068] Embodiments of the present application disclose an electronic device. Referring to Figure 3 , the electronic device includes a central processing unit (CPU) 301 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 302 or programs loaded from a storage portion 307 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other through a bus. An input / output (I / O) interface 304 is also connected to the bus.

[0069] The following components are connected to the I / O interface 304: an input portion 305 including a keyboard, a mouse, and the like; an output portion 306 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker, and the like; a storage portion 307 including a hard disk, and the like; and a communication portion 308 including a network interface card such as a LAN card, a modem, and the like. The communication portion 308 performs communication processing via a network such as the Internet. A drive 309 is also connected to the I / O interface 304 as necessary. A removable medium 310 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 309 as necessary, so that a computer program read therefrom is installed in the storage portion 307 as necessary.

[0070] In particular, the processes described above with reference to the flowcharts Figure 1 may be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a machine-readable medium, the computer program comprising program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication portion 308, and / or installed from the removable medium 310. When the computer program is executed by the central processing unit (CPU) 301, the above-described functions defined in the apparatus of the present application are executed.

[0071] It should be noted that the computer readable medium shown in the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present application, the computer readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer readable program code. Such a propagated data signal can take many forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium that can send, propagate or transmit the program for use by or in connection with an instruction execution system, device or apparatus. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF or the like, or any suitable combination of the above.

[0072] The above description is merely the preferred embodiments of the present application and the explanation of the technical principles used. Those skilled in the art should understand that the application scope involved in the present application is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combinations of the above technical features or their equivalent features without departing from the above application concept. For example, the above features can be replaced with the technical features with similar functions applied in the present application (but not limited to) to form technical solutions.

Claims

1. A model display method characterized by comprising: The method comprises the following steps: acquiring a model set; cutting the model set according to a preset cutting rule to form a disassembled model set and a disassembled model corresponding table; selecting a target model according to the disassembled model set, the disassembled model corresponding table and a preset ray collision detection method; the step of cutting the model set according to the preset cutting rule to form the disassembled model set and the disassembled model corresponding table comprises the following steps: traversing the model set to acquire a coincident sub-model set; cutting the models in the model set according to the coincident sub-model set and a preset model disassembling rule to form the disassembled model set; acquiring the correspondence between the model set and the disassembled model set to form the disassembled model corresponding table; a plurality of small models constitute a model set, for each small model, the coincident part and the non-coincident part of the small model are cut to form two models respectively, all the small models in the model set are subjected to the cutting operation, and the cut models constitute the disassembled model set; the models in the disassembled model set do not coincide with each other; traversing the model set, for any two small models, when the three-dimensional coordinates of the two small models are the same, it indicates that the two small models coincide with each other, and the coincident part models constitute the coincident sub-model set.

2. The model presentation method according to claim 1, characterized by, the step of selecting the target model according to the disassembled model set, the disassembled model corresponding table and the preset ray collision detection method comprises the following steps: acquiring a pickup point and a depth value; determining a detection model according to the pickup point and the ray collision detection method; acquiring a first target model according to the disassembled model corresponding table and the detection model; when the depth at which the pickup point is located is the same as the depth value, the first target model is the target model.

3. The model presentation method according to claim 1, wherein The method further comprises the following steps: acquiring a dead zone parameter, a starting point and an ending point, the dead zone parameter comprising a dead zone peak value and a dead zone ratio, the dead zone ratio representing the moving speed ratio of adjacent two distances; determining a variable speed critical point according to the dead zone peak value; generating a control instruction according to a preset interpolation rule, the variable speed critical point, the dead zone ratio, the starting point and the ending point; controlling the model to move according to the control instruction.

4. The model presentation method according to claim 1, characterized by, The method further comprises the following steps: acquiring user input information and a data set, the data set comprising the selection times of the models in the model set, and the user input information comprising a model with a highlight probability of zero; determining an initial highlight probability of each model in the model set according to a preset smoothing algorithm and the data set; determining a target highlight probability of the models in the model set according to the initial highlight probability, the user input information and a preset probability distribution rule.

5. The model presentation method according to claim 1, wherein The method further comprises the following steps: acquiring a model state table and a target time point, the model state table comprising different states of the model set at different time points; calling a target state of the model set according to the target time point and the model state table.

6. The model presentation method according to claim 4, wherein The smoothing algorithm is a Good-Turing smoothing algorithm.

7. A model display system characterized by, The method comprises the following steps: a data acquisition module (201) is configured to acquire a model set; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model selection module (203) is configured to select a target model according to the disassembled model set, the disassembled model corresponding table and a preset ray collision detection method; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; 8. An electronic device, comprising: The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; 9. A computer-readable storage medium, characterized in that, The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module (202) is configured to cut the model set according to a preset cutting rule, and form a disassembled model set and a disassembled model corresponding table; The model cutting module

Citation Information

Patent Citations

  • 3D model selection method and device

    CN106648355A