WO2009149591A1 - Method for constructing new closed curves by using an open curve and an adjacent closed curve - Google Patents

Method for constructing new closed curves by using an open curve and an adjacent closed curve Download PDF

Info

Publication number
WO2009149591A1
WO2009149591A1 PCT/CN2008/002077 CN2008002077W WO2009149591A1 WO 2009149591 A1 WO2009149591 A1 WO 2009149591A1 CN 2008002077 W CN2008002077 W CN 2008002077W WO 2009149591 A1 WO2009149591 A1 WO 2009149591A1
Authority
WO
WIPO (PCT)
Prior art keywords
curve
open
last
closed
closed curve
Prior art date
Application number
PCT/CN2008/002077
Other languages
French (fr)
Chinese (zh)
Inventor
常先堂
李平立
姜建军
Original Assignee
方正国际软件(北京)有限公司
北京大学
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 方正国际软件(北京)有限公司, 北京大学 filed Critical 方正国际软件(北京)有限公司
Publication of WO2009149591A1 publication Critical patent/WO2009149591A1/en

Links

Classifications

    • 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/203Drawing of straight lines or curves

Definitions

  • the invention belongs to the field of computer information processing, and relates to a computer graphics editing technology, in particular to a method for constructing a new closed curve by using an open curve and an adjacent closed curve. Background technique
  • the object of the present invention is to provide a method for constructing a new closed curve using an open curve and an adjacent closed curve, which can make full use of the closed curve.
  • the geometric property information of the open curve modifies the closed curve so that the closed curve obtained after the final modification achieves a satisfactory visual effect.
  • Another object of the present invention is that the method can achieve a good visual effect by modifying the closed curve of the package trapping area.
  • the technical solution adopted by the present invention is: A method for constructing a new closed curve using an open curve and a closed curve, including the following steps:
  • the geometric property information of the open curve can be fully utilized to modify the closed curve, so that the modified closed curve achieves a satisfactory visual effect.
  • the specific application is in the processing technique of packaging the trapping area, and the method of the present invention can effectively modify the closed curve of the trapping area.
  • Figure 1 is a flow chart of the method of the present invention
  • Embodiment 1 of the present invention is a schematic diagram of an original open curve and a closed curve in Embodiment 1 of the present invention
  • FIG. 3 is a three-bezier curve control point indication map constituting an open curve in Embodiment 1 of the present invention
  • FIG. 4 is an effect diagram of a modified curve in Embodiment 1 of the present invention
  • Figure 5 is a schematic view showing the original open curve and the closed curve in the second embodiment of the present invention.
  • Embodiment 8 is an effect diagram of a modified curve in Embodiment 2 of the present invention.
  • Embodiment 9 is a schematic diagram of an original open curve and a closed curve in Embodiment 3 of the present invention.
  • Figure 10 is a diagram showing a cubic Bezier curve control point of the open curve in the third embodiment of the present invention.
  • Figure 11 is a modified view of the curve in the third embodiment of the present invention.
  • a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
  • an example of modifying a graphic editing object is performed in the case where there is no intersection between the open curve and the closed curve, wherein the open curve is composed of a plurality of cubic Bezier curves.
  • a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
  • the open curve 21 has no intersection with the closed curve 22.
  • the open curve consists of a four-segment cubic Bezier curve, namely curve 30-33, curve 33-34, curve 34-35 curve 35-38; where the first segment curve 30_33 and the last segment curve 35-38 They are the first and last cubic Bezier curves of the open curve.
  • a specific method for intersecting and modifying the first and last cubic Bezier curves includes:
  • the control point P at one end of the cubic Bezier curve is calculated. 30 to the closest distance point P of the closed curve. "39 and the nearest distance d, where p. 30 is the cubic Bezier curve control point, which is located at the end of the open curve 21;
  • the cubic Bezier curve is extended to a closed curve, intersecting the closed curve at a point ⁇ . ' 40 and ⁇ . ⁇ '
  • ⁇ then the intersection /. '40 is marked as the intersection of the first cubic Bezier curve and the closed curve, where N is an adjustable amount, where N has a range of values (0, 3), N 2 in this embodiment.
  • Modify the first three-time Bezier curve 30-33 The intersection of the first three-time Bezier curve 30-33 with the closed curve is 40, then the control point P will be. 30 is adjusted to P. ' 40, using the adjusted four control points P. 40. Click ⁇ 1, point P 2 32 and point P 3 33 to modify the three-time Bessel curve.
  • the Bezier curve 35-38 to the closed curve 22 intersects the closed curve 22 at the point ⁇ . ' 42 , then the intersection point P. '42 is labeled as the last cubic Bezier curve
  • N 2 in this embodiment.
  • Modify the last cubic Bezier curve 35-38 The intersection of the last cubic Bezier curve 35-38 and the closed curve is the intersection point P. ' 42, then the control point. 38 Adjust to P. ' 42, using the adjusted four control points P. 42, point? ⁇ 7, point P 2 36 and point P 3 35 modify the cubic Bezier curve of the segment.
  • a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
  • the open curve 51 has no intersection with the closed curve 52.
  • the open curve 51 consists of only one cubic Bezier curve with four control points of 60, 61, 62 and 63, respectively. Therefore, the curve needs to be split into two parts.
  • the two cubic Bezier curves are the first cubic Bezier curve 70-73 and the last cubic Bezier curve 73-76 of the open curve.
  • the method for performing bisection for a cubic Bezier curve includes 3:
  • the first cubic Bezier curve 70-73 does not have an intersection with the closed curve
  • the specific method for constructing an intersection and modifying the open curve 51 includes:
  • the first three-time Bezier curve is extended to the closed curve, and there is no intersection with the closed curve, and the closest distance point 77 is taken as the intersection of the cubic Bezier curve 70-73 and the closed curve;
  • Modify the first cubic Bezier curve 70-73 The intersection of the first cubic Bezier curve 70-73 and the closed curve 52 is the closest distance point 77, then the control point P will be. 70 is adjusted to 77, using the adjusted four control points P. 77, P, 7K ⁇ 2 72 and ⁇ 3 73 modify the cubic Bezier curve.
  • the last three cubic Bezier curves 73-76 are modified to obtain the last segment.
  • the intersection of the cubic Bezier curve with the closed curve 78 utilizes four adjusted control points P at the same time. 78, P.75, P 2 74 and P 3 73 obtain the modified last-stage cubic Bezier curve.
  • a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
  • the open curve 91 and the closed curve 92 have a plurality of intersections.
  • the open curve 91 is composed of a four-segment cubic Bezier curve, that is, a curve 100-101, a curve 101-102, and a curve 102-103 curve 103-106; wherein the first segment curve 100-101 and the last segment curve 103-106 are open curves, respectively.
  • the specific method for constructing a suitable intersection point and modifying the open curve includes:
  • ,. ⁇ ⁇ / ⁇ 3 is greater than ⁇ , ⁇ value range [0, 1], where the control point of the cubic Bezier curve ⁇ . 100 is located at the head end of the open curve 91, and the control point ⁇ 3 101 is located at the other end of the cubic Bezier curve 100-101; in the present embodiment, ⁇ 0.7, after calculation, " ⁇ 0.7, so the first stage is calculated three times Bessel The curve controls the corpse. 100 to the closest distance point 108 of the closed curve 92, then the control point ⁇ .
  • the other three control points are unchanged.
  • the modified three control points are used to modify the three-time Bezier curve, and the nearest distance point 108 is adjusted to the first-stage cubic Bezier curve of the open curve. 100-101 and the closed curve first intersection.
  • M 0.7. Since ⁇ ⁇ ⁇ is ⁇ ⁇ 0.7, truncation / ⁇ In sections 106-109, the point is the intersection of the cubic Bezier curve 103-106 and the closed curve at the end of the open curve.
  • the first intersection point of the closed curve is determined by the point along the cubic Bezier curve, and the other intersection points are ignored, followed by The treatment, the method is the same as above.
  • the present invention discloses a method for constructing a new closed curve by using an open curve and an adjacent closed curve, by dividing the open curve into a multi-segment cubic Bezier curve and positioning the first and last segments.
  • the cubic Bezier curve based on the four control points of the cubic Bezier curve, locates the intersection of the first and last cubic Bezier curves and the closed curve, and finally uses the first and last intersections of the open curve and the closed curve to form two New closed curve.
  • the method of the present invention utilizes the geometric property information of the open curve itself to modify the curve of the first and last segments of the open curve to achieve the purpose of modifying the closed curve.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)

Abstract

A method for constructing new closed curves by using an open curve and an adjacent closed curve. In prior art, when the open curve being adjacent to the close curve is transferred to a closed curve, the geometric property of the open curve itself can not be utilized in the case of there being no crossing points or one and only one crossing point between the open curve and the closed curve, so it causes the generated closed curve not smooth. In the method, firstly, four control points of the Bezier cubic curves are determined to locate the cross points between the head/tail segment Bezier cubic curve and the closed curve, wherein the Bezier cubic curves are generated by using the head segment and tail segment of the open curve. Finally, two new closed curves are constructed by using the head segment Bezier cubic curve, tail segment Bezier cubic curve, and two crossing points between the Bezier cubic curves and the closed curve. The current geometric property information of the open curve is enough utilized and the newly constructed curves are naturally smooth by using the nature extension of the Bezier cubic curves generated by head segment and tail segment of the open curve.

Description

利用开放曲线和临近的闭合曲线构建新的闭合曲线的方法  Method for constructing a new closed curve using an open curve and an adjacent closed curve
技术领域 Technical field
本发明属于计算机信息处理领域, 涉及一种计算机图形编辑技术, 特别涉 及一种利用开放曲线和临近的闭合曲线构建新的闭合曲线的方法。 背景技术  The invention belongs to the field of computer information processing, and relates to a computer graphics editing technology, in particular to a method for constructing a new closed curve by using an open curve and an adjacent closed curve. Background technique
在很多的计算机图形处理应用场合中, 需要对包含开放曲线的区域求其区 域的整体轮廓或者对其整体封闭区域面积进行积分求和, 典型应用如在包装印 刷中需要对求图形整体的剪裁区域,如在对扫描间断曲线求其面积积分等应用 场合。  In many computer graphics processing applications, it is necessary to find the overall contour of the area of the area containing the open curve or to integrate and sum the area of the entire enclosed area. Typical applications, such as packaging, need to cut the entire area of the graphic. For example, in the application of the area integral of the scan discontinuity curve.
现有技术中, 闭合曲线临近的开放曲线转化为闭合曲线时, 在开放曲线与 闭合曲线无交点或仅有一个交点的情况下,往往没有利用开放曲线现有的几何 属性, 一般不做修改处理, 如当开放曲线与闭合曲线无任何交点时, 直接使用 直线相连, 当开放曲线与闭合曲线相交时, 舍弃了开放曲线上的部分曲线, 从 而造成新生成的闭合曲线不平滑, 视觉效果无法达到令人满意的效果。 在开放 曲线与闭合曲线有多个( >= 2 )交点的情况下, 现有的方案大多是采用如下方 法: 沿着开放曲线的方向, 分别找到第一个和最后一个交点, 这样便找到了两 个 (一对)交点。 不妨记第一个交点为 A,最后一个交点为 B,然后提取开放曲线 上 Α, Β两点之间的曲线段, 然后用它替换闭合曲线上的不同曲线段, 便得到新 的闭合曲线。  In the prior art, when the open curve adjacent to the closed curve is converted into a closed curve, in the case where there is no intersection or only one intersection between the open curve and the closed curve, the existing geometric properties of the open curve are often not utilized, and generally no modification is performed. For example, when there is no intersection between the open curve and the closed curve, the straight line is directly connected. When the open curve intersects the closed curve, part of the curve on the open curve is discarded, so that the newly generated closed curve is not smooth, and the visual effect cannot be achieved. Satisfactory effect. In the case where there are multiple ( >= 2 ) intersections between the open curve and the closed curve, the existing solutions mostly adopt the following methods: Find the first and last intersections along the direction of the open curve, thus finding out Two (one pair) intersections. It is worthwhile to remember that the first intersection is A and the last intersection is B. Then extract the curve segment between the two points on the open curve, and then replace the different curve segments on the closed curve with it to get a new closed curve.
具体在包装印刷技术领域中, 如何在包装陷印 (陷印也叫补漏白, 又称为 扩缩, 主要是为了弥补因印刷套印不准而造成两个相邻的不同颜色之间的漏 白) 区域生成的过程中, 充分利用与闭合曲线临近的开放曲线现有的属性, 自 然平滑的延展以生成视觉效果自然的闭合曲线, 便是目前需要解决的技术问 题。 因此也需要提供一种新的方法来对包装陷印区域的闭合曲线进行修改。 发明内容  Specifically in the field of packaging and printing technology, how to trap in the package (trapping is also called trapping, also known as scaling, mainly to compensate for the gap between two adjacent different colors due to inaccurate printing overprinting) In the process of region generation, it is the technical problem that needs to be solved to make full use of the existing properties of the open curve adjacent to the closed curve, and the natural smooth extension to generate a closed curve with natural visual effects. Therefore, there is also a need to provide a new method to modify the closed curve of the package trapping area. Summary of the invention
针对现有技术中存在的问题,本发明的目的提供一种利用开放曲线和临近 的闭合曲线构建新的闭合曲线的方法, 该方法能够充分利用与闭合曲线临近的 开放曲线的几何属性信息对闭合曲线进行修改,使得最终修改后得到的闭合曲 线达到令人满意的视觉效果。 In view of the problems in the prior art, the object of the present invention is to provide a method for constructing a new closed curve using an open curve and an adjacent closed curve, which can make full use of the closed curve. The geometric property information of the open curve modifies the closed curve so that the closed curve obtained after the final modification achieves a satisfactory visual effect.
本发明的另一目的是, 该方法对包装陷印区域闭合曲线进行修改后能够达 到很好的视觉效果。 为实现上述发明目的, 本发明采用的技术方案是: 一种利用开放曲线和临 近的闭合曲线构建新的闭合曲线的方法, 包括以下步骤:  Another object of the present invention is that the method can achieve a good visual effect by modifying the closed curve of the package trapping area. To achieve the above object, the technical solution adopted by the present invention is: A method for constructing a new closed curve using an open curve and a closed curve, including the following steps:
( 1 ) 定位开放曲线的首段和末段三次贝塞尔曲线;  (1) Positioning the first and last cubic Bezier curves of the open curve;
( 2 ) 定位开放曲线与临近的闭合曲线首末交点并修改开放曲线: 基于开 放曲线的首段和末段三次贝塞尔曲线的控制点定位与闭合曲线的首末交点, 并 通过修改首段和末段三次贝塞尔曲线以实现整个开放曲线的修改;  (2) Positioning the open curve and the intersection of the adjacent closed curve and modifying the open curve: Based on the opening and ending points of the first and last cubic Bezier curves of the open curve, the first and last intersections of the closed curve, and by modifying the first paragraph And the last three cubic Bezier curves to achieve the modification of the entire open curve;
( 3 ) 构建两条新的闭合曲线: 利用幵放曲线的首段和末段三次贝塞尔曲 线与闭合曲线的首末交点构成两条新的闭合曲线。 本发明的效果在于: 采用本发明所述的方法, 基于开放曲线的首段和末段 生成的三次贝塞尔(Bezier)曲线,确定三次贝塞尔曲线的四个控制点定位首段 和末段三次贝塞尔曲线与闭合曲线的交点, 最后由开放曲线、 闭合曲线、 开放 曲线的首段和末段的三次贝塞尔曲线以及与闭合曲线的两个交点生成两条新 的闭合曲线, 从而有效地解决了现有技术中无法处理开放曲线与闭合曲线无交 点情形的曲线修改。 同时, 对于开放曲线与闭合曲线有交点的情形, 还可以充 分利用开放曲线的几何属性信息, 进行闭合曲线的修改, 使得经过修改后的闭 合曲线达到令人满意的视觉效果。 具体应用在包装陷印区域的处理技术中, 本 发明所述的方法可以有效地对陷印区域的闭合曲线进行修改。 附图说明  (3) Construct two new closed curves: The first and last three-part Bezier curves of the scaling curve and the first and last intersections of the closed curve form two new closed curves. The effect of the invention is: using the method according to the invention, based on the cubic Bezier curve generated by the first and last segments of the open curve, determining the first and the last of the four control points of the cubic Bezier curve The intersection of the segmental cubic Bezier curve and the closed curve, and finally two new closed curves are generated by the open curve, the closed curve, the cubic Bezier curve of the first and last segments of the open curve, and the two intersections with the closed curve. Therefore, the curve modification in the prior art that the open curve and the closed curve have no intersection point cannot be effectively solved. At the same time, for the case where the open curve and the closed curve have intersection points, the geometric property information of the open curve can be fully utilized to modify the closed curve, so that the modified closed curve achieves a satisfactory visual effect. The specific application is in the processing technique of packaging the trapping area, and the method of the present invention can effectively modify the closed curve of the trapping area. DRAWINGS
图 1为本发明所述的方法流程图;  Figure 1 is a flow chart of the method of the present invention;
图 2为本发明实施例 1中原开放曲线和闭合曲线示意图;  2 is a schematic diagram of an original open curve and a closed curve in Embodiment 1 of the present invention;
图 3为本发明实施例 1中组成开放曲线的三次贝塞尔曲线控制点标示图; 图 4为本发明实施例 1中曲线修改后的效果图;  3 is a three-bezier curve control point indication map constituting an open curve in Embodiment 1 of the present invention; FIG. 4 is an effect diagram of a modified curve in Embodiment 1 of the present invention;
图 5为本发明实施例 2中原开放曲线和闭合曲线示意图;  Figure 5 is a schematic view showing the original open curve and the closed curve in the second embodiment of the present invention;
图 6为本发明实施例 2中仅由一段三次贝塞尔曲线组成开放曲线的控制点 标示图; 6 is a control point of an open curve composed of only one cubic Bezier curve in Embodiment 2 of the present invention; Marking map
图 7为本发明实施例 2中二分剖分后组成开放曲线的两段三次贝塞尔曲线 控制点标示图;  7 is a two-section cubic Bezier control point map showing an open curve after splitting in the second embodiment of the present invention;
图 8为本发明实施例 2中曲线修改后的效果图;  8 is an effect diagram of a modified curve in Embodiment 2 of the present invention;
图 9为本发明实施例 3中原开放曲线和闭合曲线示意图;  9 is a schematic diagram of an original open curve and a closed curve in Embodiment 3 of the present invention;
图 10为本发明实施例 3中组成开放曲线的三次贝塞尔曲线控制点标示图; 图 11为本发明实施例 3中曲线修改后的效果图。 具体实施方式  Figure 10 is a diagram showing a cubic Bezier curve control point of the open curve in the third embodiment of the present invention; and Figure 11 is a modified view of the curve in the third embodiment of the present invention. detailed description
下面结合说明书附图和具体实施例对本发明作进一步详细的描述。  The invention is further described in detail below with reference to the drawings and specific embodiments.
如图 1所示, 一种利用开放曲线和临近的闭合曲线构建新的闭合曲线的 方法, 包括以下步骤:  As shown in Figure 1, a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
( 1 ) 定位开放曲线的首段和末段三次贝塞尔曲线 S11 ;  ( 1 ) Positioning the first and last third cubic Bezier curves of the open curve S11 ;
( 2 )定位开放曲线与临近的闭合曲线首末交点并修改开放曲线 S12:基于 开放曲线的首段和末段三次贝塞尔曲线的控制点定位与闭合曲线的首末两个 交点, 并通过修改首段和末段三次贝塞尔曲线以实现整个开放曲线的修改; (2) locating the open curve and the intersection of the adjacent closed curve and modifying the open curve S12: the control points of the first and last cubic Bezier curves based on the open curve and the first and last intersections of the closed curve, and pass Modify the first and last three cubic Bezier curves to achieve the modification of the entire open curve;
( 3 )构建两条新的闭合曲线 S13:利用开放曲线的首段和末段三次贝塞尔 曲线与闭合曲线的首末两个交点构成两条新的闭合曲线。 实施例 1: (3) Construct two new closed curves S13: Use the first and last cubic Bezier curves of the open curve and the first and last intersections of the closed curve to form two new closed curves. Example 1:
本实施例中, 以开放曲线与闭合曲线无交点情形下进行修改图形编辑对象 为例, 其中开放曲线由多段三次贝塞尔曲线组成。 如图 1所示, 一种利用开放 曲线和临近的闭合曲线构建新的闭合曲线的方法, 包括以下步骤:  In this embodiment, an example of modifying a graphic editing object is performed in the case where there is no intersection between the open curve and the closed curve, wherein the open curve is composed of a plurality of cubic Bezier curves. As shown in Figure 1, a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
( 1 ) 定位开放曲线 21的首段和末段三次贝塞尔曲线;  (1) Positioning the first and last cubic Bezier curves of the open curve 21;
如图 2所示, 本实施例中, 开放曲线 21与闭合曲线 22无交点。 如图 3所 示, 开放曲线由四段三次贝塞尔曲线组成, 即曲线 30-33, 曲线 33-34、 曲线 34-35曲线 35-38; 其中首段曲线 30_33和末段曲线 35-38分别为开放曲线的 首段和末段三次贝塞尔曲线。  As shown in Fig. 2, in the present embodiment, the open curve 21 has no intersection with the closed curve 22. As shown in Figure 3, the open curve consists of a four-segment cubic Bezier curve, namely curve 30-33, curve 33-34, curve 34-35 curve 35-38; where the first segment curve 30_33 and the last segment curve 35-38 They are the first and last cubic Bezier curves of the open curve.
(2 )定位开放曲线 21与临近的闭合曲线 22首末交点并修改开放曲线 21 : 基于开放曲线 21 的首段和末段三次贝塞尔曲线的控制点定位与闭合曲线的首 末两个交点, 并通过修改首段和末段三次贝塞尔曲线以实现整个开放曲线的修 改; (2) Positioning the open curve 21 and the adjacent closed curve 22 at the end of the intersection and modifying the open curve 21: Based on the first and last cubic Bezier curves of the open curve 21, the control points are positioned and the first and last intersections of the closed curve And by modifying the first and last three-time Bezier curves to complete the entire open curve Change
如图 3所示, 本实施例中步骤(2) 中开放曲线 21的首段三次贝塞尔曲线 30-33和末段三次贝塞尔曲线 35-38与闭合曲线均没有交点, 则分别构造一个 交点并修改首段和末段三次贝塞尔曲线的具体方法包括:  As shown in FIG. 3, in the step (2) of the present embodiment, the first-stage cubic Bezier curve 30-33 and the last-stage cubic Bezier curve 35-38 of the open curve 21 have no intersection point with the closed curve, respectively, A specific method for intersecting and modifying the first and last cubic Bezier curves includes:
对于首段三次贝塞尔曲线 30-33, 计算该三次贝塞尔曲线一端的控制点 P。30到闭合曲线的最近距离点 P。" 39和最近距离 d, 其中点 p。30为三次贝塞尔 曲线控制点, 此点位于开放曲线 21的端点处;  For the first cubic Bezier curve 30-33, the control point P at one end of the cubic Bezier curve is calculated. 30 to the closest distance point P of the closed curve. "39 and the nearest distance d, where p. 30 is the cubic Bezier curve control point, which is located at the end of the open curve 21;
^本实施例中, 延伸三次贝塞尔曲线至闭合曲线, 与闭合曲线相交于点 Ρ。' 40 且^。^'|〈^ 则将该交点/。' 40标记为首段三次贝塞尔曲线与闭合曲线的交点, 其中 N为可调量, 其中 N的取值范围 (0, 3], 本实施例中 N = 2。  In this embodiment, the cubic Bezier curve is extended to a closed curve, intersecting the closed curve at a point Ρ. ' 40 and ^. ^'|<^ then the intersection /. '40 is marked as the intersection of the first cubic Bezier curve and the closed curve, where N is an adjustable amount, where N has a range of values (0, 3), N = 2 in this embodiment.
n 若延伸三次贝塞尔曲线至闭合曲线, 与闭合曲线相交于点 >。'且 PoP0 \≥Nx d , 则将最近距离点 />。"作为开放曲线与闭合曲线的交点; n If you extend the Bezier curve three times to the closed curve, intersect the closed curve at point >. 'And PoP 0 \≥Nx d , then the nearest distance is />. "as the intersection of the open curve and the closed curve;
修改首段三次贝塞尔曲线 30-33: 首段三次贝塞尔曲线 30-33与闭合曲线 的交点为 40, 则将控制点 P。30调整到 P。' 40, 利用调整后的四个控制点 P。40、 点 Ρ 1、 点 P232和点 P333修改该段三次贝塞尔曲.线。 Modify the first three-time Bezier curve 30-33: The intersection of the first three-time Bezier curve 30-33 with the closed curve is 40, then the control point P will be. 30 is adjusted to P. ' 40, using the adjusted four control points P. 40. Click Ρ 1, point P 2 32 and point P 3 33 to modify the three-time Bessel curve.
若首段三次贝塞尔曲线 30-33与闭合曲线的交点为最近距离点尸。 ",则将控 制点 A调整到 P。", 利用调整后的四个控制点修改该段三次贝塞尔曲线。  If the first three-time Bezier curve 30-33 and the closed curve intersection point is the closest distance to the corpse. ", adjust control point A to P.", modify the cubic Bezier curve with the adjusted four control points.
同样依据上述步骤, 对于末段三次贝塞尔曲线 35- 38, 该三次贝塞尔曲线 一端的控制点 P。38到闭合曲线的最近距离点 P。"41和最近距离 d。  Also according to the above steps, for the last cubic Bezier curve 35-38, the control point P at one end of the cubic Bezier curve. 38 to the closest distance point P of the closed curve. "41 and the closest distance d.
本实施例中, 贝塞尔曲线 35-38至闭合曲线 22,与闭合曲线 22相交于点 Ρ。' 42 , 则将该交点 P。' 42标记为末段三次贝塞尔曲线
Figure imgf000006_0001
In this embodiment, the Bezier curve 35-38 to the closed curve 22 intersects the closed curve 22 at the point Ρ. ' 42 , then the intersection point P. '42 is labeled as the last cubic Bezier curve
Figure imgf000006_0001
与闭合曲线的交点, 其中 N为可调量, 本实施例中 N= 2 。 The intersection with the closed curve, where N is an adjustable amount, N = 2 in this embodiment.
修改末段三次贝塞尔曲线 35-38: 末段三次贝塞尔曲线 35-38与闭合曲线 的交点为交点 P。' 42, 则将控制点 。38 调整到 P。' 42, 利用调整后的四个控制点 P。42、 点?^7、 点 P236和点 P335修改该段三次贝塞尔曲线。 Modify the last cubic Bezier curve 35-38: The intersection of the last cubic Bezier curve 35-38 and the closed curve is the intersection point P. ' 42, then the control point. 38 Adjust to P. ' 42, using the adjusted four control points P. 42, point? ^7, point P 2 36 and point P 3 35 modify the cubic Bezier curve of the segment.
( 3 ) 构建两条新的闭合曲线: 如图 4所示, 利用开放曲线的首段三次贝 塞尔曲线和末段三次曲线与闭合曲线的首末两个交点 40和 42构成两条新的闭 合曲线。 在将本发明所述的方法具体应用到包装陷印区域的处理技术中时,通常是 先由用户自己画一条开放曲线,将它放在闭合曲线 (即需要修改的陷印区塽) 周围或处于相交位置,然后采用本发明所述的方法对开放曲线和闭合曲线进行 修改, 最后得到两条新的闭合曲线。 本实施例中, 用户可以根据不同的需求, 保留其中的任意一条闭合曲线, 也可以同时保留两条闭合曲线。 实施例 2: (3) Construct two new closed curves: As shown in Fig. 4, the first three cubic Bezier curves and the last three cubic curves of the open curve and the first and last intersections 40 and 42 of the closed curve constitute two new ones. Close the curve. When the method of the present invention is specifically applied to the processing technique of packaging the trapping area, it is usually first drawn by the user to open an open curve and placed in a closed curve (ie, the trapping area to be modified). Surrounding or at the intersection, the open and closed curves are modified using the method of the present invention, and finally two new closed curves are obtained. In this embodiment, the user may retain any one of the closed curves according to different requirements, or may retain two closed curves at the same time. Example 2:
. 本实施例中, 以开放曲线与闭合曲线无交点情形下进行修改图形编辑对象 为例, 其中开放曲线仅为一段三次贝塞尔曲线。 如图 1所示, 一种利用开放曲 线和临近的闭合曲线构建新的闭合曲线的方法, 包括以下步骤:  In this embodiment, an example of modifying a graphic editing object is performed in the case where there is no intersection between the open curve and the closed curve, wherein the open curve is only a cubic Bezier curve. As shown in Figure 1, a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
( 1 ) 定位开放曲线的首段和末段三次贝塞尔曲线;  (1) Positioning the first and last cubic Bezier curves of the open curve;
如图 5、 图 6和图 7所示, 本实施例中, 开放曲线 51与闭合曲线 52无交 点。开放曲线 51仅有一段三次贝塞尔曲线组成, 其四个控制点分别为 60、 61、 62和 63。 因此需将该曲线进行二分剖分, 形成的两条三次贝塞尔曲线分别为 开放曲线的首段三次贝塞尔曲线 70-73和末段三次贝塞尔曲线 73-76。本实施 例中, 所述的对一段三次贝塞尔曲线进行二分剖分的方法包括 3: As shown in FIG. 5, FIG. 6, and FIG. 7, in the present embodiment, the open curve 51 has no intersection with the closed curve 52. The open curve 51 consists of only one cubic Bezier curve with four control points of 60, 61, 62 and 63, respectively. Therefore, the curve needs to be split into two parts. The two cubic Bezier curves are the first cubic Bezier curve 70-73 and the last cubic Bezier curve 73-76 of the open curve. In this embodiment, the method for performing bisection for a cubic Bezier curve includes 3:
将三次贝塞尔曲线以一元三次实系数多项式函数 /3 = | ^袠示, 其中 The cubic Bezier curve is represented by a one-dimensional cubic real coefficient polynomial function / 3 = | ^, where
!-0  !-0
参数 jc e [0,l] , α, (ί = 0,1,2,3)均为实数; The parameters jc e [0,l] , α, ( ί = 0,1,2,3) are real numbers;
取 5所在的点进行二分剖分, 得到首末两段三次贝塞尔曲线。  Take the point where 5 is divided into two points, and get the first and last three cubic Bezier curves.
( 2 ) 定位开放曲线与临近的闭合曲线首末交点并修改开放曲线: 基于开 放曲线的首段和末段三次贝塞尔曲线的控制点定位与闭合曲线的首末两个交 点, 并通过修改首段和末段三次贝塞尔曲线以实现整个开放曲线的修改;  (2) Positioning the open curve and the intersection of the adjacent closed curve and modifying the open curve: The control point of the first and last cubic Bezier curves based on the open curve and the first and last intersections of the closed curve, and modified The first and last three-time Bezier curves to achieve the modification of the entire open curve;
本实施例中, 首段三次贝塞尔曲线 70- 73与闭合曲线不存在交点, 则构造 一个交点并修改该开放曲线 51的具体方法包括:  In this embodiment, the first cubic Bezier curve 70-73 does not have an intersection with the closed curve, and the specific method for constructing an intersection and modifying the open curve 51 includes:
计算首段三次贝塞尔曲线 70-73—端的控制点 Ρ。70到闭合曲线的最近距 离点 Ρ。"和最近距离 d, 其中尸。为首段三次贝塞尔曲线控制点, 此点位于开放曲 线的端点处;  Calculate the first-stage cubic Bezier curve 70-73-end control point Ρ. 70 to the closest distance of the closed curve Ρ. "and the nearest distance d, where the corpse is the first three-time Bezier curve control point, which is located at the end of the open curve;
本实施例中, 延伸首段三次贝塞尔曲线至闭合曲线, 与闭合曲线无交点, 则将最近距离点 77作为该三次贝塞尔曲线 70-73与闭合曲线的交点;  In this embodiment, the first three-time Bezier curve is extended to the closed curve, and there is no intersection with the closed curve, and the closest distance point 77 is taken as the intersection of the cubic Bezier curve 70-73 and the closed curve;
修改首段三次贝塞尔曲线 70-73: 首段三次贝塞尔曲线 70-73与闭合曲线 52的交点为最近距离点 77, 则将控制点 P。 70调整到 77, 利用调整后的四 个控制点 P。77、 P,7K Ρ272和 Ρ373修改该段三次贝塞尔曲线。 Modify the first cubic Bezier curve 70-73: The intersection of the first cubic Bezier curve 70-73 and the closed curve 52 is the closest distance point 77, then the control point P will be. 70 is adjusted to 77, using the adjusted four control points P. 77, P, 7K Ρ 2 72 and Ρ 3 73 modify the cubic Bezier curve.
同样依据上述步骤, 对末段三次贝塞尔曲线 73-76进行修改, 得到该末段 三次贝塞尔曲线与闭合曲线的交点 78, 同时利用四个调整后的控制点 P。78、 P.75, P274和 P373得到修改后的末段三次贝塞尔曲线。 Also according to the above steps, the last three cubic Bezier curves 73-76 are modified to obtain the last segment. The intersection of the cubic Bezier curve with the closed curve 78 utilizes four adjusted control points P at the same time. 78, P.75, P 2 74 and P 3 73 obtain the modified last-stage cubic Bezier curve.
( 3 ) 构建两条新的闭合曲线: 如图 8所示, 利用开放曲线的首段和末段 三次贝塞尔曲线与闭合曲线的首末两个交点 77和 78构成两条新的闭合曲线。  (3) Construct two new closed curves: As shown in Fig. 8, the first and last cubic Bezier curves of the open curve and the first and last intersections 77 and 78 of the closed curve constitute two new closed curves. .
上述步骤 (2 ) 中, 二分剖分后形成的三次贝塞尔曲线, 可以再次进行二 分剖分, 最终确定首段和末段三次贝塞尔曲线。 实施例 3:  In the above step (2), the cubic Bezier curve formed after the splitting can be divided into two parts, and the first and last cubic Bezier curves are finally determined. Example 3:
本实施例中, 以开放曲线与闭合曲线存在一个或多个交点情形下进行修改 图形编辑对象为例。 如图 1所示, 一种利用开放曲线和临近的闭合曲线构建新 的闭合曲线的方法, 包括以下步骤:  In this embodiment, the modification of the graphic editing object is taken as an example in the case where one or more intersection points exist in the open curve and the closed curve. As shown in Figure 1, a method of constructing a new closed curve using an open curve and an adjacent closed curve includes the following steps:
( 1 ) 定位开放曲线的首段和末段三次贝塞尔曲线;  (1) Positioning the first and last cubic Bezier curves of the open curve;
如图 9和 10所示,本实施例中开放曲线 91与闭合曲线 92存在多个交点。 开放曲线 91 由四段三次贝塞尔曲线, 即曲线 100-101, 曲线 101-102、 曲线 102-103曲线 103-106; 其中首段曲线 100-101和末段曲线 103-106分别为开 放曲线的首段和末段三次贝塞尔曲线。  As shown in Figs. 9 and 10, in the present embodiment, the open curve 91 and the closed curve 92 have a plurality of intersections. The open curve 91 is composed of a four-segment cubic Bezier curve, that is, a curve 100-101, a curve 101-102, and a curve 102-103 curve 103-106; wherein the first segment curve 100-101 and the last segment curve 103-106 are open curves, respectively. The first and last three cubic Bezier curves.
( 2 ) 定位开放曲线与临近的闭合曲线首末交点并修改开放曲线: 基于开 放曲线的首段和末段三次贝塞尔曲线的控制点定位与闭合曲线的首末两个交 点, 并通过修改首段和末段三次贝塞尔曲线以实现整个开放曲线的修改;  (2) Positioning the open curve and the intersection of the adjacent closed curve and modifying the open curve: The control point of the first and last cubic Bezier curves based on the open curve and the first and last intersections of the closed curve, and modified The first and last three-time Bezier curves to achieve the modification of the entire open curve;
本实施例中, 对于首段三次贝塞尔曲线 100-101与闭合曲线 92有交点, 则构造一个合适的交点并修改该开放曲线的具体方法包括:  In this embodiment, for the first-stage cubic Bezier curve 100-101 and the closed curve 92, the specific method for constructing a suitable intersection point and modifying the open curve includes:
本实施例中, 如图 10所示, 由点 P。 100沿着首段三次贝塞尔曲线 100-101 确定与闭合曲线 92 的首个交点 A107, 计算 = |,。^ ^/ρ 3是否大于 Μ, Μ的 取值范围 [0, 1] , 其中, 三次贝塞尔曲线的控制点 Ρ。 100位于开放曲线 91的首 端,控制点 Ρ3 101位于三次贝塞尔曲线 100-101的另一端;本实施例中 Μ = 0.7, 经计算后《≥0.7, 所以计算首段三次贝塞尔曲线控制点尸。 100到闭合曲线 92的 最近距离点 108, 则将控制点 Ρ。由点 100调整到点 108, 其它三个控制点位 置不变, 利用调整后的四个控制点修改该段三次贝塞尔曲线, 将最近距离点 108调整为开放曲线首段三次贝塞尔曲线 100-101与闭合曲线首交点。 In this embodiment, as shown in FIG. 10, it is represented by a point P. 100 determines the first intersection A107 with the closed curve 92 along the first cubic Bezier curve 100-101, calculating = |,. ^ ^ / ρ 3 is greater than Μ, Μ value range [0, 1], where the control point of the cubic Bezier curve Ρ. 100 is located at the head end of the open curve 91, and the control point Ρ 3 101 is located at the other end of the cubic Bezier curve 100-101; in the present embodiment, Μ = 0.7, after calculation, "≥0.7, so the first stage is calculated three times Bessel The curve controls the corpse. 100 to the closest distance point 108 of the closed curve 92, then the control point Ρ. Adjusted from point 100 to point 108, the other three control points are unchanged. The modified three control points are used to modify the three-time Bezier curve, and the nearest distance point 108 is adjusted to the first-stage cubic Bezier curve of the open curve. 100-101 and the closed curve first intersection.
对于末段三次贝塞尔曲线与闭合曲线存在一个交点, 定位该三次贝塞尔曲 线与闭合曲线交点并修改三次贝塞尔曲线的具体方法包括: 本实施例中, 由点 P。 106沿着末段三次贝塞尔曲线 103-106确定与闭合曲 线 92的首个交点 B109, 计算 " = |尸 M的取值范围 [0, 1] , 其中, 三 次贝塞尔曲线的控制点 P。 106位于开放曲线 91的末端, 控制点尸3104位于三次 贝塞尔曲线 100-101 的另一端, 本实施例中 M = 0.7。 由于 α〈Μ即 α〈0.7, 则截 去/^部分 106-109, 点 为开放曲线末段三次贝塞尔曲线 103-106与闭合 曲线交点。 There is an intersection point between the last cubic Bezier curve and the closed curve. The specific methods for locating the cubic Bezier curve and the closed curve and modifying the cubic Bezier curve include: In this embodiment, it is from point P. 106 determines the first intersection B109 with the closed curve 92 along the last cubic Bezier curve 103-106, and calculates the value range of "= | corpse M [0, 1], where the control point of the cubic Bezier curve P. 106 is located at the end of the open curve 91, and the control point corpse 3 104 is located at the other end of the cubic Bezier curve 100-101. In this embodiment, M = 0.7. Since α < Μ is α < 0.7, truncation / ^ In sections 106-109, the point is the intersection of the cubic Bezier curve 103-106 and the closed curve at the end of the open curve.
本实施例中, 若首段或末段三次贝塞尔曲线与闭合曲线存在多个交点, 则 由点 沿着三次贝塞尔曲线确定与闭合曲线的首个交点 Α, 忽略其它交点, 进 行后续的处理, 方法同上。  In this embodiment, if there are multiple intersection points between the first or last three-time Bezier curve and the closed curve, the first intersection point of the closed curve is determined by the point along the cubic Bezier curve, and the other intersection points are ignored, followed by The treatment, the method is the same as above.
( 3)构建两条新的闭合曲线: 如图 11所示, 利用开放曲线的首段和末段 三次贝塞尔曲线与闭合曲线的首末两个交点 108和 109构成两条新的闭合曲  (3) Construct two new closed curves: As shown in Fig. 11, the first and last cubic Bezier curves of the open curve and the first and last intersections 108 and 109 of the closed curve constitute two new closed songs.
通过上述实施例及效果图可以看出,本发明公开了利用开放曲线和临近的 闭合曲线构建新的闭合曲线的方法,通过将开放曲线划分为多段三次贝塞尔曲 线并且定位首段和末段三次贝塞尔曲线,基于三次贝塞尔曲线的四个控制点定 位首段和末段三次贝塞尔曲线与闭合曲线的交点,最后利用开放曲线与闭合曲 线的首末两个交点构成两条新的闭合曲线。本发明所述的方法利用开放曲线自 身的几何属性信息, 通过修改开放曲线的首末段曲线, 以达到闭合曲线修改的 目的。 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的 精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及其等 同技术的范围之内, 则本发明也意图包含这些改动和变型在内。 As can be seen from the above embodiment and the effect diagram, the present invention discloses a method for constructing a new closed curve by using an open curve and an adjacent closed curve, by dividing the open curve into a multi-segment cubic Bezier curve and positioning the first and last segments. The cubic Bezier curve, based on the four control points of the cubic Bezier curve, locates the intersection of the first and last cubic Bezier curves and the closed curve, and finally uses the first and last intersections of the open curve and the closed curve to form two New closed curve. The method of the present invention utilizes the geometric property information of the open curve itself to modify the curve of the first and last segments of the open curve to achieve the purpose of modifying the closed curve. A person skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications of the invention

