JP7629802B2 - Curve generating device and curve generating program - Google Patents

Curve generating device and curve generating program Download PDF

Info

Publication number
JP7629802B2
JP7629802B2 JP2021086419A JP2021086419A JP7629802B2 JP 7629802 B2 JP7629802 B2 JP 7629802B2 JP 2021086419 A JP2021086419 A JP 2021086419A JP 2021086419 A JP2021086419 A JP 2021086419A JP 7629802 B2 JP7629802 B2 JP 7629802B2
Authority
JP
Japan
Prior art keywords
curve
curvature
condition
parabolic
generated
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.)
Active
Application number
JP2021086419A
Other languages
Japanese (ja)
Other versions
JP2022179140A (en
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.)
Biprogy Inc
Original Assignee
Biprogy Inc
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 Biprogy Inc filed Critical Biprogy Inc
Priority to JP2021086419A priority Critical patent/JP7629802B2/en
Publication of JP2022179140A publication Critical patent/JP2022179140A/en
Application granted granted Critical
Publication of JP7629802B2 publication Critical patent/JP7629802B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Generation (AREA)

Description

本発明は、曲線生成装置および曲線生成用プログラムに関し、特に、意匠デザイン分野で求められる曲率変化の滑らかな曲線を生成するための曲線生成装置および曲線生成用プログラムに用いて好適なものである。 The present invention relates to a curve generation device and a curve generation program, and is particularly suitable for use in a curve generation device and a curve generation program for generating curves with smooth curvature changes required in the field of design.

一般の製品設計では、CAD(Computer Aided Design)により、製品の形状データが製作される。その方法の1つとして、リバースエンジニアリング技術を活用し、モデルとなる物体の測定データからその曲線/曲面の形状を再構築する方法が注目されている。例えば、自動車メーカでは、デザイナのアイデアをクレイモデルで具現化し、その測定データからCADデータが製作されている。 In general product design, product shape data is created using CAD (Computer Aided Design). One method that has attracted attention is the use of reverse engineering technology to reconstruct the shape of curves and surfaces from measurement data of the model object. For example, automobile manufacturers embody the designer's ideas in clay models, and then create CAD data from the measurement data.

測定データからCADで曲線を再構築する場合、(i)生成する曲線は指定されたトレランス以内で測定データを十分に近似できていること、(ii)生成する曲線はその曲率変化が滑らかであること、の2点が要求される。特に、(ii)において、曲率単調性の条件の取り扱いが重要となる。事実、特徴線またはキャラクタ線と呼ばれる意匠デザイン上の重要な曲線は、部分的に曲率単調であっても全域にわたって曲率単調とは限らない。そこで、1本の曲線を複数のセグメントに分割し、分割したセグメントごとに曲率単調性の条件を満足するように曲線を生成する方法が提案されている(例えば、特許文献1,2参照)。 When reconstructing a curve from measured data using CAD, two requirements are met: (i) the generated curve must adequately approximate the measured data within a specified tolerance, and (ii) the generated curve must have a smooth change in curvature. In particular, in (ii), it is important to handle the condition of curvature monotonicity. In fact, important curves in design, known as feature lines or character lines, may have curvature monotonicity in parts, but not necessarily over the entire area. Therefore, a method has been proposed in which a curve is divided into multiple segments and a curve is generated so that the condition of curvature monotonicity is satisfied for each divided segment (see, for example, Patent Documents 1 and 2).

特許文献1に記載の曲線生成装置では、接続すべき曲線セグメントの両端点のうち接続すべき端点を頂点とし、この端点を通る接線方向をx軸とする放物線を端点に表示する。そして、放物線の形状を決めるパラメータの制御により、端点に対して接線連続する曲線を放物線の一部分から生成する。 In the curve generation device described in Patent Document 1, the end point to be connected between the two end points of the curve segments to be connected is set as a vertex, and a parabola is displayed at the end point with the tangent direction passing through this end point as the x-axis. Then, by controlling the parameters that determine the shape of the parabola, a curve that is tangent to the end point is generated from a portion of the parabola.

しかしながら、この方法で放物線を決定するには、始点位置、終点位置、接線方向への伸縮および法線方向への伸縮の4つのパラメータが必要で、さらに、曲線セグメント間を曲率連続にするには、セグメント間で曲率半径が連続となるように放物線のパラメータを適切に調整する必要がある。つまり、全体として曲率変化が滑らかな曲線を生成するためには、複数のパラメータの調整が必要となるが、それには試行錯誤を伴うため、所望の曲線は容易には得られない。 However, to determine a parabola using this method, four parameters are required: the start position, the end position, and stretch in the tangential and normal directions. Furthermore, to achieve curvature continuity between curve segments, the parameters of the parabola must be appropriately adjusted so that the radius of curvature is continuous between segments. In other words, to generate a curve with smooth overall curvature changes, multiple parameters must be adjusted, but this requires trial and error, and the desired curve is not easily obtained.

