A geometric model processing method, device and electronic equipment

By extracting and processing the center point and normal vector data of the geometric model, the auxiliary coordinate system is constructed, which solves the accuracy and efficiency problems of traditional numerical analysis software when processing product models of complex geometric features, and realizes automatic identification and determination of surface normalization , improves the efficiency of industrial design and manufacturing.

CN118762151BActive Publication Date: 2025-02-25ZHEJIANG YUANSUAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411252764.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-02-25
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

Traditional numerical analysis software seems unscrupulous when processing product models with complex geometric features, especially when the unique geometric characteristics of the surface make traditional normal determination methods no longer applicable, resulting in limited accuracy and efficiency of simulation results.

Method used

By obtaining the source file of the target geometric surface, extracting its central point data and normal vector data, and determining the global center point and global normal vector based on these data, building an auxiliary coordinate system to display the geometric model in the coordinate system and realize automatic recognition and determine the surface normal.

Benefits of technology

It significantly improves the accuracy of normal determination, simplifies user operation processes, improves the efficiency of industrial design and manufacturing, and can adapt to various complex industrial models and design needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762151B_ABST
    Figure CN118762151B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and electronic device for processing a geometric model, which relates to the technical field of industrial design and manufacturing. The method includes: obtaining a source file of a target geometric surface; extracting center point data and normal vector data of the target geometric surface based on geometric feature information; determining a global center point according to the center point data, and determining a global normal vector according to the normal vector data; constructing an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and displaying the geometric model in the auxiliary coordinate system. The present invention provides a method, device and electronic device for processing a geometric model, which can display the geometric model in an auxiliary coordinate system, and the target geometric surface can include a plane, a curved surface, or any combination of multiple geometric surfaces, which not only significantly improves the applicability, can adapt to various complex industrial models and design requirements, but also effectively improves the efficiency of industrial design and manufacturing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial design and manufacturing, and in particular to a method, device and electronic equipment for processing a geometric model. Background Art

[0002] In today's industrial design and manufacturing fields, numerical analysis software plays a vital role. They not only help engineers predict the performance of products in actual use, but also provide strong data support for design decisions.

[0003] However, with the increasing complexity of industrial products, traditional numerical analysis software has gradually exposed some limitations, especially when dealing with product models with complex geometric features. Moreover, the unique geometric characteristics of surfaces make traditional numerical analysis methods no longer applicable, which not only limits the accuracy of numerical analysis, but also increases the errors caused by the pre-processing settings and test requirements of numerical analysis, thereby reducing the efficiency of industrial design and manufacturing. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a method, device and electronic device for processing a geometric model to alleviate the above technical problems.

[0005] In a first aspect, an embodiment of the present invention provides a method for processing a geometric model, the method comprising: obtaining a source file of a target geometric surface, wherein the target geometric surface is a geometric surface in a preset geometric model; the source file records identification information of each of the target geometric surfaces, and geometric feature information of the geometric surface corresponding to the identification information; extracting center point data and normal vector data of the target geometric surface based on the geometric feature information; determining a global center point according to the center point data, and determining a global normal vector of the target geometric surface according to the normal vector data; constructing an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and displaying the geometric model in the auxiliary coordinate system.

[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the above method also includes: in response to a geometric surface selection operation acting on a geometric model, determining the geometric surface corresponding to the selection operation as a target geometric surface; obtaining geometric feature information of the target geometric surface, as well as identification information of the target geometric surface, constructing a mapping relationship between the geometric feature information and the identification information, and generating a source file of the target geometric surface based on the mapping relationship.

[0007] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein the above-mentioned step of obtaining the geometric feature information of the target geometric surface includes: obtaining the center point data and the normal vector data of the target geometric surface; and determining the center point data and the normal vector data as the geometric feature information of the target geometric surface.

[0008] In combination with the second possible implementation of the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the above-mentioned step of obtaining the normal vector data of the target geometric surface includes: if the target geometric surface includes a curved surface, dividing the curved surface into a plurality of unit surfaces according to preset units; obtaining the unit normal vector of each of the unit surfaces; calculating the average normal vector of the surface based on the unit normal vector, and determining the average normal vector as the normal vector data of the surface.

[0009] In combination with the first aspect, an embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the above-mentioned step of determining the global center point based on the center point data includes: if the target geometric surface includes multiple geometric surfaces, obtaining the center point data of each of the geometric surfaces; calculating the average position of the center points of all the geometric surfaces based on the center point data of each of the geometric surfaces; determining the average position as the global center point; if the target geometric surface includes one geometric surface, determining the center point of the geometric surface as the global center point, and the center point data is the center point data of the global center point.

[0010] In combination with the fourth possible implementation of the first aspect, an embodiment of the present invention provides a fifth possible implementation of the first aspect, wherein the above-mentioned step of determining the global normal vector of the target geometric surface based on the normal vector data includes: if the target geometric surface includes multiple geometric surfaces, then averaging the normal vector data corresponding to each of the geometric surfaces, and normalizing the result of the average calculation to obtain the global normal vector of the target geometric surface.

[0011] In combination with the fourth possible implementation of the first aspect, an embodiment of the present invention provides a sixth possible implementation of the first aspect, wherein the step of determining the global normal vector of the target geometric surface according to the normal vector data further includes: if the target geometric surface includes multiple geometric surfaces, determining the global normal vector of the geometric surface according to the normal vector data corresponding to each of the geometric surfaces; the step of constructing an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, further includes: determining the center point of the geometric surface as the global center point, and constructing an auxiliary coordinate system corresponding to the geometric surface with the global center point as the origin and the direction corresponding to the global normal vector of the geometric surface as the coordinate system direction, wherein the coordinate system direction is the Z-axis direction of the auxiliary coordinate system.

[0012] In a second aspect, an embodiment of the present invention further provides a device for processing a geometric model, the device comprising: an acquisition module, used to acquire a source file of a target geometric surface, wherein the target geometric surface is a geometric surface in a preset geometric model; the source file records identification information of each of the target geometric surfaces, and geometric feature information of the geometric surface corresponding to the identification information; an extraction module, used to extract center point data and normal vector data of the target geometric surface based on the geometric feature information; a determination module, used to determine a global center point according to the center point data, and to determine a global normal vector of the target geometric surface according to the normal vector data; a construction module, used to construct an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and display the geometric model in the auxiliary coordinate system.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0014] In a fourth aspect, 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 described in the first aspect is implemented.

[0015] The embodiments of the present invention bring the following beneficial effects:

[0016] A method, device and electronic device for processing a geometric model provided by an embodiment of the present invention can obtain a source file of a target geometric surface, and the source file records identification information of each geometric surface in the target geometric surface, as well as geometric feature information of the geometric surface corresponding to the identification information; then extract center point data and normal vector data of the target geometric surface based on the geometric feature information; determine the global center point according to the center point data, and determine the global normal vector of the target geometric surface according to the normal vector data, and construct an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, so as to display the geometric model in the auxiliary coordinate system, and the target geometric surface may include a plane, a curved surface, or any combination of multiple geometric surfaces, which not only significantly improves the applicability and enables it to adapt to various complex industrial models and design requirements, but also effectively improves the efficiency of industrial design and manufacturing.

[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A flowchart of a method for processing a geometric model provided by an embodiment of the present invention;

[0021] Figure 2 A schematic diagram of a geometric model provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of a numerical calculation application scenario provided by an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of another numerical calculation application scenario provided by an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of another geometric model provided by an embodiment of the present invention;

[0025] Figure 6 A schematic diagram of an auxiliary coordinate system including a normal direction provided by an embodiment of the present invention;

[0026] Figure 7 A schematic diagram of the structure of a geometric model processing device provided by an embodiment of the present invention;

[0027] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0029] At present, there are some common problems in the industrial design process. For example, in the test scenarios specified by the standards, it is necessary to apply a load force perpendicular to the curved surface in the product model (or set some boundary restrictions and displacements, etc.). This requirement is often difficult to achieve in traditional numerical analysis software.

[0030] For example, well-known simulation software such as ANSYS and ABAQUS usually rely on selecting a feature plane (which must be in a plane) to determine its vertical normal, but this method is not effective when applied to model surfaces. The unique geometric characteristics of the surface make the traditional normal determination method no longer applicable, which not only limits the accuracy of the simulation, but also increases the error generated when setting up the pre-processing of the numerical analysis and benchmarking the test requirements.

[0031] Therefore, in the existing technical solutions, numerical analysis software such as ANSYS cannot automatically generate surface normals in terms of normal determination, and usually requires users to select a plane part in the model as a reference. This technical solution has the following defects:

[0032] (1) Geometric distortion and limited innovation: There are essential differences in geometric properties between planes and curved surfaces. Directly applying the normal of a plane to a curved surface may cause geometric distortion and affect the accuracy of simulation results. Methods that rely on plane references may limit designers’ innovation in surface design because designers need to consider the convenience of determining the normal, which may sacrifice the optimal performance of the design.

[0033] (2) Selection bias and error: Users may be influenced by personal experience and preferences when selecting a plane. This subjective choice may cause different users to obtain different normal results, reducing the repeatability of the simulation. Even if a suitable plane is found, due to the slight deviation between the plane and the surface, this deviation may be magnified during the calculation process, resulting in errors in the final normal calculation results.

[0034] (3) Complex and limited operation: In complex surface models, finding a suitable plane as a reference may require a lot of attempts and adjustments, which increases the complexity of the operation and the workload of the user. For certain specific surfaces, such as free-form surfaces or irregular surfaces, it may be difficult to find a suitable plane as a reference, which limits the applicability of this method.

[0035] (4) Lack of automated support: During the model design process, the shape of the surface may change dynamically. Existing methods are difficult to automatically update the normal, requiring users to manually reselect the plane and calculate the normal, which increases maintenance costs. Existing methods lack automated support and cannot automatically identify and calculate the surface normal, which limits the development of simulation software in terms of automation and intelligence.

[0036] These defects indicate that existing normal determination methods have limitations when dealing with surface models, and further technical improvements and innovations are needed to provide more accurate, efficient and automated solutions.

[0037] Based on this, a method, device and electronic device for processing a geometric model provided in an embodiment of the present invention can automatically identify and determine the normal of a model surface. Different from the traditional method, the algorithm in the embodiment of the present invention does not rely on the selection of a feature plane, but directly extracts the normal from the geometric information of the surface through advanced mathematical models and algorithms, which not only improves the accuracy of normal determination, but also greatly simplifies the user's operation process, thereby improving the efficiency of industrial design and manufacturing.

[0038] To facilitate understanding of this embodiment, a method for processing a geometric model disclosed in an embodiment of the present invention is first introduced in detail.

[0039] In a possible implementation manner, the present invention provides a method for processing a geometric model, such as Figure 1 A flowchart of a method for processing a geometric model is shown, the method comprising the following steps:

[0040] Step S102, obtaining the source file of the target geometric surface;

[0041] The target geometric surface in the embodiment of the present invention is a geometric surface in a preset geometric model; the source file records the identification information of each geometric surface in the target geometric surface, and the geometric feature information of the geometric surface corresponding to the identification information;

[0042] Step S104, extracting the center point data and normal vector data of the target geometric surface based on the geometric feature information;

[0043] Step S106, determining a global center point according to the center point data, and determining a global normal vector of the target geometric surface according to the normal vector data;

[0044] Step S108, constructing an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and displaying the geometric model in the auxiliary coordinate system.

[0045] A method for processing a geometric model provided by an embodiment of the present invention can obtain a source file of a target geometric surface, and the source file records identification information of each geometric surface in the target geometric surface, as well as geometric feature information of the geometric surface corresponding to the identification information; then extract center point data and normal vector data of the target geometric surface based on the geometric feature information; determine the global center point according to the center point data, and determine the global normal vector of the target geometric surface according to the normal vector data, and construct an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, so as to display the geometric model in the auxiliary coordinate system, and the target geometric surface may include a plane, a curved surface, or any combination of multiple geometric surfaces, which not only significantly improves the applicability and enables it to adapt to various complex industrial models and design requirements, but also effectively improves the efficiency of industrial design and manufacturing.

[0046] In actual use, the processing method of the geometric model in the embodiment of the present invention is mainly aimed at determining the normal direction of the target geometric surface, for example, Figure 2 A schematic diagram of a geometric model is shown. Taking the geometric model as a chair as an example, it is assumed that a static load test is required for the chair back. Based on the test requirements, such as Figure 2 As shown in the schematic diagram on the left, use a block to lean against the foot side of the chair or stool, select the corresponding test level for the product, and apply the specified load perpendicular to the direction of the chair back through the chair back loading pad. For example, assuming that the test requirements specify that when only the static load of the seat surface is applied, a vertical downward load of the specified appropriate test level is applied to the point 80mm backward from the center line of the front edge of the seat surface or the most unfavorable place that is no more than 80mm from the edge of the seat surface. Therefore, when facing the numerical analysis of similar tests above, it is necessary to select the loading surface of the model and generate a loading direction perpendicular to the loading surface (that is, any surface including curved surfaces and planes). At this time, the loading surface to be selected can be used as the target geometric surface in the embodiment of the present invention.

[0047] In specific implementation, the Figure 2 In the geometric model shown on the right, the user can select the back of the chair as the target geometric surface, or select the seat as the target geometric surface, or select the back of the chair and the seat as the target geometric surface at the same time. That is, the above-mentioned target geometric surface in the embodiment of the present invention includes but is not limited to a single curved surface and a plane. In order to have stronger versatility, the selected target geometric surface can be a continuous surface or a discontinuous surface, and can meet any combination of curved surfaces and planes. Therefore, the processing method of the geometric model in the embodiment of the present invention is applicable to the selection of any curved surface, plane and mixed surface, which is sufficient to cover the existing capabilities on the basis of the newly added surface normal calculation.

[0048] Further, after the user selects the target geometric surface, the above-mentioned steps in the embodiment of the present invention may be further performed. Figure 1 The method shown.

[0049] In actual use, the source file may be generated in advance based on the geometric model, or may be generated based on the overall features of the geometric model when the user selects the target geometric surface. Specifically, the method for processing the geometric model in the embodiment of the present invention further includes the following steps:

[0050] (1) In response to a geometric surface selection operation applied to the geometric model, the geometric surface corresponding to the selection operation is determined as a target geometric surface;

[0051] Specifically, the target geometric surface can be a plane, a curved surface, or a combination of a plane and a curved surface. Moreover, the target geometric surface can be a continuous surface or a discontinuous surface, which depends on actual usage and is not limited in this embodiment of the present invention.

[0052] In actual use, the user can perform a selection operation based on the geometric model displayed by the graphical user interface according to actual usage needs. At this time, the electronic device that executes the geometric model processing method of the embodiment of the present invention can respond, and then determine the geometric surface corresponding to the user's selection operation as the target geometric surface.

[0053] (2) Obtaining geometric feature information and identification information of the target geometric surface, constructing a mapping relationship between the geometric feature information and the identification information, and generating a source file of the target geometric surface based on the mapping relationship.

[0054] In actual use, the generation process of the above-mentioned source file is usually an automatic execution process, that is, after the user selects the target geometric surface, the electronic device can automatically obtain the geometric feature information of the selected target geometric surface, wherein the geometric feature information in the embodiment of the present invention includes but is not limited to key geometric feature data such as the center of the geometric surface and the unit surface normal vector, which is the basis of the subsequent processing process of the geometric model and can ensure the accuracy and reliability of the entire processing process. In addition, in this process, the acquired data will be preprocessed as necessary to provide standardized and optimized input for the subsequent processing process. At the same time, when constructing the mapping relationship, the overall feature data of the geometric model can be extracted, such as extracting the area, centroid, and normal vector of each face in the overall model of the geometric model to determine the identification information of the target geometric surface, such as ID, and then mapping the identification information of the target geometric surface and its specific geometric feature information data to obtain the above-mentioned source file.

[0055] When further processing the geometric model, the source file may be directly obtained in the above step S102, and then the subsequent steps may be further performed.

[0056] Furthermore, in an embodiment of the present invention, when obtaining the geometric feature information of the target geometric surface, what is actually obtained is the center point data and normal vector data of the target geometric surface; and then the center point data and normal vector data are determined as the geometric feature information of the target geometric surface.

[0057] Furthermore, if the target geometric surface includes a curved surface, the curved surface is divided into a plurality of unit curved surfaces according to a preset unit; then the unit normal vector of each unit curved surface is obtained; and the average value of the normal vector of the curved surface is calculated based on the unit normal vector, and the average value of the normal vector is determined as the normal vector data of the curved surface. That is, for a curved surface, when determining its normal vector, the curved surface can be divided into a plurality of unit curved surfaces according to a preset unit. At this time, each unit curved surface can be regarded as a plane, and then the unit normal vector of each unit curved surface is taken to calculate the average value of the normal vector, such as by finding the vector sum of all unit normal vectors and then dividing by the number of unit normal vectors, and then the average value of the normal vector is determined as the normal vector data of the curved surface.

[0058] If the target geometric surface has only one plane, the center point of the plane is directly used as the center point data, and the normal vector of the plane is used as the normal vector data.

