CN116301519B - Local information pickup method, device and equipment of rendering entity and storage medium - Google Patents

Local information pickup method, device and equipment of rendering entity and storage medium Download PDF

Info

Publication number
CN116301519B
CN116301519B CN202310202850.9A CN202310202850A CN116301519B CN 116301519 B CN116301519 B CN 116301519B CN 202310202850 A CN202310202850 A CN 202310202850A CN 116301519 B CN116301519 B CN 116301519B
Authority
CN
China
Prior art keywords
entity
geometric
rendering
list
intersection point
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.)
Active
Application number
CN202310202850.9A
Other languages
Chinese (zh)
Other versions
CN116301519A (en
Inventor
肖超
宋学浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wanyi Digital Technology Co ltd
Original Assignee
Shenzhen Wanyi Digital Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Wanyi Digital Technology Co ltd filed Critical Shenzhen Wanyi Digital Technology Co ltd
Priority to CN202310202850.9A priority Critical patent/CN116301519B/en
Publication of CN116301519A publication Critical patent/CN116301519A/en
Application granted granted Critical
Publication of CN116301519B publication Critical patent/CN116301519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a local information pickup method, a device, equipment and a storage medium of a rendering entity. The method comprises the following steps: determining an intersection point of clicking the mouse cursor in the entity, acquiring a target rendering entity selected by the mouse cursor, inquiring and acquiring a modeling entity corresponding to the target rendering entity, calculating a geometric list of the target rendering entity based on the intersection point and the modeling entity, screening out an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result. The application can pick up not only the rendered three-dimensional entity, but also the local geometry of the three-dimensional entity.

Description

Local information pickup method, device and equipment of rendering entity and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for picking up local information of a rendering entity.
Background
When a user draws a drawing by using design software, the entity is usually required to be operated, for example, the three-dimensional entity is rendered, but after the three-dimensional entity is rendered, the three-dimensional entity is gridded, so that the geometric characteristics of the three-dimensional entity are lost. Resulting in an inability to pick up the correct local geometric information of the three-dimensional entity.
Disclosure of Invention
In view of the foregoing, the present application provides a method, apparatus, device and storage medium for picking up local information of a rendering entity, which aims to solve the above technical problems.
In a first aspect, the present application provides a local information pickup method of a rendering entity, the method comprising:
Determining an intersection point of clicking of a mouse cursor in the entity, and acquiring a target rendering entity selected by the mouse cursor;
inquiring and acquiring a modeling entity corresponding to the target rendering entity;
Calculating a geometric list of the target rendering entity based on the intersection point and the modeling entity;
And screening out an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result.
Preferably, the obtaining the target rendering entity selected by the mouse cursor includes:
acquiring a rendering entity list selected by a mouse cursor within a tolerance range;
And determining the target rendering entity from the rendering entity list according to the pre-configured priority.
Preferably, the determining the target rendering entity from the rendering entity list according to the pre-configured priority includes:
calculating the distance between each rendering entity in the rendering entity list and the intersection point by taking the intersection point as a reference;
If the rendering entities in the rendering entity list are all rendering entities of the same type, taking the rendering entity closest to the intersection point as the target rendering entity;
And if the rendering entities in the rendering entity list are different types of rendering entities, determining the target rendering entity from the rendering entity list according to the pre-configured priority.
Preferably, the querying and acquiring the modeling entity corresponding to the target rendering entity includes:
Inquiring and acquiring a modeling entity corresponding to the target rendering entity according to a pre-established mapping relation between the rendering entity and the modeling entity.
Preferably, the calculating the geometric list of the target rendering entity based on the intersection point and the modeling entity includes:
and creating rays which take the intersection point as a starting point and are perpendicular to a screen, and calculating the intersection result of the modeling entity and the rays to obtain a geometric list of the rendering entity.
Preferably, the screening the optimal geometric result from the geometric list includes:
Calculating the distance between each piece of geometric information in the geometric list and the intersection point by taking the intersection point as a reference;
If the geometric information in the geometric list is the geometric information of the same type, taking the geometric information closest to the intersection point as the optimal geometric result;
And if the geometric information in the geometric list is the geometric information of different types, screening the optimal geometric result from the geometric list according to the pre-configured priority.
Preferably, the controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometry result includes:
obtaining a vertex sequence of the optimal geometric result, and creating a target entity according to the vertex sequence;
and controlling the mouse cursor to pick up the local geometry of the target entity.
In a second aspect, the present application provides a local information pickup apparatus of a rendering entity, the apparatus comprising:
The acquisition module is used for: the method comprises the steps of determining an intersection point of clicking of a mouse cursor in an entity, and obtaining a target rendering entity selected by the mouse cursor;
And a query module: the modeling entity is used for inquiring and acquiring the modeling entity corresponding to the target rendering entity;
the calculation module: the geometric list is used for calculating the target rendering entity based on the intersection point and the modeling entity;
And a pickup module: and the method is used for screening out the optimal geometric result from the geometric list, and controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometric result.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
And the processor is used for realizing the local information pickup method of the rendering entity according to any one of the embodiments of the first aspect when executing the program stored on the memory.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, implements a local information pickup method of a rendering entity according to any of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the method, the intersection point of the mouse cursor in the entity is determined, the target rendering entity selected by the mouse cursor is obtained, the modeling entity corresponding to the target rendering entity is queried, the geometric list of the target rendering entity is calculated according to the intersection point and the modeling entity, then the optimal geometric result is screened out from the geometric list, and the mouse cursor is controlled to pick up the local geometry corresponding to the optimal geometric result, so that a user can pick up the rendered three-dimensional entity and the local geometry of the three-dimensional entity in the design process.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method for local information pickup of a rendering entity according to an embodiment of the present application;
FIG. 2 is a block diagram of a local information pickup device of a rendering entity according to a preferred embodiment of the present application;
FIG. 3 is a schematic diagram of an electronic device according to a preferred embodiment of the present application;
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present application.
The application provides a local information pickup method of a rendering entity. Referring to fig. 1, a method flow diagram of an embodiment of a local information pickup method of a rendering entity according to the present application is shown. The method may be performed by an electronic device, which may be implemented in software and/or hardware. The local information pickup method of the rendering entity comprises the following steps:
step S10: determining an intersection point of clicking of a mouse cursor in the entity, and acquiring a target rendering entity selected by the mouse cursor;
step S20: inquiring and acquiring a modeling entity corresponding to the target rendering entity;
step S30: calculating a geometric list of the target rendering entity based on the intersection point and the modeling entity;
Step S40: and screening out an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result.
In this embodiment, the electronic device is provided with design software (for example, design software in the building field), when the user uses the design software, the user can draw and design related drawings through a man-machine interaction design interface of the electronic device, and it can be understood that the design software in the application scenario of the present application can also be design software in other fields. The entity refers to an element constituting the building model, and includes a point entity, a line entity, a plane entity, and a body entity. The user can render the three-dimensional entity during drawing or design, and the three-dimensional entity is gridded during rendering, so that the geometric features of the three-dimensional entity are lost, and the user cannot pick up the correct local geometric features of the three-dimensional entity.
According to the method, geometric characteristics of a rendering entity (for example, a three-dimensional rendering entity) are deduced reversely through a modeling platform, specifically, when a user clicks the rendered entity through a mouse cursor, an intersection point of the mouse cursor clicking in the entity is determined, due to the existence of a tolerance mechanism, when a plurality of entities are very close to each other, the entity selected by the mouse cursor is not unique within the tolerance range, namely, the plurality of rendering entities can be selected by the mouse cursor, so that a target rendering entity selected by the mouse cursor needs to be acquired, the target rendering entity refers to the entity closest to a viewpoint, the target entity can be determined by utilizing preconfigured priority logic, and the priority logic can be configured according to the distance between the entity and the intersection point and the type of the entity.
Determining a target rendering entity, inquiring and acquiring modeling entities corresponding to the target rendering entity, wherein each rendering entity is provided with the corresponding modeling entity, so that the modeling entity corresponding to the target rendering entity can be inquired and acquired according to the pre-established mapping relation between the rendering entity and the modeling entity. By caching the one-to-one relationship between the modeling entity and the rendering entity in advance, the modeling entity corresponding to the target rendering entity can be quickly queried.
After the modeling entity corresponding to the target rendering entity is obtained, a geometric list of the target rendering entity is calculated according to the intersection point and the modeling entity, wherein the geometric list refers to a list of geometric information corresponding to the target rendering entity clicked by the mouse cursor (due to the existence of a tolerance mechanism, adjacent geometric information is obtained within a tolerance range when the mouse cursor clicks the target rendering entity). Specifically, calculating the geometric list of the target rendering entity according to the intersection point and the modeling entity includes: and creating rays which take the intersection point as a starting point and are perpendicular to a screen, and calculating the intersection result of the modeling entity and the rays to obtain a geometric list of the rendering entity. The intersection result of the calculation modeling entity and the ray can be calculated by using the existing modeling engine.
Since the geometry list contains various geometry information (e.g., points, lines, planes), the optimal geometry results are screened from the geometry list, which may be determined using pre-configured priority logic, which may be configured according to the distance between the optimal geometry results and the intersection points and the type of the optimal geometry results. And controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometry result. Through the operation of clicking the three-dimensional entity in the scene by the mouse, not only the rendered three-dimensional entity can be picked up, but also the local geometry of the three-dimensional entity can be picked up, the picked local geometry can be highlighted, and the local geometry can be a face on the entity, a line on the entity, a two-dimensional contour line and a two-dimensional closed area.
In one embodiment, the obtaining the target rendering entity selected by the mouse cursor includes:
acquiring a rendering entity list selected by a mouse cursor within a tolerance range;
And determining the target rendering entity from the rendering entity list according to the pre-configured priority.
The rendering entity list refers to a list of one or more rendering entities selected by the tolerance mechanism mouse cursor. The target rendering entity is determined from the rendering entity list according to the pre-configured priority, for example, the rendering entity closest to the intersection point in the rendering entity list may be used as the target rendering entity.
Further, the determining the target rendering entity from the rendering entity list according to the pre-configured priority includes:
calculating the distance between each rendering entity in the rendering entity list and the intersection point by taking the intersection point as a reference;
If the rendering entities in the rendering entity list are all rendering entities of the same type, taking the rendering entity closest to the intersection point as the target rendering entity;
And if the rendering entities in the rendering entity list are different types of rendering entities, determining the target rendering entity from the rendering entity list according to the pre-configured priority.
And calculating the pixel distance between each rendering entity in the rendering entity list and the intersection point based on the intersection point, grouping the rendering entities according to different types of entities (points, lines, planes and volumes) and sorting the rendering entities according to the pixel distance, for example, if the rendering entities in the rendering entity list are all rendering entities of the same type (for example, all are line types), taking a line closest to the intersection point as a target rendering entity, and if the rendering entities in the rendering entity list have the point type entity, the line type entity and the plane type entity, determining the target rendering entity from the rendering entity list according to a preconfigured priority, wherein the preconfigured priority is that the priority of the point type entity is higher than that of the line type entity, and the priority of the line type entity is higher than that of the plane type entity. It can be ensured that within the tolerance range points and lines are more easily picked up.
In one embodiment, the screening the optimal geometry result from the geometry list includes:
Calculating the distance between each piece of geometric information in the geometric list and the intersection point by taking the intersection point as a reference;
If the geometric information in the geometric list is the geometric information of the same type, taking the geometric information closest to the intersection point as the optimal geometric result;
And if the geometric information in the geometric list is the geometric information of different types, screening the optimal geometric result from the geometric list according to the pre-configured priority.
And calculating the distance between each piece of geometric information in the geometric list and the intersection point by taking the intersection point as a reference, grouping the pieces of geometric information according to different types (points, lines, planes and volumes) and sorting the pieces of geometric information according to pixel distances, for example, if the pieces of geometric information in the geometric list are all the geometric information of the same type (for example, all the pieces of line type), taking the line closest to the intersection point as an optimal geometric result, and if the pieces of geometric information of the point type, the geometric information of the line type and the geometric information of the plane type exist in the geometric list, determining the optimal geometric result from the geometric list according to a pre-configured priority, wherein the pre-configured priority is that the point type of geometric information is higher than the line type of geometric information, and the line type of geometric information is higher than the plane type of real geometric information.
Further, the controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometry result includes:
obtaining a vertex sequence of the optimal geometric result, and creating a target entity according to the vertex sequence;
and controlling the mouse cursor to pick up the local geometry of the target entity.
And obtaining a vertex sequence of the optimal geometric result, creating and highlighting a target entity according to the vertex sequence, and controlling a mouse cursor to pick up the local geometry of the target entity so that a user can sort out the local geometry of the three-dimensional entity (e.g. a plane on the entity, a line on the entity, a two-dimensional contour line, a two-dimensional closed area) on a design interface. Through the operation of clicking the three-dimensional entity in the scene by the mouse, the user can pick up not only the three-dimensional entity but also the local geometric information of the three-dimensional entity, and the picked local geometric information can be highlighted.
Referring to fig. 2, a functional block diagram of a local information pickup apparatus 100 of a rendering entity according to the present application is shown.
The local information pickup apparatus 100 of the rendering entity of the present application may be installed in an electronic device. Depending on the implemented functions, the local information pickup apparatus 100 of the rendering entity may include an acquisition module 110, a query module 120, a calculation module 130, and a pickup module 140. The module of the application, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
The acquisition module 110: the method comprises the steps of determining an intersection point of clicking of a mouse cursor in an entity, and obtaining a target rendering entity selected by the mouse cursor;
Query module 120: the modeling entity is used for inquiring and acquiring the modeling entity corresponding to the target rendering entity;
the calculation module 130: the geometric list is used for calculating the target rendering entity based on the intersection point and the modeling entity;
Pick-up module 140: and the method is used for screening out the optimal geometric result from the geometric list, and controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometric result.
In one embodiment, the obtaining the target rendering entity selected by the mouse cursor includes:
acquiring a rendering entity list selected by a mouse cursor within a tolerance range;
And determining the target rendering entity from the rendering entity list according to the pre-configured priority.
In one embodiment, the determining the target rendering entity from the rendering entity list according to a pre-configured priority includes:
calculating the distance between each rendering entity in the rendering entity list and the intersection point by taking the intersection point as a reference;
If the rendering entities in the rendering entity list are all rendering entities of the same type, taking the rendering entity closest to the intersection point as the target rendering entity;
And if the rendering entities in the rendering entity list are different types of rendering entities, determining the target rendering entity from the rendering entity list according to the pre-configured priority.
In one embodiment, the querying and obtaining the modeling entity corresponding to the target rendering entity includes:
Inquiring and acquiring a modeling entity corresponding to the target rendering entity according to a pre-established mapping relation between the rendering entity and the modeling entity.
In one embodiment, the computing the geometric list of the target rendering entity based on the intersection point and the modeling entity includes:
and creating rays which take the intersection point as a starting point and are perpendicular to a screen, and calculating the intersection result of the modeling entity and the rays to obtain a geometric list of the rendering entity.
In one embodiment, the screening the optimal geometry result from the geometry list includes:
Calculating the distance between each piece of geometric information in the geometric list and the intersection point by taking the intersection point as a reference;
If the geometric information in the geometric list is the geometric information of the same type, taking the geometric information closest to the intersection point as the optimal geometric result;
And if the geometric information in the geometric list is the geometric information of different types, screening the optimal geometric result from the geometric list according to the pre-configured priority.
In one embodiment, the controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometry result includes:
obtaining a vertex sequence of the optimal geometric result, and creating a target entity according to the vertex sequence;
and controlling the mouse cursor to pick up the local geometry of the target entity.
Referring to fig. 3, a schematic diagram of a preferred embodiment of an electronic device 1 according to the present application is shown.
The electronic device 1 includes, but is not limited to: memory 11, processor 12, display 13, and communication interface 14. The electronic device 1 may be connected to a network via a communication interface 14. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, or a call network.
The memory 11 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are equipped with the electronic device 1. Of course, the memory 11 may also comprise both an internal memory unit of the electronic device 1 and an external memory device. In the present embodiment, the memory 11 is typically used for storing an operating system and various types of computer programs installed in the electronic device 1, such as program codes of the local information pickup program 10 of the rendering entity. Further, the memory 11 may be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used for controlling the overall operation of the electronic device 1, e.g. performing data interaction or communication related control and processing, etc. In this embodiment, the processor 12 is configured to execute the program code stored in the memory 11 or process data, such as the program code of the local information pickup program 10 of the rendering entity.
The display 13 may be referred to as a display screen or a display unit. The display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch device, or the like in some embodiments. The display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface.
The communication interface 14 may alternatively comprise a standard wired interface, a wireless interface, such as a WI-FI interface, which communication interface 14 is typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
Fig. 3 shows only the electronic device 1 with components 11-14 and the rendering entity's local information pickup program 10, but it should be understood that not all shown components are required to be implemented, and that more or fewer components may alternatively be implemented.
In the above-described embodiment, the processor 12 may implement the following steps when executing the local information pickup program 10 of the rendering entity stored in the memory 11:
Determining an intersection point of clicking of a mouse cursor in the entity, and acquiring a target rendering entity selected by the mouse cursor;
inquiring and acquiring a modeling entity corresponding to the target rendering entity;
Calculating a geometric list of the target rendering entity based on the intersection point and the modeling entity;
And screening out an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result.
The storage device may be the memory 11 of the electronic device 1, or may be another storage device communicatively connected to the electronic device 1.
For a detailed description of the above steps, please refer to the functional block diagram of the embodiment of the local information pickup apparatus 100 of the rendering entity shown in fig. 2 and the flowchart of the embodiment of the local information pickup method of the rendering entity shown in fig. 1.
Furthermore, the embodiment of the application also provides a computer readable storage medium, which can be nonvolatile or volatile. The computer readable storage medium may be any one or any combination of several of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory, etc. The computer readable storage medium includes a storage data area and a storage program area, the storage program area stores a local information pickup program 10 of a rendering entity, and the local information pickup program 10 of the rendering entity realizes the following operations when being executed by a processor:
Determining an intersection point of clicking of a mouse cursor in the entity, and acquiring a target rendering entity selected by the mouse cursor;
inquiring and acquiring a modeling entity corresponding to the target rendering entity;
Calculating a geometric list of the target rendering entity based on the intersection point and the modeling entity;
And screening out an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result.
The embodiment of the computer readable storage medium of the present application is substantially the same as the embodiment of the local information pickup method of the rendering entity, and will not be described herein.
It should be noted that, the foregoing reference numerals of the embodiments of the present application are merely for describing the embodiments, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware simulation platform, or may be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, an electronic device, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A method of local information pickup for a rendering entity, the method comprising:
Determining an intersection point of clicking of a mouse cursor in an entity, and acquiring a target rendering entity selected by the mouse cursor, wherein the target rendering entity refers to an entity closest to the viewpoint;
inquiring and acquiring a modeling entity corresponding to the target rendering entity;
calculating a geometric list of the target rendering entity based on the intersection point and the modeling entity, wherein the geometric list comprises geometric information adjacent to the target rendering entity;
Screening out an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result;
wherein the screening the optimal geometric result from the geometric list comprises:
Calculating the distance between each piece of geometric information in the geometric list and the intersection point by taking the intersection point as a reference;
If the geometric information in the geometric list is the geometric information of the same type, taking the geometric information closest to the intersection point as the optimal geometric result;
And if the geometric information in the geometric list is the geometric information of different types, screening the optimal geometric result from the geometric list according to the pre-configured priority.
2. The method for picking up local information of a rendering entity according to claim 1, wherein the step of obtaining the target rendering entity selected by the mouse cursor includes:
acquiring a rendering entity list selected by a mouse cursor within a tolerance range;
And determining the target rendering entity from the rendering entity list according to the pre-configured priority.
3. The method for picking up local information of a rendering entity according to claim 2, wherein the determining the target rendering entity from the rendering entity list according to a pre-configured priority comprises:
calculating the distance between each rendering entity in the rendering entity list and the intersection point by taking the intersection point as a reference;
If the rendering entities in the rendering entity list are all rendering entities of the same type, taking the rendering entity closest to the intersection point as the target rendering entity;
And if the rendering entities in the rendering entity list are different types of rendering entities, determining the target rendering entity from the rendering entity list according to the pre-configured priority.
4. The method for picking up local information of a rendering entity according to claim 1, wherein the querying and acquiring the modeling entity corresponding to the target rendering entity includes:
Inquiring and acquiring a modeling entity corresponding to the target rendering entity according to a pre-established mapping relation between the rendering entity and the modeling entity.
5. The method of claim 1, wherein the calculating the geometric list of the target rendering entity based on the intersection point and the modeling entity comprises:
and creating rays which take the intersection point as a starting point and are perpendicular to a screen, and calculating the intersection result of the modeling entity and the rays to obtain a geometric list of the rendering entity.
6. The method for picking up local information of a rendering entity according to claim 1, wherein the controlling the mouse cursor to pick up the local geometry corresponding to the optimal geometry result includes:
obtaining a vertex sequence of the optimal geometric result, and creating a target entity according to the vertex sequence;
and controlling the mouse cursor to pick up the local geometry of the target entity.
7. A local information pickup apparatus of a rendering entity, the apparatus comprising:
The acquisition module is used for: the method comprises the steps of determining an intersection point of clicking of a mouse cursor in an entity, and obtaining a target rendering entity selected by the mouse cursor, wherein the target rendering entity refers to an entity closest to a viewpoint;
And a query module: the modeling entity is used for inquiring and acquiring the modeling entity corresponding to the target rendering entity;
the calculation module: a geometric list for calculating the target rendering entity based on the intersection point and the modeling entity, the geometric list including geometric information adjacent to the target rendering entity;
And a pickup module: the method comprises the steps of screening an optimal geometric result from the geometric list, and controlling the mouse cursor to pick up local geometry corresponding to the optimal geometric result;
wherein the screening the optimal geometric result from the geometric list comprises:
Calculating the distance between each piece of geometric information in the geometric list and the intersection point by taking the intersection point as a reference;
If the geometric information in the geometric list is the geometric information of the same type, taking the geometric information closest to the intersection point as the optimal geometric result;
And if the geometric information in the geometric list is the geometric information of different types, screening the optimal geometric result from the geometric list according to the pre-configured priority.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the local information pickup method of a rendering entity according to any one of claims 1 to 6 when executing a program stored on a memory.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a local information pickup method of a rendering entity according to any one of claims 1 to 6.
CN202310202850.9A 2023-02-23 2023-02-23 Local information pickup method, device and equipment of rendering entity and storage medium Active CN116301519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310202850.9A CN116301519B (en) 2023-02-23 2023-02-23 Local information pickup method, device and equipment of rendering entity and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310202850.9A CN116301519B (en) 2023-02-23 2023-02-23 Local information pickup method, device and equipment of rendering entity and storage medium

Publications (2)

Publication Number Publication Date
CN116301519A CN116301519A (en) 2023-06-23
CN116301519B true CN116301519B (en) 2024-04-23

Family

ID=86835442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310202850.9A Active CN116301519B (en) 2023-02-23 2023-02-23 Local information pickup method, device and equipment of rendering entity and storage medium

Country Status (1)

Country Link
CN (1) CN116301519B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271585A (en) * 2008-03-31 2008-09-24 北京大学 Method for collecting three-dimensional geometric drawing member on pattern processor
CN103473814A (en) * 2013-09-23 2013-12-25 电子科技大学中山学院 Three-dimensional geometric primitive picking method based on GPU
CN111353007A (en) * 2018-12-24 2020-06-30 杭州海康威视系统技术有限公司 Geographic element picking method, encoding method and device based on vector slice and electronic equipment
CN115129191A (en) * 2021-03-26 2022-09-30 北京新氧科技有限公司 Three-dimensional object pickup method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7949642B2 (en) * 2004-10-12 2011-05-24 Wendy W Yang System and method for managing and presenting entity information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271585A (en) * 2008-03-31 2008-09-24 北京大学 Method for collecting three-dimensional geometric drawing member on pattern processor
CN103473814A (en) * 2013-09-23 2013-12-25 电子科技大学中山学院 Three-dimensional geometric primitive picking method based on GPU
CN111353007A (en) * 2018-12-24 2020-06-30 杭州海康威视系统技术有限公司 Geographic element picking method, encoding method and device based on vector slice and electronic equipment
CN115129191A (en) * 2021-03-26 2022-09-30 北京新氧科技有限公司 Three-dimensional object pickup method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
交互式三维纸盒包装 CAD 中分层对象拾取的研究;吴学毅 等;包装工程;第30卷(第12期);第65-67、87页 *
激光加工工艺软件的三维图形层次化拾取方法;李春林 等;激光杂志;第37卷(第7期);第58-61页 *

Also Published As

Publication number Publication date
CN116301519A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN109146932B (en) Method, device and system for determining world coordinates of target point in image
CN112035667A (en) Knowledge graph display method and device and terminal equipment
CN110033515B (en) Graph conversion method, graph conversion device, computer equipment and storage medium
CN113761012A (en) Analysis visualization method of remote sensing data, server and storage medium
CN109299205B (en) Method and device for warehousing spatial data used by planning industry
CN113127125A (en) Page automatic adaptation method, device, equipment and storage medium
CN114818093B (en) Method, device and equipment for generating column beam of assembled steel structure module building
CN107704253B (en) Control character color transformation method and system and electronic device
CN109471909B (en) Method, apparatus and computer readable storage medium for address location
CN114166312A (en) Vehicle oil quantity measuring method and device, computer equipment and storage medium
CN116301519B (en) Local information pickup method, device and equipment of rendering entity and storage medium
CN111913777A (en) Information processing method, information processing device, electronic equipment and storage medium
CN109189728B (en) Intelligent hardware device, magnetic disk data processing method and storage medium
CN110442663B (en) Raster data batch clipping method and device and computer readable storage medium
CN108519984B (en) Weather data processing method, server and computer readable storage medium
CN111046472B (en) Method, device, computer equipment and storage medium for displaying model component information
CN114564526A (en) Three-dimensional earth data display method, device, equipment and storage medium
CN111221917B (en) Intelligent partition storage method, intelligent partition storage device and computer readable storage medium
CN111931746A (en) Vehicle loss judgment method and device, computer equipment and readable storage medium
CN116188267A (en) Entity pickup method, device, equipment and storage medium based on dynamic tolerance
CN106202571B (en) Digital map system for storing customer information based on two-dimensional code and use method thereof
CN1577317A (en) Schematic diagram component symbol examining apparatus and obtaining method
CN110750818B (en) Height marking method, system and storage medium for drainage well design
CN110874368A (en) Data paging system and method based on Realm database
CN113780176B (en) Local occlusion object identification method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant