A method and device for determining a curved surface contour line

Through the initial division of the surface parameter domain and the judgment of the normal cone, the grid resolution is dynamically adjusted, which solves the problem of difficulty in balancing the calculation accuracy and efficiency of the surface contour determination method in the existing technology, and achieves efficient and accurate surface contours. Sure.

CN117611767BActive Publication Date: 2024-09-03NEW DIMENSION SYST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311624161.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2024-09-03
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

Existing surface contour determination methods are difficult to balance between calculation accuracy and efficiency. Too many meshes require a large amount of calculation, and too few meshes have low accuracy.

Method used

By preliminary dividing the parameter domain of the surface to be determined, the normal cone of the initial mesh is generated, and it is judged whether it contains contour points according to the direction of the field of view, and the mesh containing the contour points is divided again until the predetermined accuracy is reached, and the surface is determined to be in Contour lines in the direction of the field of view.

Benefits of technology

Significantly reduce the amount of calculation, improve calculation efficiency, improve calculation accuracy under the same conditions, and achieve the purpose of balancing calculation accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117611767B
    Figure CN117611767B
Patent Text Reader

Abstract

The present invention discloses a method and device for determining the contour line of a surface, and relates to the technical field of determining the contour line of a surface. The parameter domain of the surface to be determined is first preliminarily divided to obtain multiple initial grids, and then the normal cone of the partial surface corresponding to the initial grid is generated. According to the field of view direction and the normal cone, it is determined whether the initial grid contains contour points. If so, the initial grid is divided again until a predetermined division accuracy is reached. Then, the contour points in the grid to be processed that contain contour points that reach the predetermined division accuracy are determined, and all contour points are connected to obtain the contour line of the surface to be determined in the field of view direction. The present invention determines whether there are contour points based on the normal cone, and only divides the grid containing contour points again. Compared with the prior art that directly divides the surface once, and determines and selects contour points for each grid obtained by division, it can achieve the purpose of taking into account both calculation accuracy and calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of curved surface contour line determination, and in particular to a curved surface contour line determination method and device. Background Art

[0002] At present, there are many occasions where it is necessary to determine the contour of the surface in a certain field of view. For example, when using the line width mode of CAD, the contour of the surface must be determined before the line width can be further displayed / hidden. However, the commonly used method for determining the contour of the surface is to directly divide the surface into multiple grids at a time. For each grid, the contour points are determined and selected to determine the contour of the surface. If too many grids are divided, the amount of calculation is large. If too few grids are divided, the calculation accuracy is low. Based on this, a new surface contour determination technology is urgently needed to take into account both calculation accuracy and calculation efficiency. Summary of the invention

[0003] The purpose of the present invention is to provide a method and device for determining a curved surface contour line, which can take into account both calculation accuracy and calculation efficiency.

[0004] To achieve the above object, the present invention provides the following solutions:

[0005] A method for determining a curved surface contour line, the method comprising:

[0006] Preliminarily dividing the parameter domain of the surface to be determined to obtain a plurality of initial grids; the surface to be determined is a spline surface; the parameter domain is a rectangular area determined based on the uv coordinates of each point on the surface to be determined;

[0007] For each of the initial grids, a normal cone of a portion of the surface corresponding to the initial grid is generated; and according to the field of view direction and the normal cone, whether the initial grid contains contour points is determined;

[0008] If yes, the initial grid is divided again to obtain multiple divided grids, and the divided grids are used as the initial grids of the next cycle, and the process returns to the step of "for each initial grid, generating a normal cone of a part of the surface corresponding to the initial grid" until the predetermined division accuracy is reached;

[0009] An initial grid containing contour points that reaches the predetermined division accuracy is recorded as a grid to be processed; for each of the grids to be processed, contour points in the grid to be processed are determined; all the contour points are connected to obtain the contour line of the surface to be determined in the field of view direction.

[0010] In some embodiments, generating a normal cone of a portion of the surface corresponding to the initial mesh specifically includes:

[0011] Generating a control mesh of a portion of the curved surface corresponding to the initial mesh;

[0012] For each mesh in the control mesh, a triangular face is determined based on two adjacent edges of the mesh, and a normal vector of the triangular face is determined to obtain four normal vectors corresponding to the mesh;

[0013] The starting points of the four normal vectors corresponding to all the meshes are overlapped and placed to generate a normal cone.

[0014] In some embodiments, judging whether the initial grid contains contour points according to the field of view direction and the normal cone specifically includes:

[0015] Determine a dividing plane according to the field of view direction and the axis direction of the normal cone;

[0016] Performing an intersection operation on the partition plane and the normal cone to obtain two intersection lines;

[0017] For each of the intersection lines, calculating the dot product of the direction vector corresponding to the intersection line and the direction vector corresponding to the field of view direction, to obtain a dot product result corresponding to the intersection line;

[0018] Whether the initial grid contains contour points is determined based on the dot product results corresponding to the two intersection lines.

[0019] In some embodiments, judging whether the initial grid contains contour points based on the dot product results corresponding to the two intersection lines specifically includes:

[0020] Calculate the first product of the point product results corresponding to the two intersection lines. If the first product is less than 0, the initial grid contains contour points. If the first product is greater than or equal to 0, the initial grid does not contain contour points, so as to determine whether the initial grid contains contour points.

[0021] In some embodiments, determining the contour points in the to-be-processed grid specifically includes:

[0022] For each edge of the mesh to be processed, calculate the normal vector of each of the two vertices of the edge; calculate the dot product of the normal vector of the vertex and the direction vector corresponding to the field of view direction to obtain the dot product result corresponding to the vertex; based on the dot product results corresponding to the two vertices, determine whether the edge contains contour points; if the edge contains contour points, use the dot product results corresponding to the two vertices as input, and use a linear interpolation method to determine the points on the edge where the dot product result is 0, and the points where the dot product result is 0 are the contour points of the edge; all the contour points of the edges constitute the contour points in the mesh to be processed, so as to determine the contour points in the mesh to be processed.

[0023] In some embodiments, judging whether the edge contains a contour point based on the dot product result corresponding to the two vertices specifically includes:

[0024] Calculate the second product of the dot product results corresponding to the two vertices. If the second product is less than 0, the edge contains a contour point. If the second product is greater than or equal to 0, the edge does not contain a contour point, so as to determine whether the edge contains a contour point.

[0025] In some embodiments, if the surface to be determined is partially blocked, the determination method further includes: determining the contour line of the unblocked portion of the surface to be determined based on the contour line of the surface to be determined in the field of view direction, specifically including:

[0026] Performing an intersection operation on the contour line of the to-be-determined curved surface in the field of view direction and the boundary of the partial parameter domain of the unobstructed partial curved surface in the to-be-determined curved surface to obtain a plurality of intersection points;

[0027] dividing the contour line into a plurality of line segments based on the intersection points;

[0028] For each of the line segments, a ray method is used to determine whether the line segment is within the partial parameter domain; the line segment within the partial parameter domain is the contour line of the unobstructed partial surface in the to-be-determined surface.

[0029] In some embodiments, the determining whether the line segment is within the partial parameter domain by using the ray method specifically includes:

[0030] Take any point on the line segment and draw a ray from the point in any direction;

[0031] The number of intersection points between the ray and the partial parameter domain is determined. If the number is an even number, the line segment is outside the partial parameter domain. If the number is an odd number, the line segment is inside the partial parameter domain, so as to determine whether the line segment is inside the partial parameter domain.

[0032] In some embodiments, before determining the number of intersections between the ray and the partial parameter domain, the determination method further includes:

[0033] Determine whether the ray passes through the vertex of the partial parameter domain; if so, make a ray along the point in another direction.

[0034] A device for determining a curved surface contour line, the device comprising:

[0035] An initial partitioning module is used to perform preliminary partitioning of a parameter domain of a surface to be determined to obtain a plurality of initial grids; the surface to be determined is a spline surface; the parameter domain is a rectangular area determined based on the UV coordinates of each point on the surface to be determined;