[0059] Furthermore, since in an embodiment of the present invention, the target geometric surface can be a combination of a plane and a curved surface, or a continuous surface, a discontinuous surface, etc., after determining the above-mentioned center point data and normal vector data, it is necessary to further determine the global center point and the global normal vector. The global center point is used to characterize the center point of the target geometric surface, and the global normal vector can represent the normal vector of the entire target geometric surface.

[0060] Specifically, let's first look at the process of determining the global center point:

[0061] Usually, if the target geometric surface includes only one geometric surface, the center point of the geometric surface is determined as the global center point. At this time, the center point data is the center point data of the global center point, and the normal vector of the geometric surface is the global normal vector. At this time, the global center point and the global normal vector can be directly extracted through the geometric feature information.

[0062] Further, if the target geometric surface includes multiple geometric surfaces, then the center point data of each geometric surface is obtained; based on the center point data of each geometric surface, the average position of the center points of all geometric surfaces is calculated; and the average position is determined as the global center point;

[0063] For example, the coordinates of the center point of each geometric surface in the target geometric surface can be summed and then divided by the number of surfaces to obtain the average position of the center points of all surfaces. The average position can be used as the global center point and as the origin O of the auxiliary coordinate system constructed subsequently.

[0064] Secondly, let's look at the process of determining the global normal vector:

[0065] If the target geometric surface includes multiple geometric surfaces, the normal vector data corresponding to each geometric surface is averaged and the result of the average calculation is normalized to obtain the global normal vector of the target geometric surface.

[0066] For example, for the target geometric surface, the arithmetic mean of the normal vectors of all its geometric surfaces can be calculated to obtain the normal vector average value: This can be done by taking the vector sum of all normal vectors and dividing by the number of normal vectors. In general, mathematically, if a face has normal vectors n1, n2, …, nm, then the average value of the normal vector of the face is It can be calculated by the following formula:

[0067]

[0068] The above calculation formula can also be used to calculate the average value of the normal vector of the surface. After obtaining the average value of the normal vector, it needs to be normalized to ensure that its length is 1 to meet the standard representation of the vector in space. Normalization can be achieved by the following formula:

[0069] Nnorm

[0070] in, is the Euclidean norm of the vector N.

[0071] In addition, if the target geometric surface includes multiple geometric surfaces, the global normal vector of the geometric surface can also be determined based on the normal vector data corresponding to each geometric surface; when constructing an auxiliary coordinate system, the center point of the geometric surface can also be determined as the global center point, and the auxiliary coordinate system corresponding to the geometric surface can be constructed with the global center point as the origin and the direction corresponding to the global normal vector of the geometric surface as the coordinate system direction, and the coordinate system direction in the embodiment of the present invention is the Z-axis direction of the auxiliary coordinate system.

[0072] Based on the above calculation process, in an embodiment of the present invention, when the target geometric surface includes multiple geometric surfaces, an auxiliary coordinate system can be constructed for each geometric surface. At this time, the center point of the geometric surface is the origin of the auxiliary coordinate system, and the direction corresponding to the global normal vector of the geometric surface is the Z-axis direction of the auxiliary coordinate system. Alternatively, when the target geometric surface includes multiple geometric surfaces, the global center point and global normal vector of all geometric surfaces can be calculated based on the above calculation process, and then an auxiliary coordinate system centered on the geometric feature is constructed with the global center point as the origin and the direction of the global normal vector as the Z-axis. This coordinate system not only helps to better understand and display the geometric model or the geometric features of the target geometric surface, but also provides convenience in subsequent geometric transformation, analysis and simulation.

[0073] Through the above-mentioned geometric model processing method in the embodiment of the present invention, not only the normal of the target geometric surface in the geometric model can be accurately determined, but also an auxiliary coordinate system closely related to the geometric feature information of the geometric model can be constructed, providing a solid mathematical foundation and technical support for precise simulation and analysis in industrial applications.

[0074] Furthermore, the theoretical basis of the processing method of the geometric model in the embodiment of the present invention mainly comes from vector algebra and space geometry, and its effectiveness has been verified and applied in multiple engineering fields. Moreover, based on the processing method of the geometric model in the embodiment of the present invention, the normal of the surface can be directly applied to the industrial design application APP according to the needs. These industrial design application APPs will integrate the normal determination method in the embodiment of the present invention so that it can be used in various numerical calculation scenarios.

[0075] For example, Figure 3 and Figure 4 Schematic diagrams of several numerical calculation application scenarios are shown respectively, among which, Figure 3 and Figure 4 The arrows in the figure represent the normal directions of the surfaces that need to be determined. Specifically, Figure 3 In the figure, the usage scenarios of various furniture are determined by the surface normal direction. Figure 4 The figure shows the usage scenario of surface normal determination of bicycle and gripper components.

[0076] Based on the geometric model processing method provided in the embodiment of the present invention, users can use the tools of the industrial design application APP in a cloud environment to perform product design, performance analysis, simulation testing, etc., thereby improving work efficiency and product quality.

[0077] In addition, the processing method of the geometric model provided by the embodiment of the present invention also takes into account the diversity and complexity of industrial applications. Therefore, the above-mentioned industrial design application APP can provide a high degree of customization, allowing users to adjust parameters and settings according to their specific needs. At the same time, the processing method of the geometric model provided by the embodiment of the present invention will also support integration with existing industrial processes and standards, ensuring its practicality and effectiveness in the real world.

[0078] Therefore, the processing method of the geometric model provided by the embodiment of the present invention provides a comprehensive and automated solution through a coherent process, from user interaction to normal calculation, and then to the application of the industrial design application APP, to meet the demand for accurate surface normals in modern industrial design and simulation analysis. Moreover, with the continuous development of technology and the deepening of application, the processing method of the geometric model provided by the embodiment of the present invention will play an important role in improving industrial production efficiency and product quality.

[0079] In summary, the geometric model processing method provided by the embodiment of the present invention has the following innovations and advantages:

[0080] (1) Versatility of polymorphic surface selection.

[0081] The geometric model processing method provided by the embodiment of the present invention significantly expands its application scope through the newly added surface normal calculation function while maintaining the processing capability of the traditional plane model. Users can not only select a single curved surface or plane, but also select continuous or discontinuous surfaces, and even select any combination of curved surfaces and planes. This design significantly improves the applicability of the method, enabling it to adapt to various complex industrial models and design requirements.

[0082] (2) Calculation method of surface normal.

[0083] The geometric model processing method provided by the embodiment of the present invention is based on mathematical and geometric principles, and can automatically adapt to and accurately calculate the normal of any shape of surface, including surfaces with high curvature and complex topological structures, thereby ensuring the high accuracy of simulation analysis.

[0084] (3) Highly automated and user-friendly operation process.

[0085] The geometric model processing method provided by the embodiment of the present invention simplifies the user's operation through an automated process. From the selection of the surface to the calculation of the normal, the entire process does not require complicated manual intervention. At the same time, the design of the user interface focuses on intuitiveness and ease of use, so that even non-professional users can quickly get started, thereby improving the efficiency of the entire simulation analysis process.

[0086] (4) Integration and multi-scenario application of industrial design application APP.

[0087] The normal determination method in the geometric model processing method provided in the embodiment of the present invention can be integrated into an industrial design application APP to support cloud operations, which not only enables users to perform numerical calculations and simulation analysis in different industrial scenarios, but also through the customization and expansion functions of the APP, users can adjust parameters and settings according to specific needs, further enhancing the flexibility and practicality of the solution.

[0088] Furthermore, the highly recognized ANSYS industrial design application is taken as an example to verify the processing method of the geometric model provided by the embodiment of the present invention.

[0089] First, a set of target geometric surface IDs are obtained in the ANSYS software environment, such as Figure 5 The schematic diagram of another geometric model shown takes the seat back as the target geometric surface as an example, and obtains the geometric surface ID corresponding to the seat back for explanation.

[0090] The ID in the embodiment of the present invention is also called identification information, which represents a specific plane or curved surface that needs to be geometrically analyzed. A geometric feature information file can be automatically created through a carefully designed geometric surface normal generation code, which records the normal vector and centroid of each surface in detail. This process is the key to achieving accurate simulation analysis and can provide the necessary geometric feature information for the subsequent establishment of an auxiliary coordinate system and data processing.

[0091] With the generation of the geometric feature information file, the geometric feature information file can be used as a source file in the embodiment of the present invention, and a coordinate system file corresponding to the geometric feature information is further established in ANSYS. Each coordinate system, that is, the origin of the auxiliary coordinate system is accurately located at the centroid of the corresponding target geometric surface, and the Z axis is strictly aligned with the calculated normal vector, ensuring that the direction of the coordinate system is consistent with the true normal of the geometric surface. Each face ID is mapped with its specific normal vector and centroid data to achieve a seamless connection between data and geometric entities.

