Method and device for tracking surface intersection executed by electronic device, and electronic device

By implementing the method of tracking surface intersections in electronic equipment and using four-dimensional space parameter curves and tangent vector function models to process complex surface intersections, the problem of difficulty in processing singular situations in the existing technology is solved, and the modeling accuracy and calculation efficiency are improved. .

CN116611211BActive Publication Date: 2024-09-27ACAD OF MATHEMATICS & SYSTEMS SCIENCE - CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310383199.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-09-27
Estimated Expiration
2043-04-11

AI Technical Summary

Technical Problem

Existing surface intersection algorithms cannot effectively handle singular situations in the intersection of complex surfaces, resulting in low modeling accuracy and high computational complexity, and cannot complete calculations with small errors in a short time.

Method used

By implementing the method of tracking surface intersections in electronic equipment, using four-dimensional space parameter curves and tangent vector function models, establishing judgment conditions and distinguishing boxes, generating various types of tracking points, connecting intersections, and under a hybrid symbolic-digital framework Perform topologically correct modeling.

Benefits of technology

It improves the topological properties of surface intersections, simplifies the processing of singular situations, improves the accuracy of geometric modeling, realizes parallel computing, and reduces computing time and hardware requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116611211B
    Figure CN116611211B
Patent Text Reader

Abstract

The present invention provides a method and device for tracking surface intersections performed by an electronic device, and an electronic device. The method includes: generating a four-dimensional space parameter curve, dividing the parameter space corresponding to the first parameter surface into multiple first surface boxes, dividing the parameter space corresponding to the second parameter surface into multiple second surface boxes, determining the boxes that intersect the multiple first surface boxes and the multiple second surface boxes as target boxes, constructing a tangent vector function model, establishing a first judgment condition and a second judgment condition based on the tangent vector function model, marking the target box that meets the first judgment condition as a first type of box, marking the target box that meets the second judgment condition as a second type of box, marking the target boxes other than the first type of box and the second type of box in the target box as zeroth type boxes, generating multiple tracking points in each type of box, and connecting the multiple tracking points to generate the intersection of the first parameter surface and the second parameter surface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer surface intersection, and in particular to a method and device for tracing surface intersection lines executed by electronic equipment, and electronic equipment. Background Art

[0002] Finding the intersection of rational parametric surfaces (SSI) is one of the most fundamental problems in geometry and solid modeling. The intersection of rational surfaces is important and commonly used in representing complex objects, finite element discretization, computer animation, facial recognition, etc. The intersection of two parametric surfaces may have extremely complex topological properties, such as tangent points, tangent lines, isolated point microloops, self-intersection points, and even partial surface overlap. In some extreme cases, these exotic cases are mixed together, and the inevitable numerical errors when implementing floating-point operations in actual systems make their calculations more complicated. All these cases need to be robustly handled under complex geometric operations in near-interactive time, which poses a severe challenge to the robustness, accuracy, and efficiency of the parametric SSI problem.

[0003] Conventional surface intersection algorithms do not take into account the topological conditions of various singular situations, so they cannot effectively complete the solid modeling of complex surface intersections in various scenarios, and the modeling accuracy is low. In addition, due to the complexity of the calculation, conventional algorithms cannot complete the calculation with a small error in a short time, and even if a large amount of computing resources are consumed, the calculation results cannot be obtained at all. Summary of the invention

[0004] In view of the above problems, the present invention provides a method and device for tracing the intersection of surfaces performed by an electronic device, and an electronic device.

[0005] One aspect of the present invention provides a method for tracing a curved surface intersection line performed by an electronic device, comprising:

[0006] In response to a control instruction generated by the controller, a four-dimensional space parameter curve associated with the first parametric surface and the second parametric surface is generated by the operator based on the control instruction according to the function model of the first parametric surface and the function model of the second parametric surface, and the four-dimensional space parameter curve is stored in a register;

[0007] Based on the control instruction, the operator divides the parameter space corresponding to the first parameter surface into a plurality of first surface boxes, and divides the parameter space corresponding to the second parameter surface into a plurality of second surface boxes, so that the intersecting boxes among the plurality of first surface boxes and the plurality of second surface boxes are determined as target boxes, and the target boxes are stored in a register;

[0008] Based on the control instruction, the operator reads the four-dimensional space parameter curve from the register, constructs a tangent vector function model for the four-dimensional space parameter curve, and stores the tangent vector function model in the register;

[0009] The tangent vector function model is read from the register by the operator based on the control instruction, and the first determination condition and the second determination condition are established based on the tangent vector function model, so that the target box that meets the first determination condition is marked as a first-category box, the target box that meets the second determination condition is marked as a second-category box, and the target boxes other than the first-category box and the second-category box in the target boxes are marked as zero-category boxes;

[0010] Based on the control instruction, a plurality of tracking points in the first type box, the second type box, and the zeroth type box are respectively generated by the operator, and the plurality of tracking points are connected to generate an intersection line of the first parametric surface and the second parametric surface;

[0011] The intersection line of the first parametric surface and the second parametric surface is displayed through a display unit.

[0012] According to an embodiment of the present invention, the first parametric surface and the second parametric surface are parametric surfaces based on multiple types of surface entities and established according to a predetermined drawing scale. The multiple types of surface entities include at least: mechanical element surface entities, human body part surface entities, and animation object surface entities.

[0013] According to an embodiment of the present invention, establishing the first determination condition and the second determination condition based on the tangent vector function model includes:

[0014] Based on the control instruction, the target box is input into the tangent vector function model through the operator, the target solution set is output, and the target solution set is stored in the register;

[0015] Based on the control instruction, the operator reads the target solution set from the register, and uses the target solution set related to the tangent vector function model to establish the first judgment condition and the second judgment condition.

[0016] According to an embodiment of the present invention, wherein:

[0017] The tangent vector function model includes a first component vector function model, a second component vector function model, a third component vector function model, and a fourth component vector function model;

[0018] The target solution set output by the tangent vector function model includes: a first solution set output by the first component vector function model, a second solution set output by the second component vector function model, a third solution set output by the third component vector function model, and a fourth solution set output by the fourth component vector function model:

[0019] The first judgment condition is: there is a zero solution in the intersection of the first solution set and the second solution set, or there is a zero solution in the intersection of the third solution set and the fourth solution set;

[0020] The second determination condition is: there is a zero solution in the intersection of the first solution set, the second solution set, the third solution set, and the fourth solution set.

[0021] According to an embodiment of the present invention, generating a plurality of tracking points in a first type box, a second type box, and a zeroth type box respectively comprises:

[0022] Generate a plurality of second tracking points of different types for the second type of box, the plurality of second tracking points of different types at least comprising: a tangent point when the first parametric surface and the second parametric surface are tangent at a point, a tangent point when the first parametric surface and the second parametric surface are tangent to a curve, a tangent point when the first parametric surface and the second parametric surface coincide with each other, a tangent point when the first parametric surface and the second parametric surface are tangent at an isolated tangent point, and a tangent point when the first parametric surface and the second parametric surface are tangent to a minimal ring;

[0023] A plurality of zero-type tracking points are generated by tracking the zero-type box, where the zero-type tracking points are regular intersection points when the first parametric surface or the second parametric surface regularly intersects.