[0036] A re-dividing module is used to generate a normal cone of a portion of the curved surface corresponding to each of the initial grids; determine whether the initial grid contains contour points according to the field of view direction and the normal cone; if so, re-dividing the initial grid to obtain a plurality of divided grids, and using the divided grids as the initial grids of the next cycle, and returning to the step of "generating a normal cone of a portion of the curved surface corresponding to each of the initial grids" until a predetermined division accuracy is reached;

[0037] The contour line generation module is used to record the initial grid containing contour points that reaches the predetermined division accuracy as the grid to be processed; for each of the grids to be processed, determine the contour points in the grid to be processed; and connect all the contour points to obtain the contour line of the surface to be determined in the field of view direction.

[0038] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0039] The present invention is used to provide a method and device for determining the contour line of a surface. The parameter domain of the surface to be determined is first preliminarily divided to obtain multiple initial grids, and then the normal cone of the partial surface corresponding to the initial grid is generated. According to the field of view direction and the normal cone, it is determined whether the initial grid contains contour points. If so, the initial grid is divided again until the predetermined division accuracy is reached. Then the contour points in the grid to be processed that contain contour points that reach the predetermined division accuracy are determined, and all contour points are connected to obtain the contour line of the surface to be determined in the field of view direction. The present invention determines whether there are contour points based on the normal cone, and only divides the grid containing contour points again. Compared with the prior art that directly divides the surface once and determines and selects contour points for each grid obtained by division, the present invention can significantly reduce the amount of calculation and improve the calculation efficiency under the condition of the same calculation accuracy. Under the condition of the same calculation amount, the calculation accuracy is significantly improved, thereby achieving the purpose of taking into account both calculation accuracy and calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A method flow chart of the determination method provided in Example 1 of the present invention;

[0042] Figure 2 A schematic diagram of a triangular surface provided in Example 1 of the present invention;

[0043] Figure 3 A schematic diagram of connecting contour lines provided in Example 1 of the present invention;

[0044] Figure 4 This is a block diagram of a determination device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The purpose of the present invention is to provide a method and device for determining a curved surface contour line, which can take into account both calculation accuracy and calculation efficiency.

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] Embodiment 1:

[0049] This embodiment is used to provide a method for determining a curved surface contour line. Figure 1 As shown, the determination method includes:

[0050] S1: Preliminarily divide the parameter domain of the surface to be determined to obtain multiple initial grids; the surface to be determined is a spline surface; the parameter domain is a rectangular area determined based on the uv coordinates of each point on the surface to be determined.

[0051] In this embodiment, each point on the surface to be determined has a uv coordinate, which includes a horizontal u coordinate and a vertical v coordinate. The horizontal direction is taken as the horizontal direction and the vertical direction is taken as the vertical direction. Based on the uv coordinates of all points, a rectangular area can be determined. The left boundary of the rectangular area is the minimum value of the u coordinates of all points, the right boundary is the maximum value of the u coordinates of all points, the lower boundary is the minimum value of the v coordinates of all points, and the upper boundary is the maximum value of the v coordinates of all points. The rectangular area determined above is the parameter domain of the surface to be determined. It is particularly pointed out that the points in the parameter domain and the points in the surface to be determined form a one-to-one mapping relationship.

[0052] There are many ways to preliminarily divide the parameter domain of the surface to be determined, for example, the parameter domain is evenly divided into 2 initial grids, 4 initial grids, 6 initial grids, 8 initial grids, etc., to obtain multiple initial grids. It should be noted that the size of the initial grid obtained by the preliminary division here is several orders of magnitude different from the grid size corresponding to the predetermined division accuracy.

[0053] S2: For each of the initial grids, generate a normal cone of a portion of the curved surface corresponding to the initial grid; and determine whether the initial grid contains contour points according to the field of view direction and the normal cone.

[0054] Since the points in the parameter domain and the points in the surface to be determined form a one-to-one mapping relationship, the initial mesh corresponds to a part of the surface to be determined.