[0092] Finally, if Figure 6The schematic diagram of the auxiliary coordinate system including the normal direction is shown. In the visualization interface of the ANSYS software, it can be clearly seen that the normal of the selected target geometric surface has been successfully created and accurately corresponds to the corresponding auxiliary coordinate system (the normal is the Z axis of the established auxiliary coordinate system). This result not only verifies the effectiveness of the processing method of the geometric model in the embodiment of the present invention, but also demonstrates its application potential in actual industrial simulation software.

[0093] In addition, the effect of the processing method of the geometric model in the embodiment of the present invention can be extended to other industrial design application APPs. By integrating into industrial-level applications, users can easily access and use these advanced simulation analysis tools on mobile devices or web pages. In the industrial design application APP, users can easily select the target geometric surface, automatically obtain the center point data and normal vector data, and intuitively view and operate the generated auxiliary coordinate system in the digital interface. This integration not only improves the flexibility and accessibility of industrial design, but also provides engineering and technical personnel with a powerful auxiliary tool to support their needs in product design, performance analysis, and decision-making.

[0094] It can be seen that the method for processing the geometric model of the embodiment of the present invention demonstrates the process from obtaining the target geometric surface ID to creating the source file (geometric feature information file), and then to establishing and applying the auxiliary coordinate system. It finally realizes efficient and accurate normal and coordinate system generation in various numerical calculation software (universal method, which can be used by all numerical calculation software) and industrial design application APPs, providing strong technical support for industrial design and simulation analysis.

[0095] Therefore, the geometric model processing method provided by the embodiment of the present invention has good advantages in terms of versatility, automation, user-friendliness, industrial design application APP integration, and comprehensive coverage and expansion of existing capabilities.

[0096] Further, based on the above embodiment, the embodiment of the present invention also provides a processing device for a geometric model, such as Figure 7 A schematic diagram of the structure of a geometric model processing device is shown, and the geometric model processing device includes:

[0097] The acquisition module 70 is used to acquire a source file of a target geometric surface, wherein the target geometric surface is a geometric surface in a preset geometric model; the source file records identification information of each geometric surface in the target geometric surface, and geometric feature information of the geometric surface corresponding to the identification information;

[0098] An extraction module 72, configured to extract center point data and normal vector data of the target geometric surface based on the geometric feature information;

[0099] A determination module 74, configured to determine a global center point according to the center point data, and to determine a global normal vector of the target geometric surface according to the normal vector data;

[0100] The construction module 76 is used to construct an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and display the geometric model in the auxiliary coordinate system.

[0101] The geometric model processing device provided in the embodiment of the present invention has the same technical features as the geometric model processing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0102] Furthermore, an embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0103] 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 steps of the above method are executed.

[0104] Furthermore, an embodiment of the present invention also provides a schematic diagram of the structure of an electronic device, such as Figure 8 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 81 and a memory 80, the memory 80 stores computer executable instructions that can be executed by the processor 81, and the processor 81 executes the computer executable instructions to implement the above method.

[0105] exist Figure 8 In the illustrated embodiment, the electronic device further includes a bus 82 and a communication interface 83 , wherein the processor 81 , the communication interface 83 and the memory 80 are connected via the bus 82 .

[0106] Among them, the memory 80 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 83 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 82 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 82 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0107] The processor 81 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 81 or the instruction in the form of software. The above processor 81 can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 81 reads the information in the memory and completes the above method in combination with its hardware.

[0108] A method for processing a geometric model, an apparatus and a computer program product for an electronic device provided in an embodiment of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.