特許文献2に記載のCADシステムでは、入力で与えられた曲線データを複数のセグメントに分割し、各セグメントの曲率半径または曲率のべき乗が該セグメントの弧長パラメータの1次式で表されるように、分割されたセグメント毎に美的曲線を生成する。さらに、隣接するセグメントが曲率連続になるようするため、接続点での互いのセグメント端における曲率値の差が所定の閾値以下になるように、各セグメントを変形する。 In the CAD system described in Patent Document 2, input curve data is divided into multiple segments, and an aesthetic curve is generated for each divided segment so that the radius of curvature or the power of curvature of each segment is expressed as a linear expression of the arc length parameter of the segment. Furthermore, to make adjacent segments curvature continuous, each segment is deformed so that the difference in curvature value at each segment end at the connection point is equal to or less than a predetermined threshold.

特許文献2の記載によれば、分割した個々のセグメントに対して、それぞれの曲率半径または曲率のべき乗に関する条件を満たすように美的曲線を生成できる。しかしながら、個々の当該曲線を生成した後、セグメント間の曲率連続を実現させようと接続部分を強引に調整する結果、最終的に生成される曲線は、美的曲線ではなくなってしまっている。 According to the description in Patent Document 2, aesthetic curves can be generated for each divided segment so as to satisfy conditions related to the radius of curvature or the power of curvature. However, after generating each of the curves, the connecting parts are forcibly adjusted in an attempt to achieve curvature continuity between the segments, and as a result, the final curve generated is no longer an aesthetic curve.

特開2000-76470号公報JP 2000-76470 A 特許第5177771号公報Patent No. 5177771

本発明は、このような問題を解決するために成されたものであり、部分的には曲率単調である一方で全体的には曲率単調とは限らない意匠デザインに好適な曲線を、曲率変化が滑らかな曲線として容易に生成できるようにすることを目的とする。 The present invention was made to solve such problems, and aims to make it possible to easily generate curves with smooth curvature changes that are suitable for design, even if the curvature is monotonic in parts but not necessarily monotonic overall.

上記の課題を解決するために、本発明では、曲線形状を示す測定データまたはBスプライン曲線の入力データから、曲線全体の曲率変化が滑らかであって、所定の条件を満たす放物型曲率曲線を生成する。本発明では、所定の条件として、曲率関数が弧長パラメータの2次式で与えられるという第1条件を用いる。 In order to solve the above problems, the present invention generates a parabolic curvature curve in which the curvature of the entire curve changes smoothly and satisfies a predetermined condition from measurement data indicating the curve shape or input data of a B-spline curve . In the present invention, the first condition that the curvature function is given by a quadratic expression of the arc length parameters is used as the predetermined condition.

上記のように構成した本発明によれば、所定の条件を満たすように生成される曲線は、曲率関数が弧長パラメータに沿って単調増加または単調減少する以外に、単調増加から単調減少へ、または単調減少から単調増加へと転じる極値を持つことも可能となる。これにより、部分的には曲率単調である一方で全体的には曲率単調とは限らない意匠デザインに好適な曲線を生成する際に、曲率単調性の条件を満足するように生成した個々のセグメント曲線どうしを接続するといった操作が不要で、全体としての曲率変化が滑らかな曲線を、多くの試行錯誤を要することなく曲線形状を示す測定データ等の入力データから容易に生成することができる。 According to the present invention configured as described above, a curve generated to satisfy a specified condition can have an extreme value where the curvature function changes from monotonically increasing to monotonically decreasing, or from monotonically decreasing to monotonically increasing, in addition to monotonically increasing or decreasing along the arc length parameter. As a result, when generating a curve suitable for a design that has a curvature that is partially monotonic but not necessarily monotonic overall, there is no need to perform an operation such as connecting individual segment curves generated to satisfy the condition of curvature monotonicity, and a curve with a smooth change in curvature overall can be easily generated from input data such as measurement data that indicates the curve shape without requiring a lot of trial and error.

本実施形態による曲線生成装置の機能構成例を示すブロック図である。1 is a block diagram showing an example of a functional configuration of a curve generating device according to an embodiment of the present invention; 意匠デザインの現場で製作された、全域にわたって曲率単調ではない曲線の例を示す図である。FIG. 13 is a diagram showing an example of a curve that is not monotonic in curvature over its entire range, created at a design site. 第1条件に関する関数を説明するための図である。FIG. 13 is a diagram for explaining a function related to a first condition. 定義域の内外に極値を持つ放物型曲率曲線を説明するための図である。FIG. 1 is a diagram for explaining a parabolic curvature curve having extreme values inside and outside a domain. 2段階の処理で放物型曲率曲線を生成する際の曲率ベクトルの例を示す図である。FIG. 13 is a diagram showing an example of a curvature vector when a parabolic curvature curve is generated by a two-stage process.

以下、本発明の一実施形態を図面に基づいて説明する。図1は、本実施形態による曲線生成装置の機能構成例を示すブロック図である。図1に示すように、本実施形態の曲線生成装置は、機能構成として、曲線データ入力部1、曲線タイプ指定部2および曲線生成部3を備えて構成されている。 An embodiment of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing an example of the functional configuration of a curve generating device according to this embodiment. As shown in FIG. 1, the curve generating device of this embodiment is configured to include, as its functional components, a curve data input unit 1, a curve type designation unit 2, and a curve generating unit 3.

これらの機能ブロック1~3は、ハードウェア、DSP(Digital Signal Processor)、ソフトウェアの何れによっても構成することが可能である。例えばソフトウェアによって構成する場合、上記各機能ブロック1~3は、実際にはコンピュータのCPU、RAM、ROMなどを備えて構成され、RAMやROM、ハードディスクまたは半導体メモリ等の記録媒体に記憶されたプログラムが動作することによって実現される。 These functional blocks 1 to 3 can be configured using either hardware, a DSP (Digital Signal Processor), or software. For example, when configured using software, the functional blocks 1 to 3 are actually configured with a computer's CPU, RAM, ROM, etc., and are realized by the operation of a program stored in a recording medium such as the RAM, ROM, hard disk, or semiconductor memory.

本実施形態の曲線生成装置は、以上のような各機能ブロック1~3の機能を用いて、曲線形状を示す測定データ等の入力データから、全体として曲率変化が滑らかな放物型曲率曲線を生成するものである。放物型曲率曲線とは、曲率関数が弧長パラメータの2次式で与えられる曲線のことである。本実施形態の詳細を説明する前に、まず、本実施形態の放物型曲率曲線と対比される従来の一般的な美的曲線について説明する。 The curve generating device of this embodiment uses the functions of each of the functional blocks 1 to 3 described above to generate a parabolic curvature curve with a smooth overall change in curvature from input data such as measurement data that indicates the shape of the curve. A parabolic curvature curve is a curve whose curvature function is given by a quadratic expression of the arc length parameter. Before explaining the details of this embodiment, we will first explain a conventional general aesthetic curve that can be compared to the parabolic curvature curve of this embodiment.

一般の自由曲線は、複数のセグメントにより表現される。そして、各セグメントは、曲線の曲がり具合を示す(曲線の印象を左右する)定数αによって特徴付けられる。特許文献2に記載の通り、曲率半径のα乗が弧長パラメータの1次式で表された曲線セグメントは、デザインに好適な美的曲線(人が美しいと感じる曲線)とされる。このとき、定数αは当該セグメントの曲率対数分布図における直線の傾きを示している。 A typical free curve is represented by multiple segments. Each segment is characterized by a constant α, which indicates the degree of curvature of the curve (which affects the impression of the curve). As described in Patent Document 2, a curve segment in which the α power of the radius of curvature is expressed as a linear expression of the arc length parameter is considered to be an aesthetic curve (a curve that people find beautiful) that is suitable for design. In this case, the constant α indicates the slope of the straight line in the logarithmic distribution diagram of the curvature of the segment.

すなわち、各セグメント曲線に関して、弧長パラメータをs、曲率半径をρとすると、曲率対数分布図の横軸はlogρ、縦軸はlog{ρ(ds/dρ)}となる。曲率対数分布図が直線で与えられることから、以下の(式1)が成り立つ。なお、c1は定数である。この(式1)は美的曲線の基本方程式と呼ばれている。この(式1)は、次の(式2)のように変形できる。以上が一般的な美的曲線の説明である。 That is, for each segment curve, if the arc length parameter is s and the radius of curvature is ρ, the horizontal axis of the logarithmic curvature distribution diagram is log ρ and the vertical axis is log {ρ(ds/dρ)}. Since the logarithmic curvature distribution diagram is given by a straight line, the following (Equation 1) holds. Note that c1 is a constant. This (Equation 1) is called the basic equation of aesthetic curves. This (Equation 1) can be transformed into the following (Equation 2). The above is a description of general aesthetic curves.

上述したように、曲線形状を示す測定データ等の入力データからCADシステムで曲線を再構築する場合、生成する曲線の曲率単調性を適切に取り扱うことが重要である。実際の意匠デザインの現場で製作される曲線は、図2の例に示すように、部分的には曲率単調である一方で、全体的には曲率単調であるとは限らない。なお、図2において、符号20は曲線を示し、符号21は曲率κの大きさ(を適当にスケール倍したもの)を示し、符号22は曲率半径ρ(=1/κ)の1/10の大きさを示している。 As mentioned above, when reconstructing a curve using a CAD system from input data such as measurement data that indicates the curve shape, it is important to properly handle the curvature monotonicity of the curve to be generated. As shown in the example of Figure 2, curves produced at actual design sites are partially curvature monotonic, but are not necessarily curvature monotonic overall. In Figure 2, reference numeral 20 indicates the curve, reference numeral 21 indicates the magnitude of the curvature κ (appropriately scaled), and reference numeral 22 indicates the magnitude of 1/10 of the radius of curvature ρ (= 1/κ).