[0024] Generate a plurality of first tracking points of different types for the first type of box, wherein the plurality of first tracking points of different types at least include: a finite number of singular points existing on the first parametric surface or the second parametric surface, and singular points on a singular curve existing on the first parametric surface or the second parametric surface;

[0025] A third type of box is determined from the zeroth type of box, so that a plurality of third tracking points are generated for the third type of box, and the third tracking points are self-intersection points of the first parametric surface or the second parametric surface.

[0026] According to an embodiment of the present invention, generating a plurality of second tracking points of different types for the second type of box includes:

[0027] Constructing the second discriminant function system according to the tangent vector function model and the four-dimensional space parameter curve;

[0028] According to the number of solutions of the second discriminant function system, the second type of box is subdivided to generate a plurality of second tracking points of different types according to the subdivided second type of box.

[0029] According to an embodiment of the present invention, generating a plurality of first tracking points of different types for a first type of box includes:

[0030] Construct a subfunction system for the first parametric surface or the second parametric surface;

[0031] Constructing the first discriminant function system according to the sub-function system and the four-dimensional space parameter curve;

[0032] According to the number of solutions of the first discriminant function system, the first type of box is subdivided to generate a plurality of first tracking points of different types according to the subdivided first type of box.

[0033] According to an embodiment of the present invention, determining the third type of box from the zeroth type of box comprises:

[0034] A third determination condition is established based on the tangent vector function model, wherein the third determination condition is: satisfying at least one of the first sub-condition, the second sub-condition, the third sub-condition, and the fourth sub-condition; the first sub-condition is: there is no zero solution in the first solution set, and there is no zero solution in the third solution set; the second sub-condition is: there is no zero solution in the first solution set, and there is no zero solution in the fourth solution set; the third sub-condition is: there is no zero solution in the second solution set, and there is no zero solution in the third solution set; the fourth sub-condition is: there is no zero solution in the second solution set, and there is no zero solution in the fourth solution set;

[0035] The zeroth-category box that meets the third determination condition is determined as an exclusion box, and the boxes in the zeroth-category box except the exclusion box and the regular box are determined as third-category boxes, where the regular box is the box corresponding to the zero-category tracking point.

[0036] Another aspect of the present invention provides a device for tracing a curved surface intersection line, comprising:

[0037] A first generating module is used to generate, in response to a control instruction generated by the controller, a four-dimensional space parameter curve associated with the first parameter surface and the second parameter surface according to a function model of the first parameter surface and a function model of the second parameter surface through an operator based on the control instruction, and store the four-dimensional space parameter curve in a register;

[0038] A partitioning module, configured to partition a parameter space corresponding to the first parameter surface into a plurality of first surface boxes and a parameter space corresponding to the second parameter surface into a plurality of second surface boxes based on a control instruction through an operator, so that an intersecting box among the plurality of first surface boxes and the plurality of second surface boxes is determined as a target box, and the target box is stored in a register;

[0039] A construction module is used to read the four-dimensional space parameter curve from the register based on the control instruction through the operator, and to construct a tangent vector function model for the four-dimensional space parameter curve, and store the tangent vector function model in the register;

[0040] A marking module, used for reading the tangent vector function model from the register based on the control instruction through the operator, and establishing a first determination condition and a second determination condition based on the tangent vector function model, so that the target box that meets the first determination condition is marked as a first-category box, the target box that meets the second determination condition is marked as a second-category box, and the target boxes other than the first-category box and the second-category box in the target boxes are marked as zero-category boxes;

[0041] A second generation module is used to generate a plurality of tracking points in the first type of box, the second type of box, and the zeroth type of box respectively based on the control instruction through the operator, and connect the plurality of tracking points to generate an intersection line of the first parametric surface and the second parametric surface;

[0042] The display module is used to display the intersection line of the first parametric surface and the second parametric surface through a display unit.

[0043] Another aspect of the present invention provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.

[0044] The above-mentioned method of tracing the intersection of surfaces of the present invention obtains topological correctness by establishing a mixed symbolic-digital framework, and in the case of mixing, by establishing the first judgment condition and the second judgment condition based on the tangent vector function model, the space box is distinguished, and various mixed situations can be simplified into a single situation by distinguishing various singular situations, so that all singular situations can be found in turn, and the intersection points in various singular situations can be tracked in the modeling process, so as to generate surface intersection lines, thereby ensuring the topological properties of the calculated intersection lines and improving the accuracy of geometric modeling. The above-mentioned method can be used in various situations of complex surface intersection modeling, and has high practical application value in the fields of mechanical engineering modeling, finite element discretization, computer animation modeling, facial recognition, etc.

[0045] In the method for tracing the intersection of surfaces of the present invention, during the calculation process, the parameter space corresponding to the first parameter surface and the parameter space corresponding to the second parameter surface are divided into multiple small boxes (calculation areas) through the operator, and the global calculation is converted into a local calculation. Therefore, the parallel calculation of multiple local calculations can be realized in the operator. Furthermore, due to the use of parallel calculation, multiple threads on the register can execute the calculation tasks synchronously. In the process of solving the problem, the operator improves the calculation speed and obtains the calculation results in a shorter time. At the same time, due to the use of the local calculation method, the large calculation area is divided into multiple small calculation areas. In the small calculation area, the function system is relatively simple, and the requirements for hardware such as computer registers and operators are also relatively low. While improving the calculation speed, it also reduces the hardware cost.

[0046] Furthermore, in the calculation process of the operator, by determining the intersecting boxes among the multiple first curved surface boxes and the multiple second curved surface boxes as target boxes, only a small number of boxes (intersecting target boxes) are identified and the subsequent intersection tracking is performed, without calculating all the boxes in the surface space, thus greatly reducing the amount of calculation of the operator and improving the processing efficiency of the operator. At the same time, in the above method, only the target box and the calculation result for the target box are stored in the register, which greatly reduces the storage space, reduces the hardware requirements for the register, and improves the storage efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0048] Figure 1 A flow chart of a method for tracing a curved surface intersection line according to an embodiment of the present invention is shown;

[0049] Figure 2 Schematic diagram showing three singular situations when surfaces intersect;

[0050] Figure 3 A schematic diagram showing the case where a ring has at least two points on the curve defined by Φ;

[0051] Figure 4 Decision trees for various sub-cases in the case of surface tangency are shown;

[0052] Figure 5 Shows the use of Figure 4 The schematic diagram of the classic situation of various sub-situations when two surfaces are tangent to each other using the decision tree shown;

[0053] Figure 6 Decision trees for various sub-cases under the surface singularity case are shown;

[0054] Figure 7 Shows the use of Figure 6 The schematic diagram of the classic situation of various sub-situations under the singular situation of the curved surface determined by the decision tree shown;

[0055] Figure 8 The decision trees for various sub-cases in the case of self-intersection of the surface are shown;

[0056] Fig. 9 Shows the use of Figure 8 The schematic diagram of the classic situation of various sub-situations under the self-intersection situation of the surface determined by the decision tree shown;

[0057] Fig.10A schematic diagram of a structure of a device for tracking surface intersection lines according to an embodiment of the present invention is shown;

