Approximate curve generation device and approximate curve generation method for log-aesthetic curve
By optimizing high-order NURBS curves with a fourth-order differential-based objective function, the method addresses the inaccuracy of logarithmic aesthetic curve approximation in CAD systems, achieving precise and continuous curvature representations.
Patent Information
- Application Number
- JP2023028509
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing CAD systems struggle to accurately approximate logarithmic aesthetic curves using NURBS formats due to the general formula being in integral form, leading to inaccuracies in curvature continuity and precision.
An optimization process is performed using high-order NURBS curves to minimize an objective function defined by a fourth-order differential, ensuring the slope of the logarithmic curvature graph remains constant, thereby approximating logarithmic aesthetic curves with high precision.
The method ensures accurate evaluation and approximation of logarithmic aesthetic curves using NURBS curves, improving precision and continuity by evaluating the slope of the logarithmic curvature graph, resulting in highly accurate approximations.
Smart Images

Figure 2024121411000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an approximation curve generating device and an approximation curve generating method for a log-aesthetic curve, and is particularly suitable for use in an device and method for generating a log-aesthetic curve by approximation using a NURBS curve such as a Bezier curve or a B-spline curve. [Background technology]
[0002] In the design of many industrial products, the product shape data is created using CAD (Computer Aided Design). The ability to appeal the beauty of the appearance of an industrial product is one of the very important factors for the success of an industrial product in the market. Since the curvature has a large impact on such judgment, it is necessary to appropriately control the smoothness of the curvature change in order to meet high-level demands for aesthetics.
[0003] It is known that many aesthetic curves in nature and man-made objects can be approximated by a straight line in their logarithmic curvature graph, and a curve whose logarithmic curvature graph (logarithmic curvature distribution diagram) is a straight line with a slope of α is called a log-aesthetic curve. Examples of log-aesthetic curves include a clothoid curve with α=-1 and a logarithmic spiral with α=1.
[0004] There is one big problem in handling log-aesthetic curves in a commercial CAD system. The general formula of a log-aesthetic curve is expressed in integral form, and cannot be accurately expressed in the NURBS format widely adopted in CAD systems, so it cannot be directly incorporated into a commercial CAD system. Therefore, approximation of the log-aesthetic curve in the NURBS format is required. In this regard, Patent Document 1 discloses an approximation method using a cubic Bezier curve.
[0005] The CAD system described in Patent Document 1 divides input curve data into multiple segments, and generates a log-aesthetic curve (an approximation curve) for each divided segment so that the radius of curvature or the power of curvature of each segment is expressed by a linear expression of the arc length parameter, that is, so as to minimize an objective function by a κ graph defined by an expression including the second derivative of the curve. Furthermore, to make the curvature continuous at the connection points of adjacent segments, each segment is deformed so that the difference in curvature value at each segment end is equal to or less than a predetermined threshold.
[0006] However, in the method of Patent Document 1, after generating individual curves, the connecting parts are forcibly adjusted in an attempt to realize curvature continuity between segments, and as a result, the final curve generated is not a strict approximation of the log-aesthetic curve.
[0007] Also, in a system for generating a spatial curve expressed by a plurality of parameters, a technique is known in which a plurality of parameters including a slope in a logarithmic curvature graph of the spatial curve, a slope in a logarithmic torsion graph of the spatial curve, and a value indicating an offset component in the logarithmic torsion graph are determined, undetermined parameters are further searched from the determined parameters, and a log-aesthetic curve is generated using the searched undetermined parameters (for example, see Patent Document 2).
[0008] However, the technology described in Patent Document 2 uses the slope α of the logarithmic curvature graph as one of the input parameters, and generates a log-aesthetic curve by a predetermined calculation formula using the slope α of the input logarithmic curvature graph, but does not evaluate whether the logarithmic curvature graph of the generated curve (defined by a formula including third-order differential) is actually linear. Furthermore, the technology described in Patent Document 2 does not disclose a method for approximating a log-aesthetic curve with high accuracy in NURBS format. [Prior art documents] [Patent documents]
[0009] [Patent Document 1] Patent No. 5177771 [Patent Document 2] Patent No. 5487416 Summary of the Invention [Problem to be solved by the invention]
[0010] The present invention has been made to solve such problems, and has as its object to make it possible to approximate log-aesthetic curves with high accuracy using NURBS format curves, which are widely used in CAD systems. [Means for solving the problem]
[0011] In order to solve the above-mentioned problems, the present invention sets an initial curve for optimization based on parameters representing the features of a log-aesthetic curve, and then performs optimization using the initial curve to minimize an objective function defined by an equation including the fourth-order derivative of the curve, thereby approximating the log-aesthetic curve using a high-order NURBS curve of degree 5 or higher. Effect of the Invention
[0012] According to the present invention configured as described above, the evaluation of whether the requirements of a log-aesthetic curve are satisfied is performed based on an objective function defined by an equation including the fourth-order derivative of the curve. This objective function evaluates whether the slope of the log-aesthetic curvature graph is the same value at any point, so that the obtained approximation curve can be evaluated precisely. In addition, approximation of the log-aesthetic curve by a high-order NURBS curve is expected to improve the approximation accuracy. As a result, according to the present invention, highly accurate approximation of the log-aesthetic curve by a NURBS curve can be performed. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram showing an example of a functional configuration of an approximation curve generating device for a log-aesthetic curve according to an embodiment of the present invention; [Diagram 2] FIG. 1 is a diagram for explaining a log-aesthetic curve and its feature quantities. [Diagram 3]FIG. 13 shows an example of a κ graph, a logarithm of curvature graph, and an α graph for a log-aesthetic curve. [Figure 4] 4 is a block diagram showing a specific example of a functional configuration of an initial curve setting unit according to the present embodiment. FIG. [Diagram 5] 5 is a diagram showing an example of sample points extracted by a sample point extracting unit of the present embodiment; FIG. [Figure 6] 1A to 1C are diagrams illustrating an example of a κ graph, a logarithmic curvature graph, and an α graph for an approximation curve of a log-aesthetic curve according to a conventional method. [Figure 7] 4 is a block diagram showing a specific example of the functional configuration of a curve approximation unit according to the present embodiment. FIG. [Figure 8] 5 is a flowchart showing an example of the operation of the log-aesthetic curve approximation curve generating device according to the present embodiment. [Figure 9] 3A to 3C are diagrams illustrating an example of a κ graph, a logarithmic curvature graph, and an α graph for an approximation curve generated by the log-aesthetic curve approximation curve generation device according to the present embodiment. [Figure 10] 13 is a diagram showing another example of sample points extracted by the sample point extracting unit of the present embodiment. FIG. [Figure 11] FIG. 1 is a diagram for explaining a log-aesthetic curve and its feature quantities. [Figure 12] FIG. 11 is a block diagram showing another example of the functional configuration of the log-aesthetic curve approximation curve generating device according to the present embodiment. [Figure 13] 13 is a block diagram showing another example of the functional configuration of the initial curve setting unit according to the present embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an example of the functional configuration of an approximation curve generating device 1 for a log-aesthetic curve (hereinafter simply referred to as the approximation curve generating device 1) according to this embodiment. As shown in FIG. 1, the approximation curve generating device 1 of this embodiment includes, as its functional configuration, a parameter input unit 11, an initial curve setting unit 12, and a curve approximation unit 13. The approximation curve generating device 1 of this embodiment generates a NURBS curve C based on an optimization process.N Log-aesthetic curve C LA It is an approximation of
[0015] These functional blocks 11 to 13 can be configured by any of hardware, DSP (Digital Signal Processor), and software. For example, when configured by software, the functional blocks 11 to 13 are actually configured with a CPU, RAM, ROM, etc. of a computer, and are realized by the operation of a program stored in a storage medium such as the RAM, ROM, hard disk, or semiconductor memory.
[0016] The parameter input section 11 is a NURBS curve C N Log-aesthetic curve C approximated by LA We input three feature quantities α, θ, and Λ as parameters. α is the slope of the logarithmic curvature graph. Figure 2 shows the log-aesthetic curve C LA FIG. 2 is a diagram for explaining the feature quantities θ and Λ. In FIG. 2, a log-aesthetic curve C LA Starting point P s The origin is P and the end point is P e Let ||P e -P s When ||=1, θ is the log-aesthetic curve C LA Point P on the top e The angle between the tangent of the log-aesthetic curve C and the x-axis is shown in Figure 2. LA The magnitude of the curvature κ at each point on the graph is illustrated in the form of a curvature comb.
[0017] Log-Aesthetic Curve C LA The logarithmic curvature graph of shows a straight line with a slope of α, and is expressed by the following formula (1a). Here, s is the arc length, and ρ is the radius of curvature (ρ=ds / dθ). Furthermore, by substituting the curvature κ=1 / ρ into formula (1a), we obtain the following formula (1b) which shows the straight line equation of the logarithmic curvature graph. Furthermore, by rearranging formula (1a), Λ=e -c As a result, the following equation (2) is obtained. c is the y-intercept of the logarithmic curvature graph (see Fig. 3(b)). Λ is the log-aesthetic curve C LAThe section to be extracted as (start point P s and the end point P e This is equivalent to specifying the starting point of the standard log-aesthetic curve (between the starting point P at the origin) when α ≠ 1. s is a parameter that rotates and scales the x-axis tangent of the curve (where α=1), and when α=1, it changes the shape of the curve.
[0018]
number
[0019] For a standard log-aesthetic curve, integrating equation (2) and replacing the radius of curvature ρ with the curvature κ gives us the following equation (3). -α A graph with log(κ|ds / dκ|) on the vertical axis and arc length s on the horizontal axis is called a κ graph. A graph with log(κ|ds / dκ|) from equation (1b) on the vertical axis and -logκ on the horizontal axis is called a log-curvature graph. Furthermore, the following equation (4) holds between α and κ. A graph with α from equation (4) on the vertical axis and arc length s on the horizontal axis is called an α graph. Figures 3(a) to (c) show the log-aesthetic curve C LA FIG. 13 is a diagram illustrating a κ graph, a logarithmic curvature graph, and an α graph against .gamma., all of which are straight lines.
[0020]
number
[0021] The value log(κ|ds / dκ|) on the vertical axis of the logarithmic curvature graph shown in equation (1b) and FIG. 3(b) includes the first derivative of κ. Since κ is defined as the second derivative of the curve, the logarithmic curvature graph is based on the third derivative of the curve. In addition, the slope α of the logarithmic curvature graph shown in equation (4) and FIG. 3(c) includes the second derivative of κ. Therefore, the α graph is based on the fourth derivative of the curve. In this specification, the fourth derivative is referred to as a higher derivative, and a derivative less than the fourth derivative is referred to as a lower derivative.
[0022] The initial curve setting unit 12 sets the log-aesthetic curve C LA Based on the parameters representing the feature quantities α, θ, and Λ, the initial curve C N 0 Fig. 4 is a block diagram showing a specific functional configuration example of the initial curve setting unit 12 according to this embodiment. As shown in Fig. 4, the initial curve setting unit 12 of this embodiment includes, as specific functional configurations, a sample point extraction unit 12A and an initial curve approximation unit 12B.
[0023] The sample point extraction unit 12A extracts the log-aesthetic curve C inputted by the parameter input unit 11. LA Based on the parameters representing the feature quantities α, θ, and Λ, the log-aesthetic curve C LA Calculate the coordinates of multiple sample points on the log-aesthetic curve C LA This can be obtained by numerically integrating the following equation (5) for
[0024]
number
[0025] Here, the sample point extraction unit 12A calculates the coordinate values of N sample points. The number of samples N may be a predetermined value, or may be input as a parameter.
[0026] FIG. 5 shows the log-aesthetic curve C extracted by the sample point extraction unit 12A. LA The figure shows an example of sample points on the log-aesthetic curve C with α=0 and θ=70°. LA This is an example where θ is calculated in increments of 10° using equation (5).
[0027] The initial curve approximation unit 12B uses the sample points extracted by the sample point extraction unit 12A to approximate a low-order NURBS curve C NL Log-aesthetic curve C LAThe details of this approximation will be described later. The initial curve approximation unit 12B approximates the obtained low-order approximation curve to the initial curve C. N 0 In this specification, an order equal to or greater than the fifth order is referred to as a high order, and an order less than the fifth order is referred to as a low order.
[0028] The curve approximation unit 13 calculates the initial curve C set by the initial curve setting unit 12. N 0 Using the above, we perform optimization to minimize the objective function of the α-graph defined by an equation including the fourth-order derivative of the curve, and obtain the log-aesthetic curve C LA to a high-order NURBS curve C NH The specific number of higher orders may be determined in advance or may be freely determined by the operator.
[0029] The objective functions used in this embodiment are described in detail below. Consider three objective functions Φ(C), Ψ(C), and Ω(C) shown in the following formulas (6a) to (6c) for a curve C. These indicate errors of N sample points for the straight lines of the κ graph, the logarithmic curvature graph, and the α graph shown in Figs. 3(a) to (c), respectively. Note that the objective function Φ(C) based on the κ graph and Ψ(C) based on the logarithmic curvature graph correspond to the "objective function based on low-order differentiation" in the claims, and the objective function Ω(C) based on the α graph corresponds to the "objective function based on high-order differentiation" in the claims.
[0030]
number
[0031] Curve C is a log-aesthetic curve C LA If exactly equal, then the following conditions are satisfied for the three objective functions Φ(C), Ψ(C), and Ω(C). Condition LA0:Φ(C LA )=0 (linearity of the kappa graph) Condition LA1:Ψ(C LA )=0 (linearity of the logarithmic curvature graph) Condition LA2:Ω(CLA )=0 (linearity of α graph)
[0032] However, curve C is a log-aesthetic curve C LA If the three objective functions Φ(C), Ψ(C), and Ω(C) are not equal to zero, then the NURBS curve C N Log-aesthetic curve by C LA To approximate with high accuracy, we need to find a NURBS curve C such that the three objective functions Φ(C), Ψ(C), and Ω(C) are all sufficiently small. N This means asking for
[0033] Curve C is a log-aesthetic curve C LA Conventionally, conditions LA0 and LA1 have been used to judge whether or not the condition LA is sufficiently approximated. However, the present inventors have found that even if the condition LA0 and the condition LA1 are sufficiently satisfied, the condition LA2 is not necessarily sufficiently satisfied.
[0034] Figure 6(a)-(c) shows the log-aesthetic curve C LA to the NURBS curve C N 6A and 6B are diagrams showing examples of a κ graph, a logarithmic curvature graph, and an α graph when the graph is approximated by the following equation. The κ graph in FIG. 6A is a straight line graph that satisfies the condition LA0 sufficiently, but the logarithmic curvature graph in FIG. 6B and the α graph in FIG. 6C are wavy and do not satisfy the conditions LA1 and LA2, respectively. In this embodiment, the curve C that satisfies the condition LA2 as much as possible, that is, the curve C that minimizes the objective function Ω(C) in the equation (6c) by the optimization method is called the log-aesthetic curve C. LA The curve is calculated as an approximation of the
[0035] The above-mentioned initial curve approximation unit 12B uses the sample points extracted by the sample point extraction unit 12A to approximate a low-order NURBS curve C so as to minimize, for example, the objective function Φ(C) based on the κ graph shown in equation (6a) or the objective function Ψ(C) based on the logarithmic curvature graph shown in equation (6b). NL Log-aesthetic curve C LAThe initial curve approximation unit 12B approximates the obtained low-order approximation curve to the initial curve C. N 0 Set as.
[0036] The initial curve approximation unit 12B calculates a NURBS curve C obtained by approximation (or interpolation) using the N sample points extracted by the sample point extraction unit 12A using the least squares method, as shown in the following formula (7). N , a low-order NURBS curve C NL Here, t n is the equal division point C LA (s n ) closest point C N (t n When an approximation curve based on the least squares method is used, the initial curve approximation unit 12B calculates an approximation curve so as to minimize the objective function shown in the formula (7), and uses the calculated low-order approximation curve as the initial curve C. N 0 Set as.
[0037]
number
[0038] As described above, the curve approximation unit 13 calculates the initial curve C set by the initial curve setting unit 12. N 0 By using the α-graph objective function Ω(C), we can obtain a log-aesthetic curve C LA Approximate.
[0039] When evaluating an approximation curve using the objective function Ω(C) of the α graph, the slope α of the logarithmic curvature graph contains the second derivative of the curvature κ as shown in formula (4), so when generating an approximation curve with a B-spline curve, the curve must be at least C4 continuous to ensure continuity between segments. Also, when generating an approximation curve with a Bézier curve, the degree of freedom in shape expression for approximation is increased by using a higher-order equation. For these reasons, in this embodiment, a high-order NURBS curve C NHAn approximation is performed by
[0040] In addition, the high-order NURBS curve C used for the approximation curve NH The components of (control points, weights, knots, etc.) can be found using general-purpose optimization methods. However, the higher the order, the more freedom there is in setting the initial values of the components, which can result in a local solution and make it difficult to obtain the desired solution. On the other hand, if the search range is widened and optimization calculations are performed, the risk of falling into a local solution can be reduced, but the calculation load increases.
[0041] So, first, we create a low-order NURBS curve C NL The approximate curve is obtained by optimization calculation using the above method, and the degree of the obtained curve is increased. The components of the curve are converted into a high-order NURBS curve C NH may be set to the initial value of and an approximation curve may be generated again by optimization calculation. Since the fourth-order differential value is sensitive to changes in the components of the curve, in optimization calculation based on an α graph including a fourth-order differential, the problem that the result depends on the difference in the initial value becomes prominent. Therefore, a two-stage evaluation may be performed, that is, an optimization calculation for minimizing the objective function by a lower order differential and an optimization calculation for minimizing the objective function by a higher order differential. In addition, a combination of raising the order of the curve and a two-stage evaluation by a lower order differential and a higher order differential may be applied. Note that, raising the order refers to a known process of raising the order while keeping the shape of the curve as it is (without changing the coordinate values of the curve).
[0042] Fig. 7 is a block diagram showing a specific example of the functional configuration of curve approximation unit 13 when a curve order increase and a two-stage evaluation of low-order and high-order derivatives are applied in combination. As shown in Fig. 7, curve approximation unit 13 includes order increase unit 13A, curve approximation unit 13B using low-order derivatives, and curve approximation unit 13C using high-order derivatives.
[0043] The curve approximation unit 13 shown in FIG. 7 approximates the initial curve C generated by the initial curve setting unit 12. N 0is set as an initial value for the optimization process, and the degree is sequentially increased by degree increasing unit 13A until the initially set degree d of the curve reaches a specified high degree D, while the optimization process is repeatedly performed by curve approximation unit 13B using low-order differentiation and curve approximation unit 13C using high-order differentiation.
[0044] The degree raising unit 13A is a curve set by the initial curve setting unit 12. N 0 Alternatively, the degree of the approximation curve generated by the curve approximation unit 13C using higher-order differentiation is increased. That is, the degree increasing unit 13A increases the degree of the initial curve C set by the initial curve setting unit 12 in the first stage. N 0 is increased in degree, and in the next and subsequent stages, the degree of the approximation curve generated by the curve approximation unit 13C using higher-order differentiation is increased.
[0045] The curve approximation unit 13B using low-order differentiation sets the components of the curve (low-order or high-order approximation curve) generated by the degree raising unit 13A as initial values of the optimization process, and calculates the low-order NURBS curve C so as to minimize the objective function Φ(C) using the κ graph shown in equation (6a), the objective function Ψ(C) using the logarithmic curvature graph shown in equation (6b), or the objective function using the least squares method shown in equation (7). NL or a higher-order NURBS curve C NH Log-aesthetic curve C LA Approximate.
[0046] Here, the low-order differential curve approximation unit 13B calculates a low-order NURBS curve C NL Log-aesthetic curve C LA and high-order NURBS curves C NH Log-aesthetic curve C LA That is, when a low-order approximation curve is set as an initial value of the optimization process, the low-order derivative curve approximation unit 13B approximates a low-order NURBS curve C so as to minimize the objective function by the low-order derivative. NL Log-aesthetic curve C LAOn the other hand, when a high-order approximation curve is set as the initial value of the optimization process, a high-order NURBS curve C is approximated so as to minimize the objective function with low-order derivatives. NH Log-aesthetic curve C LA Approximate.
[0047] For example, in the initial curve setting unit 12, a 3-dimensional NURBS curve C N3 The lower order approximation curve C L3 Approximate this to the initial curve C N 0 When the initial curve C N 0 The degree of approximation is increased from 3rd to 4th order. Then, the curve approximation unit 13B using low-order differentiation approximates the curve C generated by increasing the degree of approximation. L4 Set the initial value of the optimization process and optimize the 4th degree NURBS curve C to minimize the objective function Φ(C) based on the κ graph or the objective function Ψ(C) based on the logarithmic curvature graph. N4 Log-aesthetic curve C LA Approximate.
[0048] When executing the second or subsequent iterative process, the degree raising unit 13A raises the degree of the approximation curve generated in the previous process. For example, the approximation curve C of degree 4 generated in the previous process L4 When the fourth-order approximation curve C L4 The order of the curve C generated by the order increase is increased from fourth to fifth order. H5 Set the initial value of the optimization process and optimize the quintic NURBS curve C to minimize the objective function Φ(C) based on the κ graph or the objective function Ψ(C) based on the logarithmic curvature graph. N5 Log-aesthetic curve C LA Approximate.
[0049] The curve approximation unit 13C using high-order differentiation sets the approximation curve obtained by the curve approximation unit 13B using low-order differentiation as the initial value of the optimization process, and calculates the low-order NURBS curve C so as to minimize the objective function Ω(C) using the α graph shown in equation (6c). NL or a higher-order NURBS curve CNH Log-aesthetic curve C LA Reapproximate.
[0050] Here, the curve approximation unit 13C using higher-order differentiation performs a repetitive process to approximate the lower-order NURBS curve C NL Log-aesthetic curve C LA and high-order NURBS curves C NH Log-aesthetic curve C LA That is, when a low-order approximation curve is set as the initial value of the optimization process, the curve approximation unit 13C using high-order differentiation approximates the low-order NURBS curve C so as to minimize the objective function using high-order differentiation. NL Log-aesthetic curve C LA On the other hand, when a high-order approximation curve is set as the initial value of the optimization process, a high-order NURBS curve C is approximated so as to minimize the objective function by high-order differentiation. NH Log-aesthetic curve C LA Approximate.
[0051] For example, in the first iteration, the fourth-order approximation curve C is obtained by the curve approximation unit 13B using low-order differentiation. L4 When the fourth-order approximation curve C is generated, the curve approximation unit 13C using higher-order differentiation L4 Set the initial value of the optimization process and solve the 4th degree NURBS curve C to minimize the objective function Ω(C) by the α graph. N4 Log-aesthetic curve C LA In the second iterative process, the curve approximation unit 13C using higher-order differentiation approximates the fifth-order approximation curve C generated by the curve approximation unit 13B using lower-order differentiation. H5 Set the initial value of the optimization process and optimize the 5th degree NURBS curve C to minimize the objective function Ω(C) by the α graph. N5 Log-aesthetic curve C LA This approximates the high-order NURBS curve C that minimizes the objective function Ω(C) by the α-graph. NH Log-aesthetic curve C LA Then, the process of the curve approximation unit 13 for approximating the above is completed.
[0052] In addition, the seventh degree NURBS curve C N7 Log-aesthetic curve C LA If you want to approximate a 5th order NURBS curve, C N5 Log-aesthetic curve by C LA Even after the approximation, the iterative processing of the degree increasing unit 13A, the curve approximation by low-order differentiation unit 13B, and the curve approximation by high-order differentiation unit 13C continues to be executed. Here, the degree may be increased from 5th to 7th order instead of increasing from 5th to 6th order.
[0053] 8 is a flowchart showing an example of the operation of the approximation curve generating device 1 according to the present embodiment configured as described above. First, the parameter input unit 11 inputs a log-aesthetic curve C LA The three feature quantities α, θ, and Λ related to are input as parameters (step S1). Here, the number of sample points N and the high-dimensional NURBS curve C NH The order D of the equation may be input as a parameter.
[0054] Next, the sample point extraction unit 12A of the initial curve setting unit 12 calculates a log-aesthetic curve C based on the parameters α, θ, and Λ input by the parameter input unit 11. LA The coordinate values of the upper sample points are calculated (step S2).
[0055] Next, the initial curve approximation unit 12B uses the sample points extracted by the sample point extraction unit 12A to approximate the low-order NURBS curve C NL Log-aesthetic curve C LA The NURBS curve C is approximated. NL The initial curve C N 0 (step S3).
[0056] Next, the degree increasing unit 13A calculates the initial curve C generated by the initial curve approximation unit 12B. N 0Alternatively, raise the order of the approximate curve generated in the previous iteration process (step S4). Then, the curve approximation part 13B by low-order differentiation sets the curve generated by the order raising as the initial value of the optimization process, and the NURBS curve C minimizes the objective function by low-order differentiation. N approximates the logarithmic aesthetic curve C LA thereby (step S5).
[0057] Furthermore, the curve approximation part 13C by high-order differentiation sets the approximate curve obtained by the curve approximation part 13B by low-order differentiation as the initial value of the optimization process, and the NURBS curve C minimizes the objective function by high-order differentiation. N re-approximates the logarithmic aesthetic curve C LA thereby (step S6).
[0058] After that, the curve approximation part 13 determines whether or not the order d after the order raising performed in step S4 has reached a predetermined order D (step S7). If d < D, the process returns to step S4, and the iterative processes of the order raising part 13A, the curve approximation part 13B by low-order differentiation, and the curve approximation part 13C by high-order differentiation are continuously executed. On the other hand, if d = D, the process of the flowchart shown in FIG. 8 ends.
[0059] As described in detail above, in the present embodiment, based on the input parameters representing the characteristic quantities α, θ, Λ of the logarithmic aesthetic curve C LA to be generated, after obtaining the coordinate values of the sample points on the logarithmic aesthetic curve C LA , the initial curve C N 0 is obtained using the plurality of sample points, and the initial curve C N 0 is set as the initial value of the optimization calculation, and the high-order NURBS curve C minimizes the objective function Ω(C) defined by an expression including the fourth-order differentiation of the curve in order to evaluate the linearity of the α graph. NH approximates the logarithmic aesthetic curve C LA thereby.
[0060] According to the present embodiment configured as described above, for the logarithmic aesthetic curve C LAThe evaluation of whether the above requirement is satisfied is performed based on the linearity of the α graph using the objective function Ω(C) defined by an equation including the fourth-order derivative of the curve. The α graph indicates whether or not a given point on the logarithmic curvature graph has a slope of α, so the approximate curve obtained can be evaluated precisely. In line with this, the high-order NURBS curve C NH Log-aesthetic curve C LA By performing approximation using the B-spline curve, the approximation accuracy is expected to improve, and the continuity of the α graph can be guaranteed in the approximation using the B-spline curve. As a result, according to this embodiment, it is possible to perform approximation using the NURBS curve C such as the Bézier curve or the B-spline curve. N Log-aesthetic curve by C LA A highly accurate approximation can be performed.
[0061] 9(a) to (c) are diagrams illustrating the κ graph, the logarithmic curvature graph, and the α graph for the approximation curve generated by the approximation curve generating device 1 of this embodiment, and all of the graphs are straight lines. In particular, while the logarithmic curvature graph and the α graph are both wavy in FIG. 6(b) and (c), in FIG. 9(b) and (c) the wavy lines are eliminated and the graphs are neat straight lines, and the log-aesthetic curve C LA This shows that the above equation can be approximated with high accuracy.
[0062] In this embodiment, the low-order NURBS curve C NL After optimization using, the degree is increased and the components of the curve are transformed into a high-degree NURBS curve C NH and performs optimization again by setting the initial value of and performing a two-stage optimization calculation using evaluation with low-order derivatives of the curve and evaluation with high-order derivatives. This reduces the risk of falling into an inappropriate local solution and not being able to obtain the desired solution, even if the optimization calculation is not performed with a wide search range.
[0063] As mentioned above, the low-order NURBS curve C NL After optimization using NHAlternatively, only a process of re-optimizing using a lower derivative of the curve and then re-optimizing using a higher derivative may be applied.
[0064] In the former case, the curve approximation unit 13 approximates a low-order NURBS curve C NL Log-aesthetic curve C LA After approximating, the degree of the low-order approximation curve obtained by the approximation is increased, and the high-order approximation curve generated by the increase in degree is set as the initial value of the optimization process, and the high-order NURBS curve C NH Log-aesthetic curve C LA In this case, the curve approximation unit 13 re-approximates the low-order NURBS curve C NL Even when using high-order NURBS curves C NH When using the log-aesthetic curve C, we also minimize the objective function Ω(C) by the α-graph. LA Approximate.
[0065] In the latter case, the curve approximation unit 13 calculates a log-aesthetic curve C so as to minimize the objective function Φ(C) / Ψ(C) by, for example, the κ graph / log-curvature graph. LA After approximating, the approximate curve generated by the approximation is set as the initial value of the optimization process, and the log-aesthetic curve C is calculated so as to minimize the objective function Ω(C) by the α graph. LA In this case, the curve approximation unit 13 re-approximates the high-order NURBS curve C whether it uses the objective function Φ(C) / Ψ(C) based on the κ graph / logarithmic curvature graph or the objective function Ω(C) based on the α graph. NH Using the log-aesthetic curve C LA Approximate.
[0066] In the above embodiment, the sample point extraction unit 12A calculates the log-aesthetic curve C LA Although the above example of calculating the coordinate values of the sample points has been described, the present invention is not limited thereto. For example, when the log-aesthetic curve C LA The coordinate values of the sample points may be calculated using the following equation (8), in which the arc length parameter s is used:
[0067]
number
[0068] FIG. 10 is a diagram showing an example of sample points extracted based on Equation (8). The log-aesthetic curve C shown in FIG. LA is the same curve as in Figure 5, with α = 0 and θ = 70°. As shown in Figure 10, the log-aesthetic curve C LA Since sample points can be extracted at equal intervals on the curve, a balanced error evaluation can be performed on the entire curve.
[0069] In the above embodiment, the parameter input unit 11 inputs the log-aesthetic curve C LA In the above example, the three feature quantities α, θ, and Λ are input as parameters, but the present invention is not limited to this. LA It is a cumbersome task to input the parameters of the feature quantity Λ by trial and error in order to generate the feature quantity Λ. Therefore, instead of the parameter input unit 11 inputting the three feature quantities α, θ, and Λ as parameters, the parameter input unit 11 inputs the three feature quantities α, θ d ,θ e Alternatively, the features α, θ may be calculated from the parameters. For example, the feature values α, θ may be calculated by a known bisection algorithm described in the paper “Interactive Aesthetic Curve Segments”, The Visual Computer (Pacific Graphics), Vol. 22, No. 9-11, pp. 896-905, 2006. (Norimasa Yoshida, Takafumi Saito). d ,θ e It is possible to calculate Λ from
[0070] Figure 11 shows the feature amount θ d ,θ e On the xy coordinate plane shown in FIG. s is a log-aesthetic curve C LA The starting point of P e is a log-aesthetic curve C LA The end point of θ dis ||P e -P s Log-aesthetic curve C when ||=1 LA Point P on the top e This is the angle between the tangent to the x-axis and is the same as θ shown in Figure 2. e is a log-aesthetic curve C LA Starting point P s and end point P e is the angle between the line connecting the x-axis and
[0071] In the above embodiment, the initial curve setting unit 12 includes a sample point extraction unit 12A and an initial curve approximation unit 12B, and the log-aesthetic curve C LA Based on the parameters representing the feature quantities α, θ, and Λ, the log-aesthetic curve C LA After calculating the coordinates of multiple sample points on the low-order NURBS curve C NL Log-aesthetic curve C LA By approximating the initial curve C N 0 However, the present invention is not limited to this. For example, the approximate curve generating device 1 may be configured as shown in FIG.
[0072] In the example shown in Fig. 12, the approximate curve generating device 1 includes a parameter input unit 11' and an initial curve setting unit 12' instead of the parameter input unit 11 and the initial curve setting unit 12 shown in Fig. 1. As shown in Fig. 13, the initial curve setting unit 12' includes an initial curve approximation unit 12C as a specific functional configuration.
[0073] The parameter input section 11' inputs the NURBS curve C N Log-aesthetic curve C approximated by LA Four parameters P s ,P e ,θ d ,θ e (See Figure 11.)
[0074] The initial curve approximation unit 12C of the initial curve setting unit 12' uses the four parameters P s ,P e ,θd ,θ e Based on this, the two end points of the curve P s ,P e The two end points P are connected so as to satisfy the constraint that they are tangent (G1 continuity) or curvature (G2 continuity) at s ,P e The curve between the low-order NURBS curve C NL The initial curve C is approximated by N 0 Set.
[0075] NURBS curve C of degree D (≧3) that satisfies the condition of G1 continuity N has the following M+1 control points: P0=P s P1=P s +t s (P m -P e ) P i =(x i ,y i ) P M-1 =P e +t e (P m -P e ) P M =P e
[0076] Here, t s ,t e (0≦t s , t e ≦1) and P i (i=2, ,M-2) are the variables to be calculated by optimization, and the NURBS curve C N is the approximate curve we are looking for. For example, in the case of a Bezier curve with D=5, the desired variable is t s ,t e , P2(x2,y2), and P3(x3,y3), for a total of six.
[0077] For rational Bézier curves, each control point P i Weight of w i For example, w0 = w D= 1 and add the remaining weights to the optimization variables. For example, if D = 5, the desired variable is t s ,t e ,P2,P3,w i (i=1,2,3,4) for a total of 10. The condition for G2 continuity is s ,P e The curvature value κ of s * ,κ e * When is specified, the weighting coefficients w1,w D-1 Since is given by the following equation (9), the number of variables to be determined is reduced by two.
[0078]
number
[0079] In addition, the above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited thereby. In other words, the present invention can be implemented in various forms without departing from the gist or main characteristics thereof. [Explanation of symbols]
[0080] 1 Approximate curve generator 11,11' Parameter input section 12,12' Initial curve setting section 12A Sample point extraction section 12B Initial curve approximation part 12C Initial curve approximation part 13 Curve approximation part 13A Order increase section 13B Curve approximation using low-order derivatives 13C Curve approximation using higher order derivatives
Claims
1. An approximation curve generating device that approximates a log-aesthetic curve using a NURBS curve based on an optimization process, comprising: an initial curve setting unit that sets an initial curve when performing the optimization process based on parameters that represent feature amounts of the log-aesthetic curve; a curve approximation unit that performs the optimization process by using the initial curve set by the initial curve setting unit to minimize an objective function defined by an equation including a fourth-order differential of the curve, and approximates the log-aesthetic curve by a high-order NURBS curve that is quintic or higher. The present invention relates to an approximation curve generating device for a log-aesthetic curve.
2. The initial curve setting unit is a sample point extraction unit that extracts coordinate values of a plurality of sample points on the log-aesthetic curve based on parameters that represent feature amounts of the log-aesthetic curve; an initial curve approximation unit that sets the initial curve by approximating the log-aesthetic curve with a low-order NURBS curve that is less than 5th order, using the sample points extracted by the sample point extraction unit; 2. The apparatus for generating an approximation curve of a log-aesthetic curve according to claim 1.
3. The initial curve setting unit is and an initial curve approximation unit that sets the initial curve by approximating the curve between the two end points with a low-order NURBS curve that is less than 5th order, based on parameters that represent the characteristic quantities of the log-aesthetic curve, so as to satisfy a constraint that the curve is tangent continuous or curvature continuous at both end points of the curve.
2. The apparatus for generating an approximation curve of a log-aesthetic curve according to claim 1.
4. 2. The device for generating an approximation curve for a log-aesthetic curve according to claim 1, wherein the curve approximation unit approximates the log-aesthetic curve with a low-order NURBS curve having an order of less than 5, then increases the order of the low-order approximation curve obtained by the approximation to 5 or more, sets the high-order approximation curve generated by the order increase as an initial value for an optimization process, and re-approximates the log-aesthetic curve with the high-order NURBS curve.
5. 5. The device for generating an approximation curve for a log-aesthetic curve according to claim 1 or 4, wherein the curve approximation unit approximates the log-aesthetic curve so as to minimize an objective function based on low-order derivatives defined in an equation including low-order derivatives that are derivatives of the curve less than four orders, and then sets the approximation curve obtained by the approximation as an initial value of an optimization process, and re-approximates the log-aesthetic curve so as to minimize an objective function based on high-order derivatives defined in an equation including high-order derivatives that are derivatives of the curve less than four orders.
6. The curve approximation section is a low-derivative curve approximation unit that approximates the log-aesthetic curve so as to minimize the low-derivative objective function; a high-order derivative curve approximation unit that approximates the log-aesthetic curve so as to minimize the high-order derivative objective function; an order raising unit that raises the order of the initial curve set by the initial curve setting unit or the approximation curve generated by the curve approximation unit using higher order differentiation, the low-order differential curve approximation unit sets the approximation curve generated by the degree increase as an initial value of an optimization process, and approximates the log-aesthetic curve by the low-order NURBS curve or the high-order NURBS curve so as to minimize an objective function by the low-order differential; the curve approximation unit using higher-order differentiation sets the approximation curve found by the curve approximation unit using lower-order differentiation as an initial value of an optimization process, and re-approximates the log-aesthetic curve using the lower-order NURBS curve or the higher-order NURBS curve so as to minimize the objective function using the higher-order differentiation; The process of the degree raising unit, the curve approximation unit using low-order differentiation, and the curve approximation unit using high-order differentiation are repeatedly performed until a process is performed on a high-order approximation curve of degree 5 or more by raising the degree of differentiation.
6. The apparatus for generating an approximation curve of a log-aesthetic curve according to claim 5.
7. 1. A method for approximating a log-aesthetic curve using a NURBS curve based on an optimization process, comprising: A first step in which an initial curve setting unit of a computer sets an initial curve for performing the optimization process based on parameters representing features of the log-aesthetic curve; a second step in which a curve approximation unit of the computer performs the optimization process using the initial curve set by the initial curve setting unit so as to minimize an objective function defined by an equation including a fourth-order differential of the curve, and approximates the log-aesthetic curve by a high-order NURBS curve that is fifth or higher order. A method for generating an approximation curve of a log-aesthetic curve.
Citation Information
Patent Citations
Cad system
JP2001184514A
Graphic information processing device for forming aesthetic curves, graphic information processing method, and graphic information processing program
US20110164041A1
JP1976077771A
Route switching system
JP1979087416A