[0055] Generating the normal cone of the partial surface corresponding to the initial mesh may include: generating a control mesh of the partial surface corresponding to the initial mesh, the control mesh is used to control the shape of the surface and is equivalent to the partial surface. For each mesh in the control mesh, a triangular face is determined based on two adjacent edges of the mesh, such as Figure 2 As shown, taking the two adjacent edges a and b as an example, the triangular face at this time includes two adjacent edges (a and b) and the connecting line of the two free vertices of the two adjacent edges (c), and the normal vector of the triangular face is determined. The normal vector refers to the vector represented by the straight line perpendicular to the triangular face, which is determined according to the partial curved surface corresponding to the mesh. The determination method is the existing technology and will not be repeated here. Since a mesh includes 4 groups of two adjacent edges, each group of two adjacent edges can determine a triangular face, and further determine a normal vector, so the 4 normal vectors corresponding to the mesh can be obtained. The starting points of the 4 normal vectors corresponding to all meshes are overlapped and placed to generate a normal cone. The normal cone refers to the cone surrounded by the directions of all normal vectors after the starting points of all normal vectors are overlapped and placed.

[0056] The contour points of the surface to be determined are the points perpendicular to the field of view direction. Therefore, judging whether the initial mesh contains contour points based on the field of view direction and the normal cone can include: determining a division plane based on the field of view direction and the axis direction of the normal cone. Two straight lines determine a plane. Therefore, a division plane can be determined based on the straight line corresponding to the field of view direction and the straight line corresponding to the axis direction of the normal cone. Perform an intersection operation on the division plane and the normal cone to obtain two intersection lines. The two intersection lines are the intersection lines of the normal cone and the division plane. For each intersection line, calculate the dot product of the direction vector corresponding to the intersection line and the direction vector corresponding to the field of view direction to obtain the dot product result corresponding to the intersection line. Judge whether the initial mesh contains contour points based on the dot product results corresponding to the two intersection lines.

[0057] Among them, judging whether the initial grid contains contour points based on the dot product results corresponding to the two intersection lines can include: calculating the first product of the dot product results corresponding to the two intersection lines, if the first product is less than 0, the initial grid contains contour points, if the first product is greater than or equal to 0, the initial grid does not contain contour points, so as to judge whether the initial grid contains contour points.

[0058] S3: If yes, the initial grid is divided again to obtain multiple divided grids, and the divided grids are used as the initial grids of the next cycle, and the process returns to the step of "for each initial grid, generating a normal cone of the partial surface corresponding to the initial grid" until the predetermined division accuracy is reached.

[0059] The predetermined division accuracy of this embodiment refers to that the size of the obtained division grid reaches a predetermined value, which is determined according to user needs. In this embodiment, the number of grids obtained by preliminary division and secondary division is also determined according to user needs, such as 2, 4, 6, 8, etc.

[0060] This embodiment subdivides the surface parameter domain, and determines whether a contour line passes through the patch (i.e., the initial mesh obtained by subdivision) through the normal cone information of the patch (i.e., whether the patch contains contour points). If a contour line passes through, the patch is further subdivided until the patch size meets the predetermined division accuracy. Then, all patches with contour lines passing through and patch sizes meeting the predetermined division accuracy are traversed, and contour lines passing through the patch are constructed by linear interpolation. Finally, the contour lines of adjacent patches are connected to obtain the complete contour line of the surface.

[0061] S4: Recording an initial grid containing contour points that reaches the predetermined division accuracy as a grid to be processed; for each of the grids to be processed, determining the contour points in the grid to be processed; connecting all the contour points to obtain the contour line of the surface to be determined in the direction of the field of view.

[0062] The initial grid containing contour points that reaches a predetermined division accuracy refers to an initial grid having a grid size obtained by the last division that is the same as the predetermined division accuracy and containing contour points.

