Method for querying geometric elements in different geometric modeling engines and related products
The coordinates of the UV parameter point of the target positioning are determined by UV parameterized planes, which solves the problem of inconsistent geometric element query under different geometric modeling engines, and realizes accurate positioning and operation consistency of geometric elements, improving the efficiency and accuracy of geometric operations.
Patent Information
- Application Number
- CN202510220016.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-02-26
AI Technical Summary
The existing geometric modeling engine cannot implement consistent geometric feature query under different cores, resulting in a narrow scope of use cases and unintuitive query results, which affects the accuracy and efficiency of geometric operations.
It provides an interactive interface to determine the coordinates of the target positioning UV parameter point through the UV parameterized plane, map it to the geometric elements of the solid model, and determine the target geometric elements and their identification information based on the coordinates of the target positioning UV parameter point. It is suitable for different geometric modeling engines.
It realizes accurate positioning and operation of geometric elements under different geometric modeling engines, improves the intuitiveness and applicability of query results, and ensures the consistency and stability of geometric operations.
Smart Images

Figure CN120296812A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of geometric element query, and particularly to a method and related products for querying geometric elements in different geometric modeling engines; wherein, the related products may include a device for querying geometric elements in different geometric modeling engines, an electronic device, and a computer-readable storage medium. Background Art
[0002] As the "heart" of industrial software, a geometric modeling engine provides efficient algorithms and practical tools for constructing 3D models, expressing complex surfaces, and editing entity shapes, determining the implementation of core functions such as model creation, analysis, and operation. Currently, several geometric kernel manufacturers have developed their own geometric modeling engines, but they are not compatible with other kernels. Functional testing is required using test tools and test cases (Python scripts) to improve the kernel functions. The test tools need to be compatible with other kernels, and the test cases need to be widely applicable to multiple geometric modeling engines.
[0003] In the modeling and shape transformation operations in script test cases (such as chamfering, offsetting, tilting, etc.), geometric operations need to be performed on specified edges or specified faces. How to accurately and efficiently query the specified lines and faces (collectively referred to as geometric elements) in an entity model is a compatibility problem that still needs to be solved by a test tool. Summary of the Invention
[0004] In view of the above problems, a method and related products for querying geometric elements in different geometric modeling engines that overcome the above problems or at least partially solve the above problems are proposed, including:
[0005] A method for querying geometric elements in different geometric modeling engines, which displays an interactive interface, and a UV parametric plane of an entity model is displayed in the interactive interface. The method includes:
[0006] In response to a first user operation, determining target positioning UV parameter point coordinates from the UV parametric plane;
[0007] According to the target positioning UV parameter point coordinates, determining target geometric elements from the entity model;
[0008] Determining a target geometric modeling engine that currently loads the entity model, and determining target identification information of the target geometric elements in the target geometric modeling engine.
[0009] Optionally, the determining target geometric elements from the entity model according to the target positioning UV parameter point coordinates includes:
[0010] Calculate the distance values between each geometric element in the solid model and the coordinates of the target positioning UV parameter points;
[0011] Determine the target geometric element from the geometric elements of the solid model according to the distance values between each geometric element and the coordinates of the target positioning UV parameter points.
[0012] Optionally, the determining the target geometric element from the geometric elements of the solid model according to the distance values between each geometric element and the coordinates of the target positioning UV parameter points includes:
[0013] Determine the geometric element corresponding to the minimum distance value;
[0014] Take the geometric element corresponding to the minimum distance value as the target geometric element.
[0015] Optionally, the method further includes:
[0016] When there are at least two geometric elements corresponding to the minimum distance value, prompt the user to re - execute the first user operation.
[0017] Optionally, the method further includes:
[0018] After determining the target geometric element, prominently display the target geometric element.
[0019] Optionally, the method further includes:
[0020] Extract the target geometric element according to the target identification information;
[0021] Call the target interface to perform geometric operations on the target geometric element.
[0022] Optionally, the geometric operation includes any one of the following:
[0023] Chamfering operation, offset operation, tilting operation.
[0024] An embodiment of the present invention further provides a device for querying geometric elements in different geometric modeling engines, which displays an interactive interface, and the UV parameterized plane of the solid model is displayed in the interactive interface. The device includes:
[0025] A coordinate determination module, configured to determine the coordinates of the target positioning UV parameter points from the UV parameterized plane in response to a first user operation;
[0026] An element determination module, configured to determine the target geometric element from the solid model according to the coordinates of the target positioning UV parameter points;
[0027] An identification determination module, configured to determine a target geometric modeling engine that currently loads the entity model, and determine target identification information of the target geometric element in the target geometric modeling engine.
[0028] Optionally, the element determination module is configured to calculate distance values between each geometric element in the entity model and the coordinates of the target positioning UV parameter points; and determine the target geometric element from the geometric elements of the entity model according to the distance values between the geometric elements and the coordinates of the target positioning UV parameter points.
[0029] Optionally, the element determination module is configured to determine the geometric element corresponding to the minimum distance value; and use the geometric element corresponding to the minimum distance value as the target geometric element.
[0030] Optionally, when there are at least two geometric elements corresponding to the minimum distance value, the coordinate determination module is further configured to prompt the user to re-execute the first user operation.
[0031] Optionally, after determining the target geometric element, the element determination module is further configured to prominently display the target geometric element.
[0032] Optionally, the apparatus further includes:
[0033] A geometric operation module, configured to extract the target geometric element according to the target identification information; and call a target interface to perform geometric operations on the target geometric element.
[0034] Optionally, the geometric operation includes any one of the following:
[0035] Chamfering operation, offset operation, tilting operation.
[0036] An embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the method for querying geometric elements in different geometric modeling engines as described above is implemented.
[0037] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for querying geometric elements in different geometric modeling engines as described above is implemented.
[0038] The embodiment of the present invention has the following advantages:
[0039] In an embodiment of the present invention, in response to a first user operation, target positioning UV parameter point coordinates are determined from a UV parametric plane; according to the target positioning UV parameter point coordinates, target geometric elements are determined from a solid model; a target geometric modeling engine for the currently loaded solid model is determined, and target identification information of the target geometric elements in the target geometric modeling engine is determined. Through the embodiment of the present invention, a user can, by operating an interaction interface, select a point near a geometric element to be operated, and map it to the corresponding geometric element through the coordinates corresponding to the point, which can avoid problems such as narrow use case applicability and unintuitive query results that occur when querying geometric elements using identification IDs due to different identification methods in different geometric modeling engines. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for the description of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0041] Figure 1 is a flowchart of the steps of a method for querying geometric elements in different geometric modeling engines according to an embodiment of the present invention;
[0042] Figure 2 is a flowchart of the steps of another method for querying geometric elements in different geometric modeling engines according to an embodiment of the present invention;
[0043] Figure 3 is a flowchart of the steps of a method for querying geometric elements according to an embodiment of the present invention;
[0044] Figure 4 is a schematic diagram of a geometric operation according to an embodiment of the present invention;
[0045] Figure 5 is a schematic structural diagram of a device for querying geometric elements in different geometric modeling engines according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0046] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the drawings and specific embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0047] Currently, the geometric modeling engine OCC (Open CASCADE) uses name identification. It unfolds points, lines, and surfaces through the explode function and then uses name identification. The main method adopted by other geometric modeling engine manufacturers is to assign ID numbers to geometric elements, and each geometric element has a unique identification ID.
[0048] When querying a specified geometric element, the ID number is bound to the geometric element, and this ID number can be used for querying and geometric operations. Taking a cuboid (named b for example), the way OCC uses name identification is to explode b E (unfold the model b by edges), and then use b_1, b_2, b_3... to identify the edges; explode b F (unfold the model b by faces), and then use b_1, b_2, b_3... to identify the faces.
[0049] The way other geometric modeling engines use ID identification is as follows: use numbers 1 to 12 to identify each edge of the cuboid, and 13 to 18 to identify each face of the cuboid. Different geometric elements are distinguished by the identification ID, and this ID number is used for querying and subsequent geometric operations.
[0050] However, with the test cases unchanged, due to the inconsistent topological structures of different kernels or the non-uniform identification methods, the identification IDs of geometric elements may also be inconsistent. There are the following deficiencies in querying geometric elements using the identification ID:
[0051] (1) Narrow scope of use case applicability: The method of querying geometric elements using the identification ID cannot ensure consistent identification methods under different kernels. For example, the ID of the bottom surface of a cuboid is marked as 1 under kernel A, but may be marked as 2 under kernel B, resulting in inconsistent test case results and unable to ensure the consistency of geometric operations.
[0052] (2) Unintuitive query results: Since the rule of binding geometric elements by the identification ID has been set and encapsulated in the kernel, users cannot know the logic of the geometric element identification ID method. For example, when a user needs to perform geometric operations on the bottom surface of a cuboid, but cannot confirm the serial number of the bottom surface of the cuboid. In the process of "user input - kernel - entity topology", only using the identification ID to query geometric elements, the query process is unclear and the query results are not intuitive, which will cause trouble to subsequent geometric operations.
[0053] To solve this problem, an embodiment of the present invention provides a method for querying geometric elements in different geometric modeling engines; this method can provide a user with an interactive interface that displays a UV parametric plane of a solid model. By operating the interactive interface, the user can select points near the geometric elements to be operated on, and map them to the corresponding geometric elements through the coordinates corresponding to the points, which can avoid problems such as narrow use case applicability and unintuitive query results caused by different identification methods in different geometric modeling engines. Specifically, reference can be made to Figure 1 , which shows a flowchart of the steps of a method for querying geometric elements in different geometric modeling engines according to an embodiment of the present invention.
[0054] As Figure 1 shown, the method for querying geometric elements in different geometric modeling engines may include the following steps:
[0055] Step 101, in response to a first user operation, determine the target positioning UV parameter point coordinates from the UV parametric plane.
[0056] Among them, for the solid model, it can be mapped to the UV parametric plane. Mesh parameterization unfolds the surface of the solid model onto a two-dimensional plane and assigns UV parameter point coordinates.
[0057] The UV parameter point coordinates can be texture mapping coordinates. U can represent the horizontal direction (similar to the X-axis); V can represent the vertical direction (similar to the Y-axis)), and these coordinates uniquely correspond to a certain three-dimensional point coordinate on the surface of the solid model and maintain the topological information of the solid model.
[0058] By constructing a mapping function f:(x,y,z)→(u,v) between the three-dimensional solid model and the two-dimensional UV parametric plane, the three-dimensional coordinate points can be uniquely represented by the two-dimensional UV parameter points.
[0059] For the geometric elements in the solid model, they all have UV parameter ranges. Selecting a parameter point uniquely corresponds to a three-dimensional point coordinate of the solid model. Based on this, the user can perform a first user operation on the UV parametric plane of the solid model displayed in the interactive interface. The first user operation can be a selection operation, a click operation, etc. of the mouse, and the embodiments of the present invention do not limit this.
[0060] After the user performs the first user operation, in response to the first user operation, the point targeted by the first user operation can be determined, and the position of the point mapped to the UV parametric plane can be determined; then, the target positioning UV parameter point coordinates corresponding to the position can be determined, that is, the coordinates of the position in the UV parametric plane.
[0061] Step 102: Determine the target geometric element from the solid model according to the target positioning UV parameter point coordinates.
[0062] After determining the target positioning UV parameter point coordinates, the target geometric element associated with the target positioning UV parameter point coordinates can be determined from the solid model; exemplarily, the geometric element closest to the target positioning UV parameter point coordinates can be used as the target geometric element.
[0063] Step 103: Determine the target geometric modeling engine of the currently loaded solid model, and determine the target identification information of the target geometric element in the target geometric modeling engine.
[0064] Next, the target geometric modeling engine of the currently loaded solid model can be determined, and the target identification information of the target geometric element in the target geometric modeling engine can be determined; it should be noted that since the identification methods of different geometric modeling engines are different, when the target geometric modeling engine is different, the determined target identification information can be different. The currently determined target identification information is only applicable to the current target geometric modeling engine.
[0065] In addition, since the positioning UV parameter point coordinates corresponding to each geometric element are fixed and do not vary with different geometric modeling engines; therefore, the currently determined target positioning UV parameter point coordinates can be applicable to any geometric modeling engine, and the embodiments of the present invention do not limit this.
[0066] In the embodiments of the present invention, in response to the first user operation, the target positioning UV parameter point coordinates are determined from the UV parameterized plane; according to the target positioning UV parameter point coordinates, the target geometric element is determined from the solid model; the target geometric modeling engine of the currently loaded solid model is determined, and the target identification information of the target geometric element in the target geometric modeling engine is determined. Through the embodiments of the present invention, the user can select a point near the geometric element to be operated through the operation interaction interface, and map it to the corresponding geometric element through the coordinates of the point, which can avoid problems such as narrow use case scope and unintuitive query results caused by different identification methods in different geometric modeling engines when querying geometric elements using the identification ID.
[0067] Refer to Figure 2 , which shows a flowchart of the steps of another method for querying geometric elements in different geometric modeling engines according to the embodiments of the present invention, and may include the following steps:
[0068] Step 201: In response to the first user operation, determine the target positioning UV parameter point coordinates from the UV parameterized plane.
[0069] After the user performs a first user operation, in response to the first user operation, the point targeted by the first user operation can be determined, and the position where the point is mapped in the UV parametric plane can be determined; then, the target positioning UV parameter point coordinates corresponding to the position, that is, the coordinates of the position in the UV parametric plane, can be determined.
[0070] Step 202, calculate the distance values between each geometric element in the solid model and the target positioning UV parameter point coordinates.
[0071] After determining the target positioning UV parameter point coordinates, the distance values between the UV parameter point coordinates of each geometric element in the solid model and the target positioning UV parameter point coordinates can be calculated respectively; that is, in the solid model, the distance values between each geometric element and the point selected by the user's first user operation.
[0072] Step 203, determine the target geometric element from the geometric elements of the solid model according to the distance values between each geometric element and the target positioning UV parameter point coordinates.
[0073] After determining the distance values between the UV parameter point coordinates of each geometric element and the target positioning UV parameter point coordinates, the unique target geometric element, that is, the geometric element that the user needs to operate on, can be determined from the multiple geometric elements of the solid model according to the distance values between the UV parameter point coordinates of each geometric element and the target positioning UV parameter point coordinates.
[0074] In an embodiment of the present invention, step 203 can be implemented through the following sub-steps:
[0075] Sub-step 11, determine the geometric element corresponding to the minimum distance value.
[0076] In some feasible embodiments, after determining the distance values between the UV parameter point coordinates of each geometric element and the target positioning UV parameter point coordinates, the minimum distance value can be determined therefrom, and the geometric element corresponding to the minimum distance value can be determined.
[0077] Sub-step 12, use the geometric element corresponding to the minimum distance value as the target geometric element.
[0078] After determining the minimum distance value, the geometric element corresponding to the minimum distance value can be used as the target geometric element, that is, the geometric element that the user wants to select by performing the first user operation.
[0079] In an embodiment of the present invention, on the basis of step 203, the following steps can also be included:
[0080] When there are at least two geometric elements corresponding to the minimum distance value, prompt the user to re-perform the first user operation.
[0081] In some feasible embodiments, if there is more than one geometric element corresponding to the minimum distance value, that is, when the geometric elements corresponding to the minimum distance value include at least two, the user can be prompted to re - execute the first user operation to re - select a point in the UV parameterization plane. This prompt can be a text prompt, for example: There are multiple target geometric elements. Please re - select. Or, it can also be a direct error prompt, for example: Wrong selection. Please re - select. The embodiments of the present invention do not limit this.
[0082] Step 204: Determine the target geometric modeling engine of the currently loaded solid model, and determine the target identification information of the target geometric element in the target geometric modeling engine.
[0083] Next, the target geometric modeling engine of the currently loaded solid model can be determined, and the target identification information of the target geometric element in this target geometric modeling engine can be determined. It should be noted that since the identification methods of different geometric modeling engines are different, when the target geometric modeling engines are different, the determined target identification information can be different. The currently determined target identification information is only applicable to the current target geometric modeling engine.
[0084] In addition, since the positioning UV parameter point coordinates corresponding to each geometric element are fixed and do not vary with different geometric modeling engines, the currently determined target positioning UV parameter point coordinates can be applicable to any geometric modeling engine. The embodiments of the present invention do not limit this.
[0085] In an embodiment of the present invention, the above - mentioned method may further include the following steps:
[0086] After determining the target geometric element, prominently display the target geometric element.
[0087] In some feasible embodiments, after determining the target geometric element, the target geometric element can be prominently displayed so that the user can determine whether it is indeed the geometric element they want to select.
[0088] If the target geometric element is not the geometric element they want to select, the user can re - execute the first user operation. The embodiments of the present invention do not limit this.
[0089] In an embodiment of the present invention, the above - mentioned method may further include the following steps:
[0090] Extract the target geometric element according to the target identification information; call the target interface to perform geometric operations on the target geometric element.
[0091] In some feasible embodiments, after determining the target geometric elements, the user may perform geometric operations on the target geometric elements; illustratively, the target geometric elements may be first extracted from the entity model based on the target identification information.
[0092] Then, you can call the relevant target interface to perform geometric operations on the target geometric elements. The geometric operations can include any of the following:
[0093] Chamfering operation, offset operation, tilting operation.
[0094] In practical applications, geometric operations such as chamfering, offsetting, tilting, etc. are performed on the edge / face numbers (i.e., target identification information) obtained from the parameter points. For example, in the chamfering example, an array can be used to store the obtained edge numbers (i.e., target identification information), and the relevant parameters of the chamfering function can be input to call the relevant target interface to perform chamfering operations on the target geometric elements.
[0095] For example, the FindEdgeByNearestPoint function can be used to return the target identification information of the nearest geometric element according to the entity name and the target positioning UV parameter point coordinates of the entity model. The input parameters are the entity name and the target positioning UV parameter point coordinates, and the output result is the target identification information.
[0096] The required geometric elements are queried by finding a parameter point of the geometric element and then matching it to the physical model. Because the representation of point coordinates in different kernels is unique, the coordinate point corresponding to the parameter point is also unique. The process of finding the desired geometric element through the parameterized point is also unique, and a technical solution for the consistency and accuracy of subsequent operations on geometric elements is constructed.
[0097] like Figure 3 As shown:
[0098] (1) Select UV parameter points
[0099] For geometric elements in geometric shapes, they all have UV parameter ranges. Select a parameter point, which uniquely corresponds to a target positioning UV parameter point coordinate of the solid model. Users can freely select a parameter point to query geometric elements, but the parameter point must be the closest to the edge / face to be positioned.
[0100] For a certain cuboid model a, if the user hopes to obtain two specific edges of it for chamfering operation, assuming the identification numbers of the required edges are [11, 13], the way for the user to obtain these identification numbers is to obtain them through parameter points instead of directly using the numbers [11, 13]. This is because in other kernels, the numbers of these two selected edges in the test cases may be other numbers. The user first selects two positioning UV parameter points on these two edges in the visual interface by clicking the mouse. Assume the coordinates of the target positioning UV parameter points corresponding to these two positioning UV parameter points are (0.1, 0.1) and (0.2, 0.3). The selection of the parameter points only needs to satisfy the condition of being the closest to the edge / surface to be positioned.
[0101] (2) Compare the geometric element closest to the UV parameter point
[0102] The serial numbers of the edge / surface closest to the parameter point can be returned through the functions FindEdgeByNearestPoint / FindFaceByNearestPoint. These serial numbers are obtained from the spatial points and do not depend on the identification rules.
[0103] If the name of the cuboid a and the values of the UV parameter points are input, the serial number of the edge under this kernel can be output using the function FindEdgeByNearestPoint.
[0104] For the serial number of the edge obtained through the parameter point, it can be intuitively seen whether it is the object for which geometric operations are to be performed. If the three-dimensional coordinates corresponding to the parameter point are significantly far from the selected edge, it can be considered that the parameter point is selected incorrectly and the parameter point needs to be reselected.
[0105] (3) Extract geometric elements and perform relevant geometric operations
[0106] For the serial numbers of the edge / surface obtained from the parameter point, perform geometric operations such as chamfering, offsetting, tilting, etc.
[0107] As Figure 4 shown, after selecting the edges [11, 13], chamfering operations can be performed.
[0108] In an embodiment of the present invention, in response to a first user operation, target positioning UV parameter point coordinates are determined from a UV parameterized plane; distance values between each geometric element in the solid model and the target positioning UV parameter point coordinates are calculated; a target geometric element is determined from the geometric elements of the solid model according to the distance values between the geometric elements and the target positioning UV parameter point coordinates; a target geometric modeling engine for the currently loaded solid model is determined, and target identification information of the target geometric element in the target geometric modeling engine is determined. Through the embodiment of the present invention, a user can, by operating an interaction interface, select a point near a geometric element to be operated, and map it to the corresponding geometric element through the coordinates corresponding to the point, which can avoid problems such as narrow use case scope and unintuitive query results that occur when querying geometric elements using an identification ID due to different identification methods in different geometric modeling engines.
[0109] Specifically, compared with the method of binding geometric elements using an identification ID that is only applicable to a single geometric kernel, the method of querying geometric elements using UV parameter point coordinates has a wider applicability and can be applicable to different geometric kernels. Through the parametric representation of the model, for a specified UV parameter point coordinate, its position in the model is fixed and unique. This method can accurately locate geometric elements in solid modeling and geometric operations, and maintain the consistency of geometric elements and the stability of geometric operations.
[0110] In addition, compared with the unintuitive query result of the method using an identification ID, the query using UV parameter point coordinates can more clearly and intuitively show the positional relationship with geometric elements. By establishing a clear connection process of "user input - kernel - entity topology", the user can accurately locate the required geometric elements and directly view the query result in the view. If the UV parameter point coordinates do not match the geometric element desired by the user, it can be clearly known that the selection of the parameter point is abnormal and the parameter point needs to be reselected.
[0111] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0112] Refer to Figure 5 , which shows a schematic structural diagram of a device for querying geometric elements in different geometric modeling engines according to an embodiment of the present invention. An interaction interface is displayed, and a UV parameterized plane of a solid model is displayed in the interaction interface. It may include the following modules:
[0113] A coordinate determination module 501, configured to determine the coordinates of a target positioning UV parameter point from a UV parameterization plane in response to a first user operation;
[0114] A feature determination module 502, configured to determine a target geometric feature from a solid model according to the coordinates of the target positioning UV parameter point;
[0115] An identification determination module 503, configured to determine a target geometric modeling engine of the currently loaded solid model, and determine target identification information of the target geometric feature in the target geometric modeling engine.
[0116] In an optional embodiment of the present invention, the feature determination module 502 is configured to calculate the distance values between each geometric feature in the solid model and the coordinates of the target positioning UV parameter point; and determine the target geometric feature from the geometric features of the solid model according to the distance values between each geometric feature and the coordinates of the target positioning UV parameter point.
[0117] In an optional embodiment of the present invention, the feature determination module 502 is configured to determine the geometric feature corresponding to the minimum distance value; and use the geometric feature corresponding to the minimum distance value as the target geometric feature.
[0118] In an optional embodiment of the present invention, the coordinate determination module 501 is further configured to, when the geometric feature corresponding to the minimum distance value includes at least two, prompt the user to re - execute the first user operation.
[0119] In an optional embodiment of the present invention, the feature determination module 502 is further configured to, after determining the target geometric feature, prominently display the target geometric feature.
[0120] In an optional embodiment of the present invention, the apparatus further includes:
[0121] A geometric operation module, configured to extract the target geometric feature according to the target identification information; and call a target interface to perform geometric operations on the target geometric feature.
[0122] In an optional embodiment of the present invention, the geometric operation includes any one of the following:
[0123] Chamfering operation, offset operation, tilting operation.
[0124] In an embodiment of the present invention, in response to a first user operation, target positioning UV parameter point coordinates are determined from a UV parametric plane; according to the target positioning UV parameter point coordinates, target geometric elements are determined from a solid model; a target geometric modeling engine for the currently loaded solid model is determined, and target identification information of the target geometric elements in the target geometric modeling engine is determined. Through the embodiment of the present invention, a user can, through an operation interaction interface, select a point near a geometric element to be operated, and map it to the corresponding geometric element through the coordinates corresponding to the point, which can avoid problems such as narrow use case application scope and unintuitive query results that occur when querying geometric elements using an identification ID due to different identification methods in different geometric modeling engines.
[0125] An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the method for querying geometric elements in different geometric modeling engines as described above is implemented.
[0126] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for querying geometric elements in different geometric modeling engines as described above is implemented.
[0127] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For related parts, refer to the partial description of the method embodiment.
[0128] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is the difference from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.
[0129] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0130] Embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0131] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0133] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.
[0134] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the existence of additional identical elements in the process, method, article or terminal device comprising the said element.
[0135] The above has introduced in detail a method and related products for querying geometric elements in a different geometric modeling engine. In this text, specific examples are used to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A method for querying geometric elements in different geometric modeling engines, characterized in that, Display an interactive interface, in which a UV parametric plane of a solid model is displayed. The method includes: In response to a first user operation, determine the coordinates of a target positioning UV parameter point from the UV parametric plane; Determine a target geometric element from the solid model according to the coordinates of the target positioning UV parameter point; Determine the target geometric modeling engine that currently loads the solid model, and determine the target identification information of the target geometric element in the target geometric modeling engine.
2. The method according to claim 1, wherein The step of determining a target geometric element from the solid model according to the coordinates of the target positioning UV parameter point includes: Calculate the distance values between each geometric element in the solid model and the coordinates of the target positioning UV parameter point; Determine the target geometric element from the geometric elements of the solid model according to the distance values between each geometric element and the coordinates of the target positioning UV parameter point.
3. The method according to claim 2, wherein The step of determining the target geometric element from the geometric elements of the solid model according to the distance values between each geometric element and the coordinates of the target positioning UV parameter point includes: Determine the geometric element corresponding to the minimum distance value; Take the geometric element corresponding to the minimum distance value as the target geometric element.
4. The method according to claim 3, characterized in that, The method further includes: When there are at least two geometric elements corresponding to the minimum distance value, prompt the user to re-execute the first user operation.
5. The method according to claim 1, characterized in that, The method further includes: After determining the target geometric element, prominently display the target geometric element.
6. The method according to claim 1, wherein The method further includes: Extract the target geometric element according to the target identification information; Call a target interface to perform geometric operations on the target geometric element.
7. The method according to claim 6, characterized in that, The geometric operations include any one of the following: Chamfering operation, offset operation, tilting operation.
8. A device for querying geometric elements in different geometric modeling engines, characterized in that, Display an interactive interface, in which a UV parametric plane of a solid model is displayed. The device includes: A coordinate determination module, configured to determine the coordinates of a target positioning UV parameter point from the UV parametric plane in response to a first user operation; An element determination module, configured to determine a target geometric element from the solid model according to the coordinates of the target positioning UV parameter point; An identification determination module, configured to determine the target geometric modeling engine that currently loads the solid model, and determine the target identification information of the target geometric element in the target geometric modeling engine.
9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the method for querying geometric elements in different geometric modeling engines as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, it implements the method for querying geometric elements in different geometric modeling engines as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Data processing method and device for online analytical processing engine and equipment
CN113407587A
Tunnel visual guidance system modeling evolution method and device based on optical properties
CN116305482A
BIM digital storage data format exchange method based on webGL
CN116796400A
Skeleton-driven railway BIM modeling system, method and equipment based on cloud architecture
CN117708923A
Method for constructing three-dimensional solid model with geometric error and computer-readable storage medium
US20200043231A1
Cited By
STEP model dynamic rendering method and system based on component-based processing
CN121053332A