Computer-implemented method for changing a model geometry of an object

20220277113 ยท 2022-09-01

    Inventors

    Cpc classification

    International classification

    Abstract

    The invention relates to changing a model geometry of an object by providing a target geometry and a model geometry for the object; using the model geometry to provide an actual geometry of the object; determining whether there is a deviation between the target geometry and the actual geometry; and changing the model geometry into a modified model geometry on the basis of the determined deviation; wherein determining results in a first non-rigid mapping, if there is a deviation, that associates two geometries with each other by using a parameter set and describing the determined at deviation, or at least the changing is carried out by a second non-rigid mapping that associates two geometries with each other by using a parameter set. Thus, correct values are provided in the event of deviations and deformation, and the corrected values reduce the effort in finding a model geometry for producing an object.

    Claims

    1. A computer-implemented method for modifying a model geometry of an object, wherein the model geometry can be used to produce the object, the method comprising the following steps: providing a target geometry for the object; providing a model geometry for the object; using the model geometry to provide an actual geometry of the object; determining whether there is at least one deviation present between the target geometry and the actual geometry; and changing the model geometry into a modified model geometry based on the determined at least one deviation, if at least one deviation is present; wherein at least the step of determining, if at least one deviation is present, results in a first non-rigid mapping, the first non-rigid mapping associating two geometries with each other by means of a parameter set and describing the determined at least one deviation, or at least the step of changing is carried out by means of a second non-rigid mapping, the second non-rigid mapping associating two geometries to each other by means of a parameter set.

    2. The method as claimed in claim 1, wherein the provided model geometry is a modified target geometry.

    3. The method as claimed in claim 1, wherein the method also comprises the following step: repeating at least the steps of using, determining and changing as long as the determined at least one deviation is outside a predefined tolerance range for the determined at least one deviation.

    4. The method as claimed in claim 1, wherein the at least one deviation is assigned to a region of the model geometry, wherein the step of changing is only carried out for the region if the at least one deviation is outside a predefined tolerance range for the determined at least one deviation.

    5. The method as claimed in claim 1, wherein the step of changing also comprises the following sub-step: transferring the determined at least one deviation to the model geometry by means of the second non-rigid mapping, the second non-rigid mapping having an association between the target geometry and the model geometry and between the actual geometry and the model geometry.

    6. The method as claimed in claim 5, wherein the second non-rigid mapping maps the model geometry to the target geometry and the model geometry to the actual geometry.

    7. The method as claimed in claim 1, wherein the step of changing also comprises the following sub-step: changing the model geometry to the modified model geometry using the first non-rigid mapping.

    8. The method as claimed in claim 1, wherein the method also comprises, before the step of determining whether at least one deviation is present between the target geometry and the actual geometry, the following step: determining a rigid mapping between the actual geometry and the target geometry to register the actual geometry and the target geometry, wherein the rigid mapping takes into account predefined local tolerance ranges for different regions of the target geometry and minimizes deviations between the actual geometry and the target geometry outside the local tolerance ranges.

    9. The method as claimed in claim 1, wherein the step of using the model geometry to provide an actual geometry of the object further comprises the following sub-step: providing the actual geometry from measurement data of a computer tomographic measurement of the object.

    10. The method as claimed in claim 1, wherein the step of changing further comprises the following sub-steps: providing at least one sub-region of the model geometry, with the at least one sub-region being associated with the determined at least one deviation; changing the at least one sub-region with the determined at least one deviation into at least one modified sub-region; and providing the at least one sub-region to modify the model geometry.

    11. The method as claimed in claim 1, wherein the step of changing further comprises the following sub-step: changing the model geometry into a modified model geometry based on the determined at least one deviation, taking into account local modifications resulting from the determined at least one deviation, using the second non-rigid mapping.

    12. The method as claimed in claim 1, wherein the first non-rigid mapping and/or the second non-rigid mapping are defined by means of control points.

    13. The method as claimed in claim 12, wherein the control points have a density which is greater in at least one predefined region of the object than outside the at least one predefined region, wherein the predefined region comprises an environment of a surface of the object and an environment around the determined at least one deviation if the determined at least one deviation exceeds a predefined threshold value, and comprises an environment around the determined at least one deviation if the determined at least one deviation has a gradient above a predefined gradient threshold value.

    14. The method as claimed in claim 1, wherein the first non-rigid mapping changes a topology of the model geometry only within a predefined modification range.

    15. A computer program product having instructions executable on a computer, which when executed on a computer cause the computer to carry out the method as claimed in claim 1.

    Description

    [0052] Further features, details and advantages of the invention result from the wording of the claims, as well as from the following description of embodiments on the basis of the drawings. In the drawings:

    [0053] FIG. 1 shows a flowchart of the computer-implemented method for modifying a model geometry of the object;

    [0054] FIG. 2 shows a diagram of an embodiment of a step of the method;

    [0055] FIG. 3 shows a diagram of an embodiment of a step of the method;

    [0056] FIG. 4 shows a schematic illustration of a deviation on an actual geometry;

    [0057] FIG. 5a, b shows a schematic illustration of the different geometries and their relationship to each other;

    [0058] FIG. 6a, b shows a schematic illustration of different definitions of a mapping between the geometries;

    [0059] FIG. 7 shows a schematic illustration of two exemplary procedures for obtaining a modified model geometry;

    [0060] FIG. 8 shows a schematic illustration of further embodiments of the method; and

    [0061] FIG. 9 shows a schematic illustration of an embodiment with a non-rigid mapping in the form of a field.

    [0062] The following explains in more detail the computer-implemented method 100 for modifying a model geometry of the object by reference to FIG. 1.

    [0063] In a first step 102, a target geometry for the object is provided. This can be a so-called nominal geometry, which is used to define the desired geometry of the object. The target geometry can be provided as a CAD model, for example.

    [0064] In a further step 104, a model geometry for the object is provided. The model geometry can be used to produce the object. The model geometry provided can be a modified target geometry that takes into account existing known deformations during the production of the object that can lead to a deviation between the actual geometry and the target geometry.

    [0065] In a further step 106, the model geometry can be used as the geometry of an original mold for a casting process or an injection molding process in order to produce an object and thus obtain an actual geometry. Alternatively or additionally, the model geometry can be used for an additive manufacturing process. Furthermore, the model geometry can alternatively or additionally be used by a simulation program to calculate an actual geometry of an object.

    [0066] Then, in step 118, a rigid mapping between the actual geometry and the target geometry can be determined. The rigid mapping can be used to register the actual geometry and the target geometry. The rigid mapping takes into account predefined local tolerance ranges for different regions of the target geometry. The local tolerance ranges are tolerance ranges that are defined locally on the geometry of the object. For example, a region on the object that does not interact with other elements or components can have a large tolerance range. By contrast, regions of the object that interact with other elements or components have small tolerance ranges, because these must be manufactured more accurately. Furthermore, the rigid mapping can minimize deviations between the actual geometry and the target geometry outside the local tolerance ranges.

    [0067] Then, in a further step 108, it is determined whether at least one deviation is present between the target geometry and the actual geometry. To do this, the target geometry is compared with the actual geometry. This can be achieved with a first non-rigid mapping. The first non-rigid mapping can have a parameter set that enables the non-rigid mapping to map the target geometry and the actual geometry to each other over the entire coordinate system. The first non-rigid mapping thus also describes the at least one deviation between the actual geometry and the target geometry.

    [0068] For step 108, in a first exemplary embodiment a first non-rigid mapping between the actual geometry and the target geometry can be determined. In another exemplary embodiment, in step 108, methods are used to determine the local deviation which do not include a non-rigid mapping.

    [0069] In step 110, the model geometry is modified using the at least one deviation determined in step 108. If no deviation is present, in step 110 the method is terminated. If a deviation is present, in step 110 a second non-rigid mapping can be used to provide a modified model geometry from the model geometry. The second non-rigid mapping has a set of parameters for this purpose, which enables the second non-rigid mapping to associate the model geometry and the modified model geometry to each other. The second non-rigid mapping describes a change between the model geometry and the modified model geometry, wherein the change corrects the at least one deviation between the actual geometry and the target geometry. The aim is for an actual geometry of an object produced using the modified model geometry to have fewer deviations from the target geometry than the actual geometry of the object produced using the model geometry.

    [0070] Thus, in a first exemplary embodiment of step 110, a second non-rigid mapping between the target geometry and the model geometry can be determined. In a second exemplary embodiment of step 110, a second non-rigid mapping between the actual geometry and the model geometry is determined. In another exemplary embodiment of step 110, the transfer of the deviation can be performed by directly determining a possibly local correction value for the previous model geometry based on step 108. In a further exemplary embodiment, methods are used for determining the association between the target geometry or the actual geometry and the modified model geometry which do not comprise a non-rigid mapping.

    [0071] The combination in which both steps 108 and 110 do not use a non-rigid mapping is not the subject matter of the invention. That is, according to the invention, at least the first non-rigid mapping is used in step 108 or at least the second non-rigid mapping is used in step 110. Furthermore, the first non-rigid mapping and the second non-rigid mapping can also be used simultaneously.

    [0072] At least the steps 106, 108 and 110 can be repeated in a step 112. The repetition is carried out until the at least one deviation determined during a repetition is within a predefined tolerance range for the determined at least one deviation. This means that the deviations of the actual geometry of the object, produced on the basis of the modified model geometry, from the target geometry correspond to the target geometry within the tolerances.

    [0073] The at least one deviation can be associated with a region of the model geometry, wherein the model geometry can be divided up into different regions. During step 110, only the region of the model geometry that has the at least one deviation is changed to obtain the modified model geometry. The regions that contain no deviation are not changed to arrive at the modified model geometry. Furthermore, the tolerance ranges for the different regions are mainly used to correct regions where the tolerance ranges are small Regions with large tolerance ranges are only corrected if the deviations are large. Small deviations lying within the tolerance ranges can be tolerated in these regions.

    [0074] Step 110 can comprise additional sub-steps. These are shown together in FIG. 2 and are optional in each case and can be combined with each other. The modification step may comprise sub-step 114, in which the determined at least one deviation is/are transferred to the model geometry by means of the second non-rigid mapping. The second non-rigid mapping comprises an association between the target geometry and the model geometry in a first alternative. This means that the second non-rigid mapping can map the target geometry to the model geometry or vice versa. In another alternative, the second non-rigid mapping comprises an association between the actual geometry and the model geometry. This means that the second non-rigid mapping can map the actual geometry to the target geometry or vice versa. In both cases, the second non-rigid mapping uses the model geometry.

    [0075] In addition, step 110 can comprise sub-step 118, in which a rigid mapping is obtained between the actual geometry and the target geometry. This rigid mapping can be used to register the actual geometry and the target geometry. During registration, predefined local tolerance ranges for different regions of the target geometry are taken into account by the rigid mapping. Furthermore, deviations between the actual geometry and the target geometry outside the local tolerance ranges are minimized

    [0076] In another sub-step, the step 110 can comprise steps 122, 124, and 126. In sub-step 122, at least one sub-region of the model geometry is provided which is assigned to the at least one deviation. This means that a sub-region of the model geometry around the deviation is determined and provided only after determining the at least one deviation. This at least one sub-region is modified in step 124 with the determined at least one deviation. This corrects the determined deviation in the sub-region. The sub-region is provided in step 126 in order that a model geometry can be modified, resulting in a modified model geometry.

    [0077] Another sub-step 128 of step 110 relates to the changing of the model geometry into a modified model geometry. Step 128 is carried out on the basis of the determined at least one deviation and taking into account local modifications. The local modifications result from the determined at least one deviation, where the deviation results from local deformations of the object, for example. The local modification is taken into account by using the second non-rigid mapping. The second non-rigid mapping corrects the local modifications and the deviation itself in the modified model geometry. The correction of the local modifications can be carried out by means of a rotation, a scaling and/or a shear.

    [0078] According to FIG. 3, step 106, which uses the model geometry to provide an actual geometry of the object, can comprise the sub-step 120. In step 120, the actual geometry is provided from measurement data of a computer tomographic measurement of the object. For this purpose, the object produced by means of the model geometry is measured by means of a computer tomograph. The actual geometry of the object is determined from the measurement data. In another alternative or additional case, the model geometry can be used to produce an object in a subtractive manufacturing process, e.g. CNC milling. In this case the geometry that is used for programming the CNC milling tool is corrected.

    [0079] Alternatively or in addition, optical sensors can also provide high-resolution information relating to the external surface. In addition, tactile sensors can record individual measuring points of the surface.

    [0080] FIG. 4 shows a schematic illustration of a deviation on an actual geometry 12 of an object. The deviation in FIG. 4 and the following figures is exaggerated to allow the procedure to be visualized better. In practice, the distance 46 and the difference between target geometry 10 and model geometry 14 are usually significantly smaller than the dimension 44. Thus, large-area deviations with comparatively low edge angles are corrected.

    [0081] FIGS. 5a and 5b show in a schematic illustration how the actual geometry 12, the target geometry 10, the model geometry 14 and the modified model geometry 16 can in principle be related to one another. In all the exemplary embodiments described below it is possible in principle for the correction to be applied at the new location in the original orientation or direction according to FIG. 5a, or for the orientation or direction of the correction to be changed or rotated according to FIG. 5b.

    [0082] The at least one deviation 18 between the actual geometry 12 and the target geometry 10 can be described by means of the first non-rigid mapping. FIG. 5a also shows the transition 20 between the target geometry 10 and the model geometry 14 which was used for producing the object on which the actual geometry 12 is based. In this example, the correction or modification 22 of the model geometry 14 into the modified model geometry 16 is oriented in the same direction as the deviation 18.

    [0083] According to FIG. 5b, the at least one deviation 18 between the actual geometry 12 and the target geometry 10 is converted into a correction or modification 24 between the model geometry 14 and the modified model geometry 16, which takes into account a change of direction included within the transition 20 between the target geometry 10 and the model geometry 14. In contrast to the modification 22 from FIG. 5a, the modification 24 from FIG. 5b shows the same relative orientation between model geometry 14 and the modified model geometry 16 as the at least one deviation relatively between the actual geometry 12 and the target geometry 10. In non-rigid mappings, not only is a point-to-point association possible, but also a local modification such as a local change of direction can be determined implicitly or explicitly.

    [0084] FIGS. 6a and 6b illustrate, using the example of the mapping between the actual geometry and the target geometry, that this mapping can be defined differently. A mapping 26 can be defined from the actual geometry 12 to the target geometry 10, as shown in FIG. 6a, or conversely a mapping 32 from the target geometry 10 to the actual geometry 12. Care must be taken to ensure that the respective mapping 26, 32 is used correctly in a subsequent correction so that the change 22, 24 between the model geometry 14 and the modified model geometry 16 corrects the deviation 18 and does not reinforce it. In some cases it may be necessary to use the inverse of the mappings 26, 32 to obtain a correct modification 22, 24. For example, the mapping 32 of FIG. 6b must first be inverted to obtain a correct mapping 30 to convert between the model geometry 14 and the modified model geometry 16. The mapping 26 of FIG. 6a can be used without inversion as the mapping 30 to convert between the model geometry 14 and the modified model geometry 16.

    [0085] The same applies to the mapping 28 between the target geometry 10 and the model geometry 14 and all other mappings.

    [0086] In another example, the modified model geometry 16 can be obtained from the actual geometry 12 by double application of the mapping 26 or the inverted mapping 32 and single application of the mapping 28. The second application of the mapping 26 or the inverted mapping 32 corresponds to the application of mapping 30.

    [0087] In a preferred example, starting from the model geometry, the single application of the mapping 26 or the inverted mapping 32 as mapping 30 may suffice, wherein the mapping 28 allows the identification of the associated mapping 26 or the inverted mapping 32 for each individual point.

    [0088] According to another example, starting from the target geometry 10, by a single application of the mapping 26 or the inverted mapping 32 as mapping 30, the same target can be achieved as with a single application of mapping 28, as shown in FIG. 7.

    [0089] FIG. 7 shows two exemplary procedures. Also according to FIG. 7, the actual geometry 12 can also be first transformed to a different model geometry 34 using the mapping 28. In this case, any deviation that the actual geometry 12 has from the target geometry 10 will be maintained after the mapping with respect to the model geometry 14. The deviating model geometry 34 can then be corrected immediately by means of the mapping 30, which results from the mapping 26 or the inverted mapping 32.

    [0090] In addition to the rotation, local scaling and shearing operations can also be defined by the non-rigid mappings or, more precisely, by the respective derivatives of the non-rigid mappings. These are not shown here, but can also be taken into account when applying the correction.

    [0091] FIG. 8 shows the case in which in principle the assignment from the actual geometry 12 to the model geometry 14 by means of a mapping 36 is used. As was the case in FIG. 4, multiple exemplary embodiments are also possible here.

    [0092] In one example, starting with the actual geometry 12, this can be transformed into the modified model geometry by a single application of mapping 36 and a single application of mapping 30, which results from the mapping 26 or inverted mapping 32.

    [0093] In another example, starting from the model geometry 14 the single application of mapping 30 can suffice, wherein the mapping 36 allows the identification of the associated mapping 26 or inverted mapping 32 for each individual point.

    [0094] FIG. 9 shows a field with arrows which represent a correction vector for each point, calculated from it. In this implementation of a non-rigid mapping, a value for the mapping can be determined or interpolated/extrapolated for any chosen coordinates.

    [0095] Here it is advantageous if the size of the distance 46 or necessary correction is significantly smaller than the lateral extent 44 of the distance 46 to be corrected. The use of a field can be further advantageous if the distance between the model geometry and the target geometry is comparatively small, so that the field of the mapping 26 barely changes over this distance. To determine the underlying models of the non-rigid mappings, control points or support points can be defined and the deformation or mapping between these can be interpolated or extrapolated.

    [0096] In this example, the second non-rigid mapping is not needed because the first non-rigid mapping is applied at the position of the model geometry. Assuming that the distance from the model geometry to the target or actual geometry is small compared to the change in the first non-rigid mapping over the space, the desired result is obtained to a good approximation as a modified model geometry.

    [0097] The control points can be in a regular or an irregular grid. For example, the irregular grid may have a higher resolution in important regions, such as in the vicinity of the surface, in regions with large deformation or in regions where the mapping does not achieve a good approximation to the target geometry. This reduces the total number of control points and thus reduces the computing time required. Even if the resolution of the control points is variable, a regular grid can be maintained in principle.

    [0098] In addition, a normal rigid adjustment can be determined in some sections and, if necessary, interpolation can be used between them.

    [0099] In a further example, the possibly location-dependent mapping can be described globally and thus analytically for the entire three-dimensional space under consideration, e.g. with the aid of a Fourier series.

    [0100] A regularization of the mapping can also be carried out in order to counteract strong outliers in the data, geometries or deformations.

    [0101] An error measure and an optimizer can be used to determine the non-rigid mapping.

    [0102] The error measure describes how closely the geometries to be mapped onto each other match after the application of the mapping. Corresponding features in both geometries can be used for this purpose, for example the surfaces, edges, corners, easily recognizable geometries, so-called landmarks, geometries or geometry regions defined by the evaluation map, or manually defined geometries or landmarks. The corresponding features in the geometries can also be identified by an artificial intelligence tool. The Hausdorff metric provides one way of calculating the error measure.

    [0103] If the aim is to achieve the best possible assignment of the surface regions to the geometries under consideration by using the mappings of the method 100, the surface of the geometries in question is preferably analyzed. Using the optimizer, the mathematical model is parameterized to find the best match, which usually means that the error measure is minimized. At the same time, however, boundary conditions may be applied to prevent over-adaptation, which can be referred to as regularization.

    [0104] While global scaling of the component can allow a good match between the geometries, in some cases it is not realistic. Therefore, a global scaling can be limited or sanctioned.

    [0105] The optimizer can work from a coarse resolution to a fine resolution. For example, a few support points are used initially to allow a coarse assignment of the corresponding geometries to each other. Gradually, the number of support points is increased to allow consideration of smaller geometries of the object in the mapping as well. This ensures that the mapping converges to the best solution. In an analytical description, a similar procedure can be used, for example, by gradually increasing the number of terms considered in the Fourier series.

    [0106] In a similar way, it is also possible to manipulate the minimum order of magnitude or maximum local frequency that is sought by means of the mapping to correct deviations in the mapping. This minimum order of magnitude can be interpreted, for example, as the minimum lateral extension of a deviation that can still be corrected. This can be useful, for example, if certain frequency ranges are to be retained as a deviation of the geometry and therefore should not or cannot be corrected.

    [0107] A cutoff frequency is usually defined for this purpose. This can also prevent direction vectors from being incorrectly mapped due to local over-adjustments. Again, this can be implemented by only using control points or considering the Fourier series up to a corresponding resolution in the model.

    [0108] Regardless of the approach chosen, it can be useful to perform a rigid registration of the actual geometry and the target geometry before determining the mapping in order to obtain a first, coarse mapping. It is then to be expected that the first or second non-rigid mapping can be determined faster or more accurately from this starting point.

    [0109] The method described above can be used, as explained above, to correct a model geometry of an object, wherein the model geometry can be used for producing the object. Alternatively or in addition, it is possible to search for a mapping of the target geometry, which can be available as a CAD model, for example, onto the actual geometry. The target geometry existing in the form of a CAD model is then deformed to the actual geometry. The result would be a CAD model which has the actual geometry, but still has the representation or basic geometric structure, e.g. geometry elements or edges of the CAD model.

    [0110] Furthermore, the correction can be applied in such a way that the topology, e.g. of the surface, the modified geometry, e.g. defined by the structure of a CAD model or the connectivity of the surface elements of a mesh, is retained.

    [0111] If the correction is carried out iteratively, the association between target geometry and modified model geometry can be stored. Thus, the mapping 28 for the next iteration can be simply determined. The stored modified model geometry can be used as the basis for the corrections.

    [0112] In addition, in particular in the case of flexible objects with large-scale global deformations and small-scale local deviations which must be corrected, step 108 can be carried out with two sub-steps. In a first sub-step, a low-resolution mapping is determined which compensates for the global deformations. A further high-resolution mapping is then determined, which covers local deviations. This can also be defined in sections. This means that a high-resolution mapping may be determined only in specified regions in which a correction is to be carried out or in which significant deviations have been detected. The deviations can then be mapped with high resolution and thus corrected, although the number of degrees of freedom remains manageable, since high resolution is only used in the relevant regions.

    [0113] Furthermore, the high-resolution mapping alone may be used for the correction. This process would allow the local deviations to be corrected, while for global deformations, which in some cases are not problematic, no effort would need to be expended to correct them.

    [0114] Edges and corners of the geometries can be used as landmarks to determine the mapping. Furthermore, defects inside the real geometry or measurement data can be ignored during the determination, as these do not occur in the nominal geometry.

    [0115] Furthermore, it is possible to define, for example by means of an evaluation map, the CAD model or by user input, the regions in which any correction should be carried out at all. No correction is then made in the remaining regions. The correction can then be carried out only in regions in which the deviation is determined above a defined tolerance and a large tolerance is then selected in the corresponding regions.

    [0116] In order to avoid discontinuities from the boundary between the regions in which a correction is performed and no correction is performed, the strength or factor with which the correction is performed can slowly decrease to 0 beyond the regions to be corrected.

    [0117] Furthermore, the alignment of the actual geometry to the target geometry can be carried out in such a way that the deviations are minimized, in particular in the relevant regions, which can be, for example, the regions with low tolerance. This minimizes the corrections to be made.

    [0118] Furthermore, the resolution of the mappings 28, 26 or 32, and 30 can be varied, for example, determined by the density of the control points, based on the local deviation between the actual geometry and target geometry. In the regions with greater deviation, the resolution is then higher, as a better modeling of the correction might be necessary here. Although the resolution is only determined by the deviation between the mappings 26 and 32, the resolution is also transferred to mapping 28.

    [0119] The procedure can also allow a user the facility to edit the non-rigid mapping manually, for example, by moving control points of the mapping or the correction.

    [0120] The invention is not restricted to any one of the embodiments described above but may be modified in a wide variety of ways.

    [0121] All of the specified features and advantages resulting from the claims, the description and the drawing, including constructional details, spatial arrangements and method steps, can be essential to the invention either in themselves or in the most diverse of combinations.

    LIST OF REFERENCE SIGNS

    [0122] 10 target geometry [0123] 12 actual geometry [0124] 14 model geometry [0125] 16 modified model geometry [0126] 18 deviation [0127] 20 transition [0128] 22 modification [0129] 24 modification [0130] 26 mapping [0131] 28 mapping [0132] 30 mapping [0133] 32 mapping [0134] 34 deviating model geometry [0135] 36 mapping