Claims

权 利 要 求 Rights request
1、 一种利用开放曲线和临近的闭合曲线构建新的闭合曲线的方法, 包括 以下步骤: 1. A method of constructing a new closed curve using an open curve and an adjacent closed curve, comprising the following steps:
( 1 ) 定位开放曲线的首段和末段三次贝塞尔曲线;  (1) Positioning the first and last cubic Bezier curves of the open curve;
(2 ) 定位开放曲线与临近的闭合曲线首末交点并修改开放曲线: 基于开 放曲线的首段和末段三次贝塞尔曲线的控制点定位与闭合曲线的首末交点, 并 通过修改首段和末段三次贝塞尔曲线以实现整个开放曲线的修改;  (2) Positioning the open curve and the intersection of the adjacent closed curve and modifying the open curve: Based on the opening and ending points of the first and last cubic Bezier curves of the open curve, the first and last intersections of the closed curve, and by modifying the first paragraph And the last three cubic Bezier curves to achieve the modification of the entire open curve;
( 3 ) 构建两条新的闭合曲线: 利用开放曲线的首段和末段三次贝塞尔曲 线与闭合曲线的首末交点构成两条新的闭合曲线。  (3) Construct two new closed curves: The first and last three-part Bezier curves of the open curve and the first and last intersections of the closed curve form two new closed curves.
2、 如权利要求 1所述的一种利用开放曲线和临近的闭合曲线构建新的闭 合曲线的方法, 其特征在于: 步骤 (1 ) 中若开放曲线由多段三次贝塞尔曲线 组成, 则开放曲线两端的三次贝塞尔曲线分别为开放曲线的首段和末段三次贝 塞尔曲线。  2. A method for constructing a new closed curve using an open curve and an adjacent closed curve according to claim 1, wherein: in step (1), if the open curve is composed of a plurality of cubic Bezier curves, the method is open. The cubic Bezier curves at the ends of the curve are the first and last cubic Bezier curves of the open curve.
3、 如权利要求 1所述的一种利用开放曲线和临近的闭合曲线构建新的闭 合曲线的方法, 其特征在于: 步骤 (1 ) 中若开放曲线仅由一段三次贝塞尔曲 线组成, 则将该开放曲线进行二分剖分, 形成的两条三次贝塞尔曲线分别为开 放曲线的首段和末段三次贝塞尔曲线。  3. A method for constructing a new closed curve using an open curve and an adjacent closed curve according to claim 1, wherein: in step (1), if the open curve consists only of a cubic Bezier curve, The open curve is divided into two parts, and the two cubic Bezier curves are respectively formed as the first and last cubic Bezier curves of the open curve.
4、 如权利要求 3所述的一种利用开放曲线和临近的闭合曲线构建新的闭 合曲线的方法, 其特征在于: 所述的对一段三次贝塞尔曲线进行二分剖分的方 法包括以下步骤:  4. A method of constructing a new closed curve using an open curve and an adjacent closed curve as claimed in claim 3, wherein: said method of bisection for a cubic Bezier curve comprises the following steps :
将三次贝塞尔曲线以一元三次实系数多项式函数 /(X)表示, 其中参数 X e [0,1];  The cubic Bezier curve is represented by a one-dimensional cubic real coefficient polynomial function /(X), where the parameter X e [0,1];
取 5所在的点进行二分剖分, 得到首末两段三次贝塞尔曲线。  Take the point where 5 is divided into two points, and get the first and last three cubic Bezier curves.
5、 如权利要求 3所述的一种利用开放曲线和临近的闭合曲线构建新的闭 合曲线的方法, 其特征在于: 对二分剖分后形成的三次贝塞尔曲线再次进行二 分剖分。  5. A method of constructing a new closed curve using an open curve and an adjacent closed curve according to claim 3, wherein: the cubic Bezier curve formed after the splitting is again divided into two.
6、 如权利要求 1至 5之一所述的一种利用开放曲线和临近的闭合曲线构 建新的闭合曲线的方法, 其特征在于: 步骤 (2 ) 中若首段或末段三次贝塞尔 曲线与闭合曲线没有交点, 则构造一个交点并修改该首段或末段三次贝塞尔曲 线, 具体方法包括: 计算首段或末段三次贝塞尔曲线一端的控制点 P。到闭合曲线的最近距离 点 '和最近距离 d, 其中控制点/ >。位于开放曲线的首端或末端; 6. A method for constructing a new closed curve using an open curve and an adjacent closed curve according to any one of claims 1 to 5, characterized in that: in step (2), if the first segment or the last segment is three times Bessel If there is no intersection between the curve and the closed curve, construct an intersection point and modify the first or last cubic Bezier curve. The specific methods include: Calculate the control point P at one end of the first or last three-time Bezier curve. The closest distance to the closed curve point ' and the closest distance d, where control point />. Located at the beginning or end of the open curve;
。自然延伸首段或末段三次贝塞尔曲线, 若与闭合曲线相交于点 , N . Naturally extending the first or last cubic Bezier curve, if intersecting the closed curve at the point, N
Figure imgf000011_0001
的取值范围为(0, 3] , 则将该交点 P。'标记为该。首段或末段 与闭合曲线的交点,若与闭合曲线相交于点 且 |ρ。λ'|≥ ^或 与闭合曲线无交点,则将最近距离点 作为该首段或末段三次贝塞尔曲线与闭 合曲线的交点;
Figure imgf000011_0001
If the value range is (0, 3), then the intersection point P.' is marked as the intersection of the first or last segment and the closed curve, if it intersects the closed curve at the point and |ρ.λ'|≥ ^ or If there is no intersection with the closed curve, the closest distance point is used as the intersection of the cubic Bezier curve and the closed curve of the first or last segment;
修改首段或末段三次贝塞尔曲线: 若首段或末段三次贝塞尔曲线与闭合曲 线的交点为交点 ρ。',则将控制点 Ρ。调整到 Ρ。',利用调整后的四个控制点修改该 首段或末段三次贝塞尔曲线;若首段或末段三次贝塞尔曲线与闭合曲线的交点 为最近距离点 ρ。", 则将控制点 Λ-调整到 ', 利用调整后的四个控制点修改该 首段或末段三次贝塞尔曲线。  Modify the first or last three-time Bezier curve: If the intersection of the first or last three-time Bezier curve and the closed curve is the intersection point ρ. ', then the control point Ρ. Adjust to Ρ. ', modify the first or last cubic Bezier curve with the adjusted four control points; if the intersection of the first or last cubic Bezier curve and the closed curve is the closest distance point ρ. ", adjust the control point Λ- to ', and modify the first or last cubic Bezier curve with the adjusted four control points.
7、 如权利要求 6所述的一种利用开放曲线和临近的闭合曲线构建新的闭 合曲线的方法, 其特征在于: 所述的 N的取值为 2。  7. A method of constructing a new closed curve using an open curve and an adjacent closed curve according to claim 6, wherein: said N has a value of two.
8、 如权利要求 1至 5之一所述的一种利用开放曲线和临近的闭合曲线构 建新的闭合曲线的方法, 其特征在于: 步骤 (2 ) 中若首段或末段三次贝塞尔 曲线与闭合曲线存在一个或多个交点, 则定位该首段或末段三次贝塞尔曲线与 闭合曲线交点并修改首段或末段三次贝塞尔曲线, 具体方法包括:  8. A method for constructing a new closed curve using an open curve and an adjacent closed curve according to any one of claims 1 to 5, characterized in that: in step (2), if the first segment or the last segment is three times Bessel If there is one or more intersection points between the curve and the closed curve, the intersection of the cubic or Bezier curve and the closed curve of the first or last segment is located and the first or last cubic Bezier curve is modified, and the specific methods include:
由控制点 Ρ。沿着首段或末段三次贝塞尔曲线确定与闭合曲线的首个交点 Α, 计算" = |/^ ^/尸 3|, 其中, 控制点尸。位于开放曲线的首端或末端, 3位于 首段或末段三次贝塞尔曲线的另一端; 若 〈Μ, Μ的取值范围为 [0, 1] , 则截 去/^部分;若 α≥Μ, 则计算首段或末段三次贝塞尔曲线控制点 Ρ。到闭合曲线 的最近距离点 Ρ。", 则将控制点 Ρ。调整到 Ρ。', 利用调整后的四个控制点修改该 首段或末段三次贝塞尔曲线,将最近距离点 Ρ。"调整为该首段或末段三次贝塞尔 曲线与闭合曲线交点。 By the control point Ρ. Determine the first intersection of the closed curve along the first or last cubic Bezier curve, and calculate " = |/^ ^/ 尸3 |, where the control point is at the beginning or end of the open curve, 3 Located at the other end of the first or last third Bezier curve; if <Μ, Μ is in the range [0, 1], the /^ part is truncated; if α≥Μ, the first or last stage is calculated The cubic Bezier curve controls the point Ρ. The closest distance to the closed curve is Ρ.", then the control point Ρ. Adjust to Ρ. ', modify the first or last three-time Bezier curve with the adjusted four control points, and click the nearest distance. "Adjust to the intersection of the first Bezier curve and the closed curve of the first or last segment.
9、 如权利要求 8所述的一种利用开放曲线和临近的闭合曲线构建新的闭 合曲线的方法, 其特征在于: 所述的 Μ的取值为 0. 7。  The Μ value of the Μ is 0.7. The method of the Μ is taken as a value of 0.7.
10、如权利要求 1至 5之一所述的一种利用开放曲线和临近的闭合曲线构 建新的闭合曲线的方法, 其特征在于: 所述的闭合曲线所围成的区域为包装陷 印区域,所述的开放曲线为用户在包装陷印区域周围所画的一条与闭合曲线相 交或不相交的非闭合曲线。  10. A method of constructing a new closed curve using an open curve and an adjacent closed curve according to any one of claims 1 to 5, characterized in that: the area enclosed by the closed curve is a package trapping area The open curve is a non-closed curve drawn by the user around the package trapping area that intersects or does not intersect the closed curve.
PCT/CN2008/002077 2008-06-13 2008-12-25 Method for constructing new closed curves by using an open curve and an adjacent closed curve WO2009149591A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810114898XA CN101604452B (en) 2008-06-13 2008-06-13 Method for constructing novel closed curve by opened curve and adjacent closed curve
CN200810114898.X 2008-06-13