[0063] Determining the contour points in the mesh to be processed may include: for each edge of the mesh to be processed, calculating the normal vector of each of the two vertices of the edge. Calculating the normal vector is an existing method and will not be described in detail here. Calculate the dot product of the normal vector of the vertex and the direction vector corresponding to the field of view direction to obtain the dot product result corresponding to the vertex, and judge whether the edge contains contour points based on the dot product results corresponding to the two vertices. If the edge contains contour points, the dot product results corresponding to the two vertices are used as input, and the point on the edge where the dot product result is 0 is determined by linear interpolation. The point where the dot product result is 0 is the contour point of the edge. The contour points of all edges constitute the contour points in the mesh to be processed to determine the contour points in the mesh to be processed.

[0064] Among them, judging whether the edge contains a contour point based on the dot product results corresponding to two vertices can include: calculating the second product of the dot product results corresponding to the two vertices, if the second product is less than 0, the edge contains a contour point, if the second product is greater than or equal to 0, the edge does not contain a contour point, so as to judge whether the edge contains a contour point.

[0065] After determining the contour points in each grid to be processed, the contour line can be generated based on all the obtained contour points. When generating the contour line, since the starting point and end point of the contour line can only be boundary points, the boundary point refers to the point located at the boundary of the parameter domain, and the contour line must be continuous, the two contour points in each grid to be processed are connected to obtain a partial contour line, and then each partial contour line is connected in sequence to generate the contour line. However, if the surface to be determined contains multiple contour lines, a grid to be processed may contain 3 or 4 contour points. At this time, if the grid to be processed containing 3 or 4 contour points is a starting grid containing a starting point, the starting grid needs to be further divided until the grid obtained by division includes only one starting point and one contour point; if the grid to be processed containing 3 or 4 contour points is an intermediate grid without a starting point or an end point, the next connected contour point is determined according to the direction of the connected contour line, such as Figure 3 As shown, the connected contour line is downward, and the contour points that need to be connected (i.e. Figure 3 If there are two ellipses in the figure, one is on the upper boundary and the other is on the lower boundary, the contour point on the lower boundary is selected as the next connected contour point.

[0066] Since there is a one-to-one mapping relationship between the points in the surface to be determined and the points in the parameter domain, after connecting the contour points of each grid to be processed, the contour line in the parameter domain is generated, which is equivalent to generating the contour line of the surface to be determined.

[0067] When the surface to be determined is in the three-dimensional model, other surfaces in the three-dimensional model may block the surface to be determined, that is, the surface to be determined is partially blocked and is an incomplete surface. The determination method of this embodiment also includes: determining the contour line of the unobstructed part of the surface to be determined based on the contour line of the surface to be determined in the field of view direction, specifically including: performing an intersection operation on the contour line of the surface to be determined in the field of view direction and the boundary of the partial parameter domain of the unobstructed part of the surface to be determined to obtain a number of intersection points. It is particularly pointed out that this intersection operation is performed in the parameter domain, and the contour line of the surface to be determined in the field of view direction refers to the contour line in the parameter domain. The contour line is divided into multiple line segments based on the intersection points. For each line segment, the ray method is used to determine whether the line segment is in the partial parameter domain. The line segment in the partial parameter domain is the contour line of the unobstructed part of the surface to be determined.

[0068] Among them, the partial parameter domain of the unobstructed part of the surface to be determined refers to the rectangular area determined based on the UV coordinates of each point in the unobstructed part of the surface to be determined. In order to distinguish it from the parameter domain of the surface to be determined, this embodiment defines it as a partial parameter domain.

[0069] Among them, using the ray method to determine whether a line segment is within the partial parameter domain can include: taking an arbitrary point on the line segment and drawing a ray along the point in an arbitrary direction; determining the number of intersection points between the ray and the partial parameter domain, if the number is an even number, the line segment is outside the partial parameter domain, if the number is an odd number, the line segment is within the partial parameter domain, so as to determine whether the line segment is within the partial parameter domain.

[0070] If the ray coincides with a vertex of a partial parameter domain, the judgment result obtained by the above-mentioned ray method will be inaccurate. Therefore, before determining the number of intersection points between the ray and the partial parameter domain, the determination method of this embodiment also includes: determining whether the ray passes through the vertex of the partial parameter domain; if so, making a ray along the point in another direction to remove the influence of the vertex of the partial parameter domain and improve the judgment accuracy.

[0071] The method for determining the contour line of a surface provided in this embodiment first performs a preliminary division on the parameter domain of the surface to be determined, and determines whether the initial grid contains contour points based on the normal cone of the initial grid obtained by the division. If so, the initial grid is divided again until a predetermined division accuracy is reached. Then, the contour points in the grid to be processed that contain contour points that reach the predetermined division accuracy are determined, and all contour points are connected to obtain the contour line of the surface to be determined in the field of view direction. This embodiment determines whether there are contour points based on the normal cone, and only subdivides the grid containing contour points. Compared with the prior art method of directly dividing the surface once and determining and selecting contour points for each grid obtained by the division, it can significantly reduce the amount of calculation and improve the calculation efficiency under the condition of the same calculation accuracy. Under the condition of the same amount of calculation, it can significantly improve the calculation accuracy, thereby achieving the purpose of taking into account both calculation accuracy and calculation efficiency.

[0072] It is particularly pointed out that the direction vector and normal vector in this embodiment are both unit vectors.

[0073] Embodiment 2:

[0074] This embodiment is used to provide a device for determining a curved surface contour line. Figure 4 As shown, the determining device includes:

[0075] The initial division module M1 is used to perform preliminary division on the parameter domain of the surface to be determined to obtain a plurality of initial grids; the surface to be determined is a spline surface; the parameter domain is a rectangular area determined based on the uv coordinates of each point on the surface to be determined;

[0076] The re-dividing module M2 is used to generate a normal cone of a portion of the curved surface corresponding to each of the initial grids; determine whether the initial grid contains contour points according to the field of view direction and the normal cone; if so, re-dividing the initial grid to obtain a plurality of divided grids, and using the divided grids as the initial grids of the next cycle, and returning to the step of "generating a normal cone of a portion of the curved surface corresponding to each of the initial grids" until a predetermined division accuracy is reached;

[0077] The contour line generation module M3 is used to record the initial grid containing contour points that reaches the predetermined division accuracy as the grid to be processed; for each of the grids to be processed, determine the contour points in the grid to be processed; and connect all the contour points to obtain the contour line of the surface to be determined in the field of view direction.

[0078] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0079] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for determining a curved surface contour line, characterized in that: The determination method comprises: Preliminarily dividing the parameter domain of the surface to be determined to obtain a plurality of initial grids; the surface to be determined is a spline surface; the parameter domain is a rectangular area determined based on the uv coordinates of each point on the surface to be determined; For each of the initial grids, a normal cone of a portion of the surface corresponding to the initial grid is generated; and according to the field of view direction and the normal cone, whether the initial grid contains contour points is determined; If yes, the initial grid is divided again to obtain multiple divided grids, and the divided grids are used as the initial grids of the next cycle, and the process returns to the step of "for each initial grid, generating a normal cone of a portion of the surface corresponding to the initial grid" until the predetermined division accuracy is reached; Recording an initial grid containing contour points that reaches the predetermined division accuracy as a grid to be processed; for each of the grids to be processed, determining the contour points in the grid to be processed; connecting all the contour points to obtain the contour line of the surface to be determined in the direction of the field of view; The generating of the normal cone of the partial surface corresponding to the initial mesh specifically includes: Generating a control mesh of a portion of the curved surface corresponding to the initial mesh; For each mesh in the control mesh, a triangular face is determined based on two adjacent edges of the mesh, and a normal vector of the triangular face is determined to obtain four normal vectors corresponding to the mesh; The starting points of the four normal vectors corresponding to all the meshes are overlapped and placed to generate a normal cone; The determining, based on the field of view direction and the normal cone, whether the initial grid contains contour points specifically includes: Determine a dividing plane according to the field of view direction and the axis direction of the normal cone; Performing an intersection operation on the partition plane and the normal cone to obtain two intersection lines; For each of the intersection lines, calculating the dot product of the direction vector corresponding to the intersection line and the direction vector corresponding to the field of view direction, to obtain a dot product result corresponding to the intersection line; Determine whether the initial grid contains contour points based on the dot product results corresponding to the two intersection lines; The determining of the contour points in the to-be-processed grid specifically includes: For each edge of the mesh to be processed, calculate the normal vector of each of the two vertices of the edge; calculate the dot product of the normal vector of the vertex and the direction vector corresponding to the field of view direction to obtain the dot product result corresponding to the vertex; based on the dot product results corresponding to the two vertices, determine whether the edge contains contour points; if the edge contains contour points, use the dot product results corresponding to the two vertices as input, and use a linear interpolation method to determine the points on the edge where the dot product result is 0, and the points where the dot product result is 0 are the contour points of the edge; all the contour points of the edges constitute the contour points in the mesh to be processed, so as to determine the contour points in the mesh to be processed.

2. The determination method according to claim 1, characterized in that: The step of judging whether the initial grid contains contour points based on the dot product results corresponding to the two intersection lines specifically includes: Calculate the first product of the point product results corresponding to the two intersection lines. If the first product is less than 0, the initial grid contains contour points. If the first product is greater than or equal to 0, the initial grid does not contain contour points, so as to determine whether the initial grid contains contour points.

3. The determination method according to claim 1, characterized in that: The determining whether the edge contains a contour point based on the dot product result corresponding to the two vertices specifically includes: Calculate the second product of the dot product results corresponding to the two vertices. If the second product is less than 0, the edge contains a contour point. If the second product is greater than or equal to 0, the edge does not contain a contour point, so as to determine whether the edge contains a contour point.

4. The determination method according to claim 1, characterized in that: If the to-be-determined curved surface is partially blocked, the determination method further includes: determining the contour line of the unblocked portion of the to-be-determined curved surface based on the contour line of the to-be-determined curved surface in the field of view direction, specifically including: Performing an intersection operation on the contour line of the to-be-determined curved surface in the field of view direction and the boundary of the partial parameter domain of the unobstructed partial curved surface in the to-be-determined curved surface to obtain a plurality of intersection points; dividing the contour line into a plurality of line segments based on the intersection points; For each of the line segments, a ray method is used to determine whether the line segment is within the partial parameter domain; the line segment within the partial parameter domain is the contour line of the unobstructed partial surface in the to-be-determined surface.

5. The determination method according to claim 4, characterized in that: The determining whether the line segment is within the partial parameter domain by using the ray method specifically includes: Take any point on the line segment and draw a ray from the point in any direction; The number of intersection points between the ray and the partial parameter domain is determined. If the number is an even number, the line segment is outside the partial parameter domain. If the number is an odd number, the line segment is inside the partial parameter domain, so as to determine whether the line segment is inside the partial parameter domain.

6. The determination method according to claim 5, characterized in that: Before determining the number of intersections between the ray and the partial parameter domain, the determination method further includes: Determine whether the ray passes through the vertex of the partial parameter domain; if so, make a ray along the point in another direction.

7. A device for determining a curved surface contour line, used to implement the determination method according to any one of claims 1 to 6, characterized in that: The determining device comprises: An initial partitioning module is used to perform preliminary partitioning of a parameter domain of a surface to be determined to obtain a plurality of initial grids; the surface to be determined is a spline surface; the parameter domain is a rectangular area determined based on the UV coordinates of each point on the surface to be determined; A re-dividing module is used to generate a normal cone of a portion of the curved surface corresponding to each of the initial grids; determine whether the initial grid contains contour points according to the field of view direction and the normal cone; if so, re-dividing the initial grid to obtain a plurality of divided grids, and using the divided grids as the initial grids of the next cycle, and returning to the step of "generating a normal cone of a portion of the curved surface corresponding to each of the initial grids" until a predetermined division accuracy is reached; The contour line generation module is used to record the initial grid containing contour points that reaches the predetermined division accuracy as the grid to be processed; for each of the grids to be processed, determine the contour points in the grid to be processed; and connect all the contour points to obtain the contour line of the surface to be determined in the field of view direction.