そこで、本実施形態では、次の(式3a)で示す関数と(式3b)の凸性条件を導入する。この(式3a)において、fα(|κ|)は特許請求の範囲の「曲率関数」に相当する。ここで、(式3a)においてα=1とし、(式3b)の凸性条件として次の2つの場合を考える。1つ目の場合は、(式3b)の不等式が等号の場合、すなわち、d2|κ|/ds2=0である。sで2回積分するとκ=as+b(a,bは定数)が得られる。すなわち、曲率κは弧長パラメータsに対して線形な関係となる。これは、クロソイドまたはオイラースパイラルと呼ばれる曲線が曲率単調性を持っていることを意味する。また、α=-1の場合は対数螺旋、α=-2の場合は円のインボリュート曲線を意味する。これは従来の美的曲線と同義である。次の2つ目の場合は、(式3b)の不等式が成立する特別な状況、すなわち、d2|κ|/ds2=aである。sで2回積分するとκ=as2+bs+c(a,b,cは定数)が得られ、曲率κは弧長パラメータsの2次式(放物線)となる。これは、本実施形態の放物型曲率曲線が成立する状況であることを意味する。 Therefore, in this embodiment, the function shown in the following (Equation 3a) and the convexity condition of (Equation 3b) are introduced. In this (Equation 3a), f α (|κ|) corresponds to the "curvature function" in the claims. Here, α=1 in (Equation 3a), and the following two cases are considered as the convexity condition of (Equation 3b). In the first case, the inequality in (Equation 3b) is an equal sign, that is, d 2 |κ|/ds 2 =0. By integrating twice with s, κ=as+b (a and b are constants) is obtained. That is, the curvature κ has a linear relationship with the arc length parameter s. This means that a curve called a clothoid or Euler spiral has monotonic curvature. In addition, α=-1 means a logarithmic spiral, and α=-2 means a circular involute curve. This is synonymous with the conventional aesthetic curve. The second case is a special situation where the inequality (3b) holds, that is, d2 |κ|/ ds2 =a. By integrating twice with respect to s, κ= as2 +bs+c (where a, b, and c are constants) is obtained, and the curvature κ becomes a quadratic expression (parabola) of the arc-length parameter s. This means that the parabolic curvature curve of this embodiment holds.

以下の説明において、曲率関数fα(|κ|)と弧長パラメータsのそれぞれをグラフの縦軸と横軸にして、両者の関係を示したグラフを「曲率グラフ」という。図1に示す本実施形態の曲線生成装置は、この曲率グラフが放物線を表すような放物型曲率曲線Cを、曲線形状を示す測定データ等の入力データ(以下、これを入力曲線Cあるいは曲線データCという)から生成するものである。以下、図1の各機能ブロック1~3について説明する。 In the following description, a graph showing the relationship between the curvature function f α (|κ|) and the arc length parameter s, with the vertical and horizontal axes of the graph respectively, is referred to as a "curvature graph." The curve generating device of this embodiment shown in Figure 1 generates a parabolic curvature curve C A , such that this curvature graph represents a parabola, from input data such as measurement data that indicates the curve shape (hereinafter, this will be referred to as input curve C 0 or curve data C 0 ). Below, each of the functional blocks 1 to 3 in Figure 1 will be explained.

曲線データ入力部1では、ユーザによる操作またはバッチ処理型のプログラムの実行により、曲線データCを入力する。曲線データCは、ポリラインやBスプライン曲線等の代表的なパラメトリック曲線で表されるものである。ポリラインは、点列を線形補間して得られる折れ線であり、曲線データCとして点列を与えることと同義である。曲線データCの典型例としては、測定データ(ポリゴンデータ)の特徴線上でサンプリングされた点列から作成されたポリラインが挙げられる。また、サンプリングは、必ずしも等間隔で行われるとは限らず、測定データのトリム部分では、サンプリングされるデータが存在しないため、曲線データCを構成する点列は不等間隔にもなり得るし、測定データのノイズの影響を受けている場合もある。曲線データCが表しているところの曲線形状は、2Dの平面曲線のこともあるし、3Dの空間曲線のこともある。 The curve data input unit 1 inputs the curve data C0 by a user operation or by executing a batch processing type program. The curve data C0 is represented by a typical parametric curve such as a polyline or a B-spline curve. A polyline is a broken line obtained by linearly interpolating a sequence of points, and is synonymous with providing a sequence of points as the curve data C0 . A typical example of the curve data C0 is a polyline created from a sequence of points sampled on a characteristic line of the measurement data (polygon data). In addition, sampling is not necessarily performed at equal intervals, and since there is no data to be sampled in the trimmed portion of the measurement data, the sequence of points constituting the curve data C0 may be unevenly spaced, or may be affected by noise in the measurement data. The curve shape represented by the curve data C0 may be a 2D plane curve or a 3D space curve.

曲線タイプ指定部2は、ユーザによる操作に従って、生成したい放物型曲率曲線Cのタイプを指定する。タイプの指定は、定数αの値を入力することによって行う。 The curve type designation unit 2 designates the type of the parabolic curvature curve C A to be generated in accordance with a user's operation. The type is designated by inputting the value of a constant α.

曲線生成部3は、曲線データ入力部1により入力された曲線データ(入力曲線)Cを曲線長で除算することによって正規化した後、入力曲線Cから放物型曲率曲線Cを再構築する。このとき、曲線生成部3は、所定の条件を満たす放物型曲率曲線Cを生成する。ここで用いる所定の条件は、曲率関数fα(|κ|)が弧長パラメータsの2次式で与えられるという第1条件を含む。すなわち、曲線生成部3は、fα(|κ|)=as2+bs+c(a,b,cは定数)を満たす放物型曲率曲線Cを生成する。曲線生成部3は、正規化された空間で生成された放物型曲率曲線Cを元のスケールに復元して出力する。 The curve generating unit 3 normalizes the curve data (input curve) C0 input by the curve data input unit 1 by dividing it by the curve length, and then reconstructs a parabolic curvature curve C A from the input curve C0. At this time, the curve generating unit 3 generates a parabolic curvature curve C A that satisfies a predetermined condition. The predetermined condition used here includes a first condition that the curvature function f α (|κ|) is given by a quadratic expression of the arc length parameter s. That is, the curve generating unit 3 generates a parabolic curvature curve C A that satisfies f α (|κ|) = as 2 + bs + c (a, b, c are constants). The curve generating unit 3 restores the parabolic curvature curve C A generated in the normalized space to the original scale and outputs it.

また、所定の条件は、曲線生成部3により生成される放物型曲率曲線Cと入力曲線Cとの偏差を最小化するという第2条件を更に含む。例えば、曲線生成部3は、次の(式4)に示す目的関数Jを最小化する曲線C(s)の制御点を求めることにより、第1条件および第2条件を満たす放物型曲率曲線Cを生成する。この(式4)において、右辺の第1項が第2条件を示し、第2項が第1条件を示している。ε,εは重み係数である。 The predetermined conditions further include a second condition of minimizing the deviation between the parabolic curvature curve C A generated by the curve generator 3 and the input curve C 0. For example, the curve generator 3 generates a parabolic curvature curve C A that satisfies the first and second conditions by determining a control point of the curve C(s) that minimizes the objective function J A shown in the following (Equation 4). In this (Equation 4), the first term on the right side indicates the second condition, and the second term indicates the first condition. ε 1 and ε 2 are weighting coefficients.

以下に、この(式4)について詳細に説明する。第1条件に関する(式4)の右辺の第2項は、曲率関数fα(|κ|)が弧長パラメータsの2次式で与えられるということを、次の(式5)に示す関数Φ(C(s))により評価する。関数Φは、生成される曲線C(s)の曲率グラフと、2次式で表される放物線との偏差を算出する関数である。第1条件は、この偏差を最小化するものである。 Formula 4 will be described in detail below. The second term on the right side of Formula 4 relating to the first condition evaluates the fact that the curvature function (|κ|) is given by a quadratic expression of the arc length parameter s, using the function Φ(C(s)) shown in Formula 5 below. The function Φ is a function that calculates the deviation between the curvature graph of the generated curve C(s) and a parabola expressed by a quadratic expression. The first condition is to minimize this deviation.

図3は、この関数Φ(C(s))を説明するための図である。ここで、fα(|κ|)は、曲線C(s)上に設定されたn番目の評価点における曲率関数の値であり、図3に示された〇印がその値に相当する。Nは評価点の総数を示す。as2+bs+cは、N個の曲率関数値fα(|κ|)を最小二乗法によって近似した2次式である。pは任意の定数である。 FIG. 3 is a diagram for explaining this function Φ(C(s)). Here, f α (|κ n |) is the value of the curvature function at the n-th evaluation point set on the curve C(s), and the circle shown in FIG. 3 corresponds to this value. N indicates the total number of evaluation points. as 2 + bs + c is a quadratic expression that approximates N curvature function values f α (|κ n |) by the least squares method. p is an arbitrary constant.

関数Φ(C(s))=0の場合、曲線C(s)の曲率グラフ、すなわち、曲率関数fα(|κ|)対弧長パラメータsは放物線を示す。なお、2次の係数aが正値なら曲率グラフは下凸となり、負値なら上凸となる。 When the function Φ(C(s)) = 0, the curvature graph of the curve C(s), i.e., the curvature function f α (|κ|) versus the arc length parameter s, is a parabola. Note that if the quadratic coefficient a is positive, the curvature graph is downward convex, and if it is negative, the curvature graph is upward convex.

また、第2条件に関する(式4)の右辺の第1項において、Qは、正規化された入力曲線C上で出来るだけ等間隔に設定されたn番目の評価点の座標値である。また、C(s)は、Qからの最近点として曲線C(s)上に設定されたn番目の座標値である。 In the first term on the right side of (Equation 4) regarding the second condition, Qn is the coordinate value of the nth evaluation point set as equally spaced as possible on the normalized input curve C0 , and C( sn ) is the coordinate value of the nth evaluation point set on the curve C(s) as the closest point from Qn .

曲線生成部3は、上記の(式4)に示す目的関数Jを最小化する曲線C(s)を求めることにより、第1条件および第2条件をほぼ満足する放物型曲率曲線C(s)を生成する。これにより、曲線形状を示す測定データ等の入力データを十分に近似できていて、かつ、曲率変化が全域にわたって滑らかで、曲率関数が放物線としての極値を持つことも可能な放物型曲率曲線を、それぞれ曲率単調性の条件を満足するように整形した複数のセグメント曲線どうしを接続するといった操作を行うことなく簡単に生成することができる。ここで、図4(a)に示すように、曲線の定義域内(0≦s≦1)に曲率の極値を持つ放物型曲率曲線、または図4(b)に示すように、曲線の定義域外に極値を持つ放物型曲率曲線の何れも生成することが可能である。 The curve generator 3 generates a parabolic curvature curve C A (s) that substantially satisfies the first and second conditions by obtaining a curve C (s) that minimizes the objective function J A shown in the above (Equation 4). This allows a parabolic curvature curve that can sufficiently approximate input data such as measurement data showing the curve shape, has a smooth curvature change over the entire range, and can have an extreme value as a parabola, without performing an operation such as connecting a plurality of segment curves that are shaped to satisfy the condition of curvature monotonicity. Here, it is possible to generate either a parabolic curvature curve that has an extreme value of curvature within the domain of the curve (0≦s≦1) as shown in FIG. 4(a), or a parabolic curvature curve that has an extreme value outside the domain of the curve as shown in FIG. 4(b).

<変形例1>
3Dの空間曲線を生成する場合、所定の条件は、曲線生成部3により生成される放物型曲率曲線の捩率の大きさを最小化するという第3条件を更に含んでもよい。一例として、曲線生成部3は、次の(式6)に示す目的関数Jを最小化する曲線C(s)の制御点を求めることにより、第1条件~第3条件を満たす放物型曲率曲線Cを生成する。この(式6)において、右辺の第1項が上記(式4)の右辺の第1条件および第2条件を示し、第2項が第3条件を示している。εは重み係数である。
<Modification 1>
When generating a 3D space curve, the predetermined conditions may further include a third condition of minimizing the magnitude of the torsion of the parabolic curvature curve generated by the curve generator 3. As an example, the curve generator 3 generates a parabolic curvature curve C A that satisfies the first to third conditions by determining a control point of the curve C(s) that minimizes the objective function J 1 shown in the following (Equation 6). In this (Equation 6), the first term on the right side indicates the first and second conditions on the right side of the above (Equation 4), and the second term indicates the third condition. ε 3 is a weighting coefficient .

第3条件に関する(式6)の右辺の第2項は、生成される曲線C(s)の捩率の大きさを最小化するということを、次の(式7)に示す関数Ψ(C(s))により評価する。この(式7)において、τ(s)は、曲線C(s)上に設定されたn番目の評価点における捩率の値である。また、bs+cは、N個の捩率τ(s)の値を最小二乗法によって近似した1次式である。 The second term on the right hand side of (Equation 6) relating to the third condition is evaluated by the function Ψ(C(s)) shown in the following (Equation 7) to minimize the magnitude of the torsion of the generated curve C(s). In (Equation 7), τ(s n ) is the value of the torsion at the nth evaluation point set on the curve C(s). Also, bs n +c is a linear expression that approximates the values of N torsions τ(s n ) by the least squares method.

曲線生成部3は、上記(式6)に示す目的関数Jを最小化する曲線C(s)を求めることにより、第1条件、第2条件および第3条件をほぼ満足する放物型曲率曲線C(s)を生成する。これにより、曲線形状を示す測定データ等の入力データを十分に近似できていて、かつ、曲率変化が全域にわたって滑らかで、曲率関数が放物線としての極値を持つことも可能で、さらに、捩れの小さい放物型曲率曲線を簡単に生成することができる。 The curve generator 3 generates a parabolic curvature curve C A (s) that substantially satisfies the first, second and third conditions by determining a curve C (s) that minimizes the objective function J1 shown in the above (Equation 6). This makes it possible to easily generate a parabolic curvature curve that is sufficiently approximating input data such as measurement data that indicates the curve shape, that has smooth curvature changes over the entire range, that allows the curvature function to have extreme values as a parabola, and that has little twist.

<変形例2>
測定データのノイズへのロバスト性を確保するために、低次のパラメトリック曲線を使用することにより、2段階の処理で放物型曲率曲線Cを生成することもできる。例えば、第1段階では、入力曲線Cに2次の複合ベジエ曲線をフィッティングする。第2段階では、2次の複合ベジエ曲線を3次の曲率連続なBスプライン曲線に変換する。
<Modification 2>
To ensure robustness to noise in the measurement data, a parabolic curvature curve C A can also be generated in a two-stage process by using a low-order parametric curve. For example, in the first stage, a quadratic composite Bézier curve is fitted to the input curve C 0. In the second stage, the quadratic composite Bézier curve is converted into a cubic curvature-continuous B-spline curve.

第1段階において、曲線生成部3は、次の(式8)に示す目的関数Jを最小化する2次の複合ベジエ曲線を求める。この(式8)において、右辺の第1項のJは上記(式4)の第1条件および第2条件を示している。εは重み係数である。また、κL m,κR mは、図5に示すように、隣接するベジエセグメントのm番目の接合点での左右のセグメントの端点における曲率ベクトルを示す。 In the first stage, the curve generator 3 obtains a quadratic composite Bezier curve that minimizes the objective function J2 shown in the following (Equation 8). In this (Equation 8), J A in the first term on the right side indicates the first and second conditions in (Equation 4) above. ε 4 is a weighting coefficient. Also, κ L m and κ R m indicate the curvature vectors at the end points of the left and right segments at the m-th junction point of adjacent Bezier segments, as shown in FIG. 5.

第2段階において、曲線生成部3は、第1段階において求めた2次の複合ベジエ曲線を3次の曲率連続なBスプライン曲線に強制変換し、これにより得られた曲線を初期曲線として、上記(式6)に示す目的関数Jを最小化する曲線C(s)を求めることにより、第1条件、第2条件および第3条件をほぼ満足する放物型曲率曲線C(s)を生成する。 In the second step, the curve generator 3 forcibly converts the second-order composite Bezier curve obtained in the first step into a third-order curvature continuous B-spline curve, and uses the curve obtained in this way as an initial curve to obtain a curve C(s) that minimizes the objective function J1 shown in the above (Equation 6), thereby generating a parabolic curvature curve C A (s) that approximately satisfies the first, second and third conditions.