Publications (1)

Publication Number Publication Date
WO2009149591A1 true WO2009149591A1 (en) 2009-12-17

Family

ID=41416340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/002077 WO2009149591A1 (en) 2008-06-13 2008-12-25 Method for constructing new closed curves by using an open curve and an adjacent closed curve

Country Status (2)

Country Link
CN (1) CN101604452B (en)
WO (1) WO2009149591A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065319B (en) * 2012-12-31 2015-03-04 上海同岩土木工程科技有限公司 Closed surface automatic search method of space multiply connected domain
CN104268909A (en) * 2014-09-11 2015-01-07 清华大学 Bezier curve adjusting method based on construction of Bernstein basis functions with parameters
CN116362202B (en) * 2023-06-01 2023-08-11 合肥高维数据技术有限公司 Font generation method, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1044355A (en) * 1989-01-19 1990-08-01 惠普公司 Polygon smoothing method
CN1852389A (en) * 2006-04-29 2006-10-25 北京北大方正电子有限公司 Image crisperding method during composing process
US20070070071A1 (en) * 2005-09-29 2007-03-29 Fujitsu Limited Outline font compression method
US7289122B1 (en) * 2004-12-22 2007-10-30 Sun Microsystems, Inc. Method and apparatus for approximating an arbitrary shape with a closed Bezier curve

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1044355A (en) * 1989-01-19 1990-08-01 惠普公司 Polygon smoothing method
US7289122B1 (en) * 2004-12-22 2007-10-30 Sun Microsystems, Inc. Method and apparatus for approximating an arbitrary shape with a closed Bezier curve
US20070070071A1 (en) * 2005-09-29 2007-03-29 Fujitsu Limited Outline font compression method
CN1852389A (en) * 2006-04-29 2006-10-25 北京北大方正电子有限公司 Image crisperding method during composing process