[0058] Fig.11 A block diagram of an electronic device suitable for implementing a method for tracing a surface intersection line according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0059] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.

[0060] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0061] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0062] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0063] The method of the disclosed embodiment can be applied in the geometric entity modeling scenario. For example, in the process of modeling various types of complex surface entities such as mechanical component surface entities, human body part surface entities, and animation objects, it is often encountered that two surfaces intersect each other. Due to the complex geometric structure of the surface, the intersection situations are also various, and various types of singular situations will appear, such as surface singularity, surface tangency, isolated point micro-loops, self-intersection points, and even partial surface overlap. Conventional surface intersection algorithms do not take into account the topological conditions for various singular situations, and therefore cannot well complete the entity modeling of complex surface intersections in various scenarios, and the modeling accuracy is low. In addition, due to the complexity of the calculation, the conventional algorithm cannot complete the calculation with a small error in a short time, and even if a large amount of computing resources are consumed, the calculation results cannot be obtained at all.

[0064] In view of this, the present invention proposes a method for tracing surface intersection lines, which can track the intersection points in various singular situations during the modeling process, thereby generating surface intersection lines, thereby ensuring the topological properties of the calculated intersection lines.

[0065] Figure 1 A flow chart of a method for tracing surface intersection lines according to an embodiment of the present invention is shown.

[0066] like Figure 1 As shown, the method for tracing the surface intersection line of this embodiment includes operations S101 to S106.

[0067] In operation S101, in response to a control instruction generated by a controller, a four-dimensional space parameter curve associated with the first parametric surface and the second parametric surface is generated by an operator based on the control instruction according to a function model of the first parametric surface and a function model of the second parametric surface, and the four-dimensional space parameter curve is stored in a register.

[0068] Among them, the function model of the first parametric surface R1 is as follows (1):

[0069]

[0070] The function model of the second parametric surface R2 is as follows (2):

[0071]

[0072] Where (s, t)∈[0, 1]×[0, 1], (u, v)∈[0, 1]×[0, 1], s, t, u, v are independent parameter variables. The four-dimensional space parameter curve Ψ corresponding to these two parameter surfaces can be generated according to R1(s, t) and R2(u, v), as shown in the following formula (3):

[0073]

[0074] This is the curve in the calculated four-dimensional parameter space.

[0075] The curve where R1 and R2 intersect is defined as It can be regarded as a mapping of Ψ, which is the following equation (4) or (5).

[0076]

[0077]

[0078] Among them, π1: = (s, t, u, v) → (s, t), π2: = (s, t, u, v) → (u, v). Where V(Ψ) is the point set of Ψ in the 4D parameter space, and Ψ is used instead of V(Ψ) in the following description.

[0079] In operation S102, the operator divides the parameter space corresponding to the first parametric surface into a plurality of first surface boxes, and divides the parameter space corresponding to the second parametric surface into a plurality of second surface boxes based on the control instruction, so that the intersecting box among the plurality of first surface boxes and the plurality of second surface boxes is determined as the target box, and the target box is stored in the register.

[0080] Specifically, for the two rational parametric surfaces R1 and R2, we establish a bounding volume hierarchy (BVH) and obtain some boxes of the two subdivided surfaces. We put the intersecting target boxes on the two surfaces into the box set. This makes it easy to quickly check for intersections of surfaces, which can serve to limit the range of solutions and estimate the range of functions, and can be used to make interval subdivisions for solution isolation.

[0081] In operation S103, the four-dimensional space parameter curve is read from the register through the operator based on the control instruction, and a tangent vector function model for the four-dimensional space parameter curve is constructed, and the tangent vector function model is stored in the register.

[0082] In the process of intersection line tracking, the tangent vector of the curve is very important and plays an important role in determining the type of intersection. Below, the tangent vector of the four-dimensional space parameter curve Ψ is first calculated, and a tangent vector function model for the four-dimensional space parameter curve is constructed.

[0083] The Jacobian matrix of the four-dimensional space parameter curve Ψ is as follows (6):

[0084]

[0085] Then Ψ in p∈[0,1] 4 The tangent vector at is:

[0086]

[0087] Here It's J Ψ Remove the determinant of the i-th column.

[0088] As shown in the above formula (7), the tangent vector function model includes the first component vector function model Second component vector function model The third vector function model The fourth vector function model

[0089] Figure 2 Schematic diagram showing three singular situations when surfaces intersect.