<その他の変形例>
なお、上記実施形態では、第1条件を評価する関数Φ(C(s))を示す(式5)におけるas2+bs+cの2次式の係数は、N個の評価点における曲率関数の値fα(|κ|)から最小二乗法によって求めているが、本発明はこれに限定されない。例えば、2次式の係数a,b,cの値をユーザが任意に指定できるようにしてもよい。そうすることにより、例えば、図4(a)のように曲線の定義域内に極値を持たせるか、図4(b)のように曲線の定義域外に極値を持たせるかをユーザが意図的に決定(あるいは制御)できる。
<Other Modifications>
In the above embodiment, the coefficients of the quadratic expression of as2 + bs + c in (Equation 5) showing the function Φ(C(s)) for evaluating the first condition are calculated by the least squares method from the values of the curvature function (| κn |) at the N evaluation points, but the present invention is not limited to this. For example, the values of the coefficients a, b, and c of the quadratic expression may be arbitrarily specified by the user. By doing so, for example, the user can intentionally determine (or control) whether the extreme value is to be set within the domain of the curve as in FIG. 4(a) or outside the domain of the curve as in FIG. 4(b).

また、上記実施形態では、曲線タイプ指定部2により、生成したい放物型曲率曲線のタイプを指定する構成について説明したが、タイプを指定可能とすることを必須とするものではない。例えば、あらかじめ決められたタイプの放物型曲率曲線を生成するようにしてもよい。 In the above embodiment, the configuration was described in which the curve type designation unit 2 designates the type of parabolic curvature curve to be generated, but it is not essential that the type can be designated. For example, a parabolic curvature curve of a predetermined type may be generated.

また、上記実施形態では、曲線形状を示す測定データ等の入力曲線データから放物型曲率曲線を再構築する例について説明した通り、入力データはクレイモデル等の測定データに起因されるものに限定されない。例えば、第1条件を満たさないBスプライン曲線を入力データとして、第1条件を満足するBスプライン曲線を生成することにも本発明の方法を利用することが可能である。 In addition, as described in the above embodiment with respect to an example of reconstructing a parabolic curvature curve from input curve data such as measurement data showing the curve shape, the input data is not limited to data resulting from measurement data of a clay model or the like. For example, the method of the present invention can be used to generate a B-spline curve that satisfies the first condition by using a B-spline curve that does not satisfy the first condition as input data.

その他、上記実施形態は、何れも本発明を実施するにあたっての具体化の一例を示したものに過ぎず、これによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその要旨、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。 In addition, the above embodiments are merely examples of how the present invention can be implemented, and the technical scope of the present invention should not be interpreted in a limiting manner. In other words, the present invention can be implemented in various forms without departing from its gist or main features.

1 曲線データ入力部
2 曲線タイプ指定部
3 曲線生成部
1 Curve data input section 2 Curve type designation section 3 Curve generation section

Claims (6)

曲線形状を示す測定データまたはBスプライン曲線の入力データから、全体として曲率変化が滑らかな曲線を生成する曲線生成装置であって、
上記入力データをもとに、所定の条件を満たす放物型曲率曲線を生成する曲線生成部を備え、
上記所定の条件は、曲率関数が弧長パラメータの2次式で与えられるという第1条件を含むことを特徴とする曲線生成装置。
A curve generating device that generates a curve having a smooth change in curvature as a whole from measurement data indicating a curve shape or input data of a B-spline curve , comprising:
a curve generating unit that generates a parabolic curvature curve that satisfies a predetermined condition based on the input data,
The curve generating device, wherein the predetermined conditions include a first condition that the curvature function is given by a quadratic expression of arc length parameters.
上記所定の条件は、上記曲線生成部により生成される上記放物型曲率曲線と上記入力データで示される曲線との偏差を最小化するという第2条件を更に含むことを特徴とする請求項1に記載の曲線生成装置。 The curve generating device according to claim 1, characterized in that the predetermined condition further includes a second condition of minimizing the deviation between the parabolic curvature curve generated by the curve generating unit and the curve represented by the input data. 上記所定の条件は、上記曲線生成部により生成される上記放物型曲率曲線の捩率の大きさを最小化するという第3条件を更に含むことを特徴とする請求項1または2に記載の曲線生成装置。 The curve generating device according to claim 1 or 2, characterized in that the predetermined conditions further include a third condition of minimizing the magnitude of the torsion of the parabolic curvature curve generated by the curve generating unit. 曲線形状を示す測定データまたはBスプライン曲線の入力データから、全体として曲率変化が滑らかな曲線を生成するための曲線生成用プログラムであって、
上記入力データをもとに、所定の条件を満たす放物型曲率曲線を生成する曲線生成手段としてコンピュータを機能させ、上記所定の条件として、曲率関数が弧長パラメータの2次式で与えられるという第1条件を用いることを特徴とする曲線生成用プログラム。
A curve generating program for generating a curve having a smooth change in curvature as a whole from measurement data indicating a curve shape or input data of a B-spline curve , comprising:
A curve generation program that causes a computer to function as curve generation means for generating a parabolic curvature curve that satisfies predetermined conditions based on the input data, and uses, as the predetermined condition, a first condition that the curvature function is given by a quadratic expression of arc length parameters.
上記所定の条件として、上記曲線生成手段により生成される上記放物型曲率曲線と上記入力データで示される曲線との偏差を最小化するという第2条件を更に用いることを特徴とする請求項4に記載の曲線生成用プログラム。 The curve generation program according to claim 4, further comprising a second condition for minimizing the deviation between the parabolic curvature curve generated by the curve generation means and the curve represented by the input data as the predetermined condition. 上記所定の条件として、上記曲線生成手段により生成される上記放物型曲率曲線の捩率の大きさを最小化するという第3条件を更に用いることを特徴とする請求項4または5に記載の曲線生成用プログラム。 The curve generation program according to claim 4 or 5, further comprising a third condition for minimizing the magnitude of the torsion of the parabolic curvature curve generated by the curve generation means as the predetermined condition.
JP2021086419A 2021-05-21 2021-05-21 Curve generating device and curve generating program Active JP7629802B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021086419A JP7629802B2 (en) 2021-05-21 2021-05-21 Curve generating device and curve generating program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021086419A JP7629802B2 (en) 2021-05-21 2021-05-21 Curve generating device and curve generating program