Also Published As

Publication number Publication date
CN101604452B (en) 2012-02-01
CN101604452A (en) 2009-12-16

Similar Documents

Publication Publication Date Title
US6300955B1 (en) Method and system for mask generation
Karčiauskas et al. Generalizing bicubic splines for modeling and IGA with irregular layout
Takayama et al. Sketch-based generation and editing of quad meshes.
MY149288A (en) Method, system, and computer-readable medium for creating and laying out a graphic within an application program
Nöllenburg et al. Morphing polylines: A step towards continuous generalization
KR20060002856A (en) System and method for defining t-spline and t-nurcc surfaces using local refinements
Dwyer et al. Dunnart: A constraint-based network diagram authoring tool
WO2009149591A1 (en) Method for constructing new closed curves by using an open curve and an adjacent closed curve
CN103777866B (en) Data editing method and device for magnifying glass
CN105957002A (en) Image interpolation enlargement method and device based on triangular grid
TWI249690B (en) Method and apparatus for creating vector representation
CN105139341B (en) A kind of GIF image edit methods and device
CN107871041B (en) The grid processing method of basin complicated landform
US20020163517A1 (en) Computer-implemented node spreader
CN106649248A (en) Single-line text alignment method and translated file processing method of DWG file
WO2020094023A1 (en) Road thinning algorithm
JP3591625B2 (en) Instruction line drawing method and apparatus
US8941661B2 (en) Automatic corner generation
Goloubentsev et al. On the convergence of nonstationary solutions of the Perron-Frobenius equation to the invariant density
JP3669188B2 (en) Symbol connection diagram creation device
CN104504665B (en) A kind of dentures repai surface rapid deformation method of distinguished point based
US20240135607A1 (en) Nonlinear representations for vector objects
Shinagawa et al. Developing surfaces
Chambers Analyzing the Structural Properties of Pulmonary Arterial Networks
JPH09258716A (en) Stroke information processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08874583

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08874583

Country of ref document: EP

Kind code of ref document: A1