[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0110] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0111] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0112] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0113] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for processing a geometric model, characterized in that: An industrial design application program applied in the field of numerical analysis is used to process industrial models for numerical calculation and simulation analysis. The method includes: Acquire a source file of a target geometric surface, wherein the target geometric surface is a geometric surface in a preset geometric model; the geometric model is a product model of an industrial product; the source file records identification information of each geometric surface in the target geometric surface, and geometric feature information of the geometric surface corresponding to the identification information, wherein the target geometric surface includes a plane or a curved surface, or any combination of a plane and a curved surface, and the target geometric surface is a continuous surface combination, or a discontinuous surface combination; the geometric feature information includes center point data and normal vector data; Extracting the center point data and normal vector data of the target geometric surface based on the geometric feature information; wherein, if the target geometric surface includes a curved surface, the method for determining the normal vector data of the curved surface includes: dividing the curved surface into a plurality of unit curved surfaces according to a preset unit; obtaining a unit normal vector of each of the unit curved surfaces; and calculating the average normal vector of the curved surface based on the unit normal vector, and determining the average normal vector as the normal vector data of the curved surface; Determine a global center point according to the center point data, and determine a global normal vector of the target geometric surface according to the normal vector data; An auxiliary coordinate system is constructed with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and the geometric model is displayed in the auxiliary coordinate system; The step of determining the global center point according to the center point data includes: If the target geometric surface includes multiple geometric surfaces, obtaining the center point data of each of the geometric surfaces; Calculate the average position of the center points of all the geometric surfaces based on the center point data of each geometric surface; determine the average position as the global center point; If the target geometric surface includes one geometric surface, the center point of the geometric surface is determined as the global center point, and the center point data is the center point data of the global center point.

2. The method according to claim 1, characterized in that The method further comprises: In response to a geometric surface selection operation acting on a geometric model, determining the geometric surface corresponding to the selection operation as a target geometric surface; The geometric feature information of the target geometric surface and the identification information of the target geometric surface are acquired, a mapping relationship between the geometric feature information and the identification information is constructed, and a source file of the target geometric surface is generated based on the mapping relationship.

3. The method according to claim 1, characterized in that The step of determining the global normal vector of the target geometric surface according to the normal vector data comprises: If the target geometric surface includes multiple geometric surfaces, the normal vector data corresponding to each of the geometric surfaces is averaged and the result of the average calculation is normalized to obtain the global normal vector of the target geometric surface.

4. The method according to claim 1, characterized in that The step of determining the global normal vector of the target geometric surface according to the normal vector data further includes: If the target geometric surface includes multiple geometric surfaces, determining the global normal vector of the geometric surface according to the normal vector data corresponding to each of the geometric surfaces; The step of constructing an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction also includes: The center point of the geometric surface is determined as the global center point, and an auxiliary coordinate system corresponding to the geometric surface is constructed with the global center point as the origin and the direction corresponding to the global normal vector of the geometric surface as the coordinate system direction, wherein the coordinate system direction is the Z-axis direction of the auxiliary coordinate system.

5. A geometric model processing device, characterized in that: An industrial design application program applied in the field of numerical analysis, used for processing industrial models to perform numerical calculations and simulation analysis, the device comprising: An acquisition module is used to acquire a source file of a target geometric surface, wherein the target geometric surface is a geometric surface in a preset geometric model; the geometric model is a product model of an industrial product; the source file records identification information of each geometric surface in the target geometric surface, and geometric feature information of the geometric surface corresponding to the identification information, wherein the target geometric surface includes a plane or a curved surface, or any combination of a plane and a curved surface, and the target geometric surface is a continuous surface combination, or a discontinuous surface combination; the geometric feature information includes center point data and normal vector data; An extraction module is used to extract the center point data and normal vector data of the target geometric surface based on the geometric feature information; wherein, if the target geometric surface includes a curved surface, the method for determining the normal vector data of the curved surface includes: dividing the curved surface into a plurality of unit curved surfaces according to preset units; obtaining a unit normal vector of each of the unit curved surfaces; and calculating an average normal vector of the curved surface based on the unit normal vector, and determining the average normal vector as the normal vector data of the curved surface; A determination module, used to determine a global center point according to the center point data, and to determine a global normal vector of the target geometric surface according to the normal vector data; A construction module, used to construct an auxiliary coordinate system with the global center point as the origin and the direction corresponding to the global normal vector as the coordinate system direction, and to display the geometric model in the auxiliary coordinate system; The step of determining the global center point according to the center point data includes: If the target geometric surface includes multiple geometric surfaces, obtaining the center point data of each of the geometric surfaces; Calculate the average position of the center points of all the geometric surfaces based on the center point data of each geometric surface; determine the average position as the global center point; If the target geometric surface includes one geometric surface, the center point of the geometric surface is determined as the global center point, and the center point data is the center point data of the global center point.

6. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Curved surface graph display method and device, computer equipment and readable storage medium

    CN115471593A