[0090] like Figure 2 As shown, the three singular cases in the case of surface intersection include surface singularity (reference Figure 2 As shown in Figure (1), the surface is tangent (reference Figure 2 (2)), the case where the surface intersects itself (refer to Figure 2 (as shown in Figure (3)).

[0091] Based on this, by establishing the discrimination conditions, the boxes associated with these three situations are preliminarily distinguished.

[0092] Specifically, in operation S104, the operator reads the tangent vector function model from the register based on the control instruction, and establishes the first judgment condition and the second judgment condition based on the tangent vector function model, so that the target box that meets the first judgment condition is marked as the first category box C1, the target box that meets the second judgment condition is marked as the second category box C2, and the target boxes other than the first category boxes and the second category boxes are temporarily marked as the zeroth category box C0.

[0093] Among them, the first type of box C1 is associated with a singular surface situation, the second type of box C2 is associated with a tangent surface situation, and the zeroth type of box C0 is associated with a self-intersection surface situation and a regular surface situation. It should be noted that here, the target boxes intersecting on the two surfaces are initially classified, and the box categories are temporarily marked. It does not mean that all the first type of boxes C1 are singular surface boxes, it does not mean that all the second type of boxes C2 are tangent surface boxes, and it does not mean that all the zeroth type of boxes C0 are self-intersection or regular intersection surface boxes. Which type of box it corresponds to, the following embodiments of the present invention will further subdivide the above-mentioned initially classified boxes to describe the situation.

[0094] In operation S105, a plurality of tracking points in the first type box, the second type box, and the zeroth type box are generated respectively by the operator based on the control instruction, and the plurality of tracking points are connected to generate an intersection line of the first parametric surface and the second parametric surface.

[0095] According to the embodiments of the present disclosure, after the previous processing, the boxes with multiple singular situations are also subdivided into boxes with only a single situation. It is only necessary to connect the tracked points, and B-splines can be used when necessary.

[0096] In operation S106 , an intersection line between the first parametric surface and the second parametric surface is displayed through a display unit.

[0097] According to an embodiment of the present invention, the intersection of parametric surfaces in a small area even has many different branches. How to distinguish, isolate, and calculate all these solutions is a basic and challenging problem. In numerical implementation, these topological situations are very approximate, which inevitably causes numerical errors caused by floating-point calculations. Conventional surface intersection algorithms are based on either numerical calculations or symbolic calculations. However, these methods have certain limitations for singular points, implicit surfaces or surfaces, or lack theoretical basis, or are seriously inefficient. In conventional algorithms for calculating intersection lines, when encountering surface singularities, tangency, and self-intersections, it is easy for the calculated intersection lines to fail to maintain their topological properties and to build accurate solid geometry models. Usually, the singular situations encountered are the above three or a mixture of them, which increases the complexity of surface intersection.

[0098] The above-mentioned method of tracing the intersection of surfaces of the present invention obtains topological correctness by establishing a mixed symbolic-digital framework, and in the case of mixing, by establishing the first judgment condition and the second judgment condition based on the tangent vector function model, the space box is distinguished, and various mixed situations can be simplified into a single situation by distinguishing various singular situations, so that all singular situations can be found in turn, and the intersection points in various singular situations can be tracked in the modeling process, so as to generate surface intersection lines, thereby ensuring the topological properties of the calculated intersection lines and improving the accuracy of geometric modeling. The above-mentioned method can be used in various situations of complex surface intersection modeling, and has high practical application value in the fields of mechanical engineering modeling, finite element discretization, computer animation modeling, facial recognition, etc.

[0099] In the method for tracing the intersection of surfaces of the present invention, during the calculation process, the parameter space corresponding to the first parameter surface and the parameter space corresponding to the second parameter surface are divided into multiple small boxes (calculation areas) through the operator, and the global calculation is converted into a local calculation. Therefore, the parallel calculation of multiple local calculations can be realized in the operator. Furthermore, due to the use of parallel calculation, multiple threads on the register can execute the calculation tasks synchronously. In the process of solving the problem, the operator improves the calculation speed and obtains the calculation results in a shorter time. At the same time, due to the use of the local calculation method, the large calculation area is divided into multiple small calculation areas. In the small calculation area, the function system is relatively simple, and the requirements for hardware such as computer registers and operators are also relatively low. While improving the calculation speed, it also reduces the hardware cost.

[0100] Furthermore, in the calculation process of the operator, by determining the intersecting boxes among the multiple first curved surface boxes and the multiple second curved surface boxes as target boxes, only a small number of boxes (intersecting target boxes) are identified and the subsequent intersection tracking is performed, without calculating all the boxes in the surface space, thus greatly reducing the amount of calculation of the operator and improving the processing efficiency of the operator. At the same time, in the above method, only the target box and the calculation result for the target box are stored in the register, which greatly reduces the storage space, reduces the hardware requirements for the register, and improves the storage efficiency.

[0101] According to an embodiment of the present invention, the first parametric surface and the second parametric surface are parametric surfaces based on multiple types of surface entities and established according to a predetermined drawing scale. The multiple types of surface entities include, for example: mechanical element surface entities, human body part surface entities, animation object surface entities, etc.

[0102] For example, in the mechanical engineering modeling scenario, the exterior components of the automobile body need to be modeled. Since it is impossible to directly manufacture a single body surface in modern industrial production, each surface must be processed separately, and then these surface components are spliced ​​to form a complete body. The body appearance components include, for example, the hood, front skirt, rear skirt, front and rear fenders, etc. Each component is a separate surface, and the body styling design can be regarded as splitting the entire body into different surface combinations.

[0103] Based on this, in the process of modeling the appearance components of the automobile body, the above-mentioned body appearance components (such as the hood, front skirt, rear skirt, front and rear fenders, etc.) are converted into parametric surfaces (rational B-spline surfaces) in this application respectively. Then, the modeling of the body is a process of intersecting multiple parametric surfaces. It is necessary to calculate the intersection lines of two adjacent parametric surfaces respectively. For example, the first parametric surface corresponds to the hood surface entity, and the second parametric surface corresponds to the front skirt surface entity. According to the method of tracing the surface intersection line in the embodiment of the present invention, the intersection lines of the first parametric surface and the second parametric surface are calculated. After the intersection, the splicing modeling of the hood surface entity and the front skirt surface entity is realized; for example, the first parametric surface corresponds to the front skirt surface entity, and the second parametric surface corresponds to the front fender surface entity. After the intersection line of the first parametric surface and the second parametric surface is calculated according to the method of tracing the surface intersection line of the embodiment of the present invention, the splicing modeling of the front skirt surface entity and the front fender surface entity is realized; in this way, after calculating the intersection lines of all adjacent parametric surfaces, the surfaces corresponding to all surface components are spliced ​​and combined into a complete body model, thereby completing the modeling of the body.

[0104] According to an embodiment of the present invention, as shown in the above formula (7), the tangent vector function model includes a first component vector function model Second component vector function model The third vector function model The fourth vector function model

[0105] Further, in operation S104, establishing the first determination condition and the second determination condition based on the tangent vector function model may include:

[0106] First, based on the control instruction, the target box is input into the tangent vector function model through the operator, the target solution set is output, and the target solution set is stored in the register; wherein, the target solution set output by the tangent vector function model includes: a first solution set output by the first component vector function model, a second solution set output by the second component vector function model, a third solution set output by the third component vector function model, and a fourth solution set output by the fourth component vector function model.

[0107] Afterwards, the target solution set is read from the register through the operator based on the control instruction, and the first judgment condition and the second judgment condition are established by using the target solution set related to the tangent vector function model.

[0108] Furthermore, the first determination condition is: there is a zero solution in the intersection of the first solution set and the second solution set, or there is a zero solution in the intersection of the third solution set and the fourth solution set.

[0109] The second determination condition is: there is a zero solution in the intersection of the first solution set, the second solution set, the third solution set, and the fourth solution set.

[0110] The following is an explanation of the theoretical basis for establishing the above judgment conditions:

[0111] After algebraic analysis of the four-dimensional space parameter curve Ψ, the intersection of R1 and R2 The description of the singular cases in the three-dimensional parameter space is shown in the following equations (8), (9), and (10):

[0112] The case of strange surfaces:

[0113]

[0114] or

[0115] When the surfaces are tangent:

[0116]

[0117] When a surface intersects itself:

[0118]

[0119] The remaining cases are called regular cases and are denoted by C0.

[0120] The description of the singular situation of the intersection line C in the three-dimensional parameter space is described in the language of the four-dimensional parameter space to obtain the following equations (11) and (12), which correspond to the situations of C1 and C2 respectively.

[0121] That is, the first judgment condition is established as:

[0122]

[0123] That is, the first solution set and the second solution set There is a zero solution in the intersection of And the fourth solution set There is a zero solution in the intersection of .

[0124] The second judgment condition is established as:

[0125]

[0126] That is, in the first solution set The second solution set The third solution set The fourth solution There is a zero solution in the intersection of .

[0127] Here, the cases of C1 and C2 are described first, and the relationship between the case of C3 and the tangent vector is described in detail in the following embodiments.

[0128] Furthermore, in the process of verification, the existence and uniqueness of the zero solution are involved. The numerical algorithm for solving the zero solution adopted in the embodiment of the present disclosure is introduced below.

[0129] For example, the modified Newton algorithm can be used, which is suitable for overdetermined systems or equations with multiple zeros. This algorithm can find the system Δ in the box. The algorithm returns: an empty set, or a finite zero-dimensional solution, or a one-dimensional curve solution, or a two-dimensional surface. The algorithm is as follows:

[0130] (1) Using the gradient method on Δ can get a better initial point p.

[0131] (2) Apply Newton's method to Δ at point p.

[0132] (2.1) If Newton's method converges to At a point outside, output Φ.

[0133] (2.2) If Newton's method converges to For a point q in , output q.

[0134] (2.3) If Newton’s method fails because the matrix is ​​not invertible, then add a random hyperplane called L, pass the current point to the system Δ, and calculate the new system Δ∩{L}.

[0135] (2.3.1) If Δ∩{L} is There is no solution in Δ. There are solutions with high multiplicity in . We check the solution by deflation method, which will output an empty set or a solution.

[0136] (2.3.2) If Δ∩{L} is There is a solution in There is a curve in . If Newton's method fails for the system Δ∩{L} again because the matrix is ​​not invertible, repeat the above operation.

[0137] The goal of the improved Newton algorithm is to find a solution, but it is impossible to determine whether there is only one solution, and the solution may be missed. Therefore, the Newton interval algorithm can be combined to ensure the uniqueness of the solution of each box calculated, so that the solution will not be missed. The specific method is as follows:

[0138] (1) Use Newton's algorithm to solve the system Δ, there is no solution, and output Φ;

[0139] (2) Use the Newton interval algorithm to check whether it contains only one solution to Δ. If so, output the solution.

[0140] (3) Recursively subdivide and use the interval Newton method to check the subboxes to ensure that there is only one solution or no solution in the relevant subboxes (if necessary, the deflation method can be used), and output all solutions.

[0141] Based on this, the target box can be Check whether there is a zero solution in the function system corresponding to the first judgment condition and the second judgment condition, so as to mark the target box. The target box that meets the first judgment condition is marked as the first type box C1, the target box that meets the second judgment condition is marked as the second type box C2, and the target boxes other than the first type box and the second type box are temporarily marked as the zeroth type box C0.

[0142] According to an embodiment of the present invention, the Newton algorithm can be used to check the existence of a solution, and the interval Newton algorithm can be used to check the uniqueness of a solution. If too many zeros appear in the process of solving the system of equations, a deflation algorithm can be used.

[0143] According to an embodiment of the present invention, further, in the process of calculating and tracing, a stepping method can be used. In this way, robustness is ensured by subdivision, calculation efficiency is ensured by the stepping method, and topological accuracy is ensured by the topological analysis method.

[0144] According to an embodiment of the present invention, based on this, in operation S105, generating a plurality of tracking points in the first type box, the second type box, and the zeroth type box respectively includes the following operations.

[0145] Among them, for the second type of box C2, since there is a surface tangency situation associated with it, and the tangency situation is too complicated, the tangency situation is processed first, and the numerical processing is carried out using Newton's algorithm, Newton's interval algorithm and deflation algorithm.

[0146] For the second type of box C2, its topological properties are judged, and branches are tracked according to different sub-situations to generate multiple second tracking points of different types. The multiple second tracking points of different types include at least: the tangent point when the first parametric surface and the second parametric surface are tangent at a point, the tangent point when the first parametric surface and the second parametric surface are tangent to a curve, the tangent point when the first parametric surface and the second parametric surface coincide with each other, the tangent point when the first parametric surface and the second parametric surface are tangent at an isolated tangent point, and the tangent point when the first parametric surface and the second parametric surface are tangent to a minimal ring.

[0147] Among them, the box marked as the zeroth type C0 is associated with the surface self-intersection case and the regular case. First, tracking can be performed to generate multiple zero-type tracking points by tracking the zeroth type box. The zero-type tracking points are regular intersection points when the first parametric surface or the second parametric surface intersects regularly.

[0148] In this operation, it is necessary to track the regular situation. In order to avoid finding multiple tracking initial points and spending too much energy on calculating multiple initial points, we can start from one point and track the intersection line from the point on the boundary of the initial box. All boxes are tracked, and the initial point on the boundary is selected using the interval Newton algorithm to avoid omissions.

[0149] Among them, the first type of box C1 is associated with a surface singularity situation, which is classified, and branches are tracked according to different sub-situations. Multiple different types of first tracking points are generated for the first type of box. This operation is to perform topological analysis and track branches in the entire initial interval. Among them, multiple different types of first tracking points at least include: a finite number of singular points existing on the first parametric surface or the second parametric surface, and singular points on the singular curve existing on the first parametric surface or the second parametric surface.

[0150] Among them, for the case of self-intersection of the surface, finally to check this situation and perform tracking branching and topological analysis, it is necessary to determine the third type of box from the zeroth type of box so that multiple third tracking points are generated for the third type of box. The third tracking point is the self-intersection point of the first parametric surface or the second parametric surface.

[0151] According to an embodiment of the present invention, for the case where the curved surface is tangent, generating a plurality of second tracking points of different types based on the second type of box C2 includes:

[0152] Firstly, a second discriminant function system is constructed according to the tangent vector function model and the four-dimensional space parameter curve. Then, according to the number of solutions of the second discriminant function system, the second type of box is subdivided to generate a plurality of second tracking points of different types according to the subdivided second type of box.

[0153] For tangency, there are two sub-cases: the normal tangency case (including tangency points, curve tangency lines, and coincident surfaces), and the special case (including isolated tangency points and minimal rings). Figure 3 A schematic diagram showing the case where a ring has at least two points on the curve defined by Φ.

[0154] Below, the topological properties of the normal tangent situation are analyzed first, so there will be different sub-situations. For this situation, the following formula (13) is satisfied:

[0155]

[0156] Then, the second discriminant function system constructed according to the tangent vector function model and the four-dimensional space parameter curve is as follows (14):

[0157]

[0158] Then, according to the second discriminant function system The number of solutions is used to subdivide the second type of boxes and determine the type of boxes. The specific criteria are as follows:

[0159] The function system has no solution. The corresponding situation of this type of box is: the two surfaces are are separated or intersect the regular curve.

[0160] The function system has a finite number of solutions. The corresponding situation of this type of box is: the two surfaces are are tangent at some individual points.

[0161] The function system has infinite solutions. The corresponding situation of this type of box is: the two surfaces are They are tangent along the singular curve or partially overlap.

[0162] Figure 4 Decision trees for various sub-cases of the surface tangency case are shown. Figure 5 Shows the use of Figure 4 Schematic diagram of the classic situation of various sub-situations when two surfaces are tangent, using the decision tree shown.

[0163] like Figure 4 , Figure 5 The figure shows the sub-situations of classification based on the second discriminant function system shown in formula (14) and further subdividing, where L and L1 are randomly selected hyperplanes, and a new sub-function system is established by combining random hyperplanes, and further subdividing and discriminating according to the number of solutions of the sub-function system. Figure 5 The value of “#(x)” in the equation represents the number of solutions of the system x in the brackets.

[0164] According to the embodiments of the present invention, for special tangent situations (including isolated tangent points and minimal rings), the above method cannot be used to solve them. This is because the special isolated situation may coexist with other singular points / curves. These singular points / curves are all described as solutions to the same function system, but it is difficult to separate them. For special situations, use The subsystem Φ of , will establish a regular system. There is the following lemma:

[0165] Let p be an isolated tangent point on the intersection line Ψ that satisfies the system {Φ1, Φ2, Φ3, Φ4}, with Φ1≠Φ2∈Ψ, Φ3≠Φ4∈T Ψ , then p is on the regular curve that satisfies the following system as follows (15):

[0166] Φ={Φ1, Φ2, Φ3|Φ1, Φ2∈Ψ, Φ3∈T Ψ} (15)

[0167] Furthermore, any closed loop must have two points on the regular curve Φ.

[0168] Then according to the lemma, the singular case is transformed into the regular case Φ, and then the randomly generated hyperplane L can be used to intersect Φ to distinguish isolated singular points from rings.

[0169] For subdivision methods in special tangency cases, refer to Figure 4 The decision tree nodes in the second row involve the description in brackets. For example, among the four nodes in the first column on the left, the description in brackets in the second row of the second node in the first column It represents the second discriminant function system When there is no solution, further establish a subfunction system for special cases The description in brackets in the second row of the third node in the first column represents this system The number of solutions is finite; the description in the brackets of the second row of the fourth node in the first column represents the system When the number of solutions is finite, this type of box corresponds to a minimal ring under the special tangency case.

[0170] In this way, according to the above method, the normal tangent situation and the box in the special situation under the tangent situation are subdivided, and the box obtained after the subdivision is marked as C2.

[0171] According to an embodiment of the present invention, for a singular curved surface situation, generating a plurality of first tracking points of different types for a first type of box C1 comprises:

[0172] First, a subfunction system is constructed for the first parametric surface R1 (s, t) or the second parametric surface R2 (u, v).

[0173] Here, R1(s, t) is taken as an example for explanation (R2(u, v) adopts a similar method and will not be repeated here), and a subfunction system ∑1(s, t) is defined for it, as shown in the following formula (16):

[0174]

[0175] Afterwards, the first discriminant function system is constructed based on the subfunction system and the four-dimensional space parameter curve The singular case of the surface can be called a cusp or a curve, so the subcase of C1 on the intersection line can have the following system In the 4D box The solution is determined by the first discriminant function system The expression of is shown in the following formula (17).

[0176]

[0177] Then, according to the first discriminant function system The first type of box is subdivided to determine the type of box, so as to generate multiple first tracking points of different types according to the subdivided first type of box. The specific judgment criteria are as follows:

[0178] The function system has no solution. The corresponding situation for this type of box is: there is no C1 type singular point or singular curve on R1(s, t) on the intersection line.

[0179] The function system has a finite number of solutions, and the corresponding situation for this type of box is that there are a finite number of singular points on the intersection line on R1(s, t).

[0180] The function system has infinite solutions, and the corresponding situation for this type of box is: there is a singular curve on R1(s, t) on the intersection line.

[0181] Generally speaking, if It is true And if are all equal to zero, then it is possible that T Ψ =0, it can be solved by Newton algorithm and interval Newton algorithm.

[0182] Figure 6 Decision trees for various sub-cases under the surface singularity case are shown; Figure 7 Shows the use of Figure 6 The following is a diagram of the classic situation of various sub-situations under the singular situation of the curved surface determined by the decision tree. Figure 6 , Figure 7 The figure shows the first discriminant function system The number of solutions is to subdivide the first type of box and further subdivide the subcases in the entire domain [0, 1] 4 The singular cases are calculated in , where L is a randomly selected hyperplane. A new subfunction system is established by combining the random hyperplanes, and further subdivision and judgment are performed according to the number of solutions of the subfunction system. All the singular cases are calculated, and finally the resulting box is marked as C1.

[0183] According to an embodiment of the present invention, the box C0 marked as the zeroth type may be associated with a surface self-intersection situation and a regular situation. For the box in the regular situation, in the aforementioned embodiment, the box C0 marked as the zeroth type is first tracked and then the regular intersection is tracked.

[0184] For the case of self-intersection of the surface, the case is finally checked, and the tracking branch and topological analysis are performed. It is necessary to determine the third type of box C3 from the zeroth type of box C0 so that multiple third tracking points (self-intersection points) are generated for the third type of box. Specifically, it can be determined whether the box belongs to the self-intersection case first. If so, it is further classified and the tracking branch is performed according to different sub-cases.

[0185] The cases of determining the third type of box from the zeroth type of box, that is, judging whether the box is self-intersecting, include:

[0186] First, a third judgment condition is established based on the tangent vector function model, wherein the third judgment condition is: satisfying at least one of the first sub-condition, the second sub-condition, the third sub-condition, and the fourth sub-condition; the first sub-condition is: there is no zero solution in the first solution set, and there is no zero solution in the third solution set; the second sub-condition is: there is no zero solution in the first solution set, and there is no zero solution in the fourth solution set; the third sub-condition is: there is no zero solution in the second solution set, and there is no zero solution in the third solution set; the fourth sub-condition is: there is no zero solution in the second solution set, and there is no zero solution in the fourth solution set;

[0187] Afterwards, the zeroth-category box that meets the third determination condition is determined as an exclusion box, and the boxes in the zeroth-category box except the exclusion box and the regular box are determined as third-category boxes, where the regular box is the box corresponding to the zero-category tracking point.

[0188] According to an embodiment of the present invention, the self-intersection is regarded as mapping two or more points on the four-dimensional space parameter curve to the same point on the intersection line in the three-dimensional space. Here, R1(s, t) is taken as an example for explanation (R2(u, v) adopts a similar method and is not repeated here). Assuming that R1(s, t) is a self-intersecting surface, a function system shown in the following formula (18) is established:

[0189] Δ B (s, t, p, q, u, v) = {R1 (s, t) = R1 (p, q) = R2 (u, v),

[0190]

[0191] in,

[0192] In order to better determine the self-intersection situation, the following Theorem 1 gives a regularity test condition to determine the given box By a one-to-one correspondence point in the box

[0193] Theorem 1: Given two parametric surfaces R1(s, t) and R2(u, v), their intersection Ψ, an interval box The tangent vector is Two points Then we have: Mapping to the point on the intersection line If the box The third determination condition based on the tangent vector function model is satisfied, that is, at least one of the following sub-conditions is satisfied:

[0194] First sub-condition: and The first solution set There is no zero solution in , and the third solution set There is no zero solution in ;

[0195] Second sub-condition: and The first solution set There is no zero solution in , and the fourth solution set There is no zero solution in ;

[0196] The third sub-condition: and The second solution set There is no zero solution in , and the third solution set There is no zero solution in ;

[0197] The fourth sub-condition: and The second solution set There is no zero solution in , and the fourth solution set There is no zero solution.

[0198] The following inferences can be drawn:

[0199] Assume a four-dimensional parametric curve Ψ and a box boundary There are two intersection points, and no There is zero solution in On. Then we have:

[0200] (1) The four-dimensional space parameter curve Ψ has a unique connected curve segment in the box. middle;

[0201] (2) When projected into 3D, the only curve segment is in the box and have no corresponding self-intersection points.

[0202] In this way, through the above method, the zeroth class box that meets the third judgment condition can be determined as an exclusion box (not belonging to the self-intersection case), and through the reverse method, the boxes in the zeroth class box except the exclusion box and the regular box (zero-class tracking point, that is, the box corresponding to the regular point) are determined as third-class boxes.

[0203] Furthermore, for a box containing a point in a four-dimensional curve, after determining that it belongs to the self-intersection case, it is further classified and branches are tracked according to different sub-cases.

[0204] Figure 8 The decision trees for various sub-cases in the case of self-intersection of the surface are shown; Fig. 9 Shows the use of Figure 8 Schematic diagram of the classic situation of various sub-situations under the self-intersection situation of the surface determined by the decision tree shown.

[0205] like Figure 8 , Fig. 9 The figure shows a further subdivision of the sub-case. For the box belonging to the self-intersection case, similarly, the function system Δ shown in formula (18) can be used. B The sub-situations are classified according to the number of solutions, where L is a randomly generated hyperplane, where L is a randomly selected hyperplane, and a new sub-function system is established by combining random hyperplanes. According to the number of solutions of the sub-function system, further subdivision and judgment are performed, all self-intersection situations are calculated, and finally the resulting box is marked as C3.

[0206] Based on the above method for tracking the intersection of curved surfaces, the present invention also provides a device for tracking the intersection of curved surfaces. Fig.10 The device is described in detail.

[0207] Fig.10 The structure block diagram of the device for tracking the intersection line of a curved surface according to an embodiment of the present invention is schematically shown.

[0208] like Fig.10 As shown, the device 1000 for tracing the intersection of surfaces in this embodiment includes a first generating module 1001 , a dividing module 1002 , a building module 1003 , a marking module 1004 , a second generating module 1005 , and a display module 1006 .

[0209] The first generating module 1001 is used to generate a four-dimensional space parameter curve associated with the first parameter surface and the second parameter surface according to the function model of the first parameter surface and the function model of the second parameter surface based on the control instruction by the operator in response to the control instruction generated by the controller, and store the four-dimensional space parameter curve in the register;

[0210] A division module 1002 is used to divide the parameter space corresponding to the first parameter surface into a plurality of first surface boxes and divide the parameter space corresponding to the second parameter surface into a plurality of second surface boxes based on the control instruction through the operator, so that the intersecting box among the plurality of first surface boxes and the plurality of second surface boxes is determined as a target box, and the target box is stored in a register;

[0211] A construction module 1003 is used to read the four-dimensional space parameter curve from the register based on the control instruction through the operator, and to construct a tangent vector function model for the four-dimensional space parameter curve, and store the tangent vector function model in the register;

[0212] The marking module 1004 is used to read the tangent vector function model from the register based on the control instruction through the operator, and establish the first judgment condition and the second judgment condition based on the tangent vector function model, so that the target box that meets the first judgment condition is marked as a first-class box, the target box that meets the second judgment condition is marked as a second-class box, and the target boxes other than the first-class boxes and the second-class boxes in the target boxes are marked as zero-class boxes;

[0213] The second generation module 1005 is used to generate a plurality of tracking points in the first type of box, the second type of box, and the zeroth type of box respectively based on the control instruction through the operator, and connect the plurality of tracking points to generate an intersection line of the first parametric surface and the second parametric surface;

[0214] The display module 1006 is used to display the intersection line of the first parametric surface and the second parametric surface through a display unit.

[0215] According to an embodiment of the present invention, any multiple modules among the first generation module 1001, the division module 1002, the construction module 1003, the marking module 1004, the second generation module 1005, and the display module 1006 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first generation module 1001, the division module 1002, the construction module 1003, the marking module 1004, the second generation module 1005, and the display module 1006 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware or in a proper combination of any of them. Alternatively, at least one of the first generation module 1001, the division module 1002, the construction module 1003, the marking module 1004, the second generation module 1005, and the display module 1006 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be performed.

[0216] Fig.11A block diagram of an electronic device suitable for implementing a method for tracing a surface intersection line according to an embodiment of the present invention is schematically shown.

[0217] like Fig.11 As shown, the electronic device 1100 according to an embodiment of the present invention includes a processor 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. The processor 1101 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1101 may also include an onboard memory for caching purposes. The processor 1101 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.

[0218] In RAM 1103, various programs and data required for the operation of electronic device 1100 are stored. Processor 1101, ROM 1102 and RAM 1103 are connected to each other via bus 1104. Processor 1101 performs various operations of the method flow according to the embodiment of the present invention by executing the program in ROM 1102 and / or RAM 1103. It should be noted that the program can also be stored in one or more memories other than ROM 1102 and RAM 1103. Processor 1101 can also perform various operations of the method flow according to the embodiment of the present invention by executing the program stored in the one or more memories.

[0219] According to an embodiment of the present invention, the electronic device 1100 may further include an input / output (I / O) interface 1105, which is also connected to the bus 1104. The electronic device 1100 may further include one or more of the following components connected to the input / output (I / O) interface 1105: an input portion 1106 including a keyboard, a mouse, etc.; an output portion 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1108 including a hard disk, etc.; and a communication portion 1109 including a network interface card such as a LAN card, a modem, etc. The communication portion 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the input / output (I / O) interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage portion 1108 as needed.

[0220] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.

[0221] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 1102 and / or RAM 1103 described above and / or one or more memories other than ROM 1102 and RAM 1103.

[0222] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method for tracing surface intersection lines provided in the embodiment of the present invention.

[0223] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when it is executed by the processor 1101. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0224] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1109, and / or installed from a removable medium 1111. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0225] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the processor 1101, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0226] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages, specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, such as Java, C++, python, "C" language or similar programming languages. The program code can be executed completely on the user computing device, partially on the user device, partially on the remote computing device, or completely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0227] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0228] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways, even if such combinations and / or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All of these combinations and / or combinations fall within the scope of the present invention.

[0229] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination. The scope of the present invention is defined by the attached claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.

Claims

1. A method for tracking a surface intersection line performed by an electronic device, include: In response to a control instruction generated by the controller, a four-dimensional space parameter curve associated with the first parametric surface and the second parametric surface is generated by a computing unit based on the control instruction according to a function model of the first parametric surface and a function model of the second parametric surface, and the four-dimensional space parameter curve is stored in a register; Among them, the first parametric surface R 1 The function model is as follows: The second parametric surface R 2 The function model is as follows: Where (s, t)∈[0,1]×[0,1], (u, v)∈[0,1]×[0,1], s, t, u, v are independent parameter variables, according to R 1 (s,t) and R 2 (u, v) generates a four-dimensional space parametric curve Ψ associated with the first parametric surface and the second parametric surface, as follows: Based on the control instruction, the operator divides the parameter space corresponding to the first parametric surface into a plurality of first curved surface boxes, and divides the parameter space corresponding to the second parametric surface into a plurality of second curved surface boxes, so that a box intersecting among the plurality of first curved surface boxes and the plurality of second curved surface boxes is determined as a target box, and the target box is stored in a register; Based on the control instruction, the operator reads the four-dimensional space parameter curve from the register, constructs a tangent vector function model for the four-dimensional space parameter curve, and stores the tangent vector function model in the register; The tangent vector function model is read from the register by the operator based on the control instruction, and a first judgment condition and a second judgment condition are established based on the tangent vector function model, so that the target box that meets the first judgment condition is marked as a first type of box, the target box that meets the second judgment condition is marked as a second type of box, and the target boxes other than the first type of boxes and the second type of boxes in the target boxes are marked as zeroth type of boxes; wherein establishing the first judgment condition and the second judgment condition based on the tangent vector function model comprises: inputting the target box into the tangent vector function model based on the control instruction by the operator, outputting a target solution set, and storing the target solution set in a register; reading the target solution set from the register by the operator based on the control instruction, and using the target solution set with the tangent vector function model to determine the target box; The target solution set related to the tangent vector function model establishes a first judgment condition and a second judgment condition; wherein: the tangent vector function model includes a first component vector function model, a second component vector function model, a third component vector function model, and a fourth component vector function model; the target solution set output by the tangent vector function model includes: a first solution set output by the first component vector function model, a second solution set output by the second component vector function model, a third solution set output by the third component vector function model, and a fourth solution set output by the fourth component vector function model: the first judgment condition is: there is a zero solution in the intersection of the first solution set and the second solution set, or there is a zero solution in the intersection of the third solution set and the fourth solution set; the second judgment condition is: there is a zero solution in the intersection of the first solution set, the second solution set, the third solution set, and the fourth solution set; Generate, by a computing unit based on the control instruction, a plurality of tracking points in the first type of box, the second type of box, and the zeroth type of box, respectively, and connect the plurality of tracking points to generate an intersection line of the first parametric surface and the second parametric surface; The intersection line of the first parametric surface and the second parametric surface is displayed through a display unit.

