Method and related product for querying geometric elements in different geometric modeling engines
By using the UV parametric plane to determine the coordinates of UV parameter points in the geometric modeling engine, the consistency problem of geometric feature querying under different geometric modeling engines is solved, realizing a widely applicable and intuitive geometric feature query, and ensuring the stability and accuracy of geometric operations.
Patent Information
- Application Number
- CN202510220016.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2045-02-26
AI Technical Summary
Existing geometric modeling engines cannot achieve consistent geometric feature queries across different kernels, resulting in narrow applicability of use cases and unintuitive query results, which affects the accuracy and stability of geometric operations.
An interactive interface is provided, which determines the coordinates of the UV parameter points of the target location through the UV parameter plane, maps them to the target geometric elements in the solid model, and determines the identification information of the target geometric modeling engine. By utilizing the uniqueness of the UV parameter point coordinates under different engines, the accurate positioning and operation of geometric elements can be achieved.
It achieves broad applicability of geometric elements under different geometric modeling engines and intuitive query results, ensuring the stability and consistency of geometric operations and avoiding query limitations caused by different identification ID methods.
Smart Images

Figure CN120296812B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of geometric element query, and particularly relates to a method for performing geometric element query in different geometric modeling engines and related products. BACKGROUND
[0002] As the "heart" of industrial software, geometric modeling engines provide efficient algorithms and practical tools for building three-dimensional models, expressing complex surfaces, and editing entity shapes, and determine the implementation of core functions such as model creation, analysis, and operation. Currently, there are several geometric kernel manufacturers who have developed their own geometric modeling engines, but they are not compatible with other kernels, and need to use test tools and test cases (Python scripts) for function testing to perfect 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 the script test case (such as chamfering, offsetting, tilting, etc.), geometric operations need to be performed on specified edges or specified surfaces. How to accurately and efficiently query the specified lines and surfaces (collectively referred to as geometric elements) in the entity model is a compatibility problem that needs to be solved by the test tool. SUMMARY
[0004] In view of the above problems, a method for performing geometric element query in different geometric modeling engines and related products are proposed to overcome the above problems or at least partially solve the above problems, including:
[0005] A method for performing geometric element query in different geometric modeling engines displays an interactive interface, and the UV parameterization plane of an entity model is displayed in the interactive interface. The method comprises:
[0006] In response to a first user operation, a target positioning UV parameter point coordinate is determined from the UV parameterization plane;
[0007] According to the target positioning UV parameter point coordinate, a target geometric element is determined from the entity model;
[0008] A target geometric modeling engine currently loaded with the entity model is determined, and target identification information of the target geometric element in the target geometric modeling engine is determined.
[0009] Optionally, the target geometric element is determined from the entity model according to the target positioning UV parameter point coordinate, comprising:
[0010] calculating distance values of each geometric element in the entity model from the target positioning UV parameter point coordinates;
[0011] determining the target geometric element from the geometric elements of the entity model according to the distance values of each geometric element from the target positioning UV parameter point coordinates.
[0012] Optionally, the determining the target geometric element from the geometric elements of the entity model according to the distance values of each geometric element from the target positioning UV parameter point coordinates comprises:
[0013] determining the geometric element corresponding to the minimum distance value;
[0014] taking the geometric element corresponding to the minimum distance value as the target geometric element.
[0015] Optionally, the method further comprises:
[0016] when the geometric element corresponding to the minimum distance value comprises at least two, prompting the user to re-perform the first user operation.
[0017] Optionally, the method further comprises:
[0018] after determining the target geometric element, highlighting the target geometric element.
[0019] Optionally, the method further comprises:
[0020] extracting the target geometric element according to the target identification information;
[0021] calling a target interface to perform a geometric operation on the target geometric element.
[0022] Optionally, the geometric operation comprises any one of:
[0023] a chamfer operation, a shift operation, and an inclination operation.
[0024] Embodiments of the present application also provide a device for querying a geometric element in different geometric modeling engines, which displays an interactive interface, and the UV parameterized plane of an entity model is displayed in the interactive interface, and the device comprises:
[0025] a coordinate determination module configured to determine target positioning UV parameter point coordinates from the UV parameterized plane in response to a first user operation;
[0026] an element determination module configured to determine a target geometric element from the entity model according to the target positioning UV parameter point coordinates;
[0027] An identity determining module is configured to determine a target geometry modeling engine currently loading the entity model, and determine target identity information of the target geometry element in the target geometry modeling engine.
[0028] Optionally, the element determining module is configured to calculate distance values between each geometry element in the entity model and the target positioning UV parameter point coordinate, and determine the target geometry element from the geometry elements of the entity model according to the distance values between each geometry element and the target positioning UV parameter point coordinate.
[0029] Optionally, the element determining module is configured to determine a geometry element corresponding to the minimum distance value, and take the geometry element corresponding to the minimum distance value as the target geometry element.
[0030] Optionally, the coordinate determining module is further configured to, when the geometry element corresponding to the minimum distance value includes at least two, prompt a user to re-execute the first user operation.
[0031] Optionally, the element determining module is further configured to, after determining the target geometry element, highlight the target geometry element.
[0032] Optionally, the apparatus further includes:
[0033] A geometry operation module is configured to extract the target geometry element according to the target identity information, and call a target interface to perform a geometry operation on the target geometry element.
[0034] Optionally, the geometry operation includes any one of the following:
[0035] A chamfer operation, a shift operation, and an inclination operation.
[0036] Embodiments of the present application also provide an electronic device including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program is executed by the processor to implement the above method for querying a geometry element in different geometry modeling engines.
[0037] Embodiments of the present application also provide a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the above method for querying a geometry element in different geometry modeling engines.
[0038] Embodiments of the present application have the following advantages:
[0039] In the embodiment of the present application, in response to the first user operation, the target positioning UV parameter point coordinates are determined from the UV parameterization plane; the target geometric element is determined from the solid model according to the target positioning UV parameter point coordinates; the target geometric modeling engine of the current 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 embodiment of the present application, the user can select the point near the geometric element to be operated by operating the interactive interface, and map the point to the corresponding geometric element through the corresponding coordinates of the point, so that the problems such as narrow use case scope and non-intuitive query result caused by the different identification methods in different geometric modeling engines can be avoided when the identification ID is used to query the geometric element. BRIEF DESCRIPTION OF DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the present application will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0041] Figure 1 is a step flow chart of a method for querying a geometric element in different geometric modeling engines according to an embodiment of the present application;
[0042] Figure 2 is a step flow chart of another method for querying a geometric element in different geometric modeling engines according to an embodiment of the present application;
[0043] Figure 3 is a step flow chart of a method for querying a geometric element according to an embodiment of the present application;
[0044] Figure 4 is a schematic diagram of a geometric operation according to an embodiment of the present application;
[0045] Figure 5 is a structural schematic diagram of a device for querying a geometric element in different geometric modeling engines according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application will be further described in detail below in combination with the drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0047] The current way of OCC (Open CASCADE) is name identification, which expands points, lines and surfaces through explode function, and then uses name identification. Other geometry modeling engine manufacturers mainly use the way of giving geometry elements an ID number, and each geometry element has a unique ID.
[0048] When querying the specified geometry element, the ID number binds the geometry element, and the ID number can be used for query and geometry operation. Taking a cuboid (named b) as an example, the OCC uses the name identification method by exploding b E (expanding the model b by edges), and then using b_1, b_2, b_3... to identify the edges; explode b F (expanding the model b by faces), and then using b_1, b_2, b_3... to identify the faces.
[0049] Other geometry modeling engines use the ID identification method: use numbers 1 to 12 to identify each edge of the cuboid, and 13 to 18 to identify each face of the cuboid. Different geometry elements are distinguished by the ID number, and the ID number is used for query and subsequent geometry operation.
[0050] However, in the case of unchanged test cases, due to the inconsistent topology of different kernels or inconsistent identification methods, the identification ID of the geometry element may also be inconsistent. The following shortcomings exist in using the identification ID to query the geometry element:
[0051] (1) Narrow scope of use cases: the method of using identification ID to query geometry elements cannot guarantee consistent identification methods under different kernels. For example, the ID of the bottom face of the cuboid is marked as 1 under A kernel, but it may be marked as 2 under B kernel, so that the test case cannot get consistent results, and the consistency of geometry operation cannot be guaranteed.
[0052] (2) Query results are not intuitive: since the rule of binding geometry elements by identification ID has been set and encapsulated in the kernel, users cannot know the logic of the geometry element identification ID method. For example, the user needs to perform geometry operation on the bottom face of the cuboid, but cannot confirm the serial number of the bottom face of the cuboid. In the process of "user input-kernel-entity topology", only using identification ID to query geometry elements, the query process is not clear, the query result is not intuitive, and it will cause trouble for subsequent geometry operation.
[0053] To solve this problem, the embodiment of the present application provides a method for querying geometric elements in different geometric modeling engines; the method can provide an interactive interface with a UV parameterization plane of an entity model for a user, and the user can select a point near a geometric element to be operated by operating the interactive interface, and map the point to a corresponding geometric element through a corresponding coordinate, so that the problems such as narrow use case range and non-intuitive query result caused by different identification methods in different geometric modeling engines can be avoided when the geometric element is queried by using an identification ID. Specifically, refer to Figure 1 FIG. 1 shows a step flowchart of the method for querying geometric elements in different geometric modeling engines according to an embodiment of the present application.
[0054] As shown in Figure 1 , the method for querying geometric elements in different geometric modeling engines can include the following steps:
[0055] Step 101, in response to a first user operation, determining a target positioning UV parameter point coordinate from a UV parameterization plane.
[0056] For an entity model, it can be mapped to a UV parameterization plane. Grid parameterization expands the surface of the entity model to a two-dimensional plane and assigns UV parameter point coordinates.
[0057] The UV parameter point coordinate can be a texture mapping coordinate. U can represent a horizontal direction (similar to an X axis); V can represent a vertical direction (similar to a Y axis), and these coordinates uniquely correspond to a three-dimensional point coordinate of the surface of the entity model and maintain the topological information of the entity model.
[0058] By constructing a mapping function f: (x, y, z)→(u, v) between the three-dimensional entity model and the two-dimensional UV parameterization plane, the three-dimensional coordinate point can be uniquely represented by the two-dimensional UV parameter point.
[0059] For a geometric element in an entity model, there is a UV parameter range, and a parameter point uniquely corresponds to a three-dimensional point coordinate of the entity model. Based on this, the user can perform a first user operation on the UV parameterization plane of the entity model displayed in the interactive interface, and the first user operation can be a selection operation, a click operation, etc. of a mouse, and the embodiment of the present application does not limit this.
[0060] After the user performs the first user operation, the point to which the first user operation is directed can be determined in response to the first user operation, and the position of the point in the UV parameterization plane can be determined; then, the target positioning UV parameter point coordinate corresponding to the position in the UV parameterization plane can be determined, that is, the coordinate of the position in the UV parameterization plane.
[0061] Step 102, determining a target geometric element from the solid model according to the target positioning UV parameter point coordinate.
[0062] After the target positioning UV parameter point coordinate is determined, a target geometric element associated with the target positioning UV parameter point coordinate can be determined from the solid model; for example, the geometric element closest to the target positioning UV parameter point coordinate can be determined as the target geometric element.
[0063] Step 103, determining a target geometric modeling engine currently loading the solid model, and determining target identification information of the target geometric element in the target geometric modeling engine.
[0064] Next, the target geometric modeling engine currently loading the 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 the identification manners of different geometric modeling engines are different, and thus the target identification information determined can be different when the target geometric modeling engine is different. The target identification information currently determined is only applicable to the target geometric modeling engine.
[0065] In addition, the positioning UV parameter point coordinates corresponding to each geometric element are fixed and do not change due to different geometric modeling engines; thus, the target positioning UV parameter point coordinate currently determined can be applicable to any geometric modeling engine, and the embodiments of the present application do not limit this.
[0066] In the embodiments of the present application, the target positioning UV parameter point coordinate is determined from the UV parameterization plane in response to the first user operation; the target geometric element is determined from the solid model according to the target positioning UV parameter point coordinate; and the target geometric modeling engine currently loading the 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 application, the user can select a point near the geometric element to be operated by operating the interactive interface, and the point can be mapped to the corresponding geometric element through the coordinate of the point, which can avoid problems such as narrow use case scope and non-intuitive query result caused by different identification manners in different geometric modeling engines.
[0067] Referring to Figure 2 , another step flowchart of a method for querying a geometric element in different geometric modeling engines according to an embodiment of the present application is shown, which can include the following steps:
[0068] Step 201, determining a target positioning UV parameter point coordinate from the UV parameterization plane in response to a first user operation.
[0069] After the user performs the first user operation, the point targeted by the first user operation can be determined in response to the first user operation, and the position of the point in the UV parameter plane can be determined; then, the target positioning UV parameter point coordinate corresponding to the position in the UV parameter plane can be determined.
[0070] Step 202, calculate the distance value of each geometric element in the entity model and the target positioning UV parameter point coordinate.
[0071] After the target positioning UV parameter point coordinate is determined, the distance value of the UV parameter point coordinate of each geometric element in the entity model and the target positioning UV parameter point coordinate can be calculated respectively; that is, the distance value of each geometric element in the entity model and the point selected by the user through the first user operation.
[0072] Step 203, determine the target geometric element from the geometric elements of the entity model according to the distance value of each geometric element and the target positioning UV parameter point coordinate.
[0073] After the distance value of the UV parameter point coordinate of each geometric element and the target positioning UV parameter point coordinate is determined, the unique target geometric element, that is, the geometric element that the user needs to operate, can be determined from the multiple geometric elements of the entity model according to the distance value of the UV parameter point coordinate of each geometric element and the target positioning UV parameter point coordinate.
[0074] In an embodiment of the present application, step 203 can be implemented through the following sub-steps:
[0075] Sub-step 11, determine the geometric element corresponding to the smallest distance value.
[0076] In some feasible embodiments, after the distance value of the UV parameter point coordinate of each geometric element and the target positioning UV parameter point coordinate is determined, the smallest distance value can be determined from the distance values, and the geometric element corresponding to the smallest distance value can be determined.
[0077] Sub-step 12, take the geometric element corresponding to the smallest distance value as the target geometric element.
[0078] After the smallest distance value is determined, the geometric element corresponding to the smallest distance value can be taken as the target geometric element, that is, the geometric element that the user wants to select through the first user operation.
[0079] In an embodiment of the present application, on the basis of step 203, the following steps can also be included:
[0080] When the geometric element corresponding to the smallest distance value includes at least two, the user is prompted to re-perform the first user operation.
[0081] In some possible embodiments, if the minimum distance value corresponds to more than one geometric element, i.e., the minimum distance value corresponds to at least two geometric elements, the user can be prompted to re-perform the first user operation to re-select a point in the UV parameter plane. The prompt can be a text prompt, for example: the target geometric element includes multiple, please reselect. Alternatively, it can also be an error prompt, for example: selection error, please reselect, and the embodiments of the present application do not limit this.
[0082] In step 204, the target geometric modeling engine currently loading the entity model is determined, and target identification information of the target geometric element in the target geometric modeling engine is determined.
[0083] Next, the target geometric modeling engine currently loading the entity model can be determined, and 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, the target identification information determined can be different when the target geometric modeling engine is different. The target identification information currently determined 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 change due to different geometric modeling engines, the target positioning UV parameter point coordinates currently determined can be applicable to any geometric modeling engine, and the embodiments of the present application do not limit this.
[0085] In an embodiment of the present application, the above method can further include the following steps:
[0086] After the target geometric element is determined, the target geometric element is highlighted.
[0087] In some possible embodiments, after the target geometric element is determined, the target geometric element can be highlighted to determine whether it is the geometric element that the user wants to select.
[0088] If the target geometric element is not the geometric element that the user wants to select, the user can re-perform the first user operation, and the embodiments of the present application do not limit this.
[0089] In an embodiment of the present application, the above method can further include the following steps:
[0090] According to the target identification information, the target geometric element is extracted; and a target interface is called to perform a geometric operation on the target geometric element.
[0091] In some possible embodiments, after the target geometric element is determined, the user can perform a geometric operation on the target geometric element; for example, the target geometric element can be extracted from the solid model according to the target identification information.
[0092] Then, the relevant target interface can be called to perform a geometric operation on the target geometric element. The geometric operation can include any of the following:
[0093] Chamfering operation, offset operation, and tilting operation.
[0094] In actual applications, the edge / face serial number (i.e., target identification information) obtained from the parameter point is subjected to a geometric operation, such as chamfering, offsetting, and tilting. For example, in the chamfering example, an array can be used to store the obtained edge serial number (i.e., target identification information), and the relevant parameters of the chamfering function are input to call the relevant target interface to perform a chamfering operation on the target geometric element.
[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 of the solid model and the target positioning UV parameter point coordinates. 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 element is queried by finding a parameter point of the geometric element and then matching the parameter point to the solid model. Because the point coordinates are unique under different kernels, the coordinate point corresponding to the parameter point is also unique, and the process of finding the desired geometric element by using the parameterized point is also uniquely determined, thereby constructing a technical solution for the consistency and accuracy of subsequent operations on geometric elements.
[0097] As shown in Figure 3
[0098] (1) Selecting a UV parameter point
[0099] For a geometric element in a geometric shape, there is a UV parameter range, and a parameter point uniquely corresponds to a target positioning UV parameter point coordinate of the solid model. The user can freely select a parameter point to query the geometric element, but needs to satisfy that the parameter point is closest to the required positioning edge / face.
[0100] As for a cuboid model a, the user wants to get two specific edges to perform chamfering operation, assuming the required edge identification number is [11, 13], the user needs to obtain this identification number by parameter point acquisition instead of directly using the serial number [11, 13], because the serial number of the selected two edges of the test case may be other numbers under other kernels. The user first selects two positioning UV parameter points on the two edges in a visual interface and mouse click manner, assuming that the target positioning UV parameter point coordinates corresponding to the two positioning UV parameter points are (0.1, 0.1) and (0.2, 0.3), and the selection of the parameter points only needs to satisfy the nearest distance to the required positioning edge / face.
[0101] (2) Compare the nearest geometric elements with the UV parameter points
[0102] The FindEdgeByNearestPoint / FindFaceByNearestPoint function can be used to return the serial number of the edge / face closest to the parameter point, and the serial number is obtained by spatial point and does not depend on the identification rule.
[0103] As the input cuboid name a and the value of the UV parameter point, the FindEdgeByNearestPoint function can be used to output the edge serial number under the kernel.
[0104] For the edge serial number obtained by the parameter point, it can be intuitively seen whether it is the object to be operated. If the three-dimensional coordinates corresponding to the parameter point are obviously far away from the selected edge, it can be considered that the parameter point is selected incorrectly, and the parameter point needs to be selected again.
[0105] (3) Extract geometric elements and perform related geometric operations
[0106] For the edge / face serial number obtained by the parameter point, perform geometric operations such as chamfering, offsetting, and tilting.
[0107] As shown in FIG. 8, after selecting the edge [11, 13], the chamfering operation can be performed. Figure 4
[0108] In the embodiment of the present application, in response to a first user operation, a target positioning UV parameter point coordinate is determined from a UV parameterization plane; a distance value of each geometric element in the solid model and the target positioning UV parameter point coordinate is calculated; a target geometric element is determined from the geometric elements of the solid model according to the distance value of each geometric element and the target positioning UV parameter point coordinate; a target geometric modeling engine of 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 application, the user can select a point near the geometric element to be operated by operating the interactive interface, and map the point to the corresponding geometric element through the corresponding coordinate of the point, which can avoid problems such as narrow use case scope and non-intuitive query result caused by different identification methods in different geometric modeling engines.
[0109] Specifically, compared with the identification ID binding geometric element method which is only applicable to a single geometric kernel, the UV parameter point coordinate is more widely applicable to different geometric kernels. Through the parameterization 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 the geometric element in solid modeling and geometric operation, and maintain the consistency of the geometric element and the stability of the geometric operation.
[0110] In addition, compared with the identification ID method, the UV parameter point coordinate query can more clearly and intuitively show the positional relationship with the geometric element. By establishing a clear connection process of "user input-kernel-solid topology", the user can accurately locate the required geometric element, and directly see the query result in the view. If the UV parameter point coordinate does not match the geometric element that the user wants, it can be clearly known that the parameter point is selected abnormally, and the parameter point needs to be selected again.
[0111] It should be noted that, for the method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the order of the described actions, because according to the embodiments of the present application, certain steps can be performed in other order or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0112] Reference Figure 5 , a structure schematic diagram of a device for geometric element query in different geometric modeling engines is shown, an interactive interface is displayed, and the UV parameterization plane of the solid model is displayed in the interactive interface, which can include the following modules:
[0113] The coordinate determining module 501 is configured to determine a target positioning UV parameter point coordinate from the UV parameter plane in response to a first user operation.
[0114] The element determining module 502 is configured to determine a target geometric element from the entity model according to the target positioning UV parameter point coordinate.
[0115] The identification determining module 503 is configured to determine a target geometric modeling engine of the currently loaded entity model, and determine target identification information of the target geometric element in the target geometric modeling engine.
[0116] In an optional embodiment of the present application, the element determining module 502 is configured to calculate distance values of each geometric element in the entity model and the target positioning UV parameter point coordinate, and determine the target geometric element from the geometric elements of the entity model according to the distance values of each geometric element and the target positioning UV parameter point coordinate.
[0117] In an optional embodiment of the present application, the element determining module 502 is configured to determine a geometric element corresponding to a minimum distance value, and take the geometric element corresponding to the minimum distance value as the target geometric element.
[0118] In an optional embodiment of the present application, the coordinate determining module 501 is further configured to prompt the user to re-perform the first user operation when the geometric element corresponding to the minimum distance value includes at least two.
[0119] In an optional embodiment of the present application, the element determining module 502 is further configured to highlight the target geometric element after determining the target geometric element.
[0120] In an optional embodiment of the present application, the apparatus further comprises:
[0121] The geometric operation module is configured to extract the target geometric element according to the target identification information, and call a target interface to perform a geometric operation on the target geometric element.
[0122] In an optional embodiment of the present application, the geometric operation includes any one of the following:
[0123] A chamfer operation, a shift operation, and an inclination operation.
[0124] In the embodiment of the present application, in response to a first user operation, a target positioning UV parameter point coordinate is determined from a UV parameterization plane; a target geometric element is determined from the solid model according to the target positioning UV parameter point coordinate; a target geometric modeling engine currently loading the 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 application, a user can select a point near a geometric element to be operated by operating an interactive interface, and map the point to the corresponding geometric element through the coordinate of the point, so that problems such as narrow use case scope and non-intuitive query result caused by different identification manners in different geometric modeling engines can be avoided.
[0125] The embodiment of the present application 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, and when the computer program is executed by the processor, the method for querying a geometric element in different geometric modeling engines is realized.
[0126] The embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for querying a geometric element in different geometric modeling engines is realized.
[0127] For the device embodiment, since it is basically similar to the method embodiment, it is described more simply, and the related parts refer to the part of the method embodiment.
[0128] Each embodiment in the specification is described in a progressive manner, and each embodiment mainly describes the difference from other embodiments, and the same and similar parts of each embodiment can be referred to.
[0129] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can adopt a computer program product in the form of one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.
[0130] The embodiments of the present application are described with reference to the flowchart illustrations and / or block diagrams of the methods, terminal devices (systems) and computer program products according to the embodiments of the present application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal devices to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal devices, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[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 devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal devices, such that a series of operational steps are performed on the computer or other programmable terminal devices to produce a computer implemented process so that the instructions executed on the computer or other programmable terminal devices provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0133] Although preferred embodiments of the present application have been described, those skilled in the art will be able to make additional modifications and variations to these embodiments without departing from the scope of the present application. Accordingly, the appended claims are intended to encompass all such modifications and variations as falling within the scope of the present application.
[0134] Finally, it is to be understood that the phraseology or terminology such as "first" and "second" etc. used herein is merely intended to differentiate one entity or operation from another entity or operation, without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprising", "including", or any other closure, are intended to cover the non-exclusive inclusion such that a process, method, article, or apparatus that comprises a list of elements does not include those elements alone but can include other elements not expressly listed or even include elements inherent in such process, method, article, or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0135] The above describes in detail the method for querying geometric elements in different geometric modeling engines and related products provided, the principles and implementation modes of the present application are described by applying specific examples in the present application, the above description of the embodiments is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as limiting the present application.
Claims
1. A method for performing geometric element queries in different geometry modeling engines, characterized in that, The method comprises the following steps: displaying an interactive interface in which a UV parameterization plane of a solid model is displayed, the method comprising: determining a target positioning UV parameter point coordinate from the UV parameterization plane in response to a first user operation; determining a target geometric element from the solid model according to the target positioning UV parameter point coordinate; determining a target geometric modeling engine currently loaded with the solid model, and determining target identification information of the target geometric element in the target geometric modeling engine; wherein the determining of the target geometric element from the solid model according to the target positioning UV parameter point coordinate comprises: calculating distance values of each geometric element in the solid model and the target positioning UV parameter point coordinate; 2. The method of claim 1, wherein, determining the target geometric element from the geometric elements of the solid model according to the distance values of each geometric element and the target positioning UV parameter point coordinate. The determining of the target geometric element from the geometric elements of the solid model according to the distance values of each geometric element and the target positioning UV parameter point coordinate comprises: determining a geometric element corresponding to the smallest distance value; 3. The method of claim 2, wherein, taking the geometric element corresponding to the smallest distance value as the target geometric element. The method further comprises:
4. The method of claim 1, wherein, when the geometric element corresponding to the smallest distance value includes at least two, prompting the user to re-perform the first user operation. The method further comprises:
5. The method of claim 1, wherein, after determining the target geometric element, highlighting the target geometric element. The method further comprises: extracting the target geometric element according to the target identification information; 6. The method of claim 5, wherein, calling a target interface to perform a geometric operation on the target geometric element. The geometric operation comprises any one of the following:
7. An apparatus for performing geometric element queries in different geometry modeling engines, the apparatus comprising: a geometry query module configured to receive a query and a geometry model; and a geometry query engine configured to perform the query on the geometry model. a chamfer operation, a shift operation, and an inclination operation. The device comprises: a coordinate determination module configured to determine a target positioning UV parameter point coordinate from the UV parameterization 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 target positioning UV parameter point coordinate; an identification determination module configured to determine a target geometric modeling engine currently loaded with the solid model, and determine target identification information of the target geometric element in the target geometric modeling engine; 8. An electronic device, comprising: wherein the element determination module is configured to calculate distance values of each geometric element in the solid model and the target positioning UV parameter point coordinate, and determine the target geometric element from the geometric elements of the solid model according to the distance values of each geometric element and the target positioning UV parameter point coordinate.
9. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executed by the processor to implement the method for querying a geometric element in different geometric modeling engines according to any one of claims 1 to 7. The computer program is stored on the computer readable storage medium and is executed by the processor to implement the method for querying a geometric element in different geometric modeling engines according to any one of claims 1 to 7.
Citation Information
Patent Citations
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