CN113312051A - Graph fillet processing method and device, computer equipment and storage medium - Google Patents

Graph fillet processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113312051A
CN113312051A CN202110719809.XA CN202110719809A CN113312051A CN 113312051 A CN113312051 A CN 113312051A CN 202110719809 A CN202110719809 A CN 202110719809A CN 113312051 A CN113312051 A CN 113312051A
Authority
CN
China
Prior art keywords
control point
fillet
curve
line segment
included angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110719809.XA
Other languages
Chinese (zh)
Inventor
岳泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yitu Software Co ltd
Original Assignee
Shenzhen Yitu Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yitu Software Co ltd filed Critical Shenzhen Yitu Software Co ltd
Priority to CN202110719809.XA priority Critical patent/CN113312051A/en
Publication of CN113312051A publication Critical patent/CN113312051A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a method and a device for processing a graph fillet, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a fillet area in a graph, and a fillet circle center and a fillet radius which correspond to the fillet area, and a first side length and a second side length which are circumscribed with the fillet area; dividing the fillet area into a first curve, a second curve and a third curve; determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle; determining a smoothness parameter of the fillet area according to the first included angle and the second included angle; smoothly fitting the first curve, the second curve, and the third curve by adjusting the smoothness parameter. According to the invention, through constructing the smooth path of the fillet of the graph, a natural and coherent fillet smoothing effect is realized, and more detailed operation experience is provided for designers.

Description