2. The method according to claim 1, The first parametric surface and the second parametric surface are parametric surfaces based on multiple types of surface entities and established according to a predetermined drawing scale, and the multiple types of surface entities have at least include: Surface entities of mechanical components, surface entities of human body parts, and surface entities of animation objects.

3. The method according to claim 1, generating a plurality of tracking points in the first type box, the second type box, and the zeroth type box respectively include: Generate a plurality of second tracking points of different types for the second type of box, the plurality of second tracking points of different types at least comprising: a tangent point when the first parametric surface and the second parametric surface are tangent at a point, a tangent point when the first parametric surface and the second parametric surface are tangent to a curve, a tangent point when the first parametric surface and the second parametric surface coincide with each other, a tangent point when the first parametric surface and the second parametric surface are tangent at an isolated tangent point, and a tangent point when the first parametric surface and the second parametric surface are tangent to a minimal ring; Generating a plurality of zero-type tracking points by tracking the zero-type box, wherein the zero-type tracking points are regular intersection points when the first parametric surface or the second parametric surface regularly intersects; Generate a plurality of first tracking points of different types for the first type of box, wherein the plurality of first tracking points of different types at least include: a finite number of singular points existing on the first parametric surface or the second parametric surface, and singular points on a singular curve existing on the first parametric surface or the second parametric surface; A third type of box is determined from the zeroth type of boxes, so that a plurality of third tracking points are generated for the third type of boxes, and the third tracking points are self-intersection points of the first parametric surface or the second parametric surface.

4. The method according to claim 3, in, Generating a plurality of second tracking points of different types for the second type of boxes includes: Constructing a second discriminant function system according to the tangent vector function model and the four-dimensional space parameter curve; According to the number of solutions of the second discriminant function system, the second type of box is subdivided to generate a plurality of second tracking points of different types according to the subdivided second type of box.

5. The method according to claim 3, in, Generating a plurality of first tracking points of different types for the first type of boxes includes: Constructing a subfunction system for the first parametric surface or the second parametric surface; Constructing a first discriminant function system according to the sub-function system and the four-dimensional space parameter curve; The first type of box is subdivided according to the number of solutions of the first discriminant function system, so as to generate a plurality of first tracking points of different types according to the subdivided first type of box.

6. The method according to claim 3, in, Determining a third type of box from the zeroth type of box comprises: A third determination condition is established based on the tangent vector function model, wherein the third determination condition is: satisfying at least one of the first sub-condition, the second sub-condition, the third sub-condition, and the fourth sub-condition; the first sub-condition is: there is no zero solution in the first solution set, and there is no zero solution in the third solution set; the second sub-condition is: there is no zero solution in the first solution set, and there is no zero solution in the fourth solution set; the third sub-condition is: there is no zero solution in the second solution set, and there is no zero solution in the third solution set; the fourth sub-condition is: there is no zero solution in the second solution set, and there is no zero solution in the fourth solution set; The zeroth-category box satisfying the third determination condition is determined as an exclusion box, and the boxes in the zeroth-category box except the exclusion box and the regular box are determined as third-category boxes, wherein the regular box is the box corresponding to the zero-category tracking point.