Publications (2)

Publication Number Publication Date
JP2022179140A JP2022179140A (en) 2022-12-02
JP7629802B2 true JP7629802B2 (en) 2025-02-14

Family

ID=84239129

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021086419A Active JP7629802B2 (en) 2021-05-21 2021-05-21 Curve generating device and curve generating program

Country Status (1)

Country Link
JP (1) JP7629802B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000076470A (en) 1998-08-31 2000-03-14 Sony Corp Curve generation method, curve generation device, and storage medium storing curve generation program
JP2010282538A (en) 2009-06-08 2010-12-16 Nihon Univ Program, storage medium, and space curve generation device
JP5177771B2 (en) 2008-06-05 2013-04-10 国立大学法人静岡大学 Graphic information processing apparatus, graphic information processing method, and graphic information processing program for generating aesthetic curves
JP2019191750A (en) 2018-04-20 2019-10-31 日本ユニシス株式会社 Curved surface generation device and program for curved surface generation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5594852A (en) * 1994-08-17 1997-01-14 Laser Products, Inc. Method for operating a curve forming device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000076470A (en) 1998-08-31 2000-03-14 Sony Corp Curve generation method, curve generation device, and storage medium storing curve generation program
JP5177771B2 (en) 2008-06-05 2013-04-10 国立大学法人静岡大学 Graphic information processing apparatus, graphic information processing method, and graphic information processing program for generating aesthetic curves
JP2010282538A (en) 2009-06-08 2010-12-16 Nihon Univ Program, storage medium, and space curve generation device
JP2019191750A (en) 2018-04-20 2019-10-31 日本ユニシス株式会社 Curved surface generation device and program for curved surface generation

Also Published As

Publication number Publication date
JP2022179140A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
Hashemian et al. An integrated fitting and fairing approach for object reconstruction using smooth NURBS curves and surfaces
Hope et al. Adaptive slicing with sloping layer surfaces
JP5436416B2 (en) Approximation processing method and approximation processing apparatus
Ebrahimi et al. A composite iterative procedure with fast convergence rate for the progressive-iteration approximation of curves
JP5177771B2 (en) Graphic information processing apparatus, graphic information processing method, and graphic information processing program for generating aesthetic curves
El‐Abbasi et al. On the modelling of smooth contact surfaces using cubic splines
CN103413175B (en) Based on the closed non-homogeneous B spline curve method for fairing of genetic algorithm
Yang Curve fitting and fairing using conic splines
CN111859763A (en) Finite element simulation method, system and medium
Van Elsas et al. Displacement feature modelling for conceptual design
Lai et al. A polybézier-based particle model for the DEM modeling of granular media
JP6751029B2 (en) Curved surface generation device and curved surface generation program
JP7629802B2 (en) Curve generating device and curve generating program
Yoshida et al. Quasi-aesthetic curves in rational cubic Bézier forms
WO2019202813A1 (en) Curved surface generation device, and program for curved surface generation
Fang A rational quartic Bézier representation for conics
Lin The convergence of the geometric interpolation algorithm
JP7431123B2 (en) Surface generation device and surface generation program
JP4175470B2 (en) CAD system, curved surface analyzing apparatus, curved surface reproducing apparatus, method and program thereof
KR101095126B1 (en) Multifaceted Matching System and Method with Curvature Continuity
Mullineux et al. Fairing point sets using curvature
Rypl et al. Triangulation of 3D surfaces reconstructed by interpolating subdivision
JP2025022219A (en) Aesthetic curve generating device and aesthetic curve generating method
Soldea et al. Exact and efficient computation of moments of free-form surface and trivariate based geometry
Louhichi et al. An optimization-based computational method for surface fitting to update the geometric information of an existing B-Rep CAD...

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241225

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250203

R150 Certificate of patent or registration of utility model

Ref document number: 7629802

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150