Graph fillet processing method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computer software, in particular to a method and a device for processing a graph fillet, computer equipment and a storage medium.
Background
The graphic design includes right angle fillet and smooth fillet, and the display effect difference of two kinds of fillets is very little, and smooth fillet begins the bending from the place that original right angle fillet began, but has removed some parts on the whole curved surface, compares the right angle fillet, and is more gentle and agreeable from the right angle to crooked part. This difference seems to be negligible, but the design details have a large experience impact: smooth fillets do not have the artificially sculptured marks of right angle fillets, and smooth fillets appear more uniform and natural.
Meanwhile, modern UI designs are transitioning from a coarse-grained design to a fine-grained design, a natural, logical design detail like smooth fillets, is currently needed. Therefore, how to provide a more natural and smooth design method for smooth round corners is a problem to be solved by the current technicians.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing a graph fillet, computer equipment and a storage medium, aiming at improving the smooth effect of the graph fillet.
In a first aspect, an embodiment of the present invention provides a method for processing a graph fillet, including:
acquiring a fillet area in a graph, and a fillet circle center and a fillet radius which correspond to the fillet area, and a first side length and a second side length which are circumscribed with the fillet area;
dividing the fillet area into a first curve, a second curve and a third curve;
determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle;
determining a smoothness parameter of the fillet area according to the first included angle and the second included angle;
smoothly fitting the first curve, the second curve, and the third curve by adjusting the smoothness parameter.
In a second aspect, an embodiment of the present invention provides a device for processing a graph corner, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a fillet area in a graph, and a fillet circle center and a fillet radius which correspond to the fillet area, and a first side length and a second side length which are circumscribed with the fillet area;
the dividing unit is used for dividing the fillet area into a first curve, a second curve and a third curve;
the included angle determining unit is used for determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle;
the parameter determining unit is used for determining smoothness parameters of the fillet area according to the first included angle and the second included angle;
a fitting unit for smoothly fitting the first curve, the second curve and the third curve by adjusting the smoothness parameter.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for processing the graph corner rounding according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the method for processing the graph corner rounding according to the first aspect.
The embodiment of the invention provides a method and a device for processing a graph fillet, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a fillet area in a graph, and a fillet circle center and a fillet radius which correspond to the fillet area, and a first side length and a second side length which are circumscribed with the fillet area; dividing the fillet area into a first curve, a second curve and a third curve; determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle; determining a smoothness parameter of the fillet area according to the first included angle and the second included angle; smoothly fitting the first curve, the second curve, and the third curve by adjusting the smoothness parameter. According to the embodiment of the invention, through constructing the smooth path of the fillet of the graph, the natural and coherent fillet smoothing effect is realized, and more detailed operation experience is provided for designers.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for processing a corner rounding according to an embodiment of the present invention;
FIG. 2 is a sub-flowchart of a method for processing a corner rounding according to an embodiment of the present invention;
FIG. 3 is a schematic view of a fillet area in a method for fillet processing of a pattern according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating curve division in a method for processing a graph fillet according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating curvature variation in a method for rounding a pattern according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an included angle in a method for processing a rounded corner of a pattern according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of control points in a method for processing a graph corner rounding according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a graphics corner rounding apparatus according to an embodiment of the present invention;
figure 9 is a sub-schematic block diagram of a graphics corner rounding device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for processing a graph fillet according to an embodiment of the present invention, which specifically includes: steps S101 to S105.
S101, acquiring a fillet area in a graph, and a fillet circle center and a fillet radius corresponding to the fillet area, and a first side length and a second side length circumscribed with the fillet area;
s102, dividing the fillet area into a first curve, a second curve and a third curve;
s103, determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle;
s104, determining smoothness parameters of the fillet area according to the first included angle and the second included angle;
and S105, smoothly fitting the first curve, the second curve and the third curve by adjusting the smoothness parameter.
In this embodiment, with reference to fig. 3 and fig. 4, the fillet area includes a fillet center, a fillet radius R, a first side length L1, and a second side length L2, and a first curve (1 in fig. 4), a second curve (2 in fig. 4), and a third curve (3 in fig. 4), the first included angle θ 1 may be determined according to the fillet center, the first side length L1, and the second side length L2, and the second included angle θ 2 may be determined according to the fillet center and the second curve, so that the smoothness parameter ξ in the fillet area may be determined. Therefore, the size of the second included angle can be correspondingly adjusted by adjusting the smoothness parameter, and then the fitting degree of the first curve, the second curve and the third curve is adjusted, so that the smooth effect of the fillet area is more excellent.
This embodiment has realized the smooth effect of natural coherent fillet through the construction to the smooth route of fillet, provides more meticulous operation experience for the designer. Meanwhile, when the user designs the vector graphics, an adjustable smooth fillet effect can be obtained, and a natural graphic display effect and operation experience are achieved.
It should be noted that the method for processing the graph rounded corner provided by the embodiment of the present invention is particularly suitable for UI interface design, for example, by using the method for processing the graph rounded corner provided by the embodiment of the present invention, an icon in a UI interface can have a smooth rounded corner with a better effect, so that the icon has a better display effect and operation experience.
Referring to fig. 5, it can be seen that the curvature of the smooth fillet has three continuous changes, the front and rear curvatures first rise and then fall to form two Bezier curves, and the middle curvature remains constant and is a standard arc. The smoothed radiused corner path is fitted with a three-segment curve. Therefore, the embodiment of the invention parameterizes the smoothness xi, and when the smoothness is 0, the area of the fillet area is expected to be the same as the curvature of the right-angle fillet. As the smoothness slowly increases, it is desirable that the line rises to the highest point and remains high until it falls. When the smoothness reaches the maximum value of 1, the length of the middle arc is 0, and the middle arc is only formed by combining Bezier curves at two ends. Therefore, the embodiment of the invention adopts the drawing of the round part of the single-term Bezier curve and then connects the round part to the straight line.
In one embodiment, the step S104 includes:
the smoothness parameter ξ is calculated as:
ξ=(θ1-θ2)/θ1
in the formula, theta 1 is a first included angle, theta 2 is a second included angle, theta 1 belongs to (0, pi), and theta 2 belongs to [0, theta 1 ].
In this embodiment, when the first included angle θ 1 is equal to the second included angle θ 2, the smoothness of the second curve is 0, and when the second included angle θ 2 is equal to 0, the smoothness reaches a maximum of 1, so that the round smoothness parameter ξ ═ θ 1- θ 2)/θ 1 is defined.
In one embodiment, as shown in fig. 2, the step S105 includes: steps S201 to S207.
S201, determining an intersection point of the first curve and the second curve based on the first side length, the second side length, the fillet radius, the first included angle and the second included angle, and marking as a first control point;
s202, drawing a tangent line on a second curve, and marking an intersection point of the tangent line and the first side length as a second control point;
s203, determining the lengths of the first line segment and the second line segment according to the positions of the first control point and the second control point; the first line segment is formed by the longitudinal distance between a first control point and a second control point, and the second line segment is formed by the transverse distance between the first control point and the second control point;
s204, determining the length of a third line segment based on the first line segment and the second line segment; the third line segment is formed by a transverse distance between a second control point and a third control point, and the third control point is positioned on a horizontal extension line of the first side length;
s205, determining a third control point through the third line segment and the second control point;
s206, determining a fourth control point by combining a third control point based on the length of a preset fourth line segment, wherein the fourth control point and the third control point are both positioned on a tangent of a third curve;
and S207, determining a fitting path of the fillet area according to the positions of the first control point, the second control point, the third control point and the fourth control point.
In this embodiment, with reference to fig. 6 and 7, first, the first control point x1, the second control point x2, the third control point x3, and the fourth control point x4 are all points on the straight line side of the fillet area and the extension line thereof. This ensures that the curvature of the fourth control point is 0, which enables a smooth fillet to seamlessly connect with a straight line of the figure. Specifically, under the condition that the first side length, the second side length, the fillet radius, the first included angle and the second included angle are determined, the position of the first control point can be determined, that is, the position is the connection point (i.e., the intersection point) of the first curve and the second curve; the second control point is connected with the first control point to form a tangent of a second curve, and the tangent is on the first side length, so that the position of the second control point can also be determined; the lengths of the first line segment and the second line segment can be further determined; then, combining the curvature calculation formula and the Bezier curve formula, the length of the third line segment can be calculated, and under the condition that the first side length and the second control point are determined, the position of the third control point can be determined. In order to further determine the shape of the curve, it is also necessary to determine the position of the fourth control point, i.e. in combination with the preset fourth line segment, the fourth control point on the tangent of the third curve can be determined. In one embodiment, the length of the preset fourth line segment is 2 times the length of the third line segment. Of course, in other embodiments, the value of the fourth line segment may be set according to the scene and the requirement, so as to control the curvature change condition of the rounded corner path.
Therefore, under the condition of giving the first side length, the second side length and the fillet radius, the embodiment of the invention can determine the second included angle θ 2 by adjusting the smoothness parameter ξ, further determine the first control point and the second control point, calculate the lengths of the first line segment and the second line segment, calculate the length of the third line segment, thereby determine the position of the third control point, further determine the positions of the fourth line segment and the fourth control point by the third line segment, and finally determine the three-segment fitting path of the smooth fillet.
In one embodiment, the step S205 includes:
calculating the length b of the third line segment according to the following formula:
Figure BDA0003136551450000061
wherein c is the length of the second line segment, d is the length of the first line segment, and r is the radius of the fillet.
In this embodiment, the second curve is actually a standard circular arc with a constant curvature, and the reciprocal of the fillet radius R is the curvature K of the standard circular arc, that is, the curvature of the second curve is K1/R.
The curvature calculation formula is: curvature k ═ y "/[ (1+ (y ') ^2) ^ (3/2) ], where y', y" are the first and second derivatives of function y over x, respectively;
the third-order Bezier curve formula is:
B(t)=(1-t)3P0+3(1-t)2tP1+3(1-t)t2P2+t3P3,0≤t≤1.
the first and second derivatives are:
B′(t)=3(1-t)2(P1-P0)+6(1-t)t(P2-P1)+3t2(P3-P2).
B″(t)=6(1-t)(P2-2P1+P0)+6t(P3-2P2+P1).
according to the curvature calculation formula and the Bezier curve equation, the curvature k of the first control point can be calculated1Expressed as:
Figure BDA0003136551450000062
also because the curvature of the first control point is equal to the curvature of the circular arc 1/R, the length of the third segment can be determined:
Figure BDA0003136551450000063
the length of the third line segment and hence the position of the second control point can be determined.
In one embodiment, the smoothness parameter is 0.5 to 0.7.
In the embodiment, the second included angle is adjusted according to the smoothness parameter of 0.5-0.7, and then the positions of the first control point, the second control point, the third control point and the fourth control point are adjusted, so that the path fitted by the four control points is smoother, and even if the smooth effect of the graph fillet is more harmonious and natural. Further, in a specific embodiment, when the smoothness parameter is 0.6, the effect of smoothing the rounded corners of the graph is optimal.
Fig. 8 is a schematic block diagram of a graphics corner rounding apparatus 800 according to an embodiment of the present invention, where the apparatus 800 includes:
the obtaining unit 801 is configured to obtain a fillet area in an image, a fillet circle center and a fillet radius corresponding to the fillet area, and a first side length and a second side length circumscribed with the fillet area;
a dividing unit 802, configured to divide the fillet area into a first curve, a second curve, and a third curve;
an included angle determining unit 803, configured to determine a first included angle based on the circle center of the rounded corner, the first side length, and the second side length, and determine a second included angle based on the circle center of the rounded corner and the second curve; wherein the second included angle is less than or equal to the first included angle;
a parameter determining unit 804, configured to determine a smoothness parameter of the fillet area according to the first included angle and the second included angle;
a fitting unit 805 for smoothly fitting the first curve, the second curve and the third curve by adjusting the smoothness parameter.
In an embodiment, the parameter determining unit 804 includes:
a parameter calculating unit for calculating the smoothness parameter ξ according to the following formula:
ξ=(θ1-θ2)/θ1
in the formula, theta 1 is a first included angle, theta 2 is a second included angle, theta 1 belongs to (0, pi), and theta 2 belongs to [0, theta 1 ].
In one embodiment, as shown in fig. 9, the fitting unit 805 includes:
a first marking unit 901, configured to determine an intersection point of the first curve and the second curve based on the first side length, the second side length, the fillet radius, the first included angle, and the second included angle, and mark the intersection point as a first control point;
a second marking unit 902, configured to make a tangent line on a second curve, and mark an intersection point of the tangent line and the first side length as a second control point;
a first length determining unit 903, configured to determine lengths of the first line segment and the second line segment according to positions of the first control point and the second control point; the first line segment is formed by the longitudinal distance between a first control point and a second control point, and the second line segment is formed by the transverse distance between the first control point and the second control point;
a second length determination unit 904 for determining a length of a third line segment based on the first line segment and the second line segment; the third line segment is formed by a transverse distance between a second control point and a third control point, and the third control point is positioned on a horizontal extension line of the first side length;
a first control point determining unit 905, configured to determine a third control point through the third line segment and the second control point;
a second control point determining unit 906, configured to determine a fourth control point in combination with a third control point based on a length of a preset fourth line segment, where the fourth control point and the third control point are both on a tangent of a third curve;
a fitted path determining unit 907, configured to determine a fitted path of the fillet area according to the positions of the first control point, the second control point, the third control point, and the fourth control point.
In an embodiment, the second length determining unit 904 comprises:
a length calculating unit, configured to calculate a length b of the third line segment according to the following formula:
Figure BDA0003136551450000081
wherein c is the length of the second line segment, d is the length of the first line segment, and r is the radius of the fillet.
In an embodiment, the length of the preset fourth line segment is 2 times the length of the third line segment.
In one embodiment, the smoothness parameter is 0.5 to 0.7.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps provided by the above embodiments can be implemented. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiment of the present invention further provides a computer device, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided in the above embodiments when calling the computer program in the memory. Of course, the computer device may also include various network interfaces, power supplies, and the like.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for processing a graph fillet, comprising:
acquiring a fillet area in a graph, and a fillet circle center and a fillet radius which correspond to the fillet area, and a first side length and a second side length which are circumscribed with the fillet area;
dividing the fillet area into a first curve, a second curve and a third curve;
determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle;
determining a smoothness parameter of the fillet area according to the first included angle and the second included angle;
smoothly fitting the first curve, the second curve, and the third curve by adjusting the smoothness parameter.
2. The method for processing the graph rounded corner according to claim 1, wherein the determining the smoothness parameter of the rounded corner area according to the first included angle and the second included angle comprises:
the smoothness parameter ξ is calculated as:
ξ=(θ1-θ2)/θ1
in the formula, theta 1 is a first included angle, theta 2 is a second included angle, theta 1 belongs to (0, pi), and theta 2 belongs to [0, theta 1 ].
3. The method of claim 1, wherein the smoothly fitting the first, second, and third curves by adjusting the smoothness parameter comprises:
determining an intersection point of the first curve and the second curve based on the first side length, the second side length, the fillet radius, the first included angle and the second included angle, and marking as a first control point;
drawing a tangent line on the second curve, and marking the intersection point of the tangent line and the first side length as a second control point;
determining the lengths of the first line segment and the second line segment according to the positions of the first control point and the second control point; the first line segment is formed by the longitudinal distance between a first control point and a second control point, and the second line segment is formed by the transverse distance between the first control point and the second control point;
determining a length of a third line segment based on the first line segment and the second line segment; the third line segment is formed by a transverse distance between a second control point and a third control point, and the third control point is positioned on a horizontal extension line of the first side length;
determining a third control point through the third line segment and the second control point;
determining a fourth control point by combining a third control point based on the length of a preset fourth line segment, wherein the fourth control point and the third control point are both positioned on a tangent of a third curve;
and determining a fitting path of the fillet area according to the positions of the first control point, the second control point, the third control point and the fourth control point.
4. The method of claim 3, wherein determining the length of a third line segment based on the first line segment and the second line segment comprises:
calculating the length b of the third line segment according to the following formula:
Figure FDA0003136551440000021
wherein c is the length of the second line segment, d is the length of the first line segment, and r is the radius of the fillet.
5. The method for processing the graph corner rounding according to claim 1, characterized in that the length of the preset fourth line segment is 2 times the length of the third line segment.
6. The method for processing the graph corner rounding according to claim 1, wherein the smoothness parameter is 0.5-0.7.
7. A graphics corner rounding device, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a fillet area in a graph, and a fillet circle center and a fillet radius which correspond to the fillet area, and a first side length and a second side length which are circumscribed with the fillet area;
the dividing unit is used for dividing the fillet area into a first curve, a second curve and a third curve;
the included angle determining unit is used for determining a first included angle based on the circle center of the fillet, the first side length and the second side length, and determining a second included angle based on the circle center of the fillet and the second curve; wherein the second included angle is less than or equal to the first included angle;
the parameter determining unit is used for determining smoothness parameters of the fillet area according to the first included angle and the second included angle;
a fitting unit for smoothly fitting the first curve, the second curve and the third curve by adjusting the smoothness parameter.
8. The pattern corner rounding method according to claim 7, wherein the fitting unit comprises:
the first marking unit is used for determining an intersection point of the first curve and the second curve based on the first side length, the second side length, the fillet radius, the first included angle and the second included angle, and marking the intersection point as a first control point;
the second marking unit is used for making a tangent line on a second curve and marking the intersection point of the tangent line and the first side length as a second control point;
the first length determining unit is used for determining the lengths of the first line segment and the second line segment according to the positions of the first control point and the second control point; the first line segment is formed by the longitudinal distance between a first control point and a second control point, and the second line segment is formed by the transverse distance between the first control point and the second control point;
a second length determination unit for determining a length of a third line segment based on the first line segment and the second line segment; the third line segment is formed by a transverse distance between a second control point and a third control point, and the third control point is positioned on a horizontal extension line of the first side length;
the first control point determining unit is used for determining a third control point through the third line segment and the second control point;
the second control point determining unit is used for determining a fourth control point by combining a third control point based on the length of a preset fourth line segment, wherein the fourth control point and the third control point are both positioned on a tangent line of a third curve;
and the fitting path determining unit is used for determining the fitting path of the fillet area according to the positions of the first control point, the second control point, the third control point and the fourth control point.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the graphics corner processing method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the graphics corner rounding method according to any one of claims 1 to 7.
CN202110719809.XA 2021-06-28 2021-06-28 Graph fillet processing method and device, computer equipment and storage medium Pending CN113312051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110719809.XA CN113312051A (en) 2021-06-28 2021-06-28 Graph fillet processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110719809.XA CN113312051A (en) 2021-06-28 2021-06-28 Graph fillet processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113312051A true CN113312051A (en) 2021-08-27