7. A device for tracking the intersection of curved surfaces, include: A first generating module is used for generating, in response to a control instruction generated by the controller, a four-dimensional space parameter curve associated with the first parameter surface and the second parameter surface according to a function model of the first parameter surface and a function model of the second parameter surface based on the control instruction by a computing unit, and storing the four-dimensional space parameter curve in a register; Among them, the first parametric surface R 1 The function model is as follows: The second parametric surface R 2 The function model is as follows: Where (s, t)∈[0,1]×[0,1], (u, v)∈[0,1]×[0,1], s, t, u, v are independent parameter variables, according to R 1 (s,t) and R 2 (u, v) generates a four-dimensional space parametric curve Ψ associated with the first parametric surface and the second parametric surface, as follows: a partitioning module, configured to partition the parameter space corresponding to the first parameter surface into a plurality of first surface boxes and the parameter space corresponding to the second parameter surface into a plurality of second surface boxes based on the control instruction through a computing unit, so that a box intersecting among the plurality of first surface boxes and the plurality of second surface boxes is determined as a target box, and the target box is stored in a register; A construction module, configured to read the four-dimensional space parameter curve from the register based on the control instruction through an operator, construct a tangent vector function model for the four-dimensional space parameter curve, and store the tangent vector function model in the register; A marking module, used for reading the tangent vector function model from the register based on the control instruction through an operator, and establishing a first judgment condition and a second judgment condition based on the tangent vector function model, so that the target box that meets the first judgment condition is marked as a first type of box, the target box that meets the second judgment condition is marked as a second type of box, and the target boxes other than the first type of box and the second type of box in the target box are marked as zeroth type of boxes; wherein establishing the first judgment condition and the second judgment condition based on the tangent vector function model includes: inputting the target box into the tangent vector function model based on the control instruction through the operator, outputting a target solution set, and storing the target solution set in a register; reading the target solution set from the register based on the control instruction through the operator, and using A first judgment condition and a second judgment condition are established for a target solution set related to the tangent vector function model; wherein: the tangent vector function model includes a first component vector function model, a second component vector function model, a third component vector function model, and a fourth component vector function model; the target solution set output by the tangent vector function model includes: a first solution set output by the first component vector function model, a second solution set output by the second component vector function model, a third solution set output by the third component vector function model, and a fourth solution set output by the fourth component vector function model: the first judgment condition is: there is a zero solution in the intersection of the first solution set and the second solution set, or there is a zero solution in the intersection of the third solution set and the fourth solution set; the second judgment condition is: there is a zero solution in the intersection of the first solution set, the second solution set, the third solution set, and the fourth solution set; A second generating module, configured to generate, through a computing unit and based on the control instruction, a plurality of tracking points in the first type of box, the second type of box, and the zeroth type of box, respectively, and connect the plurality of tracking points to generate an intersection line of the first parametric surface and the second parametric surface; A display module is used to display the intersection line of the first parametric surface and the second parametric surface through a display unit.

8. An electronic device, include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 6.