• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            eryar

            PipeCAD - Plant Piping Design Software.
            RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
            posts - 603, comments - 590, trackbacks - 0, articles - 0

            OPEN CASCADE Curve Continuity

            Posted on 2015-11-15 23:01 eryar 閱讀(2609) 評論(4)  編輯 收藏 引用 所屬分類: 2.OpenCASCADE

            OPEN CASCADE Curve Continuity

            eryar@163.com

            Abstract. 設(shè)計一條復(fù)雜曲線時,出于設(shè)計和制造上的考慮,常常通過多段曲線組合而成,這就需要解決曲線段之間如何實現(xiàn)光滑連接的問題。評價曲線間連接的光滑度的度量有兩種:參數(shù)連接性和幾何連續(xù)性。本文對這兩種連續(xù)性分別進行介紹。

            Key Words. Curve Continuity, Geometric Continuity, 參數(shù)連續(xù)性、幾何連續(xù)性

            1.Introduction

            在實際應(yīng)用中進行復(fù)雜零件的幾何設(shè)計時,通常我們用到的不僅僅是整個曲線,而是滿足一定的連續(xù)條件拼接而成的曲線段組成的組合曲線。關(guān)于連續(xù)條件有兩種不同的度量方法。一種是滿足于數(shù)學(xué)上嚴(yán)格定義的函數(shù)曲線可微性方法;別一種是滿足相對寬松的約束條件的幾何連續(xù)性方法。

            本文對連續(xù)性的兩種度量方法進行介紹,來理解參數(shù)連續(xù)性和幾何連續(xù)性。對連續(xù)性的概念有個認(rèn)識后,在使用OPEN CASCADE或其他幾何造型內(nèi)核時,當(dāng)出現(xiàn)需要指定連續(xù)性的時候,不至于茫然無措。

            2.Parametric Continuity

            利用函數(shù)曲線的可微性,曲線在連接處具有直到n階連續(xù)導(dǎo)矢,即n次連續(xù)可微,這類光滑度稱之為Cn或n階參數(shù)連續(xù)性。下面給出參數(shù)連續(xù)性Parametric Continuity的定義:

            參數(shù)曲線C(u)在u=u0處為k階參數(shù)連續(xù)(Ck連續(xù))的充要條件是:C(u)的每個分量在u=u0處Ck連續(xù),即

            wps_clip_image-8474

            如果對所有的u∈[a,b],曲線C(u)均Ck連續(xù),則稱它為關(guān)于參數(shù)u的Ck連續(xù)曲線。在函數(shù)曲線里,可微性和光滑度是一致的,函數(shù)曲線是C1連續(xù),意味著具有連續(xù)的切矢;C2連續(xù)意味著不僅具有連續(xù)的切矢,還具有連續(xù)的曲率。由于曲線的參數(shù)選取并不唯一,同樣的曲線可以有不同的參數(shù)表示,而曲線的參數(shù)連續(xù)又與參數(shù)選取緊密相關(guān)。若參數(shù)變換前曲線為Ck連續(xù),但曲線的參數(shù)變換后可能不能在每一點處都滿足Ck連續(xù)。這是個問題。

            3.Geometric Continuity

            實際工程設(shè)計中,人們有一種直觀的感覺:兩線段相連接,只要在連接點有相同的切線就認(rèn)為是光滑的。但按照參數(shù)連續(xù)性度量光滑度,還必須有相同的切矢模長才能認(rèn)為是C1連續(xù)的。由于參數(shù)連續(xù)性不能客觀準(zhǔn)確度量參數(shù)曲線連接的光滑度,因而經(jīng)常用稱之為幾何連續(xù)性(Geometric Continuity)的方法來度量曲線的光滑程度。下面給出幾何連續(xù)性的定義:

            參數(shù)曲線C(u)是k階幾何連續(xù)的充要條件為:在弧長參數(shù)化下,曲線是Ck的。因為在弧長參數(shù)化下,曲線的參數(shù)連續(xù)與幾何連續(xù)是一致的。

            關(guān)于弧長參數(shù)化相關(guān)概念可參考: http://www.shnenglu.com/eryar/archive/2014/08/25/208127.html

            合成曲線在拼接點處滿足不同于Cn連續(xù)性的某一組約束條件,稱為具有n階幾何連續(xù)性,簡記為Gn。事實上模型的形狀是與描述它所取的參數(shù)無關(guān)的,作為形狀的內(nèi)在幾何特征的光滑度及作為度量光滑度的幾何連續(xù)性定義應(yīng)該是獨立于具體的參數(shù)化的。幾何連續(xù)性放寬了對參數(shù)曲線光滑度的限制條件,為形狀定義和形狀控制提供了更多的自由度,更適合曲線在交互設(shè)計中使用,有文獻稱其為視覺連續(xù)性。

            4.Curve Continuity

            下面通過一個具體的例子來說明參數(shù)連續(xù)性和幾何連續(xù)性。最后介紹OPEN CASCADE中對曲線連續(xù)性的定義。

            wps_clip_image-3347

            Φ(t)在[0,2]上表示一條連接V0,V1的直線段,但卻有

            wps_clip_image-6475

            Φ(t)明明是一條直線,卻非C1連續(xù),說明用參數(shù)連續(xù)性描述光滑性是不恰當(dāng)?shù)摹?

            wps_clip_image-9192

            Figure 4.1 兩條曲線拼接的連續(xù)性

            如4.1所示,對于參數(shù)t∈[0,1]的兩條曲線P(t)和Q(t),若要求在拼接處達(dá)到G0連續(xù)或C0連續(xù),即兩曲線在拼接處位置連續(xù),則需要P(1) = Q(0);

            若要求在拼接處達(dá)到G1連續(xù),就是說兩條曲線在拼接處滿足G0連續(xù)的條件下,并有公共的切矢:

            wps_clip_image-22327

            當(dāng)α=1時,G1連續(xù)就成為C1連續(xù)。

            若要求在拼接處達(dá)到G2連續(xù),就是說兩條曲線在拼接處滿足G1連續(xù)的條件下,并有公共的曲率矢。根據(jù)曲率計算公式:

            wps_clip_image-24839

            wps_clip_image-16585

            將G1連續(xù)的條件方程代入可得:

            wps_clip_image-12445

            β為任意常數(shù)。當(dāng)α=1,β=0時,G2連續(xù)就成為了C2連續(xù)。至此可以看到,C1連續(xù)保證G1連續(xù),C2連續(xù)保證G2連續(xù),但反過來不行。也就是說Cn連續(xù)的條件比Gn連續(xù)的條件要苛刻。

            OPEN CASCADE中關(guān)于曲線是連續(xù)性的定義使用了GeomAbs_Shape枚舉定義:

            //! Provides information about the continuity of a curve:
            //! -   C0: only geometric continuity.
            //! -   G1: for each point on the curve, the tangent vectors
            //! "on the right" and "on the left" are collinear with the same orientation.
            //! -   C1: continuity of the first derivative. The "C1" curve is
            //! also "G1" but, in addition, the tangent vectors " on the
            //! right" and "on the left" are equal.
            //! -   G2: for each point on the curve, the normalized
            //! normal vectors "on the right" and "on the left" are equal.
            //! -   C2: continuity of the second derivative.
            //! -   C3: continuity of the third derivative.
            //! -   CN: continuity of the N-th derivative, whatever is the
            //! value given for N (infinite order of continuity).
            //! Also provides information about the continuity of a surface:
            //! -   C0: only geometric continuity.
            //! -   C1: continuity of the first derivatives; any
            //! isoparametric (in U or V) of a surface "C1" is also "C1".
            //! -   G2: for BSpline curves only; "on the right" and "on the
            //! left" of a knot the computation of the "main curvature
            //! radii" and the "main directions" (when they exist) gives the same result.
            //! -   C2: continuity of the second derivative.
            //! -   C3: continuity of the third derivative.
            //! -   CN: continuity of any N-th derivative, whatever is the
            //! value given for N (infinite order of continuity).
            //! We may also say that a surface is "Ci" in u, and "Cj" in v
            //! to indicate the continuity of its derivatives up to the order
            //! i in the u parametric direction, and j in the v parametric direction.
            enum GeomAbs_Shape
            {
              GeomAbs_C0,
              GeomAbs_G1,
              GeomAbs_C1,
              GeomAbs_G2,
              GeomAbs_C2,
              GeomAbs_C3,
              GeomAbs_CN
            };

            結(jié)合前面關(guān)于參數(shù)連續(xù)和幾何連續(xù)的介紹,再看頭文件中的注釋就很好理解了。

            5.Conclusion

            綜上所述,對拼接曲線光滑度進行度量有兩種方法:參數(shù)連續(xù)性和幾何連續(xù)性。參數(shù)連續(xù)性是嚴(yán)格的數(shù)學(xué)可微性定義,就像別人對你到了年紀(jì)還沒結(jié)婚的看法……“肯定是要求太高了”。而幾何連續(xù)性就像我們工科專業(yè)的,不是那么喜歡較真,差不多就可以了。對有些精確結(jié)果還喜歡乘以一個經(jīng)驗系數(shù),放點余量。理解了對拼接曲線光滑性的度量方法,就可以在用到的時候按需選擇。

            6.References

            1. 莫蓉. 常智勇. 計算機輔助幾何造型技術(shù). 科學(xué)出版社. 2009

            2. 王仁宏. 李崇君. 朱春鋼. 計算幾何教程. 科學(xué)出版社. 2008

            3. 孫家廣等. 計算機圖形學(xué). 清華大學(xué)出版社. 2000

            4. 朱心雄. 自由曲線曲面造型技術(shù). 科學(xué)出版社. 2008

            5. Shing Liu. OPENCASCADE Curve Length Calculation.  http://www.shnenglu.com/eryar/archive/2014/08/25/208127.html

             

            Feedback

            # re: OPEN CASCADE Curve Continuity  回復(fù)  更多評論   

            2015-11-19 23:08 by robust
            博主您好,想向您請教一個問題,如果我編的程序用到了occ庫,也就是在我的程序中include了occ的頭文件*.hxx,*.lib,沒有對0cc庫做任何改動,那么我的程序能獨立發(fā)布而不用公開源代碼嗎?
            我看了LGPL條款,有些內(nèi)容還是理解不透,特來請教資深專家。謝謝

            # re: OPEN CASCADE Curve Continuity  回復(fù)  更多評論   

            2015-11-19 23:15 by eryar
            @robust
            Hi robust,

            對LGPL協(xié)議的理解我也是從網(wǎng)上獲取相關(guān)信息,你可以直接在網(wǎng)上搜索下LGPL協(xié)議的授權(quán)相關(guān)注意事項。

            你關(guān)注的這個問題在OPEN CASCADE的官網(wǎng)上也給了明確回復(fù),可參考:
            http://www.opencascade.com/content/faqs

            3) Can I use Open CASCADE Technology to make commercial products and to sell them? If yes, are there any limitations?
            Yes, you can use Open CASCADE Technology (OCCT) libraries in commercial applications without having to pay any development license fees or run time fees or royalties.
            Your obligation is to give prominent notice that your software uses Open CASCADE Technology, which is a Trademark of OPEN CASCADE Company, supply a copy of the OCCT license with your product and follow the other requirements of the license itself. Starting from version 6.7.0, this license is the GNU LGPL version 2.1 (with some minor additional permissions).
            Please, also note that Open CASCADE Technology uses third-party components which are listed on our System Requirements page. The use of third-party components is governed by their corresponding licenses.

            6) Am I obliged to disclose the entire source code of my application using OCCT?
            No, you are not. The decision to disclose the source code of your application is up to you.

            # re: OPEN CASCADE Curve Continuity  回復(fù)  更多評論   

            2015-11-20 12:33 by robust
            謝謝專家.

            # re: OPEN CASCADE Curve Continuity  回復(fù)  更多評論   

            2015-11-20 16:49 by eryar
            @robust
            客氣了。

            版權(quán)意識很好!
            欧美亚洲国产精品久久高清| 欧美一区二区精品久久| 97热久久免费频精品99| 久久久国产视频| 久久久久99精品成人片牛牛影视| 久久精品成人国产午夜| 潮喷大喷水系列无码久久精品 | 久久精品国产精品青草app| 亚洲人成精品久久久久| 无码专区久久综合久中文字幕| 色播久久人人爽人人爽人人片AV| 久久国产精品无| 久久午夜无码鲁丝片秋霞| 久久久www免费人成精品| 久久亚洲sm情趣捆绑调教| 亚洲色大成网站www久久九| 蜜臀av性久久久久蜜臀aⅴ麻豆| 久久精品国产亚洲AV麻豆网站| 99久久国语露脸精品国产| 久久99国产精品久久99| 国产高潮国产高潮久久久91| 久久久青草青青国产亚洲免观| 久久久久亚洲?V成人无码| 伊人伊成久久人综合网777| 亚洲综合日韩久久成人AV| 久久精品国产91久久综合麻豆自制| 亚洲国产精品久久久久婷婷软件 | 亚洲成色WWW久久网站| 狠狠色婷婷综合天天久久丁香 | 亚洲AV成人无码久久精品老人| 久久国产精品一国产精品金尊 | 午夜精品久久久久久影视riav| 国产A级毛片久久久精品毛片| 国产一级持黄大片99久久| 精品99久久aaa一级毛片| 天天躁日日躁狠狠久久 | www性久久久com| 亚洲精品无码久久不卡| 国产精品毛片久久久久久久| 久久亚洲视频| 爱做久久久久久|