Family

ID=77380645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110719809.XA Pending CN113312051A (en) 2021-06-28 2021-06-28 Graph fillet processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113312051A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114850549A (en) * 2022-04-28 2022-08-05 成都航空职业技术学院 Method for machining blade based on four-axis linkage machining center
CN117422793A (en) * 2023-12-19 2024-01-19 弈芯科技(杭州)有限公司 Curve graph processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114850549A (en) * 2022-04-28 2022-08-05 成都航空职业技术学院 Method for machining blade based on four-axis linkage machining center
CN114850549B (en) * 2022-04-28 2024-02-23 成都航空职业技术学院 Method for machining blades based on four-axis linkage machining center
CN117422793A (en) * 2023-12-19 2024-01-19 弈芯科技(杭州)有限公司 Curve graph processing method and device
CN117422793B (en) * 2023-12-19 2024-03-15 弈芯科技(杭州)有限公司 Curve graph processing method and device

Similar Documents

Publication Publication Date Title
CN113312051A (en) Graph fillet processing method and device, computer equipment and storage medium
CN1916966B (en) Process for creating from a mesh an isotopologic set of parameterized surfaces
WO2011052800A1 (en) Tool path generation method and device
CN109976262B (en) Global curvature continuous fairing method for micro-line segment processing
Fang et al. An improved parameterization method for B-spline curve and surface interpolation
Park An approximate lofting approach for B-spline surface fitting to functional surfaces
CN116738579B (en) Automatic construction method and system for parting line of automobile panel
WO2019020418A1 (en) Method and system for automated generation of constrained curves in computer graphics
CN107037779A (en) Free form surface NC process tool track optimizing methods under non-homogeneous tolerance
Dey et al. Towards curvilinear meshing in 3D: the case of quadratic simplices
CN106981095B (en) A kind of improved smooth free-form deformation
CN111295695B (en) Three-dimensional grid data simplifying method and device
JP4487923B2 (en) Design data generation apparatus and design data generation program
CN108492372A (en) A kind of shape editing method of B-spline surface
CN113450441B (en) Rendering method and device of three-dimensional virtual model and electronic equipment
CA2367774C (en) Method and system for generating and handling a harmonized network of points
CN111192216B (en) Lane line smoothing method and system
CN110282073B (en) Ship hydrodynamic prediction method and system based on ship body wet surface grid in waves
Lu et al. Parallel curved mesh adaptation for large scale high-order finite element simulations
CN116385586A (en) Automatic optimization fitting method and system for Bezier curve of automobile body
Park et al. Error-bounded b-spline curve approximation based on dominant point selection
CN111859584B (en) Three-dimensional urban road network programmed modeling method
CN110908338B (en) Blade profile spline reverse curvature correction method and system for turbine blade
CN112363455B (en) Tool path determination method and system based on dynamics constraint
CN116342849B (en) Method for generating dental model undercut region on three-dimensional grid

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination