锘??xml version="1.0" encoding="utf-8" standalone="yes"?>C++鍗氬-eryarhttp://www.2676208.com/eryar/zh-cnSun, 14 Jul 2019 21:25:21 GMTSun, 14 Jul 2019 21:25:21 GMT60Installing Node.js and Express on Ubuntuhttp://www.2676208.com/eryar/archive/2019/07/08/Ubuntu_Nodejs.htmleryareryarMon, 08 Jul 2019 04:10:00 GMThttp://www.2676208.com/eryar/archive/2019/07/08/Ubuntu_Nodejs.htmlhttp://www.2676208.com/eryar/comments/216511.htmlhttp://www.2676208.com/eryar/archive/2019/07/08/Ubuntu_Nodejs.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216511.htmlhttp://www.2676208.com/eryar/services/trackbacks/216511.htmlInstalling Node.js and Express on Ubuntu

1. 鍦╪odejs瀹樼綉涓?#28051;?#26462;絃inux Binaries(宸茬粡鍖呭惈浜唍pm):

2. 瀹夎Node.js
涓?#26462;?#37722;庤В鍘嬶紝骞?#37734;?#29785;?#37720;?#37928;勬枃浠跺す涓?#37722;?#37716;═erminal鍚庯紝杈撳叆鍛?#28000;?#38171;?br />    sudo cp * /usr/local/ -r
鍐?#26440;撳叆鍛?#28000;?#38171;?br />    node -v
    npm -v
鏌ョ湅绋嬪簭鐗堟湰?#32029;?#28533;妫娴嬫槸鍚︽垚鍔?#28729;夎锛?br />

3. 瀹夎express
    npm install -g express-generator

4. 娴嬭瘯Node鍜孍xpress
鐢–esium?#28533;娴嬭瘯涓涓?#28729;夎?#21614;槸鍚︽垚鍔燂紝杩涘叆鍒癈esium婧愮爜?#26499;浠跺?#30328;紝杈撳叆鍛?#28000;?#38171;?br />Node server.js


琛?#32448;?#37722;?#37716;ㄦ垚鍔燂紝鍦?#23092;?#29785;?#37731;?#28051;?#26440;撳叆?#32137;?#28483;锛歨ttp://localhost:8080/


鐐瑰嚮閾炬帴Hello World鍑虹幇涓嬮潰鐨?#26473;?#28051;?#37734;?#37918;?#38171;?br />





]]>
Boost test vs2013 fatal error C1001http://www.2676208.com/eryar/archive/2019/07/06/boost_test.htmleryareryarSat, 06 Jul 2019 04:54:00 GMThttp://www.2676208.com/eryar/archive/2019/07/06/boost_test.htmlhttp://www.2676208.com/eryar/comments/216504.htmlhttp://www.2676208.com/eryar/archive/2019/07/06/boost_test.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216504.htmlhttp://www.2676208.com/eryar/services/trackbacks/216504.htmlBoost test vs2013 fatal error C1001

鍦?span style="font-family: 'Times New Roman';">Visual Studio 2013涓娇鐢?/span>boost鐨?/span>test妯″潡鏃朵細鎶ヨ嚧鍛介敊璇紝濡?#28051;嬪?#28844;墍绀?#38171;?/span>

杈撳嚭鎶ラ敊淇℃伅濡?#28051;嬶細

1>------ Build started: Project: Test, Configuration: Debug Win32 ------

1>  main.cpp

1>d:\boost_1_70_0\boost\type_traits\common_type.hpp(47): fatal error C1001: An internal error has occurred in the compiler.

1>  (compiler file 'msc1.cpp', line 1325)

1>   To work around this problem, try simplifying or changing the program near the locations listed above.

1>  Please choose the Technical Support command on the Visual C++ 

1>   Help menu, or open the Technical Support help file for more information

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

瀹氫綅鍒?#37814;ラ敊?#26499;浠舵槸common_type.hpp锛?/span>

 

鍙?#28000;ョ湅鍑烘槸鍥?#28051;篊XX11鐨?#37720;熷洜?#32029;鍥?#28051;?/span>VS2013涓嶆敮鎸?/span>C++11?#32029;?#22669;浠?/span>boost鎻愪緵浜?#28051;涓?#28729;?#28729;氫箟?#28533;璁?#32515;槸鍚︽敮鎸?/span>CXX11锛?/span>

BOOST_NO_CXX11_TEMPLATE_ALIASES

鍦≒roject->Properties->C/C++->Preprocessor涓?#29825;?#32515;?#37719;?#37721;?#38171;?/span>

 

 


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


]]>
鏈灏?#27996;?#28052;?#23049;?#37815;?#37722;?#37929;寸嚎http://www.2676208.com/eryar/archive/2019/07/04/fitLine.htmleryareryarThu, 04 Jul 2019 08:26:00 GMThttp://www.2676208.com/eryar/archive/2019/07/04/fitLine.htmlhttp://www.2676208.com/eryar/comments/216484.htmlhttp://www.2676208.com/eryar/archive/2019/07/04/fitLine.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216484.htmlhttp://www.2676208.com/eryar/services/trackbacks/216484.html鏈灏?#27996;?#28052;?#23049;?#37815;?#37722;?#37929;寸嚎

鍦?#32457;戝瀹?#26976;?#37724;?#37922;?#27996;?#28729;炶返涓紝?#31905;?#29238;闇瑕?#28000;?#28051;缁?#28729;?#26976;屾?#29256;嵁鍑?#37721;戝姹?#37713;芥暟y=f(x)鐨?#28051;涓?#26473;?#28028;?#29723;?#26440;惧紡?#32029;涔?#32457;?#28051;虹粡楠?#37711;紡銆?#28000;?#37713;犱綍涓?#37930;嬶紝灏辨槸甯屾?#28057;牴鎹?#32513;?#28729;?#37928;?/span>m涓?#37904;癸紝姹?#37831;茬嚎y=f(x)鐨?#28051;鏉?#26473;?#28028;?#37831;茬嚎銆?#37733;?#23005;?#26473;欐槸涓?#37831;茬嚎鎷?#37722;?#38338;?#26864;?#37510;?/span>

?#32139;鎴?#28000;?#29781;?#23033;?#26473;?#28028;?#37831;茬嚎涓?#37837;奸?#26473;?#32513;?#28729;?#37928;勬瘡涓?#37904;?#37827;讹紝杩欐槸鎻掑肩畻娉?#37510;傚浜庢湰?#26499;?#22669;杩?#37928;?#37929;寸嚎鎷?#37722;堟潵璇达紝濡?#37835;?#37922;?#37819;掑肩畻娉曪紝鍒?#37721;?#38343;瑕?#28051;?#28051;?#37904;瑰氨澶?#27996;?#37510;?#28729;?#38340;?#37929;寸嚎鎷?#37722;堟?#29256;嵁鍙兘?#24359;瓒?#28051;?#27996;?#26473;?#28051;?#37833;?#28000;讹紝涓?#27996;嗕究浜庤?#30075;?#32029;鍒?#37835;?#28051;?#25652;?#37922;紝鎴?#28000;?#26440;?#28598;氬湴?#29300;鎹?ldquo;?#23047;娴嬮噺鐐?#37714;?#37929;寸嚎?#31387;绂?#37928;?#39582;?#37826;?#37724;屾渶灏?rdquo;鐨?#37720;熷?#27408;潵鎷?#37722;?#37510;?#37816;?#37832;灏?#27996;?#28052;?#37720;熷?#27411;?#37815;?#37815;?#37722;堟?#33580;嚎鐨勬柟娉曪紝绉?#28051;?#37832;灏?#27996;?#28052;?#23049;?#38171;?/span>Method of Least Squares锛?#37510;?/span>

鍒?#37922;?#37832;灏?#27996;?#28052;?#23049;?#37815;?#37722;堟?#33580;嚎鐨?#28051;鑸?#23005;?#26976;ゆ槸锛?/span>

  • 灏?#28729;?#26976;屾?#29256;嵁鏄?#32448;?#37713;烘潵?#32029;鍒?#37835;?#37831;茬嚎鐨勫舰?#32033;锛?/span>

  • 纭?#28729;氭嫙鍚堟?#33580;嚎鐨勫舰?#32033;銆傚浜庢湰?#26499;?#28533;璇达紝鏇茬嚎褰㈠紡?#27128;鐩寸嚎?#32029;y=a+bx;

  • 寤虹?#23339;硶鏂?#32459;?#32513;?#39582;跺鍏?#26473;?#29723;屾眰瑙?#38171;?/span>

 

鍥?#28051;?/span>OpenCASCADE涓?#37825;版嵁缁撴瀯鍙婄畻娉?#28051;板瘜?#32029;?#22669;浠?#37922;?/span>OpenCASCADE鍙?#28000;?#36423;?#38315;?#28729;炵幇鐩寸嚎鐨勬渶灏?#27996;?#28052;?#23049;?#37815;?#37722;堢畻娉?#37510;?#28051;嬮潰缁?#37713;?#37711;蜂綋瀹炵幇浠g爜锛?/span>

#include <iostream>
#include <gp_Lin2d.hxx>
#include <gp_Pnt2d.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
#include <math_Vector.hxx>
#include <math_SVD.hxx>
#include <math_Gauss.hxx>
#include <math_GaussLeastSquare.hxx>
#include <OSD_Chronometer.hxx>
void fitLine(const TColgp_Array1OfPnt2d& thePoints,
             const std::string& theFileName,
             gp_Lin2d& theLine)
{
    math_Vector aB(1, 2, 0.0);
    math_Vector aX(1, 2, 0.0);
    math_Matrix aM(1, 2, 1, 2);
    Standard_Real aSxi = 0.0;
    Standard_Real aSyi = 0.0;
    Standard_Real aSxx = 0.0;
    Standard_Real aSxy = 0.0;
    std::ofstream aDrawFile(theFileName);
    for (Standard_Integer i = thePoints.Lower(); i <= thePoints.Upper(); ++i)
    {
        const gp_Pnt2d& aPoint = thePoints.Value(i);
        aSxi += aPoint.X();
        aSyi += aPoint.Y();
        aSxx += aPoint.X() * aPoint.X();
        aSxy += aPoint.X() * aPoint.Y();
        aDrawFile << "vpoint p" << i << " " <<
                     aPoint.X() << " " << aPoint.Y() << " 0" << std::endl;
    }
    aM(1, 1) = thePoints.Size();
    aM(1, 2) = aSxi;
    aM(2, 1) = aSxi;
    aM(2, 2) = aSxx;
    aB(1) = aSyi;
    aB(2) = aSxy;
    OSD_Chronometer aChronometer;
    aChronometer.Start();
    math_Gauss aSolver(aM);
    //math_GaussLeastSquare aSolver(aM);
    //math_SVD aSolver(aM);
    aSolver.Solve(aB, aX);
    if (aSolver.IsDone())
    {
        Standard_Real aA = aX(1);
        Standard_Real aB = aX(2);
        gp_Pnt2d aP1(0.0, aA);
        gp_Pnt2d aP2(-aA/aB, 0.0);
        theLine.SetLocation(aP1);
        theLine.SetDirection(gp_Vec2d(aP1, aP2).XY());
        aDrawFile << "vaxis l "
                  << aP1.X() << " " << aP1.Y() << " 0 "
                  << aP2.X() << " " << aP2.Y() << " 0 " << std::endl;
        std::cout << "===================" << std::endl;
        aX.Dump(std::cout);
    }
    aChronometer.Stop();
    aChronometer.Show();
}
int main()
{
    gp_Lin2d aLine;
    // Test data 1
    TColgp_Array1OfPnt2d aPoints1(1, 6);
    aPoints1.SetValue(1, gp_Pnt2d(36.9, 181.0));
    aPoints1.SetValue(2, gp_Pnt2d(46.7, 197.0));
    aPoints1.SetValue(3, gp_Pnt2d(63.7, 235.0));
    aPoints1.SetValue(4, gp_Pnt2d(77.8, 270.0));
    aPoints1.SetValue(5, gp_Pnt2d(84.0, 283.0));
    aPoints1.SetValue(6, gp_Pnt2d(87.5, 292.0));
    fitLine(aPoints1, "fit1.tcl", aLine);
    // Test data 2
    TColgp_Array1OfPnt2d aPoints2(0, 7);
    aPoints2.SetValue(0, gp_Pnt2d(0.0, 27.0));
    aPoints2.SetValue(1, gp_Pnt2d(1.0, 26.8));
    aPoints2.SetValue(2, gp_Pnt2d(2.0, 26.5));
    aPoints2.SetValue(3, gp_Pnt2d(3.0, 26.3));
    aPoints2.SetValue(4, gp_Pnt2d(4.0, 26.1));
    aPoints2.SetValue(5, gp_Pnt2d(5.0, 25.7));
    aPoints2.SetValue(6, gp_Pnt2d(6.0, 25.3));
    aPoints2.SetValue(7, gp_Pnt2d(7.0, 24.8));
    fitLine(aPoints2, "fit2.tcl", aLine);
    return 0;
}

鍦?#37713;芥暟fitLine()涓紝?#29300;鎹?#37815;?#37722;?#37904;瑰?#34425;?#23339;硶鏂?#32459;?#32513;勶紝骞朵娇鐢?/span>math_Gauss?#28533;瀵?#23049;?#37826;?#32459;?#32513;?#26473;?#29723;屾眰瑙?#37510;?#37711;?#28729;?#28052;熷彲浠ヤ娇鐢?/span>math_GaussLeastSquare鎴栬?/span>math_SVD绛?#23033;?#29785;?#23049;?#37826;?#32459;?#32513;?#37510;?#37734;?#28051;?#37713;芥暟main()涓?#23092;嬭瘯浜?#28051;?#32513;勬?#29256;嵁銆?#23092;嬭瘯鏁版嵁1?#28533;?#22172;鏄撳ぇ?#31647;绛?#37510;?#29825;$畻鏂?#23049;?#37510;嬶紝娴嬭瘯鏁版嵁2?#28533;?#22172;銆婇?#27196;瓑鏁板銆?#37510;?#32459;嬪簭杩?#29723;岀?#25780;灉濡?#28051;嬪?#28844;墍绀?#38171;?/span>

涓?#28052;?#28051;?#29825;$畻缁撴灉鍚?#37722;?#37510;?/span>


鐢?#27996;?#38343;瑕佸皢璁$畻缁撴灉鏄?#32448;?#37713;烘潵?#32029;?#22669;浠?#37734;?/span>fitLine()鍑芥暟涓?#28583;?#37716;?#27996;?#26440;撳嚭Draw鑴氭湰?#26499;浠?#37928;?#28000;g爜?#32029;瀹?#38340;?#26473;?#37922;?#37827;跺彲灏?#26473;欓儴鍒?#28000;g爜鍘绘帀銆?#28751;?#32459;嬪簭鐢熸垚鐨勮?#27693;湰?#26499;浠跺姞杞?#37714;?/span>Draw涓紝鍗?#37721;?#23536;?#37714;?#28051;嬮潰涓?#28051;?#37733;?#38171;?/span>

娴嬭瘯鏁版嵁1鎷?#37722;?#37929;寸嚎


娴嬭瘯鏁版嵁2鎷?#37722;?#37929;寸嚎


缁?#28051;婃墍杩帮紝瀵?#27996;?#27996;岀淮鐩寸嚎鐨勬渶灏?#27996;?#28052;?#23049;?#37815;?#37722;堢畻娉?#37928;?#37711;?#38335;槸瀵瑰?#34425;珛鐨勬硶鏂?#32459;?#32513;?#26473;?#29723;屾眰瑙?#37510;?/span>OpenCASCADE鐨?/span>math鍖?#28051;?#37819;愪緵浜?#28051;浜?#29785;?#37826;?#32459;?#32513;?#37928;勭被鍙?#28000;?#37929;存帴?#23047;鐢?#37510;傚浜庢病鏈変娇鐢?/span>OpenCASCADE鐨勫紑鍙戠幆澧?#37928;勬?#21613;喌?#32029;涔熷彲浠ヤ娇鐢?#37711;?#28000;?#37933;╅樀搴擄紝濡?/span>Eigen绛?#37922;?#23536;?#23536;?#39582;?#23049;?#37510;?/span>Eigen瀹?#37826;圭綉绔?#38171;?/span>http://eigen.tuxfamily.org/index.php?title=Main_Page


灏?#29825;$畻缁撴?#28355;鍑?/span>Draw鑴氭湰鍙?#29785;?#37718;栵紝鍙?#28000;?#37826;逛究鐩?#29785;?#37734;?#37836;ョ湅鎷?#37722;?#32513;撴灉銆?#28641;?#37835;滅?#29112;倝鍏?#28000;栬?#27693;湰搴撳Python鐨?/span>matplotlib?#32029;涔熷彲浠?#32491;?#28028;?#28598;?#37918;嗘潵灏?#32513;撴灉鍙?#29785;?#37718;?#37510;?/span>



]]>
RvmTranslator for Linuxhttp://www.2676208.com/eryar/archive/2019/06/24/RvmTranslator_Linux.htmleryareryarMon, 24 Jun 2019 11:27:00 GMThttp://www.2676208.com/eryar/archive/2019/06/24/RvmTranslator_Linux.htmlhttp://www.2676208.com/eryar/comments/216449.htmlhttp://www.2676208.com/eryar/archive/2019/06/24/RvmTranslator_Linux.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216449.htmlhttp://www.2676208.com/eryar/services/trackbacks/216449.htmlRvmTranslator for Linux
eryar@163.com

RvmTranslator can translate the RVM file exported by AVEVA Plant(PDMS)/AVEVA Marine to STEP, IGES, STL, DXF, 3D PDF, OBJ, 3DXML, IFC,.etc. So it can be used for exchanging model data between other CAD software, such as Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, .etc.
RvmTranslator鍙?#28000;?#28751;咥VEVA PDMS/Plant/Marine涓?#28725;?#37713;?#37928;凴VM?#26499;浠?#26473;?#29723;屽彲瑙?#37718;栵紝浠?#37721;?#28751;哛VM杞?#37817;㈡垚?#29238;瑙?#37928;?#28051;夌淮?#26499;浠舵?#29006;紡銆?#28641;係TEP?#32029;IGES?#32029;STL?#32029;DXF, OBJ, 3DPDF, 3DXML, IFC绛夛紝?#31350;浜?#28051;?#37711;?#28000;朇AD绯?#32513;?#26473;?#29723;屾?#29256;嵁浜?#37817;紝濡侫utodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley绛?#37510;?br />
鐢?#27996;庝娇鐢?#37928;勬槸璺?#39582;?#37721;?#37928;凲t绛?#23534;婧愬?#25796;紝?#24135;鍦?#28751;哛vmTranslator绉绘鍒癓inux绯?#32513;?#28051;紝濡?#28051;嬪?#28844;墍绀?#28051;篟vmTranslator鍦║buntu绯?#32513;?#28051;?#37928;勭?#23684;潰锛?br />

?#25966;鎸丷VM?#26499;浠?#28051;?#37928;?#28051;枃瀛楃锛?br />

RVM?#27128;AVEVA鐨?#28051;涓?#32513;?#28051;妯?#37736;嬫?#29006;紡?#32029;鍖呮嫭鍏舵?#24816;喘鐨勮埞鑸?#32495;?#32513;烼ribon涔熷彲浠?#28725;?#37713;篟VM鏍煎紡鐨勬枃浠?#37510;?/p>

涓?#37733;?#28051;?#38008;逛綋缁撴?#21238;紝


涓?#37733;?#28051;?#38008;?#38008;?#32480;?#29882;紝鍥?#28051;?#38008;逛綋绌?#38338;?#37929;?#28725;圭嫮灏忥紝鑸?#38008;?#32480;?#29882;竷缃?#37928;勫?#21979;泦浜?#37510;?br />
鍦║buntu绯?#32513;?#28051;婅瘯浜?#28051;嬪紑鍙戠幆澧冿紝瑙?#23536;?#26473;樻瘮杈冮『鎵?#37510;傚紑鍙?#37928;処DE鍙?#28000;?#37922;≦t Creator?#32029;鍩烘湰?#24359;瓒崇紪?#29212;?#32029;璋冭瘯鐨勮姹?#37510;備娇鐢≦t Creator杩?#37832;?#28051;涓?#28610;?#28598;勫氨?#27128;鏂逛究浠g爜鐨勮法骞?#37721;?#32457;绘?#23951;紝鍦║buntu涓?#37928;?#28000;g爜浠t鐨?.pro褰㈠紡淇?#28699;橈紝鍙?#28000;?#37929;存帴鍦╒isual Studio涓?#37922;≦t VS Addin鎵撳紑?#32042;璇?#37510;?br />


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)


]]>
RvmTranslator7.1http://www.2676208.com/eryar/archive/2019/06/15/RvmTranslator7_1.htmleryareryarSat, 15 Jun 2019 02:04:00 GMThttp://www.2676208.com/eryar/archive/2019/06/15/RvmTranslator7_1.htmlhttp://www.2676208.com/eryar/comments/216404.htmlhttp://www.2676208.com/eryar/archive/2019/06/15/RvmTranslator7_1.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216404.htmlhttp://www.2676208.com/eryar/services/trackbacks/216404.html

RvmTranslator7.1

eryar@163.com

 

RvmTranslator can translate the RVM file exported by AVEVA Plant(PDMS)/AVEVA Marine to STEP, IGES, STL, DXF, 3D PDF, OBJ, 3DXML, IFC,.etc. So it can be used for exchanging model data between other CAD software, such as Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, .etc.

RvmTranslator鍙?#28000;?#28751;?/span>AVEVA PDMS/Plant/Marine涓?#28725;?#37713;?#37928;?/span>RVM?#26499;浠?#26473;?#29723;屽彲瑙?#37718;栵紝浠?#37721;?#28751;?/span>RVM杞?#37817;㈡垚?#29238;瑙?#37928;?#28051;夌淮?#26499;浠舵?#29006;紡銆?#28641;?/span>STEP?#32029;IGES?#32029;STL?#32029;DXF, OBJ, 3DPDF, 3DXML, IFC绛夛紝?#31350;浜?#28051;?#37711;?#28000;?/span>CAD绯?#32513;?#26473;?#29723;屾?#29256;嵁浜?#37817;紝濡?/span>Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley绛?#37510;?/span>

RvmTranslator7.1淇?#28598;?#27996;?#29825;?#29825;?#37837;?#28051;?#28051;枃鏄?#32448;?#38338;?#26864;?#38171;?/span>

涓?#26462;?/span>RvmTranslator7.1: https://share.weiyun.com/5I8biQw

 


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)


]]>
OpenCASCADE鐩寸嚎涓?#39582;抽潰姹?#27996;?/title><link>http://www.2676208.com/eryar/archive/2019/06/03/LinePlaneInt.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Mon, 03 Jun 2019 08:40:00 GMT</pubDate><guid>http://www.2676208.com/eryar/archive/2019/06/03/LinePlaneInt.html</guid><wfw:comment>http://www.2676208.com/eryar/comments/216393.html</wfw:comment><comments>http://www.2676208.com/eryar/archive/2019/06/03/LinePlaneInt.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/eryar/comments/commentRss/216393.html</wfw:commentRss><trackback:ping>http://www.2676208.com/eryar/services/trackbacks/216393.html</trackback:ping><description><![CDATA[ <h2 align="center"><strong>OpenCASCADE<span style="font-family: 瀹嬩綋;">鐩寸嚎涓?#39582;抽潰姹?#27996;?/span></strong></h2> <p><span style="font-family: 瀹嬩綋;">鍦?#37510;?#29785;?#37835;愬?#29361;綍銆?#37929;?#37711;?#37928;?#28052;?#28051;兘缁?#37713;?#27996;?#37929;寸嚎鍜?#39582;抽潰鐨?#28051;鑸?#37826;?#32459;嬪?#23677;?#20635;暟鏂?#32459;?#37510;?#37711;?#28051;?#37929;寸嚎鐨?#28051;鑸?#37826;?#32459;嬫湁鐐?#37722;戝?#24531;舰?#32033;鐨?#37510;?/span></p> <p align="center"><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162247978-832152196.png" alt="" /></p> <p><span style="font-family: 瀹嬩綋;">鐢?#27996;庤繃绌?#38338;?#28051;鐐瑰彲浣?#28051;?#37721;?#38003;戒綔涓鏉?#37929;寸嚎骞?#29723;?#27996;?#23480;茬煡鐩寸嚎?#32029;?#22669;浠ュ綋鐩寸嚎涓?#28051;鐐?#38171;?/span>x0, y0, z0)<span style="font-family: 瀹嬩綋;">鍜?#28729;?#37928;?#28051;鏂?#37722;?#37722;?#38322;?#38171;?/span><span style="font-family: Calibri;">m,n,p)</span><span style="font-family: 瀹嬩綋;">涓?#23480;茬煡鏃讹紝鐩寸嚎灏?#28729;?#37711;?#32429;?#28729;?#27996;?#37510;傛墍浠?#37734;?/span><span style="font-family: Calibri;">OpenCASCADE</span><span style="font-family: 瀹嬩綋;">涓?#37929;寸嚎绫?/span><span style="font-family: Calibri;">gp_Lin</span><span style="font-family: 瀹嬩綋;">鏈?#28051;涓?#37835;?#38315;?#37713;芥暟锛?/span></p> <p>gp_Lin (const gp_Pnt &P, const gp_Dir &V) <span style="font-family: 瀹嬩綋;">鍗?#38315;?#26473;?#37904;?#37724;屾柟鍚戞潵鏋?#38315;?#37929;寸嚎銆?#37922;?#37929;寸嚎鐨?#37904;?#37722;戝紡鏂?#32459;?#28729;?#37828;撳鍑虹?#23544;嚎鐨?#37721;傛暟鏂?#32459;嬶細</span></p> <p align="center"><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162257277-2017434532.png" alt="" /></p> <p><span style="font-family: 瀹嬩綋;">鍏?#28051;?/span>OpenCASCADE<span style="font-family: 瀹嬩綋;">鐨?#37929;寸嚎?#27128;鐢?#37721;傛暟鏂?#32459;嬫潵琛?#32448;?#37928;?#37510;?/span></p> <p><span style="font-family: 瀹嬩綋;">鍚?#37918;嗗浜?#39582;抽潰鑰岃█?#32029;杩?#32460;?#38338;?#28051;鐐瑰彲浠?#28003;?#38000;?#28051;?#37721;?#38003;戒綔涓骞抽潰鍨?#37929;?#27996;?#28051;宸茬煡鐩寸嚎?#32029;?#22669;浠?#39582;抽潰鐨?#28051;鐐?#38171;?/span>x0,y0,z0)<span style="font-family: 瀹嬩綋;">鍜?#28729;?#37928;?#28051;涓?#23049;曠嚎鏂?#37722;?/span><span style="font-family: Calibri;">(A, B, C)</span><span style="font-family: 瀹嬩綋;">涓?#23480;茬煡鏃讹紝骞抽潰灏?#28729;?#37711;?#32429;?#28729;?#27996;?#37510;傛墍浠?#39582;抽潰鏂?#32459;嬩篃鏈?#37904;?#37722;戝紡鐨?#38171;?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162309663-376377789.png" alt="" /></p> <p><span style="font-family: 瀹嬩綋;">浠?#28051;涓?#37904;?#37724;?#28051;?#28051;?#28051;?#37711;辩嚎鐨?#37722;?#38322;忕‘瀹?#28051;涓?#39582;抽潰浣?#28051;?#29825;?#29825;?#37928;?#37713;?#37721;?#37904;癸紝鍙?#28000;?#23536;?#37713;?#39582;抽潰鐨?#37721;傛暟鏂?#32459;嬶細</span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162317894-220894722.png" alt="" /> </p> <p><span style="font-family: 瀹嬩綋;">濡?#28051;?#37733;炬墍绀猴紝宸茬煡涓涓?#37904;?/span>M0(x0,y0,z0)<span style="font-family: 瀹嬩綋;">?#32029;鍚?#38322;?/span><span style="font-family: Calibri;">v1(x1,y1,z1)</span><span style="font-family: 瀹嬩綋;">鍜?#37722;?#38322;?/span><span style="font-family: Calibri;">v2(x2,y2,z2)</span><span style="font-family: 瀹嬩綋;">?#32029;鎴?#28000;潵姹?#37904;?/span><span style="font-family: Calibri;">M0</span><span style="font-family: 瀹嬩綋;">鍜?#37722;?#38322;?/span><span style="font-family: Calibri;">V1</span><span style="font-family: 瀹嬩綋;">?#32029;</span><span style="font-family: Calibri;">V2</span><span style="font-family: 瀹嬩綋;">纭?#28729;?#37928;?#39582;抽潰鏂?#32459;?#37510;?#37904;?/span><span style="font-family: Calibri;">M(x,y,z)</span><span style="font-family: 瀹嬩綋;">鍦?#39582;抽潰涓?#37928;?#37711;?#29781;?#37833;?#28000;舵槸鍚?#38322;?/span><span style="font-family: Calibri;">M0M</span><span style="font-family: 瀹嬩綋;">涓?/span><span style="font-family: Calibri;">V1, V2</span><span style="font-family: 瀹嬩綋;">鍏遍潰銆?#37733;?#28051;?#37722;?#38322;?/span><span style="font-family: Calibri;">V1, V2</span><span style="font-family: 瀹嬩綋;">涓?#39582;?#29723;岋紝?#22669;浠?#37711;遍潰鐨?#37711;?#29781;?#37833;?#28000;舵槸瀛?#37734;ㄥ敮涓鐨?#28051;瀵?#28729;炴暟</span><span style="font-family: Calibri;">u, v</span><span style="font-family: 瀹嬩綋;">?#23047;锛?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162331852-1495156293.png" alt="" /></p> <p><span style="font-family: 瀹嬩綋;">鍚?#38322;?/span>M0M<span style="font-family: 瀹嬩綋;">鍜?/span><span style="font-family: Calibri;">V1</span><span style="font-family: 瀹嬩綋;">?#32029;</span><span style="font-family: Calibri;">V2</span><span style="font-family: 瀹嬩綋;">鍏遍潰鐨?#37711;?#29781;?#37833;?#28000;舵槸锛?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162530489-1079184086.png" alt="" /></p> <p><span style="font-family: 瀹嬩綋;">?#29300;鎹?#39582;抽潰鐨?#37721;傛暟鏂?#32459;嬪彲鐭ワ紝瑕?#32429;?#28729;?#28051;涓?#39582;抽潰浠?#37721;傛暟鏂?#32459;?#37928;?#29785;掑害?#28533;?#28229;闇瑕?#28051;涓?#37904;?#37724;?#28051;?#28051;?#37826;?#37722;?#37510;?#28000;?#37721;傛暟鏂?#32459;嬫帹瀵?#37713;?#28051;鑸?#37826;?#32459;?#37928;?#26473;?#32459;嬩篃?#27128;璁$畻骞抽潰涓鑸?#37826;?#32459;嬬?#32472;暟鐨勬柟娉?#37510;?/span></p> <p><span style="font-family: 瀹嬩綋;">?#29300;鎹?#37929;寸嚎鐨?#37721;傛暟鏂?#32459;嬪強骞抽潰鐨?#28051;鑸?#37826;?#32459;嬪彲浠?#37818;?#28725;?#37713;虹?#23544;嚎涓?#39582;抽潰浜?#37904;?#37928;勮?#30075;鍏紡?#32029;鎺?#28725;?#26473;?#32459;嬪涓嬶細</span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201906/534255-20190603162537534-652366768.png" alt="" /></p> <p><span style="font-family: 瀹嬩綋;">浠?#28051;婇潰鐨勬帹瀵?#26473;?#32459;嬪彲浠ョ湅鍑猴紝璁$畻鐩寸嚎涓?#39582;抽潰鐨?#27996;?#37904;?#28051;?#29781;佸氨?#27128;璁$畻鍙傛暟</span>t<span style="font-family: 瀹嬩綋;">?#32029;?#32139;</span><span style="font-family: Calibri;">t</span><span style="font-family: 瀹嬩綋;">姹?#37713;?#37722;?#28000;e叆鐩寸嚎鍙傛暟鏂?#32459;?#37719;?#37721;?#23536;?#37714;?#27996;?#37904;瑰潗鏍?#37510;?#28000;?#37721;傛暟</span><span style="font-family: Calibri;">t</span><span style="font-family: 瀹嬩綋;">鐨勮?#30075;鍏紡鍙?#37933;ワ紝鏈?#28051;?#37911;规畩鎯呭喌灏辨槸鍒嗘瘝涓洪浂鐨勬?#21613;喌?#32029;姝?#37827;舵槸鐩寸嚎涓?#39582;抽潰骞?#29723;?#37711;遍潰闇瑕?#37911;?#37714;?#28598;?#37918;?#37510;?/span></p> <p><span style="font-family: 瀹嬩綋;">鍦?/span>OpenCASCADE<span style="font-family: 瀹嬩綋;">涓?#37819;愪緵浜?#37929;寸嚎涓?#39582;抽潰姹?#27996;?#37928;勮?#30075;绫?/span><span style="font-family: Calibri;">IntAna_IntConicQuad</span><span style="font-family: 瀹嬩綋;">?#32029;鍏?#28729;炵幇婧愮爜濡?#28051;嬶細</span></p> <p> </p> <div class="cnblogs_code"> <pre><span style="color: #0000ff;">void</span> IntAna_IntConicQuad::Perform (<span style="color: #0000ff;">const</span> gp_Lin& L, <span style="color: #0000ff;">const</span> gp_Pln&<span style="color: #000000;"> P, </span><span style="color: #0000ff;">const</span><span style="color: #000000;"> Standard_Real Tolang, </span><span style="color: #0000ff;">const</span><span style="color: #000000;"> Standard_Real Tol, </span><span style="color: #0000ff;">const</span><span style="color: #000000;"> Standard_Real Len) { </span><span style="color: #008000;">//</span><span style="color: #008000;"> Tolang represente la tolerance angulaire a partir de laquelle on considere </span><span style="color: #008000;">//</span><span style="color: #008000;"> que l angle entre 2 vecteurs est nul. On raisonnera sur le cosinus de cet </span><span style="color: #008000;">//</span><span style="color: #008000;"> angle, (on a Cos(t) equivalent a t au voisinage de Pi/2).</span> <span style="color: #000000;"> done</span>=<span style="color: #000000;">Standard_False; Standard_Real A,B,C,D; Standard_Real Al,Bl,Cl; Standard_Real Dis,Direc; P.Coefficients(A,B,C,D); gp_Pnt Orig(L.Location()); L.Direction().Coord(Al,Bl,Cl); Direc</span>=A*Al+B*Bl+C*<span style="color: #000000;">Cl; Dis </span>= A*Orig.X() + B*Orig.Y() + C*Orig.Z() +<span style="color: #000000;"> D; </span><span style="color: #008000;">// </span> parallel=<span style="color: #000000;">Standard_False; </span><span style="color: #0000ff;">if</span> (Abs(Direc) <<span style="color: #000000;"> Tolang) { parallel</span>=<span style="color: #000000;">Standard_True; </span><span style="color: #0000ff;">if</span> (Len!=<span style="color: #800080;">0</span> && Direc!=<span style="color: #800080;">0</span><span style="color: #000000;">) { </span><span style="color: #008000;">//</span><span style="color: #008000;">check the distance from bounding point of the line to the plane</span> <span style="color: #000000;"> gp_Pnt aP1, aP2; </span><span style="color: #008000;">// </span> aP1.SetCoord(Orig.X()-Dis*A, Orig.Y()-Dis*B, Orig.Z()-Dis*<span style="color: #000000;">C); aP2.SetCoord(aP1.X()</span>+Len*Al, aP1.Y()+Len*Bl, aP1.Z()+Len*<span style="color: #000000;">Cl); </span><span style="color: #0000ff;">if</span> (P.Distance(aP2) ><span style="color: #000000;"> Tol) { parallel</span>=<span style="color: #000000;">Standard_False; } } } </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (parallel) { </span><span style="color: #0000ff;">if</span> (Abs(Dis) <<span style="color: #000000;"> Tolang) { inquadric</span>=<span style="color: #000000;">Standard_True; } </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> { inquadric</span>=<span style="color: #000000;">Standard_False; } } </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> { parallel</span>=<span style="color: #000000;">Standard_False; inquadric</span>=<span style="color: #000000;">Standard_False; nbpts </span>= <span style="color: #800080;">1</span><span style="color: #000000;">; paramonc [</span><span style="color: #800080;">0</span>] = - Dis/<span style="color: #000000;">Direc; pnts[</span><span style="color: #800080;">0</span>].SetCoord(Orig.X()+paramonc[<span style="color: #800080;">0</span>]*<span style="color: #000000;">Al, Orig.Y()</span>+paramonc[<span style="color: #800080;">0</span>]*<span style="color: #000000;">Bl, Orig.Z()</span>+paramonc[<span style="color: #800080;">0</span>]*<span style="color: #000000;">Cl); } done</span>=<span style="color: #000000;">Standard_True; }</span></pre> </div> <p> </p> <p><span style="font-family: 瀹嬩綋;">浠?#28051;?#26473;?#28000;g爜涓?#37721;?#28000;ョ湅鍑?#37711;?#29825;$畻鎬?#29882;?#28052;熸槸鍏?#29825;$畻鍙傛暟</span>t<span style="font-family: 瀹嬩綋;">?#32029;杩?#37716;?#27996;?#28051;涓?#37911;规畩鐢?#23049;曪紝鍗?#35120;撳?#20635;暟</span><span style="font-family: Calibri;">Len!=0</span><span style="font-family: 瀹嬩綋;">涓?#37721;傛暟</span><span style="font-family: Calibri;">t</span><span style="font-family: 瀹嬩綋;">鐨?#37714;嗘瘝</span><span style="font-family: Calibri;">!=0</span><span style="font-family: 瀹嬩綋;">鏃?#38322;?#37826;?#37714;?#37826;?#37929;寸嚎涓?#39582;抽潰鐨?#39582;?#29723;岀?#33333;?#37510;?#26473;?#28051;?#37922;?#23049;曡?#30028;?#33333;湁骞?#29723;岀?#33333;?#37928;?#38322;?#37826;?#37714;?#37826;紝浣嗘槸濡?#37835;?#28051;?#39582;?#29723;屾病鏈夎?#30075;浜?#37904;?#37928;?#28598;?#37918;?#37510;傛墍浠ヤ娇鐢?#26473;?#28051;?#37713;芥暟鏃讹紝鍙傛暟</span><span style="font-family: Calibri;">Len</span><span style="font-family: 瀹嬩綋;">鍙?#28000;?#37922;ㄩ粯璁?#37706;?/span><span style="font-family: Calibri;">0</span><span style="font-family: 瀹嬩綋;">?#32029;鍗?#28051;?#37922;?#26473;欐澶?#37918;嗛?#26440;?#37510;?#26473;?#37832;?#28051;?#28051;?#28051;?#29835;?#37928;?#37734;?#37826;规槸杩?#38322;?#37928;?#28729;炴暟鍒?#37826;病鏈?#37922;?#37718;?#38338;?#37714;?#37826;?#23049;?#37510;?/span></p> <img src ="http://www.2676208.com/eryar/aggbug/216393.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/eryar/" target="_blank">eryar</a> 2019-06-03 16:40 <a href="http://www.2676208.com/eryar/archive/2019/06/03/LinePlaneInt.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>RvmTranslator7.0-OBJhttp://www.2676208.com/eryar/archive/2019/05/29/RvmTranslator_OBJ.htmleryareryarWed, 29 May 2019 13:04:00 GMThttp://www.2676208.com/eryar/archive/2019/05/29/RvmTranslator_OBJ.htmlhttp://www.2676208.com/eryar/comments/216387.htmlhttp://www.2676208.com/eryar/archive/2019/05/29/RvmTranslator_OBJ.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216387.htmlhttp://www.2676208.com/eryar/services/trackbacks/216387.htmlRvmTranslator7.0-OBJ

eryar@163.com

 

RvmTranslator can translate the RVM file exported by AVEVA Plant(PDMS)/AVEVA Marine to STEP, IGES, STL, DXF, 3D PDF, OBJ, 3DXML, IFC,.etc. So it can be used for exchanging model data between other CAD software, such as Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, .etc.

 

RvmTranslator鍙?#28000;?#28751;?/span>AVEVA PDMS/Plant/Marine涓?#28725;?#37713;?#37928;?/span>RVM?#26499;浠?#26473;?#29723;屽彲瑙?#37718;栵紝浠?#37721;?#28751;?/span>RVM杞?#37817;㈡垚?#29238;瑙?#37928;?#28051;夌淮?#26499;浠舵?#29006;紡銆?#28641;?/span>STEP?#32029;IGES?#32029;STL?#32029;DXF, OBJ, 3DPDF, 3DXML, IFC绛夛紝?#31350;浜?#28051;?#37711;?#28000;?/span>CAD绯?#32513;?#26473;?#29723;屾?#29256;嵁浜?#37817;紝濡?/span>Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley绛?#37510;?/span>

OBJ?#26499;浠舵槸Alias|Wavefront鍏?#37721;?#28051;?#28729;?#37928;?#28051;濂楀熀浜?#23480;?#28003;滅珯鐨?/span>3D寤?#22959;?#37724;?#37716;?#37922;?#26462;?#28000;?/span>"Advanced Visualizer"寮鍙?#37928;?#28051;绉嶆爣鍑?/span>3D妯?#37736;嬫枃浠舵?#29006;紡?#32029;寰?#38315;?#37722;?#37922;?#27996;?/span>3D杞?#28000;?#22959;?#37736;嬩?#23342;棿鐨?#27996;掑?#30839;紝涔熷彲浠?#38315;?#26473;?/span>Maya璇?#37712;?#37510;傛瘮濡備綘鍦?/span>3dsMax鎴?/span>LightWave涓?#23524;?#27996;?#28051;涓?#22959;?#37736;嬶紝鎯?#37814;?#28729;?#29835;?#37714;?/span>Maya閲岄潰娓?#37836;?#37812;?#37716;?#37922;伙紝瀵?#37713;?/span>OBJ?#26499;浠跺氨?#27128;涓绉?#23536;?#28610;?#37928;?#38315;?#37815;?#37510;?#37929;?#37715;?#37713;犱?#24226;墍鏈夌煡鍚?#37928;?/span>3D杞?#28000;堕兘?#25966;鎸?/span>OBJ?#26499;浠?#37928;?#29831;?#37712;欙紝涓嶈繃鍏?#28051;?#23536;?#28598;?#38343;瑕?#38315;?#26473;?#37819;?#28000;舵?#23944;兘瀹炵幇銆?/span>RvmTranslator鍙?#28000;?#28751;?/span>PDMS妯″瀷杞?#37817;㈡垚OBJ鏍煎紡銆?/span>

 

涓?#37733;?#28051;?/span>RvmTranslator杞?#37817;?#37928;?#23480;?#37720;?#22959;″瀷銆?/span>

涓?#37733;?#28051;?/span>RvmTranslator杞?#37817;?#37928;勮?#36891;綋妯″瀷銆?/span>

 

Download RvmTranslator

 https://share.weiyun.com/5fcHSBC



]]>
OpenCASCADE License FAQshttp://www.2676208.com/eryar/archive/2019/05/29/occ_license_faq.htmleryareryarWed, 29 May 2019 13:03:00 GMThttp://www.2676208.com/eryar/archive/2019/05/29/occ_license_faq.htmlhttp://www.2676208.com/eryar/comments/216386.htmlhttp://www.2676208.com/eryar/archive/2019/05/29/occ_license_faq.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216386.htmlhttp://www.2676208.com/eryar/services/trackbacks/216386.htmlOpenCASCADE License FAQs

 

?#31905;?#29238;鐢?#27996;?#38338;?#37812;戜娇鐢?/span>OpenCASCADE寮鍙戝晢涓?#26462;?#28000;舵槸鍚?#38343;瑕?#28000;?#29840;癸紝涓嬮潰浠?/span>OpenCASCADE鐨?#28729;?#37826;圭綉绔?#28051;?#37812;?#37721;?#37711;跺洖绛旂炕璇戞垚涓枃?#32029;瀹?#37826;圭綉?#28483;锛?/span>https://www.opencascade.com/content/faqs 銆?/span>

 

?#28821;璇戠粺涓灏?/span>Open CASCADE Technology绠绉?#28051;?OCCT銆?/span>

 

OCCT璁?#37721;?#28051;?/span>GPL鍏?#28729;?#37722;?#38171;?/span>

?#27128;鐨勶紝浠?#37911;堟湰6.7.0寮濮嬶紝OCCT?#27128;?#29300;鎹?/span>GNU LGPL鐗堟湰2.1鐨勬潯娆?#38171;?#28000;?#37721;?#28051;浜涘皬鐨?#38340;?#37716;?#37833;?#38340;?#38171;?#37721;戝竷鐨勶紝鍥?#23005;?#28729;?#28051;?/span>GNU GPL鐗堟湰2鍙?#37831;?#26946;樼?#22559;湰瀹?#37711;?#37711;?#28729;?#37510;?/span>

浣嗘槸?#32029;OCCT鐗堟湰6.6.0鍙?#37831;?#37827;?#37911;堟湰?#27128;?#29300;鎹嚜瀹氫?#22798;鍙?#29831;?#38171;?/span>OCCT Public License锛?#37721;戝竷鐨?#37510;?璇?#29825;?#37721;?#37734;?#37929;?#37928;?#37724;屾剰鍥?#37826;归潰绫?#28028;?#27996;?/span>GNU LGPL?#32029;浣?#28051;?/span>GNU GPL涓?#37711;?#28729;?#37510;?/span>

 

鎴戝彲浠ヤ娇鐢?/span>OCCT?#29300;鎹?/span>GPL?#32029;LGPL鎴?#37711;?#28000;?#29825;?#37721;?#38171;?#37718;呮嫭涓?#37832;?#38171;?#37714;?#37721;?#37812;?#37928;?#26462;?#28000;?#27996;?#37725;?#37722;?#38171;?/span>

?#27128;鐨勪綘鍙?#28000;?#37510;?/span> 浣嗘槸?#32029;鎮?#25652;斿缁?#32429;?#28103;?#37832;缁?#27996;?#37725;?#29825;?#37721;?#29831;佺鍚?#27996;?#37725;?#28051;娇鐢?#37928;勫簱鐨勮鍙?#29831;?#29781;?#23033;?#37510;?/span> 浠?#37911;堟湰6.7.0寮濮嬶紝OCCT?#29300;鎹?/span>GNU LGPL鐗堟湰2.1鐨勬潯娆?#38171;?#28000;?#37721;?#28051;浜涘皬鐨?#38340;?#37716;?#37833;?#38340;?#38171;?#37721;戝?#20927;紝?#23047;鐢?#29831;?#25652;?#37928;?#26462;?#28000;?#27996;?#37725;?#37928;勮姹?#37734;?/span>LGPL?#26499;?#28272;鐨勭6閮?#37714;?#28051;?#37819;?#26473;?#37510;?濡?#37835;?#37806;?#37928;勬渶缁?#27996;?#37725;?#37928;勮鍙?#28051;?#37711;?#28051;娇鐢?#37928;勫簱鐨勮鍙?#37832;?#28000;讳綍鍐茬?#20362;紝鎮?#38343;瑕?#38322;?#37721;?#37818;?#37826;?#38171;?#28186;嬪?#20646;紝瀵?#23005;?#32491;?#37832;缁?#27996;?#37725;?#29825;?#37721;?#26473;?#29723;岄傚綋鐨?#28103;?#37824;?#38171;?#28000;?#29785;?#37712;?#28000;讳綍鐭?#37929;?#37510;?/span>

濡?#37835;?#37832;夌枒闂?#39582;堕伩鍏?#37721;兘鐨?#29831;?#29785;o紝璇疯?#26050;郴鎴?#28000;幏鍙?#23524;?#29825;紝鎴?#28000;?#23536;?#28052;愭剰鍥?#32475;?#37806;?#28725;?#23005;?#27996;嬪彲?#20824;鏈?#37928;?#28000;讳綍?#26514;闂?#37510;?/span>

 

鎴戝彲浠ヤ娇鐢?/span>Open CASCADE鎶鏈?#37714;朵?#28355;晢涓?#27996;?#37725;?#39582;?#26473;?#29723;?#38335;鍞?#37722;?#38171;?濡?#37835;滄槸?#32029;?#27128;鍚?#37832;?#28000;讳綍闄?#37714;?#38171;?/span>

?#27128;鐨勶紝鎮?#37721;?#28000;?#37734;ㄥ晢涓氬簲鐢?#32459;嬪簭涓娇鐢?/span>Open CASCADE鎶鏈?#38171;?/span>OCCT锛?#25652;擄紝鑰屾棤闇?#25966;浠?#28000;讳綍寮鍙戣鍙?#29840;?#37812;?#26473;?#29723;屾?#24816;垂鎴?#37911;?#32459;?#37510;傛偍鐨勪箟鍔℃槸瑕?#37828;?#32429;?#23049;ㄦ剰鎮?#37928;?#26462;?#28000;朵娇鐢?/span>Open CASCADE鎶鏈?#38171;?/span>OPEN CASCADE鍏?#37721;?#37928;勫晢鏍?#38171;夛紝鍦?#37806;?#37928;?#27996;?#37725;?#28051;?#37819;愪緵OCCT璁?#37721;?#29831;?#37928;勫壇?#28272;?#32029;骞堕伒寰?#29825;?#37721;?#29831;佹湰韬?#37928;?#37711;?#28000;?#29781;?#23033;?#37510;?浠?#37911;堟湰6.7.0寮濮嬶紝姝?#29825;?#37721;?#29831;佹槸GNU LGPL鐗堟湰2.1锛?#37711;?#37832;?#28051;浜涘皬鐨?#38340;?#37716;?#37833;?#38340;?#38171;?#37510;?#37721;?#29831;?#23049;?#37808;忥紝OCCT?#23047;鐢?#8220;绯?#32513;熻姹?#8221;椤甸潰涓?#37714;?#37713;?#37928;勭涓?#37826;?#32513;?#28000;?#37510;?绗?#28051;?#37826;?#32513;?#28000;?#37928;勪娇鐢?#37721;?#37711;?#37929;?#25652;?#29825;?#37721;?#29831;?#37928;?#32510;?#37833;?#37510;?/span>

 

 

濡?#37835;?#37812;?#37807;?#37721;戝竷?#22172;宸变娇鐢?/span>OCCT鐨?#26462;?#28000;讹紝鎴戞槸鍚?#37832;変箟鍔?#38322;?#37826;?#37714;?#37721;?#37825;?#28051;?#28729;夎鍖咃紝鎴栬呮?#25117;彧?#20824;鍒?#37721;?#37812;?#38343;瑕?#37928;?#38318;?#37714;?#28000;g爜锛?/span>

杩欐?#38155;槸鍏?#29825;?#37928;?#39582;舵湡鏈涙偍浠呭垎鍙?#28003;?#37928;?#32459;嬪簭?#23047;鐢?#37714;?#37928;勫?#25779;?#23683;?#21228;簮銆?/span>

 

 

鎴戝OCCT鐨勪娇鐢ㄦ槸鍚︿細渚?#37912;?#28000;讳綍鍏?#28000;?#29825;?#37721;?#37812;?#28051;撳埄锛?/span>

鎮?#28051;?#38343;瑕?#28000;讳綍鐗?#28729;?#37928;?#28729;夋帓?#28533;?#23047;鐢?/span>OCCT寮婧?#37714;?#37721;?#28051;?#37718;呭惈鐨?#28000;讳綍?#30075;娉?#37510;?#28598;氬?#23384;潵?#32029;鎴?#28000;?#28051;鐩存病鏈?#37722;?#29831;?#26473;?#28729;?#37812;?#37812;?#37922;?#37812;蜂娇鐢?/span>Open CASCADE鎶鏈?#37928;?#28000;讳綍涓撳埄闂?#26864;?#37510;?/span>

 

 

鎴戞槸鍚?#37832;変箟鍔′娇鐢?/span>OCCT鐨勬?#36346;欏紑婧愬簲鐢?#32459;嬪簭鐨?#28729;屾暣婧?#28000;g爜锛?/span>

涓嶏紝浣?#28051;嶆槸銆?/span> 鎶?#38343;?#37806;?#37928;勫簲鐢?#32459;嬪簭婧?#28000;g爜鐨?#37712;?#28729;氬彇鍐?#27996;庢偍銆?/span>



]]>
OpenCASCADE鐐?#37722;?#39582;抽潰鎶?#35120;?/title><link>http://www.2676208.com/eryar/archive/2019/05/29/ProjLib.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Wed, 29 May 2019 13:02:00 GMT</pubDate><guid>http://www.2676208.com/eryar/archive/2019/05/29/ProjLib.html</guid><wfw:comment>http://www.2676208.com/eryar/comments/216385.html</wfw:comment><comments>http://www.2676208.com/eryar/archive/2019/05/29/ProjLib.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/eryar/comments/commentRss/216385.html</wfw:commentRss><trackback:ping>http://www.2676208.com/eryar/services/trackbacks/216385.html</trackback:ping><description><![CDATA[ <p align="center">OpenCASCADE<span style="font-family: 瀹嬩綋;">鐐?#37722;?#39582;抽潰鎶?#35120;?/span></p> <p> </p> <p>OpenCASCADE<span style="font-family: 瀹嬩綋;">鐨?/span><span style="font-family: Calibri;">ProjLib</span><span style="font-family: 瀹嬩綋;">绫?#37819;愪緵浜?#29785;?#37835;?#37831;茬嚎锛?#37929;寸嚎銆?#37734;?#37510;?#22942;?#37734;?#37510;?#37814;?#37911;╃嚎銆?#37721;屾?#33580;嚎锛?#37722;?#29785;?#37835;?#37831;查潰锛?#39582;抽潰銆?#37734;?#37836;遍潰銆?#37734;?#38335;ラ潰銆?#37918;冮潰銆?#37734;?#37916;潰锛?#37814;?#35120;?#37928;?#37716;熻兘?#32029;涓?#29781;?#37922;ㄦ潵璁$畻涓夌淮鏇茬嚎鍦?#27996;岀淮鍙傛暟绌?#38338;?#37928;?#37721;傛暟銆?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201905/534255-20190529205727182-1677674186.png" alt="" /> </p> <p><span style="font-family: 瀹嬩綋;">鍏?#28051;?#37904;?#37722;?#39582;抽潰鎶?#35120;辨槸鏈绠鍗?#37928;勬?#21613;喌?#32029;?#28272;?#26499;涓?#29781;?#28000;?#32513;?#37904;?#37722;?#39582;抽潰鎶?#35120;?#37928;勬敞?#21104;浜嬮」銆?/span>ProjLib<span style="font-family: 瀹嬩綋;">绫绘槸涓?#23480;?#37711;?#32491;伙紝鍥?#28051;?#37711;跺嚱?#26271;?#20824;?#27128;闈欐?#37713;芥暟銆?#37904;?#37722;?#39582;抽潰鎶?#35120;?#23536;?#32480;鍗曪紝鐩存帴鐢?/span><span style="font-family: Calibri;">ProjLib::Project(aPlane, aPoint)</span><span style="font-family: 瀹嬩綋;">鍗?#37721;?#37510;?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201905/534255-20190529205736308-195739996.png" alt="" /> </p> <p><span style="font-family: 瀹嬩綋;">鍏?#28729;炵幇浠g爜濡?#28051;嬶細</span></p> <div class="cnblogs_Highlighter"> <pre class="brush:cpp;gutter:true;">gp_Pnt2d ProjLib::Project(const gp_Pln& Pl, const gp_Pnt& P) { Standard_Real U, V; ElSLib::Parameters(Pl, P, U, V); return gp_Pnt2d(U,V); } inline void ElSLib::Parameters(const gp_Pln& Pl, const gp_Pnt& P, Standard_Real& U, Standard_Real& V) { ElSLib::PlaneParameters(Pl.Position(),P,U,V); } void ElSLib::PlaneParameters (const gp_Ax3& Pos, const gp_Pnt& P, Standard_Real& U, Standard_Real& V) { gp_Trsf T; T.SetTransformation (Pos); gp_Pnt Ploc = P.Transformed (T); U = Ploc.X(); V = Ploc.Y(); } </pre> </div> <p><span style="font-family: 瀹嬩綋;">浠?#28051;婇潰鐨?#28000;g爜鍙?#28000;ョ湅鍑猴紝鐐?#37722;?#39582;抽潰鎶?#35120;?#28729;炵幇灏辨槸灏?#37904;瑰?#27195;崲鍒?#39582;抽潰?#22669;鍦?#37928;勫潗鏍?#32495;?#28051;?#37510;備娇鐢?#26473;?#28051;?#32491;?#37722;?#39582;抽潰鎶?#35120;?#29781;?#23049;ㄦ剰鐨?#27996;嬮?#35268;槸骞抽潰鐨勬瀯閫?#37510;?#39582;抽潰</span>gp_Pln<span style="font-family: 瀹嬩綋;">鏈?#28641;?#28051;嬫瀯閫?#37713;芥暟锛?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201905/534255-20190529205816042-90323085.png" alt="" /> </p> <p>l <span style="font-family: 瀹嬩綋;">?#31919;璁?#37835;?#38315;?#37713;芥暟锛氭瀯閫?#27996;?#28051;涓?/span>XOY<span style="font-family: 瀹嬩綋;">骞抽潰</span></p> <p>l <span style="font-family: 瀹嬩綋;">?#29056;浜?#28051;涓潗鏍?#32495;?/span>gp_Ax3<span style="font-family: 瀹嬩綋;">鏋?#38315;?#39582;抽潰</span></p> <p>l <span style="font-family: 瀹嬩綋;">?#29056;浜?#28051;涓?#37904;?#37724;?#28051;涓?#37826;?#37722;?#37835;?#38315;?#39582;抽潰</span></p> <p>l <span style="font-family: 瀹嬩綋;">?#29056;浜?#39582;抽潰鐨勭?#32472;暟鏂?#32459;嬶紝鍗?/span>AX+BY+CZ+D=0</p> <p><span style="font-family: 瀹嬩綋;">鍓?#28051;?#28051;?#37835;?#38315;?#37713;?#37825;板?#22559;?#21614;?#24110;紝鑰岀涓?#28051;?#37835;?#38315;?#37713;芥暟鍗冲熀浜?#28051;涓?#37904;?#37724;?#28051;涓?#37826;?#37722;?#37835;?#38315;?#39582;抽潰鐨勬?#29808;紡?#30149;鏈?#37828;?#32429;紝娉?#38322;?#28051;嶆?#21614;櫚銆?#26473;?#38322;?#37928;勬柟鍚?#37816;?#28729;?#27996;?#39582;抽潰鐨勬硶鍚戯紝浣嗘槸杩樼己灏?#28051;涓?#37826;?#37722;戞潵纭?#28729;?#28051;涓潗鏍?#32495;伙紝?#22669;浠ヤ娇鐢?#26473;?#28051;?#37835;?#38315;?#37713;?#37825;版潵鐢熸垚骞抽潰鐨勬?#36346;欙紝闇瑕?#37918;?#29785;?#37711;?#37922;熸垚鍙?#28598;?#28051;涓?#37826;?#37722;?#37928;勭畻娉曟槸涓嶆槸?#22172;宸?#38343;瑕?#37928;?#37510;?/span></p> <div class="cnblogs_Highlighter"> <pre class="brush:cpp;gutter:true;">gp_Pln::gp_Pln (const gp_Pnt& P, const gp_Dir& V) { Standard_Real A = V.X(); Standard_Real B = V.Y(); Standard_Real C = V.Z(); Standard_Real Aabs = A; if (Aabs < 0) Aabs = - Aabs; Standard_Real Babs = B; if (Babs < 0) Babs = - Babs; Standard_Real Cabs = C; if (Cabs < 0) Cabs = - Cabs; // pour determiner l'axe X : // on dit que le produit scalaire Vx.V = 0. // et on recherche le max(A,B,C) pour faire la division. // l'une des coordonnees du vecteur est nulle. if( Babs <= Aabs && Babs <= Cabs) { if (Aabs > Cabs) pos = gp_Ax3 (P, V, gp_Dir (-C,0., A)); else pos = gp_Ax3 (P, V, gp_Dir ( C,0.,-A)); } else if( Aabs <= Babs && Aabs <= Cabs) { if (Babs > Cabs) pos = gp_Ax3 (P, V, gp_Dir (0.,-C, B)); else pos = gp_Ax3 (P, V, gp_Dir (0., C,-B)); } else { if (Aabs > Babs) pos = gp_Ax3 (P, V, gp_Dir (-B, A,0.)); else pos = gp_Ax3 (P, V, gp_Dir ( B,-A,0.)); } } </pre> </div> <p><span style="font-family: 瀹嬩綋;">?#32139;杩?#38322;岀‘瀹氬钩?#28528;?#28503;鏍?#32495;?#37928;勬?#29808;紡涓?#38343;瑕?#37928;?#28051;?#28051;?#22183;鏃讹紝鍦ㄤ娇鐢?#37814;?#35120;辩畻娉?#37928;勬?#36346;?#28751;变細浜?#37922;?#38338;?#26864;?#37510;?/span></p> <img src ="http://www.2676208.com/eryar/aggbug/216385.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/eryar/" target="_blank">eryar</a> 2019-05-29 21:02 <a href="http://www.2676208.com/eryar/archive/2019/05/29/ProjLib.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>Compile OpenCASCADE7.3 with VS2008http://www.2676208.com/eryar/archive/2019/04/18/compile_occ730_vs2008.htmleryareryarWed, 17 Apr 2019 23:17:00 GMThttp://www.2676208.com/eryar/archive/2019/04/18/compile_occ730_vs2008.htmlhttp://www.2676208.com/eryar/comments/216353.htmlhttp://www.2676208.com/eryar/archive/2019/04/18/compile_occ730_vs2008.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216353.htmlhttp://www.2676208.com/eryar/services/trackbacks/216353.html

Compile OpenCASCADE7.3 with VS2008

eryar@163.com

 

1. 姒?#26473;?/h3>

鍦?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">OpenCASCADE鐨勬?#24878;爜?#26499;浠跺す涓?#37832;?#28051;?/span>adm?#26499;浠跺?#30328;紝閲岄潰鎻愪緵浜?#37722;?#28051;?#39582;?#37721;?#28051;紪璇?#23143;愮爜鐨勯」鐩枃浠?#37510;?#37711;?#28051;?#37734;?/span>Windows鎿?#28003;滅郴缁?#28051;娇鐢?#23536;?#26462;?#37928;?/span>Visual Studio鍗?/span>msvc?#26499;浠跺す涓?#37819;愪緵浜?/span>VS鐩?#25652;?#37911;堟湰鐨勯」鐩枃浠?#37510;傛墍浠?#37734;ㄤ娇鐢?#37813;?#28598;?#37918;嗗OpenCASCADE婧愮爜杩?#29723;岀紪璇?#37928;勬?#36346;欙紝?#32048;?#29300;鎹?/span>vc鐨?#37911;堟湰?#28533;鍚?#37716;?#37929;?#25652;?#37911;堟湰鐨?/span>visual studio銆?#28641;?#37835;滄枃浠跺す涓病鏈?#28725;瑰簲鐨?/span>VS鐗堟湰?#32029;灏?#37813;?#28051;?#23534;鐩?#25652;?#37928;?/span>VS銆?/span>

 

鍦?#37832;鏂?#37911;堟湰鐨?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">OpenCASCADE7.3.0涓紝?#30149;鏈?#37819;愪緵VS2008鐨勯」鐩枃浠?#37510;傛墍浠?#28725;?#27996;庢兂灏?/span>OpenCASCADE鐢?#27996;庤?#37928;勭郴缁燂紝濡?/span>XP绯?#32513;?#28051;?#37827;讹紝鎴栬?#28051;?#32459;嬪簭?#27128;鐢?/span>VS2008?#32042;璇?#37928;勶紝杩?#37827;跺氨闇瑕佸皢OpenCASCADE鐢?/span>VS2008?#28533;?#32042;璇?#27996;?#37510;?/span>

2. 鐢熸垚VS椤?#37929;?/span>

鍏?#28729;?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">OpenCASCADE鐨?/span>VS椤?#37929;兘?#27128;閲?#37922;?/span>Tcl鑴氭湰鐢熸垚鐨勶紝鑰?#28051;?#37922;熸垚鐨勮?#27693;湰閲岄潰杩?#28103;?#37923;?#27996;嗗VS2008鐨勬敮鎸?#37510;?#28051;嬮潰灏?#28000;?#32513;?#28051;涓嬪?#20633;綍鐢熸垚VS椤?#37929;?#37510;?#37734;?/span>OpenCASCADE婧愮爜?#26499;浠跺す涓?#37832;?#28051;?#37813;?#28598;?#37918;嗘枃浠?/span>genproj.bat

 

鐢?#27996;庤繖涓?#37813;?#28598;?#37918;嗕細璋?#37922;?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">Tcl?#26499;浠?#28051;?#37928;?#37723;?#28000;わ紝?#22669;浠?#38343;瑕佸皢Tcl鍔犲叆鍒?#37916;?#28583;?#37721;?#38322;?/span>PATH涓?#28000;ヤ究浜庤繍琛?/span>Tcl鑴氭湰?#26499;浠?#28051;?#37928;?#37723;?#28000;?#37510;?#28641;?#28051;?#37733;?#28051;?/span>

SET "PATH=%PATH%;D:\OpenCASCADE-7.3.0\tcltk-86-64\bin;"

灏辨槸灏員cl鍔犲叆鍒癙ATH鐨?#28051;绉?#37826;?#23049;曪紝?#21412;缃?#28610;?#26473;?#28051;?#28751;?#37721;?#28000;?#37929;存帴鍙屽嚮genproj.bat?#32029;杩?#29723;屾埅鍥?#28641;?#28051;嬶細

 

?#29300;鎹甮enproj.bat涓?#37928;勬敞閲?#37721;?#37933;?/span>genproj杩?#37721;?#28000;?#29999;?#28051;?#37721;傛暟?#32029;绗?#28051;涓?#37721;?#37825;版槸VS?#32042;璇?#37731;?#37928;?#37911;堟湰?#32029;绗?#27996;?#28051;?#37721;?#37825;版槸鎿?#28003;滅郴缁?#37510;?#37812;?#28000;?#29781;?#37922;熸垚Windows鎿?#28003;滅郴缁?#28051;?/span>VS2008鐨勯」鐩紝?#22669;浠?#26440;撳叆鍙傛暟锛?/span>

genproj vc9 wnt

杩欐牱灏?#37922;熸垚浜?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">VS2008鐨勯」鐩?#27996;?#38171;?/span>

 


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


]]>
姝?#23033;?#23046;?#37713;?#23536;?#28103;℃伅绉?#37814;鏈?#38340;?#37711;?#37721;?/title><link>http://www.2676208.com/eryar/archive/2019/04/08/wuhan_ocade_intro.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Mon, 08 Apr 2019 03:34:00 GMT</pubDate><guid>http://www.2676208.com/eryar/archive/2019/04/08/wuhan_ocade_intro.html</guid><wfw:comment>http://www.2676208.com/eryar/comments/216344.html</wfw:comment><comments>http://www.2676208.com/eryar/archive/2019/04/08/wuhan_ocade_intro.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.2676208.com/eryar/comments/commentRss/216344.html</wfw:commentRss><trackback:ping>http://www.2676208.com/eryar/services/trackbacks/216344.html</trackback:ping><description><![CDATA[<h3 align="center"><strong><span style="font-family: 瀹嬩綋;">姝?#23033;?#23046;?#37713;?#23536;?#28103;℃伅绉?#37814;鏈?#38340;?#37711;?#37721;?/span></strong></h3> <p><span style="font-family: 瀹嬩綋;">姝?#23033;?#23046;?#37713;?#23536;?#28103;℃伅绉?#37814;鏈?#38340;?#37711;?#37721;?#37721;?#37722;嶆潵婧?#27996;?/span>OpenCASCADE<span style="font-family: 瀹嬩綋;">鐨勯煶璇戯紝涓?#29781;?#37819;愪?#28056;紑婧愬?#29361;綍閫犲?#23338;簱</span><span style="font-family: Calibri;">OpenCASCADE</span><span style="font-family: 瀹嬩綋;">鐩?#37711;?#37928;?#37724;?#29831;?#37510;佸煿璁?#37724;?#28729;氬?#36346;紑鍙?#37832;?#37716;?#37510;?/span><span style="font-family: Calibri;">Open</span><span style="font-family: 瀹嬩綋;">?#21104;涓哄紑鏀?#37714;?#27996;紝姝f槸鍥?#28051;?#37714;?#27996;紝涓?#28000;?#27996;?#37714;?#38315;?#28000;?#37706;?#37813;嶄細鏈?#37831;?#28598;?#37928;?#37733;?#37814;?#37510;?#28751;嗕細缁?#32513;?#37714;?#27996;?/span><span style="font-family: Calibri;">OpenCASCADE</span><span style="font-family: 瀹嬩綋;">鐨?#28051;浜?#37814;宸?#37724;?#28729;炵幇鍘?#37918;嗭紝鍏?#37722;?#26473;涙銆?/span></p> <p> </p> <p><span style="font-family: 瀹嬩綋;">鐩?#37715;?#37711;?#37721;?#37928;?#27996;?#37725;?#37832;?#38171;?/span></p> <h3>l RvmTranslator</h3> <p>RvmTranslator<span style="font-family: 瀹嬩綋;">鍙?#28000;?#28751;?/span><span style="font-family: Calibri;">AVEVA PDMS/Plant/Marine</span><span style="font-family: 瀹嬩綋;">涓?#28725;?#37713;?#37928;?/span><span style="font-family: Calibri;">RVM</span><span style="font-family: 瀹嬩綋;">?#26499;浠?#26473;?#29723;屽彲瑙?#37718;栵紝浠?#37721;?#28751;?/span><span style="font-family: Calibri;">RVM</span><span style="font-family: 瀹嬩綋;">杞?#37817;㈡垚?#29238;瑙?#37928;?#28051;夌淮?#26499;浠舵?#29006;紡銆?#28641;?/span><span style="font-family: Calibri;">STEP</span><span style="font-family: 瀹嬩綋;">?#32029;</span><span style="font-family: Calibri;">IGES</span><span style="font-family: 瀹嬩綋;">?#32029;</span><span style="font-family: Calibri;">STL</span><span style="font-family: 瀹嬩綋;">?#32029;</span><span style="font-family: Calibri;">DXF, OBJ, 3DPDF, 3DXML, IFC</span><span style="font-family: 瀹嬩綋;">绛夛紝?#31350;浜?#28051;?#37711;?#28000;?/span><span style="font-family: Calibri;">CAD</span><span style="font-family: 瀹嬩綋;">绯?#32513;?#26473;?#29723;屾?#29256;嵁浜?#37817;紝濡?/span><span style="font-family: Calibri;">Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley</span><span style="font-family: 瀹嬩綋;">绛?#37510;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112724580-819751049.png" /></p> <p><span style="font-family: 瀹嬩綋;">鍥?/span>1 RvmTranslator<span style="font-family: 瀹嬩綋;">绋嬪簭鐣岄潰</span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112742908-287211285.png" /> </p> <p><span style="font-family: 瀹嬩綋;">鍥?/span>2 RvmTranslator<span style="font-family: 瀹嬩綋;">杞?#37817;?#37928;?/span><span style="font-family: Calibri;">3DXML</span><span style="font-family: 瀹嬩綋;">鍒?#26440;剧儲绯?#32513;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112753166-1690564034.png" /></p> <p><span style="font-family: 瀹嬩綋;">鍥?/span>3 RvmTranslator<span style="font-family: 瀹嬩綋;">杞?#37817;?#37928;?/span><span style="font-family: Calibri;">STEP</span><span style="font-family: 瀹嬩綋;">鍒?/span><span style="font-family: Calibri;">CATIA</span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112813166-910954946.png" /></p> <p><span style="font-family: 瀹嬩綋;">鍥?/span>4 RvmTranslator <span style="font-family: 瀹嬩綋;">杞?#37817;?#37928;?/span><span style="font-family: Calibri;">IFC</span></p> <p> </p> <h2>l IsoAlgo</h2> <p>IsoAlgo<span style="font-family: 瀹嬩綋;">?#27128;</span><span style="font-family: Calibri;">piping Isometric drawing generation Algorithm</span><span style="font-family: 瀹嬩綋;">鐨?#32480;绉帮紝?#21104;涓虹閬?#26462;?#23092;嬪浘鍑?#37733;剧畻娉?#37510;?#37733;介檯涓?#23092;?#37928;?#32480;?#38316;?#26462;?#23092;嬪浘鍑?#37733;?#32459;嬪簭</span><span style="font-family: Calibri;">ISOGEN</span><span style="font-family: 瀹嬩綋;">?#27128;?#23283;鍥?#28051;瀹跺叕鍙?#23534;鍙?#37928;勶紝?#24135;琚?/span><span style="font-family: Calibri;">Intergraph</span><span style="font-family: 瀹嬩綋;">鏀惰喘?#32029;鑰?/span><span style="font-family: Calibri;">Intergraph</span><span style="font-family: 瀹嬩綋;">涔?#37734;?/span><span style="font-family: Calibri;">2010</span><span style="font-family: 瀹嬩綋;">骞磋缇?#37733;?#37711;?#37721;?/span><span style="font-family: Calibri;">Hexagon</span><span style="font-family: 瀹嬩綋;">鏀惰喘銆?/span><span style="font-family: Calibri;">ISOGEN</span><span style="font-family: 瀹嬩綋;">浣?#28051;虹浉瀵规垚?#21851;鐨?#26462;?#28000;讹紝涔熷瓨鍦?#28051;浜?#38338;?#26864;橈紝濡?#37916;?#32480;?#37713;?#37733;炬垚鎶樼嚎?#32029;浠?#37721;?#28729;?#37812;?#37928;?#28051;浜?#28729;氬埗鍖?#29781;?#23033;?#28051;嶈兘鍙?#37827;跺?#23945;绛?#37510;?/span><span style="font-family: Calibri;">IsoAlgo</span><span style="font-family: 瀹嬩綋;">鍏?#37832;夎嚜涓荤煡璇?#27996;?#37833;冿紝鍏ㄩ潰鍏?#28729;?/span><span style="font-family: Calibri;">ISOGEN</span><span style="font-family: 瀹嬩綋;">鐨?#26440;撳叆?#32029;濡?#32480;?#38316;?#37825;版嵁?#26499;浠?/span><span style="font-family: Calibri;">PCF</span><span style="font-family: 瀹嬩綋;">鍜?/span><span style="font-family: Calibri;">IDF</span><span style="font-family: 瀹嬩綋;">?#32029;浠?#37721;?/span><span style="font-family: Calibri;">SKEY</span><span style="font-family: 瀹嬩綋;">瀹氫箟?#26499;浠?#37510;?/span><span style="font-family: Calibri;">IsoAlgo</span><span style="font-family: 瀹嬩綋;">鐢熸垚绠?#38316;?#26462;?#23092;嬪浘濡?#28051;嬶細</span></p> <p><span style="font-family: 瀹嬩綋;"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112907933-1282167575.png" /><br /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112914486-1856273205.png" /><br /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112919447-145589813.png" /><br /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112923853-2004312242.png" /><br /><br /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112928451-1154608888.png" /></span></p> <p><span style="font-family: 瀹嬩綋;">閫?#26473;?#32459;嬪簭</span>IsoAlgo3d<span style="font-family: 瀹嬩綋;">鏂逛究鍦板皢</span><span style="font-family: Calibri;">PCF/IDF</span><span style="font-family: 瀹嬩綋;">鍙?#29785;?#37718;栵紝鏇翠究鎹?#37928;勬樉绀?#37713;虹閬?#28103;℃伅銆?#28000;?#37721;婂熀浜?/span><span style="font-family: Calibri;">IsoAlgo3d</span><span style="font-family: 瀹嬩綋;">瀹氬?#36346;紑鍙戠浉鍏?#37928;勭剨鐐?#32480;?#37918;?#32459;嬪簭銆?/span></p> <h2>l <span style="font-family: 瀹嬩綋;">瀹氬?#36346;紑鍙?/span></h2> <p><span style="font-family: 瀹嬩綋;">闅忕潃鍥?#37712;?#37911;堟潈?#21104;璇?#37928;勬彁?#29678;浠?#37721;婃湰鍦?#37718;?#37928;?#28051;浜涙爣鍑?#29785;勮寖瑕?#23033;傦紝鑰冭?#25118;垚?#28272;鍜屾晥鐜囷紝鏈夎?#23107;潵瓒?#28598;?#37928;?#28729;氬埗鍖?#23534;鍙?#37832;?#37716;?#37510;傛垚鍔熸渚嬫湁锛?/span></p> <p>v GIM<span style="font-family: 瀹嬩綋;">寤?#22959;?/span></p> <p><span style="font-family: 瀹嬩綋;">闅忕潃鍥?#28729;?#37922;电綉鏁板瓧鍖?#28051;夌淮璁?#29825;?#37928;勬帹骞匡紝鎻愬嚭浜?/span>GIM<span style="font-family: 瀹嬩綋;">涓夌淮璁?#29825;?#37837;?#37713;嗭紝涓?#27996;嗘弧瓒?#37733;界綉</span><span style="font-family: Calibri;">GIM</span><span style="font-family: 瀹嬩綋;">宸?#32459;嬫?#26495;瓧鍖?#32457;?#27996;わ紝涓?#37836;?#37711;?#37721;?#28729;氬?#36346;紑鍙?#27996;?/span><span style="font-family: Calibri;">GIM</span><span style="font-family: 瀹嬩綋;">寤?#22959;?#37716;熻兘锛?/span></p> <p><span style="font-family: 瀹嬩綋;"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113004316-58524139.png" /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113008640-160598795.png" /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113018377-917999677.png" /></span></p> <h2>v FORAN<span style="font-family: 瀹嬩綋;">瀹氬埗</span></h2> <p>FORAN<span style="font-family: 瀹嬩綋;">?#27128;涓娆?/span><span style="font-family: Calibri;">3D</span><span style="font-family: 瀹嬩綋;">閫?#38008;?#26462;?#28000;讹紝</span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹嬩綋;">杞?#28000;?#37922;辫?#36328;彮鐗?/span><span style="font-family: Calibri;">SENER</span><span style="font-family: 瀹嬩綋;">?#27878;鍥?#23534;鍙戯紝璇?#37711;?#37721;?#28000;?#38008;?#38008;?#29825;?#29825;?#29863;?#28729;讹紝宸?#37832;?/span><span style="font-family: Calibri;">50</span><span style="font-family: 瀹嬩綋;">骞?#37928;?#37720;?#37721;詫紝鍏?#37832;?/span><span style="font-family: Calibri;">40</span><span style="font-family: 瀹嬩綋;">澶氬勾鐨?#38315;?#38008;?/span><span style="font-family: Calibri;">CAD</span><span style="font-family: 瀹嬩綋;">杞?#28000;跺紑鍙?#37724;屽簲鐢ㄧ粡楠?#37510;?#37929;?#37715;?#37734;?#26473;?#29723;?#26462;?#28000;跺紑鍙?#37724;屽簲鐢?#37928;?#37722;屾?#35769;紝浠?#37906;舵?#25358;帴鑸?#38008;?#29825;?#29825;?#26916;?#37929;?#37510;?/span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹嬩綋;">杞?#28000;舵槸涓?#37923;?#28051;?#25652;?#37922;?#37832;涓?#39582;?#23049;?#37928;?#28598;?#37736;嬮?#38008;?#28051;?#28051;?#26462;?#28000;朵箣涓?#32029;鍏?#37918;?#37922;?#37812;?#37718;呮嫭浜?/span><span style="font-family: Calibri;">120</span><span style="font-family: 瀹嬩綋;">瀹?#28000;?#28051;?#37928;勮璁?#37711;?#37721;?#37724;岄?#38008;?#37720;傦紝杩?#39582;存潵鏇?#28000;?#26440;?#36423;?#37928;?#38315;熷害鍦?#37711;?#37918;?#37818;?#39582;?#37510;?/span></p> <p><span style="font-family: 瀹嬩綋;">瀹氬?#36346;紑鍙?#27996;?#37711;ㄩ潰?#25966;鎸?/span>FORAN<span style="font-family: 瀹嬩綋;">鍑犱綍瀹?#37721;?/span><span style="font-family: Calibri;">NORM</span><span style="font-family: 瀹嬩綋;">鍙傛暟鍖?#22959;?#37736;嬶紝鏂逛究鐩存帴璁?#38338;?/span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹嬩綋;">鐨勬?#29256;嵁搴擄紝鑴?#32450;?/span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹嬩綋;">鐜?#28583;?#26473;?#29723;?#28051;夌淮鍙?#29785;?#37718;?#37510;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113037691-1144303748.png" /><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113043724-1089929810.png" /> </p> <h2>v <span style="font-family: 瀹嬩綋;">鑸?#38008;?#32480;?#28699;愰浂浠跺浘</span></h2> <p><span style="font-family: 瀹嬩綋;">鑸?#38008;?#32480;?#28699;愰浂浠跺浘涔?#32457;板?#24533;エ鍥撅紝?#27970;浠跺浘涓?#38340;?#27996;?#37733;惧舰鍙?#37711;舵爣娉?#28598;栵紝杩?#25652;?#37718;呮嫭绠?#37833;?#29785;勬牸銆佸集绠?#37825;版嵁銆?#37837;?#32480;?#37825;版嵁銆?#29723;ㄩ潰澶?#37918;?#37510;?#28729;夎?#21612;綅缃?#32475;?#28103;℃伅銆?/span></p> <p><span style="font-family: 瀹嬩綋;"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113103012-37825149.png" /></span></p> <p> </p><img src ="http://www.2676208.com/eryar/aggbug/216344.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/eryar/" target="_blank">eryar</a> 2019-04-08 11:34 <a href="http://www.2676208.com/eryar/archive/2019/04/08/wuhan_ocade_intro.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>AVEVA PDMS to DIALuxhttp://www.2676208.com/eryar/archive/2019/04/02/Pdms2Dialux.htmleryareryarTue, 02 Apr 2019 08:19:00 GMThttp://www.2676208.com/eryar/archive/2019/04/02/Pdms2Dialux.htmlhttp://www.2676208.com/eryar/comments/216327.htmlhttp://www.2676208.com/eryar/archive/2019/04/02/Pdms2Dialux.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216327.htmlhttp://www.2676208.com/eryar/services/trackbacks/216327.htmlAVEVA PDMS to DIALux

eryar@163.com

  Abstract. DIAL develops DIALux - the world's leading software for planning, calculation and visualisation of indoor and outdoor lighting. With a community of over 700,000 users, the light planning tool is available in 25 languages and is free of charge for users. All renowned luminaire manufacturers offer digital product data for planning in DIALux. The software makes professional lighting design easier and accessible to everyone. As a platform and tool, it connects planners and manufacturers all over the world. DIALux is available as a desktop version and as a basic mobile app.

DIALux can import model by IFC, so use RvmTranslator to convert PDMS model to IFC format and imported by DIALux for lighting calculation.

Key Words. DIAlux, IFC, RvmTranslator

1. Introduction

棣栧腑?#20229;鍏?#37916;?#28583;?#22959;?#37815;?#28051;庤?#30075;杞?#28000;?/span>DIALux寰?#37733;?/span>DIAL鐮?#37721;戯紝?#20824;?#24359;瓒崇収鏄庤璁?#37928;勬墍鏈?#38343;姹?#38171;?#28000;?#37837;?#37713;?#37718;?#37928;?#28729;?#37712;?#37510;?#37812;?#28598;?#37812;?#29723;?#38316;?#37928;勭収鏄庤鍒?#28051;庤?#30075;?#32029;鍒?#28051;?#28051;?#37928;勭伅鍏夎璁?#37510;?#29785;?#29785;?#32468;嬩綋鍖?#37510;?#38003;介噺璇勪?#24110;紝妯?#37815;?#37825;堟灉?#24116;杩?#37930;?#28729;烇紝鏂逛究璁?#29825;?#29999;?#26976;?#29831;?#37722;?#32457;?#37911;规畩鐢?#23049;曪紝瀵?#37713;?#37814;?#37723;婏紝鍏?#37826;逛綅鍗?#37716;?#29825;?#29825;?#29999;?#26946;樻晥瀹屾垚鍒?#28003;?#37510;?/span>

DIALux瀹?#37711;?#37711;嶈?#29808;紑鏀?#28051;?#26462;斤紝鏈夊惈涓枃鍦?#37712;?#37928;?/span>26绉嶈瑷鐗堟湰?#32029;鍦?#37711;?#37918;?#37832;?/span>100澶?#28051;?#37922;?#37812;凤紝鍦?#28051;?#37733;?#28598;?#38340;?#37832;?/span>10涓?#28598;氬悕鐢?#37812;凤紝鐢?#37812;?#28051;?#29781;?#37718;呭惈鐓?#37828;庤璁?#29999;?#37510;佸?#34425;?#25117;笀銆?#23480;?#32459;?#37711;?#37721;?#32475;夛紝?#27128;鍏?#37918;冮鍏?#37928;勭収鏄庤鍒?#28051;庤?#30075;杞?#28000;?#37510;?

 

PDMS涓?#29781;?#37922;?#27996;?#23480;?#37720;?#26440;呭姪璁?#29825;★紝鍏?#28051;?#28052;熶細?#31225;鍙?#37714;?#28000;?#29723;?#37510;?#37922;?#23000;?#28051;?#28051;?#37510;?#38315;?#26473;囦娇鐢?/span>RvmTranslator鍙?#28000;?#36423;?#38315;?#37734;板皢PDMS妯?#37736;嬪?#29006;叆DIALux杞?#28000;?#26473;?#29723;岀伅鍏夌収鏄庤璁?#37510;?/span>

2. PDMS to IFC

RvmTranslator7.0鍙?#28000;?#28751;?/span>PDMS妯″瀷杞?#37817;㈡垚IFC鏍煎紡?#32029;IFC涓?#29781;?#37922;?#27996;?/span>BIM鐨勬?#29256;嵁浜?#37817;紝?#22669;浠ョ伅鍏夎璁?#26462;?#28000;?/span>DIALux涓?#27996;?#37826;逛究瀵煎叆鍏?#28000;?#26462;?#28000;跺?#28056;缓鐨勫?#34425;瓚妯?#37736;嬶紝澧?#37716;?#27996;?/span>IFC瀵煎叆鐨?#37716;熻兘銆備娇鐢?/span>IFC瀵煎叆鍔熻兘?#32029;灏?#37721;?#28000;?#28725;煎叆PDMS鐨勬ā?#28727;浜?#37510;?/span>

涓?#37733;?#28051;?/span>RvmTranslator杞?#37817;?#37928;?#32448;轰?#23339;ā鍨嬫垚IFC?#26499;浠?#37510;?/span>

 

涓?#37733;炬墍绀?#28051;哄?#29006;叆RvmTranslator杞?#37817;?#37928;?/span>IFC?#26499;浠跺埌DIALux.

3. Showcase

DIALux杞?#28000;?#37922;熸垚鐨?#37711;夌収鏁堟灉寰?#38315;?#37930;燂紝涓嬮潰缁?#37713;?#37713;?#28051;?#28729;?#38340;?#23480;?#37720;?#37928;?#37711;夌収鏁堟灉鐨勪?#23338;瓙锛?/span>

 

 

4. Download

鐩存帴鍦?#37820;滅儲寮曟搸涓?#26440;撳叆RvmTranslator7.0?#32029;鍗?#37721;?#28000;?#37813;?#37714;?#28051;?#26462;?#37734;板潃銆?/span>



]]>
[杞琞GLTF-3D鍥惧舰鐣?#37928;凧PEGhttp://www.2676208.com/eryar/archive/2019/03/30/gltf.htmleryareryarSat, 30 Mar 2019 13:47:00 GMThttp://www.2676208.com/eryar/archive/2019/03/30/gltf.htmlhttp://www.2676208.com/eryar/comments/216324.htmlhttp://www.2676208.com/eryar/archive/2019/03/30/gltf.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216324.htmlhttp://www.2676208.com/eryar/services/trackbacks/216324.htmlGLTF绠浠?/strong>

1.glTF(GL TransmissionFormat)?#32029;鍗?#37733;惧舰璇?#29815;浜?#37817;?#37837;煎紡?#32029;瀹冩槸涓绉?D鍐?#28729;?#37928;勬?#29006;紡鏍?#37713;嗭紝鐢?strong>Khronos Group绠?#37918;?#38171;圞hronos Group杩樼鐞嗙潃OpenGL绯?#37714;?#37510;丱penCL绛?#38322;嶈鐨?#29723;?#28051;氭爣鍑?#38171;?#38171;?/p>

2.glTF鐨勮璁℃槸?#28528;鍚?strong>瀹?#37827;舵覆鏌?/strong>搴?#37922;?#37928;勶紝灏介噺鎻愪?#28056;彲浠?#37929;存帴浼?#26440;?#32513;?#37733;惧舰API鐨勬?#29256;嵁褰㈠紡?#32029;涓?#37712;?#38343;瑕?#27996;屾杞?#37817;?#38171;?/p>

3.glTF瀵筄penGL ES銆乄ebGL闈炲父鍙嬪ソ锛?/p>

4.glTF鐨?#37929;?#37837;囨槸锛?D棰嗗煙鐨凧PEG锛?/p>

5.浣?#28051;?#28051;涓?#37837;?#37713;嗭紝?#22172;2015骞?0鏈?#37721;戝竷锛坓lTF 1.0锛?#28000;ユ潵?#32029;宸茬粡寰?#37714;?#27996;?#28051;氱晫骞?#23049;?#37928;勮鍙紝浣?#37721;?#28000;?#37929;?#28103;?#28729;?#37928;勬按骞?#38171;?/p>

6.glTF鐩?#37715;嶆渶鏂?#37911;堟湰涓?.0宸?#27996;?017骞?鏈堟?#32033;鍙戝竷銆?/p>

GLTF鍏蜂綋鐨勬?#29256;嵁瀛樺偍鏍煎紡鍙?#28000;?#37720;?#28729;?#37826;圭綉绔?#28051;?#37930;嬶細https://www.khronos.org/gltf/?#32029;澶?#22994;?#28751;辨槸鐩?#28725;?#27996;嶺ML鐨凧SON瀛樺偍鏂瑰紡銆?/p>

 

?#26499;绔?#37711;?#23049;?#37928;勬槸GLTF缁?#37812;?#28000;?#29999;︽潵鐨勪究鍒?#8212;—鑺?#32510;?#28699;樺偍绌?#38338;达紝鍑?#28751;戝甫瀹?#37720;?#37716;?#37510;?/p>

閭?#28052;?#28641;備綍?#24143;寰桮LTF鏍煎紡?#26499;浠?#38171;?/strong>

鐩?#37715;?#23480;茬粡鏈?#27996;?#23536;?#28598;?#37928;?#26462;?#37817;?#23480;?#37711;?#38171;?/p>

 

鍏?#28051;璉nput浠?#29723;?#26440;撳叆妯″瀷鐨勬?#29006;紡?#32029;杈撳嚭涓篻ltf鏍煎紡銆?#37922;?#27996;?#28052;嬪?#23940;娇鐢?#26473;嘍ae鏍煎紡鐨勬枃浠?#38171;坔ttps://www.khronos.org/collada/锛夛紝鍥?#23005;ゆ枃绔?#38315;?#37721;朇OLLADA2GLTF宸?#37711;?#26462;?#37817;㈡枃浠?#38171;?/p>

 

鍗?#28051;?#37714;?#32510;?#32513;?#27996;?#23480;?#37711;?#23143;?#28000;g爜鐨勭紪璇戯紝鍥?#28051;篕hronosGroup宸茬粡缁?#37713;?#27996;哛elease鐗堟湰銆?#26473;?#38322;?#29831;?#28051;浜涗娇鐢?#37826;?#23049;?#38171;?/p>

1.瑙?#37720;媧ip?#26499;浠讹紝鍦ㄦ牴鐩綍鏂板缓dae?#26499;浠跺す——鐢?#27996;?#28699;樻斁鍘熷鐨刣ae?#26499;浠?/p>

2.鍦ㄦ牴鐩綍鏂板缓gltf?#26499;浠跺す——鐢?#27996;?#28699;樻斁杞?#37817;?#37722;?#37928;刧ltf?#26499;浠?/p>

3.鍦ㄦ牴鐩綍鎸?#28003;廋trl+Shift+Alt+榧?#37837;?#37721;?#38335;紝鎵撳紑PowerShell绐?#37721;?/p>

4.鍦?#37723;?#28000;?#29723;?#28051;?#26440;撳叆锛?strong>./collada2gltf-bin.exe input.dae output.gltf –i dae/input.dae –o gltf/output.gltf

鍏?#28051;璱nput涓篸ae?#26499;浠?#37928;?#37722;?#32457;帮紝output涓?#26440;撳嚭gltf?#26499;浠?#37928;?#37722;?#32457;?#37510;?/p>

5.Enter寮濮?#26462;?#37817;?#37510;?/p>

PS C:\Users\Ruby\Desktop\COLLADA2GLTF-v2.1.2-windows-Release-x64>./COLLADA2GLTF-bin.exe elf.dae elf.gltf -i dae/elf/elf.

dae -o gltf/elf.gltf

Convertingdae\elf\elf.dae -> gltf\elf.gltf

Time: 320 ms

鍘熷dae?#26499;浠?#37718;呭惈4涓猨pg璐?#37733;?#28051;鍏?strong>2.46M?#32029;杞?#37817;?#37722;?#28051;?strong>涓涓?#37719;?#37913;?/strong>鐨刧ltf?#26499;浠?#32510;?strong>1.38M锛堝惈璐?#37733;?#38171;?#37510;?#37711;?#28729;?#37812;戝緢濂藉閭?#27996;涜创鍥炬枃浠?#37720;诲摢?#21177;浜嗭紝浜庢槸鎵撳紑浜唃ltf?#26499;浠?#37836;?#37930;嬶紝鍙戠幇鍦╥mage?#26271;缁?#28051;?#23480;茬粡鎶?#26473;?#27996;涜创鍥炬枃浠?#37922;╞ase 64?#32042;?#29212;?#32029;鍙樻垚涓鍫?#37832;?#37731;ㄧ爜鐩存帴鎻?#37734;╣ltf?#26499;浠?#28051;?#37510;?/p>

瀹屾垚妯″瀷杞?#37817;?#28000;?#37722;庯紝鍒?#37922;═hreeJS鐨凩oadGLTF API瀵煎叆?#32137;椤?#28051;?#23092;?#29785;堟?#22559;灉濡?#28051;嬶細 

濡備綍鍦℅LTF鏍煎紡涓?#37817;曡幏鍔?#37922;?#38171;?/strong>

涓?#26473;?#26473;?#32459;嬪睍绀?#27996;?#28000;嶤ollada鍒癵ltf鐨?#26462;?#37817;?#28000;?#37721;?#29825;ゞltf妯?#37736;嬪睍绀?#37734;ㄧ綉椤?#28051;?#37510;?#28051;嬮潰灏?#32513;?#32513;?#37934;旂?#36346;?#20633;綍?#24143;鍙杇ltf妯″瀷鐨?#37716;?#37922;?#38171;?Talk is cheap?#32029;show me the code"——鍝堝?#22557;搱锛?nbsp;

鏁堟灉濡?#37733;炬墍绀?#38171;?/p>

鑷虫?#32029;gltf浠?#22959;?#37736;嬪埌鍔?#37922;婚兘run浜?#28051;閬?#37510;?/p>

 

鎬?#32513;?/strong>

GLTF鏍煎紡鍙?#32457;?D鍥惧舰鐣?#37928;凧PEG?#32029;?#20824;澶?#28729;炵幇蹇?#38315;?#37928;勬ā鍨嬫?#29256;嵁浜?#37817;?#37510;?#37734;?017骞?#28051;?#37827;?#37831;?#37826;?#37928;?.0鐗堟湰鍏嬫湇浜?#28051;浜?#28003;?#37911;堟湰鐨?#37716;熻兘缂?#38340;凤紝?#23047;寰楄嚜韬?#37716;熻兘寰?#37714;?#37721;戝睍锛?#37722;屾?#35769;紝gltf瑙?#37835;愬強杞?#37817;ool鐨勫揩閫熷?#25117;?#26346;紝涓篏LTF鐨?#26473;?#28051;姝?#37818;?#39582;垮?#27692;嚭浜?#23536;?#28598;?#37928;勮础鐚?#37510;傛枃涓?#28052;熷簲璇?#27996;嗭紝浣?#28051;篏LTF鏍煎紡鐨?#37922;?#37812;凤紝?#20824;澶熷埄鐢ㄧ幇鏈?#37928;?#23480;?#37711;?#28725;?#22959;?#37736;嬪鐞嗭紝鍑?#28751;?#22959;″瀷鐨勬?#29256;嵁閲忥紝鍦╓ebGL鐨勫簲鐢?#28051;?#37734;ㄦ垚鍊?#37734;拌妭鐪佸甫瀹?#37928;?#37722;屾?#24816;兘澶熻幏鍙?#37722;岃川閲?#37928;勬ā?#28727;浠?#37721;?#37716;?#37922;?#37510;?/p>

 

鍘熸枃锛歨ttps://cloud.tencent.com/developer/news/204942

 



]]>
瑙?#37835;愬?#29361;綍姹?#27996;?#28052;?#37734;?#28051;?#27996;屾鏇查潰http://www.2676208.com/eryar/archive/2019/02/21/IntAna_Circle.htmleryareryarThu, 21 Feb 2019 14:05:00 GMThttp://www.2676208.com/eryar/archive/2019/02/21/IntAna_Circle.htmlhttp://www.2676208.com/eryar/comments/216252.htmlhttp://www.2676208.com/eryar/archive/2019/02/21/IntAna_Circle.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216252.htmlhttp://www.2676208.com/eryar/services/trackbacks/216252.html瑙?#37835;愬?#29361;綍姹?#27996;?#28052;?#37734;?#28051;?#27996;屾鏇查潰

eryar@163.com

 

Abstract. OpenCASCADE provides the analytic intersection between a conic and a quadric in the package IntAna.

Key Words. Analytic geometry, intersection, coninc, quadric

1. Introduction

OpenCASCADE涓?#37928;?#37718;?/span>IntAna鎻愪緵浜?#29785;?#37835;愬?#29361;綍鏇茬嚎锛?#27996;屾鏇茬嚎锛?#28051;庤В鏋?#37831;查潰锛?#27996;屾鏇查潰锛?#23033;?#27996;?#37510;?#29785;?#37835;?#37831;查潰涓庤В鏋?#37831;查潰姹?#27996;?#37928;?#37716;熻兘銆?#37711;?#28051;?/span>IntAna鍒?#37714;槸Intersection Analytic鐨勫墠涓?#28051;?#28699;楁瘝缂?#37712;欙紝琛?#32448;?#29785;?#37835;愬?#29361;綍姹?#27996;?#37510;?/span>

鎴?#28000;?#28699;?#26473;?#27996;?#37510;婄嚎鎬?#28000;f暟銆?#28051;?#37928;?#27996;屾鍨嬶紝鍏?#28051;?#27996;屾?#28727;鍦?#29785;?#37835;愬?#29361;綍涓?#37928;?#28051;涓?#25652;?#37922;?#28751;辨槸浜屾鏇茬嚎鍜?#27996;屾鏇查潰鏂?#32459;?#37928;?#37718;?#32480;鍙?#37711;舵?#29840;?#37928;?#37714;?#37835;?#37510;?/span>

?#28272;?#26499;涓?#29781;?#32513;?#37722;堟?#24878;爜鍒?#37835;?#37734;?#28051;?#27996;屾鏇查潰姹?#27996;?#37928;?#28729;炵幇?#32029;鍏?#28000;?#27996;屾鏇茬嚎涓?#27996;屾鏇查潰姹?#27996;?#37928;?#37721;?#28000;?#28186;?#23005;?#32491;绘帹銆?/span>

2. Quadratic form

鍦?#29785;?#37835;愬?#29361;綍涓紝涓?#27996;嗕究浜?#37934;旂┒浜屾鏇茬嚎

鐨?#37713;犱綍鎬?#29840;紝鎴?#28000;?#37721;?#28000;?#38315;?#37815;?#38315;傚綋鐨勫潗鏍?#37827;?#26462;?#37721;樻崲

鎶?#37826;?#32459;?#37718;栨垚鏍?#37713;?#35120;㈠紡锛?/span>

?#29300;鎹?#37837;?#37713;?#35120;㈠紡涓?#37928;勭郴鏁版潵鍒?#37835;?#26473;?#28051;?#27996;屾鏇茬嚎?#27128;浠涔堟?#33580;嚎?#32029;鍗?#37734;?#37510;?#22942;?#37734;?#37510;?#37814;?#37911;╃嚎銆?#37721;屾?#33580;嚎銆?/span>

鍦?/span>OpenCASCADE涓?#29785;?#37835;愬?#29361;綍鐨?#27996;屾鏇查潰鏈?#28000;?#28051;嬪嚑绉?#32491;诲?#23350;細

l gp_Pln锛氬钩?#28528;鍙湅浣?#27996;屾鏇查潰鐨?#37911;逛緥

l gp_Sphere锛?#29785;?#37835;愮?#20910;潰

l gp_Cylinder锛?#29785;?#37835;?#37836;遍潰

l gp_Cone锛?#29785;?#37835;?#38335;ラ潰

杩?#27996;?#29785;?#37835;?#37831;查潰?#20824;鍙?#28000;?#32513;?#28051;?#23047;鐢?#27996;屾澶?#26916;瑰紡?#28533;琛?#32448;猴紝鍗?#26473;?#28051;?#27996;屾澶?#26916;瑰紡鐨勭?#32472;暟纭?#28729;?#27996;?#28051;涓?#27996;屾鏇查潰銆?/span>OpenCASCADE涓?#37929;?#25652;?#37928;勭?#32472;槸IntAna_Quaric锛?/span>

3. Math Trigonometric Function Roots

OpenCASCADE涓?#32491;?/span>IntAna_IntConicQuad涓?#37819;愪緵浜?#27996;屾鏇茬嚎涓?#27996;屾鏇查潰姹?#27996;?#37716;熻兘?#32029;鍏?#28051;?#29825;$畻鍦?#28051;?#27996;屾鏇查潰鐩?#27996;?#37928;?#37713;?#37825;版槸锛?/span>

  //! Creates the intersection between a circle and a quadric.

  Standard_EXPORT IntAna_IntConicQuad(const gp_Circ& C, const IntAna_Quadric& Q);

鍏?#28729;炵幇鍘熺爜涓?#23049;?#38322;?#28641;?#28051;嬶細

 

?#29300;鎹?#37711;舵敞閲婏紝鍙?#37933;?#37711;?#29825;$畻杩?#32459;嬪涓嬶?#27692;皢鍦?#37928;勬柟绋?#37734;?#37711;跺眬閮ㄥ潗鏍?#32495;?#28051;?#37922;?#37721;?#37825;板舰?#32033;琛?#32448;猴紝

灏?#27996;屾鏇查潰鏂?#32459;?#37928;勭?#32472;暟涔熷?#27195;崲鍒?#37734;?#37928;勫潗鏍?#32495;?#28051;紝鍥?#28051;?#37734;?#37928;?#37721;傛暟鏂?#32459;?#28051;?#28051;?/span>0?#32029;?#22669;浠?#28751;?#37734;?#37928;?#37721;傛暟鏂?#32459;?#28000;e叆浜屾鏇查潰鐨勬柟绋?#37722;庯紝鍜?/span>z鐩?#37711;?#37928;勯」鐨勭?#32472;暟?#20824;鍙?#28000;?#32480;鍖?#27996;?#37510;?/span>

寰?#37714;?#28051;涓?#28051;夎鍑芥暟鐨勬柟绋?#37722;庯紝杩?#37827;跺氨瑕佸?#26334;叆鍩虹妯″潡涓?#37928;勬?#26495;宸?#37711;?#38342;嗘潵瑙?#37712;?#38338;?#26864;?#27996;?#37510;?br />

绫?/span>math_TrigonometricFunctionRoots涓?#29781;?#37922;?#27996;?#28725;瑰涓嬪舰?#32033;鐨?#28051;夎鍑芥暟鏂?#32459;嬭繘琛屾眰瑙?#38171;?/span>

4. Conclusion

瀵?#27996;?#37734;?#28051;?#27996;屾鏇查潰姹?#27996;?#37928;?#28729;炵幇?#28533;鐪嬶紝涔熷彲浠?#28051;?#37922;?#37721;樻崲浜屾鏇查潰鐨勫潗鏍?#32495;伙紝鐩存帴灏?#37734;?#37928;?#37721;傛暟鏂?#32459;?#28000;e叆鏇查潰鐨?#27996;屾鏂?#32459;?#28051;?#38171;?/span>

鏈缁?#37718;?#32480;涔熷彲寰?#37714;?#28051;涓?#28051;夎鍑芥暟鏂?#32459;嬶紝浣嗘槸璁$畻閲?#28051;?#37721;樻崲鏇查潰?#28503;鏍?#32495;诲?#35268;瘮?#28533;?#28229;?#32048;鏇?#28598;?#37510;?/span>

浠?#28051;婇潰鐨勬?#24878;爜鍒?#37835;愬彲鐭ワ紝鍦?/span>OpenCASCADE涓?#28725;?#27996;庤В鏋?#37831;茬嚎涓?#37831;查潰姹?#27996;や娇鐢?#27996;屾澶?#26916;瑰紡绯?#37825;版潵琛?#32448;?#37928;?#37510;?#38315;?#26473;?#28751;?#27996;屾鏇茬嚎鐢?#37721;?#37825;板舰?#32033;鐨勬柟绋嬫潵琛?#32448;猴紝骞?#28000;e叆浜屾鏇查潰鐨勬柟绋嬶紝鍖?#32480;鍚?#37929;存帴?#23047;鐢?/span>math鍖?#28051;?#37928;?#23480;?#37711;?#38171;?#28598;?#26916;瑰紡鏂?#32459;嬫眰瑙?#37724;?#28051;夎鍑?#37825;版眰瑙?#23480;?#37711;?#38171;?#28725;?#37826;?#32459;嬭繘琛屾眰瑙?#37510;?/span>

5. References

1. 鍚屾祹澶?#28699;?#25652;?#37922;?#37825;板绯?/span>. ?#22158;鎬?#28000;f暟锛堢鍥?#37911;?#38171;?/span>. 楂樼瓑鏁欒偛鍑?#37911;?#32448;?/span>

2. 涓樼淮澹?/span>. 瑙?#37835;愬?#29361;綍. 鍖?#27996;?#28598;?#28699;?#37713;?#37911;?#32448;?br />

 


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)




]]>
瑙?#37835;愬?#29361;綍姹?#27996;?#28052;?#37929;寸嚎涓?#27996;屾鏇查潰http://www.2676208.com/eryar/archive/2019/01/29/IntAna_IntConicQuad.htmleryareryarTue, 29 Jan 2019 14:06:00 GMThttp://www.2676208.com/eryar/archive/2019/01/29/IntAna_IntConicQuad.htmlhttp://www.2676208.com/eryar/comments/216225.htmlhttp://www.2676208.com/eryar/archive/2019/01/29/IntAna_IntConicQuad.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216225.htmlhttp://www.2676208.com/eryar/services/trackbacks/216225.html瑙?#37835;愬?#29361;綍姹?#27996;?#28052;?#37929;寸嚎涓?#27996;屾鏇查潰

eryar@163.com

 

Abstract. OpenCASCADE provides the analytic intersection between a conic and a quadric in the package IntAna.

Key Words. Analytic geometry, intersection, coninc, quadric 

1. Introduction

OpenCASCADE涓?#37928;?#37718;?/span>IntAna鎻愪緵浜?#29785;?#37835;愬?#29361;綍鏇茬嚎锛?#27996;屾鏇茬嚎锛?#28051;庤В鏋?#37831;查潰锛?#27996;屾鏇查潰锛?#23033;?#27996;?#37510;?#29785;?#37835;?#37831;查潰涓庤В鏋?#37831;查潰姹?#27996;?#37928;?#37716;熻兘銆?#37711;?#28051;?/span>IntAna鍒?#37714;槸Intersection Analytic鐨勫墠涓?#28051;?#28699;楁瘝缂?#37712;欙紝琛?#32448;?#29785;?#37835;愬?#29361;綍姹?#27996;?#37510;?/span>

鎴?#28000;?#28699;?#26473;?#27996;?#37510;婄嚎鎬?#28000;f暟銆?#28051;?#37928;?#27996;屾鍨嬶紝鍏?#28051;?#27996;屾?#28727;鍦?#29785;?#37835;愬?#29361;綍涓?#37928;?#28051;涓?#25652;?#37922;?#28751;辨槸浜屾鏇茬嚎鍜?#27996;屾鏇查潰鏂?#32459;?#37928;?#37718;?#32480;鍙?#37711;舵?#29840;?#37928;?#37714;?#37835;?#37510;?/span>

?#28272;?#26499;涓?#29781;?#32513;?#37722;堟?#24878;爜鍒?#37835;愮?#23544;嚎涓?#27996;屾鏇查潰姹?#29785;?#37928;?#28729;炵幇?#28533;鎶?#37934;?#23534;?#37916;夛紝鍚?#37832;熷皢浜屾鏇茬嚎涓?#27996;屾鏇查潰姹?#27996;?#37928;?#37722;?#32457;嶆?#21613;喌鍋氬叏?#28528;鍒?#37835;?#37510;?/span>

2. Quadratic form

鍦?#29785;?#37835;愬?#29361;綍涓紝涓?#27996;嗕究浜?#37934;旂┒浜屾鏇茬嚎

鐨?#37713;犱綍鎬?#29840;紝鎴?#28000;?#37721;?#28000;?#38315;?#37815;?#38315;傚綋鐨勫潗鏍?#37827;?#26462;?#37721;樻崲

鎶?#37826;?#32459;?#37718;栨垚鏍?#37713;?#35120;㈠紡锛?img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203514082-441549350.png" alt="" />

?#29300;鎹?#37837;?#37713;?#35120;㈠紡涓?#37928;勭郴鏁版潵鍒?#37835;?#26473;?#28051;?#27996;屾鏇茬嚎?#27128;浠涔堟?#33580;嚎?#32029;鍗?#37734;?#37510;?#22942;?#37734;?#37510;?#37814;?#37911;╃嚎銆?#37721;屾?#33580;嚎銆?/span>

鍦?/span>OpenCASCADE涓?#29785;?#37835;愬?#29361;綍鐨?#27996;屾鏇查潰鏈?#28000;?#28051;嬪嚑绉?#32491;诲?#23350;細

l gp_Pln锛氬钩?#28528;鍙湅浣?#27996;屾鏇查潰鐨?#37911;逛緥

l gp_Sphere锛?#29785;?#37835;愮?#20910;潰

l gp_Cylinder锛?#29785;?#37835;?#37836;遍潰

l gp_Cone锛?#29785;?#37835;?#38335;ラ潰

杩?#27996;?#29785;?#37835;?#37831;查潰?#20824;鍙?#28000;?#32513;?#28051;?#23047;鐢?#27996;屾澶?#26916;瑰紡?#28533;琛?#32448;猴紝鍗?#26473;?#28051;?#27996;屾澶?#26916;瑰紡鐨勭?#32472;暟纭?#28729;?#27996;?#28051;涓?#27996;屾鏇查潰銆?/span>OpenCASCADE涓?#37929;?#25652;?#37928;勭?#32472;槸IntAna_Quaric锛?/span>

 

 3. Math Direct Polynomial Roots

OpenCASCADE涓?#32491;?/span>IntAna_IntConicQuad涓?#37819;愪緵浜?#27996;屾鏇茬嚎涓?#27996;屾鏇查潰姹?#27996;?#37716;熻兘?#32029;鍏?#28051;?#29825;$畻鐩寸嚎涓?#27996;屾鏇查潰鐩?#27996;?#37928;?#37713;?#37825;版槸锛?/span>

  //! Creates the intersection between a line and a quadric.

  Standard_EXPORT IntAna_IntConicQuad(const gp_Lin& L, const IntAna_Quadric& Q);

鍏?#28729;炵幇鍘熺爜涓?#23049;?#38322;?#28641;?#28051;嬶細

 

?#29300;鎹?#37711;舵敞閲婏紝鍙?#37933;?#37711;?#29825;$畻杩?#32459;嬪涓嬶?#27692;皢鐩寸嚎鏂?#32459;?#37922;?#37721;?#37825;板舰?#32033;琛?#32448;猴紝

灏?#37721;傛暟琛?#32448;?#37928;?#37929;寸嚎鏂?#32459;?#28000;e叆浜屾鏇查潰鏂?#32459;嬶紝鍖?#32480;鍙?#23536;?#28051;涓?#27996;屾澶?#26916;瑰紡?#32029;瀵?#27996;屾澶?#26916;瑰紡杩?#29723;屾眰瑙?#37719;?#23536;?#37929;寸嚎涓?#27996;屾鏇查潰鐨?#27996;?#37904;?#37510;?/span>

寰?#37714;?#28051;涓?#27996;屾澶?#26916;瑰紡鐨勬柟绋?#37722;庯紝杩?#37827;跺氨瑕佸?#26334;叆鍩虹妯″潡涓?#37928;勬?#29256;嵁宸?#37711;?#38342;嗘潵瑙?#37712;?#38338;?#26864;?#27996;?#37510;?/span>

 

绫?/span>math_DirectPolynomialRoots鍙?#28000;?#37922;ㄦ潵瀵?/span>4娆?#37721;婁互涓?#37928;?#28598;?#26916;瑰紡鏂?#32459;嬭繘琛屾眰瑙?#37510;傚浜?#37718;?#32480;鍚?#37928;?#37929;寸嚎涓?#27996;屾鏇查潰鏂?#32459;嬫槸涓涓?#27996;屾澶?#26916;瑰紡鏂?#32459;嬶紝鍒欎娇鐢?#26473;?#28051;?#32491;?#37929;存帴杩?#29723;屾眰瑙?#37510;?/span>

4. Conclusion

浠?#28051;婇潰鐨勬?#24878;爜鍒?#37835;愬彲鐭ワ紝鍦?/span>OpenCASCADE涓?#28725;?#27996;庤В鏋?#37831;茬嚎涓?#37831;查潰姹?#27996;や娇鐢?#27996;屾澶?#26916;瑰紡绯?#37825;版潵琛?#32448;?#37928;?#37510;?#38315;?#26473;?#28751;?#37826;?#32459;?#37718;?#32480;鍚?#37929;存帴?#23047;鐢?/span>math鍖?#28051;?#37928;?#23480;?#37711;?#28725;?#37826;?#32459;嬭繘琛屾眰瑙?#37510;?/span>

?#23047;鐢?/span>OpenCASCADE?#21851;缁?#28028;氬?#25120;幇浠?#28000;?#37928;勭紪?#29212;椋?#37837;?#28052;熸槸鏈?#28051;瀹?#37928;勫璺?#37928;勶紝鍗?#28051;涓?#32491;讳細鎻愪?#28056;嚑涓?#37835;?#38315;?#37713;芥暟?#32029;灏?#28051;?#37722;屽?#20635;暟杩?#29723;?#26440;撳叆銆?#37832;?#37928;?#37734;?#37835;?#38315;?#37713;芥暟涓?#29835;?#37922;?#37714;濆鍖?#37713;芥暟Init()?#28533;瀵圭畻娉?#38343;瑕?#37928;?#37711;?#28000;?#26440;撳叆鏁版嵁杩?#29723;?#37714;濆鍖栵紝鏈?#37928;?#37714;?#37929;存帴鍦?#37835;?#38315;?#37713;芥暟涓?#29835;?#37922;?#37928;勮?#30075;鍑芥暟Perform()銆?#28641;?#37835;?#37835;?#38315;?#37713;芥暟涓病鏈夎皟鐢?#29825;$畻鍑芥暟Perform()?#32029;鍒?#38343;瑕?#37813;?#37716;?#29835;?#37922;?/span>Perform()銆傜畻娉?#37928;勬垚鍔?#38315;?#26473;?#37713;芥暟IsDone()?#28533;妫娴?#37510;傛牴鎹?#22955;娴嬪垽鏂槸鍚?#37721;?#37713;?#29825;$畻鍊?#37510;?/span>

鏄?#38010;?#28751;?#29781;?#37714;?#27996;嗭紝绁?#28598;?#28729;?#37734;?#37826;?#37928;?#28051;骞?#38322;屽績鎯?#27996;嬫垚?#32029;涓?#27996;嬪?#20635;剰锛?/span>

5. References

1. 鍚屾祹澶?#28699;?#25652;?#37922;?#37825;板绯?/span>. ?#22158;鎬?#28000;f暟锛堢鍥?#37911;?#38171;?/span>. 楂樼瓑鏁欒偛鍑?#37911;?#32448;?/span>

2. 涓樼淮澹?/span>. 瑙?#37835;愬?#29361;綍. 鍖?#27996;?#28598;?#28699;?#37713;?#37911;?#32448;?/span>



]]>
RvmTranslator7.0-IFChttp://www.2676208.com/eryar/archive/2019/01/19/RvmTranslator70_IFC.htmleryareryarSat, 19 Jan 2019 06:11:00 GMThttp://www.2676208.com/eryar/archive/2019/01/19/RvmTranslator70_IFC.htmlhttp://www.2676208.com/eryar/comments/216214.htmlhttp://www.2676208.com/eryar/archive/2019/01/19/RvmTranslator70_IFC.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216214.htmlhttp://www.2676208.com/eryar/services/trackbacks/216214.htmlRvmTranslator7.0-IFC

eryar@163.com

 

RvmTranslator can translate the RVM file exported by AVEVA Plant(PDMS)/AVEVA Marine to STEP, IGES, STL, DXF, 3D PDF, OBJ, 3DXML, IFC,.etc. So it can be used for exchanging model data between other CAD software, such as Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, .etc.

I am pleased to announce a new release of RvmTranslator7.0.

RvmTranslatoer7.0 is a major release, which includes the following new features: translate PDMS rvm to IFC file.

RvmTranslator鍙?#28000;?#28751;?/span>AVEVA PDMS/Plant/Marine涓?#28725;?#37713;?#37928;?/span>RVM?#26499;浠?#26473;?#29723;屽彲瑙?#37718;栵紝浠?#37721;?#28751;?/span>RVM杞?#37817;㈡垚?#29238;瑙?#37928;?#28051;夌淮?#26499;浠舵?#29006;紡銆?#28641;?/span>STEP?#32029;IGES?#32029;STL?#32029;DXF, OBJ, 3DPDF, 3DXML, IFC绛夛紝?#31350;浜?#28051;?#37711;?#28000;?/span>CAD绯?#32513;?#26473;?#29723;屾?#29256;嵁浜?#37817;紝濡?/span>Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley绛?#37510;?/span>

RvmTranslator7.0澧?#37716;?#27996;?#28051;涓?#37826;?#37928;勬枃浠?#26462;?#37817;?/span>IFC銆?IFC鐩?#37715;嶆槸鍥介檯閫?#37922;?#37928;?/span>BIM鏍?#37713;嗭紝?#24135;鍦?#23536;?#28598;?/span>BIM杞?#28000;?#38318;介噰鐢?#37711;朵綔涓?#37825;版嵁浜?#37817;?#37928;勬爣鍑?#37510;?#28051;?#27996;嗕娇PDMS涓?#37928;勬ā鍨嬪彲浠?#28725;煎叆BIM杞?#28000;讹紝寮鍙?#27996;?#23005;?#37716;熻兘銆?#32459;嬪簭杞?#37817;?#27996;?/span>PDMS涓?#37713;犱綍妯?#37736;嬪強鏍戝舰缁撴瀯銆?/span> 

 

 

IFC(IndustryFoundationClasses)

 IFC?#27128;鐢?#37733;介檯鍗?#37722;?#23480;?#28003;滆仈鐩?/span>IAI(InternationalAllianceForInteroperability)搴?#37922;ㄩ潰鍚戝?#30789;薄鎶鏈墍寤虹珛鐨?#28103;℃伅鏍?#37713;?#37510;?/span>IAI鐨?#37721;戝?#26337;捣婧?#27996;?/span>1994骞?/span>8鏈堬紝鐢辩編鍥?/span>12瀹跺叕鍙?#28000;?/span>AutoCAD13鐨?/span>ARX绯?#32513;?#28051;哄?#34425;?#32029;鐮旂┒涓?#37722;屽簲鐢?#26462;?#28000;?#37734;?#37719;?#37722;?#23480;?#28003;?#37928;?#37721;兘鎬э紝缁撴灉鍙?#29785;?#28051;?#28003;?#37721;?#29723;屾洿鏈?#37721;?#29785;?#37928;勭粡娴?#37825;?#37929;?#37510;?#27996;?/span>1995骞?#37711;嬫湇浜?#37837;?#36423;?#37928;?#38338;?#26864;?#37722;庯紝鍙?#29723;?#27996;?#32480;绉?/span>IFC鐨?#28103;℃伅浜?#37817;?#37837;煎紡?#32029;1995骞?/span>10鏈堬紝浠?#28000;?#37734;?#37718;楃?#24226;垚?#29659;IAI缁?#32513;?#37510;?#39582;跺?#25120;幇杩?#23480;叉槸鍏?#37918;?#23480;?#28051;?#37928;?#38338;?#26864;橈紝闅?#37722;?#28000;?#28000;?#28751;?#23005;?#37804;?#37807;虫帹骞?#37714;?#37711;?#28000;?#37733;?#28729;讹紝寰?#36423;?#37928;?#37711;?#28000;?#37733;?#28729;朵篃鐩?#32513;ф垚?#29659;浜?/span>IAI鍒?#38318;?#37510;?#39582;?#37734;?/span>1996骞?#27996;?#28028;?#37825;?#37721;?#23534;浜?#32471;?#28051;娆?#37928;?/span>IAI鍥介檯?#32048;璁?#37510;?#37929;?#37715;嶆垚鍛樻兜鐩?/span>24涓?#37733;?#28729;跺強8涓?#38340;勫睘鎴?#23049;?#37712;?#37928;?#37733;綋?#32029;濡傛?#34411;床銆?#23049;?#37733;?#37510;?#23536;?#37733;?#37510;?#37827;ユ湰銆侀煩鍥?#37510;?#37718;?#23046;?#37510;?#37826;?#37716;犲潯鍙婅嫳鍥?#32475;夛紝鍏?#32513;勬垚鍗曚綅鍏?#29825;?/span>131涓紝鍖呭惈寤虹瓚涓?#28051;?#37510;?#37813;?#37718;呭晢銆?#37824;?#25652;?#28729;?#37723;?#37510;佸鏈?#37719;曚綅銆佽祫浜?#32480;?#37918;?#37510;?#26462;?#28000;?#37720;傚晢銆佸缓璁?#37711;?#37721;?#32475;?#37510;?/span>

IAI涓?#29781;?#37929;?#37837;?#28051;?#37819;愪緵AEC鍙?/span>FM鍘傚晢?#32029;?#24143;寰?#37929;?#37722;?#37719;?#28051;寤虹瓚淇℃伅鐨勬矡閫?#22959;″瀷(SingleBuildingInformationModel,BIM)?#32029;IAI璁?#28051;?/span>BIM?#20824;鏈?#37825;?#37713;?#28751;戞垚?#28272;鍙?#37819;?#26946;樻晥鐜囷紝鏁?#32457;?#28051;?/span>buildingSMART(浠?#38001;?#37828;?#37928;勬?#29808;?#24531;?#34425;瓚)IAI甯屾湜鎶婃墍鏈?#37928;勫?#34425;瓚淇℃伅閫?#26473;?#28051;濂?#37837;?#37713;?#28751;?#37711;舵暣鍚?#37734;?#28051;璧凤紝鍍忔槸鎶?#38338;?#37510;佸绛?#28729;?#38340;呭?#30789;薄浠?#37721;?#28051;浜?#32460;?#38338;?#37510;?#32513;撴瀯杩?#32459;嬬瓑鎶借薄姒傚康浠?#37922;?#28699;?#28103;℃伅鏂瑰紡鏈夌郴缁?#37928;?#37723;堢幇鍑烘潵銆?#26473;?#27996;?#28103;℃伅璁?#37722;?#32457;?#28051;?#37722;?#26462;?#28000;?#37928;?#38338;?#37721;?#28000;?#27996;?#37929;?#28028;?#38315;?#28051;?#37714;?#27996;紝渚嬪?#20636;?#24228;?#27128;鍥介檯闂?#37928;?#37711;?#37722;?#29831;?#29815;涓鑸紝IFC?#31350;?#27128;涓绉?#37922;?#37711;?#37722;?#29831;?#29815;?#32029;鍦?#23524;虹瓚鐢?#37723;?#37723;?#37832;?#28051;?#37813;?#23125;?#37711;?#27996;?#37829;鸿兘瀵硅薄鐨?#29785;掕壊銆?/span>

IFC?#27128;涓绉?#23534;鏀炬?#29840;?#28103;℃伅鏍煎紡?#32029;浣?#28051;?#28103;℃伅鐨?#27996;?#37817;?#28000;?#37721;?#37711;?#27996;娇鐢紝鍦?#37814;鏈?#28051;?#38322;?#37922;?/span>BIM姒傚康鍙婇潰鍚戝?#30789;薄绛夋潵杩?#29723;?#28103;℃伅鍐?#28729;?#37928;?#28598;?#37918;嗭紝鐩?#37928;?#37734;?#27996;庤鍦?#23005;?#26864;嗗煙鍐?/span>BIM绯?#32513;?#37928;?#37722;?#32457;?#28051;?#37722;屽簲鐢?#26462;?#28000;讹紝鍥?/span>IFC淇℃伅鏍煎紡鐨勬爣鍑?#37718;?#37721;?#28051;?#22183;鎬э紝鑰屾湁涓涓?#28103;℃伅浜?#37817;?#37928;勬爣鍑?#37837;煎紡鍙?#28000;?#38316;?#23536;紝?#23047;涓?#37722;?#26462;綋闂?#37928;?#28103;℃伅鍙?#37929;?#27996;?#27996;?#37817;紝姣嬮』鍐?#37722;勮嚜寤虹?#23337;俊?#20229;?#32029;閬?#37711;?#28103;℃伅浼?#38315;?#37827;跺彂鐢熼敊?#32033;閫犳垚璐?#37716;?#37724;屾椂闂?#28051;?#37928;勬?#29111;?#24971;紝鍥介檯闂?#37722;?#28598;?#26462;?#28000;跺叕鍙?#38171;?#28186;?/span>Autodesk銆?/span>Bentley銆?/span>Graphisoft銆?/span>TEKLA銆?/span>NEC銆?/span>Fujitsu绛?#38171;夛紝?#20824;宸?#38340;?#32513;?#23534;鍙?#28000;?/span>BIM姒傚康缁?#37722;?/span>IFC鏍?#37713;?#37928;?#26462;?#28000;?#37510;?/span> 

Download RvmTrnaslator

https://yun.baidu.com/pcloud/album/info?uk=3808749571&album_id=3634993082542187183



]]>
QString::toStdString() crasheshttp://www.2676208.com/eryar/archive/2019/01/17/std_string_crash.htmleryareryarThu, 17 Jan 2019 13:50:00 GMThttp://www.2676208.com/eryar/archive/2019/01/17/std_string_crash.htmlhttp://www.2676208.com/eryar/comments/216209.htmlhttp://www.2676208.com/eryar/archive/2019/01/17/std_string_crash.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216209.htmlhttp://www.2676208.com/eryar/services/trackbacks/216209.html浠?#28598;?#37734;≦t涓?#23534;鍙?#32459;嬪簭鏃讹紝閬?#37714;?#28051;涓猀String::toStdString()鐨?#37712;呭瓨闂?#26864;橈紝鐢?#23049;?#28641;?#28051;嬶細

void test(const QString& theFileName)
{
    std::string aFileName = theFileName.toStdString();
    std::ofstream aFile(aFileName);
    aFile << aFileName;
}

鍦?#37713;芥暟杩樻病鎵?#29723;?#28729;屽氨?#31359;婧?#27996;嗭紝璺熻釜鍙戠幇?#27128;std::string鐨?#38338;?#26864;?#37510;?#37832;鍚?#37721;戠幇?#27128;鍥?#28051;哄紩鐢?#37928;勫簱鐨凴untime Library涓?#37722;屽?#33392;嚧鐨勶紝涓涓槸MDd?#32029;涓涓槸MTd?#32029;鍚庢潵鏀规垚涓?#22183;鍗?#37721;?#37510;?/p>



]]>
Consolas 瀛椾綋http://www.2676208.com/eryar/archive/2019/01/15/Consolas.htmleryareryarTue, 15 Jan 2019 08:53:00 GMThttp://www.2676208.com/eryar/archive/2019/01/15/Consolas.htmlhttp://www.2676208.com/eryar/comments/216204.htmlhttp://www.2676208.com/eryar/archive/2019/01/15/Consolas.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216204.htmlhttp://www.2676208.com/eryar/services/trackbacks/216204.html

姒?#26473;?

杩欏瀛楀?#23337;娇鐢?#27996;?#23536;?#26462;?#37928;凜learType 瀛楀瀷骞虫粦鎶鏈紝骞堕殢鍚學indows Vista銆丱ffice 2007鍙奙icrosoft Visual Studio涓?#37721;?#29723;岋紝鎴?#37721;?#37734;?#23536;?#26462;?#37928;勭綉绔?#28051;?#26462;?#37510;?#37734;╓indows Vista鐨?濂?#37826;板?#26944;瀷涓紝Consolas杩?#28028;?#27996;庡墠鐗圵indows涓?鐨?娆?#37712;呭缓瀛楀?#23350;細Lucida Console涓嶤ourier New?#32029;涓?#29781;?#28051;?#32459;嬪簭浠g爜鐨勬樉绀?#28699;楀?#23341;岃璁?#37928;勶紝鐗?#37714;?#28052;嬪?#21228;槸瀹?#37928;?#8220;0”瀛?#37716;犲叆浜?#28051;鏂滄?#22263;紝浠?#37826;逛究涓?#28699;楁瘝“O”鍒?#26440;?#37510;? 鍦–onsolas涔嬪?#23951;紝绋嬪簭浠g爜鐨勬樉绀?#28699;楀?#23338;ぇ澶?#28051;篊ourier New鎴?#37711;?#28000;?#32475;?#28729;?#28699;楀?#23350;紝瀛楀瀷鐨勬煍杈?#38171;?#37721;?#38335;娇锛?#37825;堟灉鍒?#28186;?#28051;?#27996;哄?#28355;?#20171;?#37815;?#23534;鍚?#37812;?#37711;?#38338;紝鐒惰孋onsolas?#27128;涓?#28051;?#37836;?#26440;?#37825;堟灉鑰岃璁?#37928;勫?#26944;?#23350;紝鐗?#37714;槸涓?#27996;嗘惌?#21412;寰?#26462;?#37928;凜learType鎶鏈紝濡?#37835;?#28051;?#23534;鍚疌learType?#32029;Consolas鐨勬樉绀?#37825;堟灉?#32048;鎵撳ぇ鎶?#37813;?#37510;?#37721;?#28598;栵紝ClearType鎶鏈?#26473;?#38343;瑕佹惌閰嶆?#21449;?#33333;樉绀?#37731;?#37813;嶄細鏈?#37832;浣?#29723;ㄧ幇銆?

搴?#37922;?

浼?#32513;?#28051;婏紝绋嬪紡?#32042;鍐?#37723;?#37734;╓indows鐜?#28583;?#25652;?#28051;嬶紝涓鑸?#38318;戒細?#23047;鐢–ourier New鎴?#37711;?#28000;?#26473;?#28028;?#37928;?#32475;?#28729;?#28699;椾綋?#28533;鏄?#32448;?#32459;嬪簭浠g爜銆?#38315;氬父鐢ㄦ潵?#32042;鍐?#32459;嬪簭浠g爜鐨?#32459;嬪簭閮戒細璁╃紪绋?#37723;?#38315;?#37815;?#37922;ㄦ潵鏄?#32448;?#32459;嬪簭浠g爜鐨勫?#26942;綋銆?#37922;?#27996;嶤ourier New鐨勫?#26944;?#23339;瘮杈冭偉澶э紝?#23047;?#30241;涓?#37922;婚潰鎴?#26916;甸潰?#22669;?#20824;鏄?#32448;?#37928;?#32459;嬪簭浠g爜澶?#28051;?#37713;?#28751;?#37510;侰onsolas闄?#27996;嗚兘澶?#37734;?#26440;?#28751;?#37928;勭┖闂?#37828;?#32448;?#37831;?#28598;?#37928;?#37712;?#28729;癸紝瀹?#37928;勬?#21614;?#26495;?#26944;瀷浜︿娇?#32042;绋?#37723;樿兘澶?#37831;?#36423;?#37817;?#37928;?#37714;?#26440;ㄦ瘡涓涓枃瀛?#37510;?br />
杩?#28051;?#28699;椾綋鐢ㄦ潵?#32042;?#29212;寰堟?#21614;?#24110;紝鑸?#37832;嶏紝涓?#29781;佹槸鏁板瓧0鍜屽?#26945;瘝0鍙?#28000;?#28729;?#37828;?#37928;?#37718;?#37714;?#37713;烘潵?#32029;杩?#38322;屽仛涓?#28598;?#36423;橈紝鏂逛究鍦ㄧ紪?#29212;鐜?#28583;?#28051;?#29825;?#32515;?#26473;?#28051;?#28699;椾綋銆?img src ="http://www.2676208.com/eryar/aggbug/216204.html" width = "1" height = "1" />

]]>
Mesh BRep Shapeshttp://www.2676208.com/eryar/archive/2019/01/06/BRepMesh.htmleryareryarSun, 06 Jan 2019 02:49:00 GMThttp://www.2676208.com/eryar/archive/2019/01/06/BRepMesh.htmlhttp://www.2676208.com/eryar/comments/216169.htmlhttp://www.2676208.com/eryar/archive/2019/01/06/BRepMesh.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216169.htmlhttp://www.2676208.com/eryar/services/trackbacks/216169.html

Mesh BRep Shapes

eryar@163.com

Abstract. 褰撳OpenCASCADE鐨?/span>BRep琛?#32448;?#23049;?#37928;勬?#29256;嵁缁撴?#21228;湁浜?#28051;瀹?#37928;?#37918;?#29785;?#37722;庯紝寤?#29825;?#37721;?#28000;ヨ嚜宸?#28729;炵幇涓涓?#37828;?#32448;?#37825;版嵁鐢熸垚鐨?#37716;熻兘?#32029;鍗崇綉鏍煎墫鍒?#37716;熻兘銆?/span>

Key Words. BRep, Mesh, Triangulation

1. Introduction

鍦?/span>OpenCASCADE涓綉鏍煎墫鍒?#37716;熻兘?#27128;寰?#38322;嶈鐨?#28051;涓?#22959;″潡?#32029;浠?#37721;?#37922;?#27996;?#37922;熸垚妯″瀷鐨?#37721;?#29785;?#37718;?#37825;版嵁?#32029;杩?#37721;?#37922;?#27996;?/span>HLR娑?#38341;愶紝瀵?#27996;?#32450;?#37825;?#23033;?#27996;ょ畻娉曚篃?#27128;?#29056;浜庣綉鏍?#37825;版嵁銆?/span>OpenCASCADE寮婧?#37911;堟湰涓?#37928;勬ā?#28513;TKMesh鍙?#28000;?#37922;ㄦ潵鐢熸垚?#32137;鏍?#37928;勬樉绀?#37825;版嵁?#32029;涓?#29781;?#37928;勭被涓?/span>BRepMesh_IncrementalMesh銆?/span>

鍦ㄤ娇鐢?/span>BRepMesh_IncrementalMesh鐨?#26473;?#32459;?#28051;?#37721;戠幇鍏跺墫鍒嗙?#24807;害?#29678;?#32029;涓旂?#24807;害涓嶄究浜庢帶鍒?#37510;?#28641;傚涓涓?#37918;?#26473;?#29723;岀綉鏍煎墫鍒嗭紝鎯?#23536;?#37714;?#28051;涓?#32494;楃硻鐨勬?#22559;灉?#32029;鍗?#28051;涓?#28598;?#26440;瑰舰?#32029;?#23047;鐢?/span>BRepMesh_IncrementalMesh?#27128;涓?#28729;?#37828;撳緱鍒?#37928;?#37510;?/span>

濡?#28051;?#37733;炬墍绀?#28051;?#37722;?#28051;涓?#37918;?#37928;?#28051;?#37722;?#37928;勫墫鍒嗙?#24807;害寰?#37714;?#37928;勬ā?#28727;銆?#28051;?#27996;嗚兘?#31807;纭?#37818;?#37714;剁綉鏍煎墫鍒嗙?#24807;害?#32029;浠ヤ究鍚?#37832;熶娇鐢?/span>LOD绛?#28028;?#37718;栫畻娉曪紝?#22172;宸?#28729;炵幇涓涓綉鏍煎墫鍒?#37716;熻兘銆?/span>

?#32137;鏍煎墫鍒?#37928;?#28051;?#29781;佹?#29882;?#28751;辨槸閬?#37720;嗘瘡涓?/span>TopoDS_Face鐨?/span>TopoDS_Wire?#32029;?#29300;鎹?/span>Wire鎵?#37714;?#26440;圭?#23678;垨?#28528;涓?#37928;勫?#26048;礊銆?#28751;?/span>Wire瀵瑰簲鍒?#27996;岀淮鍙傛暟绌?#38338;达紝骞跺浜岀淮鍙傛暟绌?#38338;?#28051;?#37928;?#26440;圭晫鍏?#26473;?#29723;?#28051;娆?#28051;夎?#25492;綉鏍煎墫鍒?#37510;傚浜?#39582;抽潰?#28533;璇达紝鍙?#38343;瑕?#26473;?#28051;姝?#28751;?#37721;?#28000;ユ弧瓒?#37721;?#29785;?#37718;?#37928;勮姹?#37510;傚浜?#37711;?#28000;?#37831;查潰?#28533;璇达紝灏?#38343;瑕?#37734;?#27996;岀淮鍙傛暟绌?#38338;?#28051;?#26864;?#28598;?#37819;掑叆涓浜?#37904;癸紝浠ヤ娇鏈缁?#37922;熸垚鐨勭綉鏍兼弧瓒冲墫鍒嗙?#24807;害瑕?#23033;?#37510;?#37832;鍚?#28751;?#27996;岀淮鍙傛暟绌?#38338;?#37928;?#28051;夎?#25489;墫鍒?#37828;?#28751;?#37714;?#28051;夌淮绌?#38338;?#37510;?/span>

2. Mesh Boundary Region

鍥?#28051;轰娇鐢?/span>BRepBuilderAPI_MakeFace鍙?#28000;?#38315;?#26473;?/span>Add(TopoDS_Wire)?#28533;?#22346;鍔犻潰涓?#37928;勫紑瀛旓紝?#22669;浠?#28051;涓?/span>TopoDS_Face?#32048;鏈?#28598;?#27996;?/span>1涓?#37928;?/span>TopoDS_Wire銆?#37813;?#37713;?#28598;?#26440;圭晫鍜?#37712;呭瓟Wire鍚?#37721;?#26473;?#29723;?#28051;娆?#28051;夎?#25489;墫鍒嗭紝濡?#28051;嬪?#28844;墍绀?#38171;?/span>

 

濡?#28051;?#37733;炬墍绀猴紝瀵?#27996;?#39582;抽潰鑰岃█?#32029;鐩存帴瀵?#26440;圭?#23677;強鍐呭瓟杩?#29723;?#28051;娆?#28051;夎?#25489;墫鍒?#37719;?#37721;?#28000;?#23536;?#37714;版弧?#21104;鐨勭綉鏍?#37825;版嵁銆傚浜?#37831;查潰鑰岃█?#32029;杩欐樉鐒舵槸涓嶆弧瓒崇?#24807;害瑕?#23033;?#37928;?#37510;?/span>

 

濡?#28051;?#37733;炬墍绀?#28051;虹?#20910;潰鐨勭涓娆?#28725;?#26440;圭晫杩?#29723;?#28051;夎?#25489;墫鍒?#23536;?#37714;?#37928;勬?#22559;灉銆?#37733;?#28051;?#37734;?#28051;涓?#37721;傛暟涓?#37928;?#26440;规槸閫鍖?/span>Degenerated杈癸紝?#22669;浠?#38315;鍖?#26440;?#37928;?#37721;傛暟绌?#38338;?#28051;婃病鏈夊潎鍒?#37510;?#28751;?#37721;傛暟绌?#38338;?#37928;?#28051;夎?#25489;墫鍒?#37828;?#28751;?#37714;?#28051;夌淮绌?#38338;?#37722;庯紝寰?#37714;?#37928;勬槸涓鏉$嚎?#32029;鍏?#28729;炴槸涓?#28051;?#38344;為鍖?#26440;?#37510;?/span>

 

3. Deflection Control

瀵?#27996;?#37831;查潰?#28533;璇达紝濡?#37835;?#37929;?#28725;?#26440;圭晫杩?#29723;?#28051;娆?#28051;夎?#25489;墫鍒嗭紝?#27128;杈?#28051;?#37714;扮?#24807;害瑕?#23033;?#37510;?#28051;?#27996;嗕娇鏇查潰?#32137;鏍煎墫鍒?#37825;堟灉鏇村?#26020;紝灏?#38343;瑕佸鎸夎?#22317;?#23677;墫鍒?#37722;?#37928;勭綉鏍?#26473;?#29723;屾?#25489;叆鐐?#32513;?#32513;?#37715;?#37714;?#37510;傚浜?#28051;婇潰鐞冮潰鐨?#37721;傛暟绌?#38338;?#37718;哄?#29122;紝?#29300;鎹?#32494;惧害瑕?#23033;?#37819;掑叆鐐瑰墫鍒?#37722;?#37928;?#32513;撴灉濡?#28051;嬪?#28844;墍绀?#38171;?/span>

 

寰?#37714;?#37928;?#28051;夌淮鏁堟灉濡?#28051;嬪?#28844;墍绀?#38171;?/span>

 

4. Demo

涓嬮潰缁?#37713;?#37713;?#28051;嚜宸?#28729;炵幇?#32137;鏍煎墫鍒?#37928;?#32513;撴灉涓?/span>OpenCASCADE鐨?/span>TKMesh浣?#28051;?#28725;规瘮锛?/span>

 

涓?#37733;?#28051;鸿嚜宸?#28729;炵幇?#32137;鏍煎墫鍒嗙畻娉?#28725;规き鐞冮潰鐨勭綉鏍煎墫鍒?#32513;撴灉

 

涓?#37733;?#28051;?/span>TKMesh?#32137;鏍煎墫鍒嗙畻娉?#28725;规き鐞冮潰鐨勭綉鏍煎墫鍒?#32513;撴灉

 

涓?#37733;?#28051;鸿嚜宸?#28729;炵幇?#32137;鏍煎墫鍒嗙畻娉?#28725;规き鍦?#37916;潰鐨勭綉鏍煎墫鍒?#32513;撴灉

 

涓?#37733;?#28051;?/span>TKMesh?#32137;鏍煎墫鍒嗙畻娉?#28725;规き鍦?#37916;潰鐨勭綉鏍煎墫鍒?#32513;撴灉

閫?#26473;?#28051;婇潰鐨勫?#35268;瘮鍙?#28000;?#37721;戠幇?#32029;鍦?#28598;ц嚧鐩?#37722;?#37928;勬樉绀?#37825;堟灉鎯呭喌涓嬶紝OpenCASCADE浜?#37922;?#27996;?#37831;?#28598;?#37928;勯《鐐?#37724;?#28051;夎褰?#37825;版嵁銆傝嚜宸?#28729;炵幇鐨勭綉鏍煎墫鍒?#27996;?#37922;?#37928;勭綉鏍艰川閲?#37929;?#28725;瑰彲鎺?#28051;?#37804;?#38003;介珮銆?/span> 

5. Conclusion

OpenCASCADE涓?#23534;婧?#37928;勭綉鏍煎墫鍒?#25652;?/span>TKMesh鍙?#28000;?#28729;炵幇妯″瀷鐨?#37721;?#29785;?#37718;?#37825;版嵁鐢熸垚鍔熻兘?#32029;浣嗘槸瀵?#27996;庣綉鏍煎墫鍒?#37928;勭?#24807;害鍙?#37818;?#37804;?#23480;?#37510;?#28051;?#27996;嗗妯″瀷鐨勭綉鏍肩?#24807;害杩?#29723;屾洿濂?#37734;版帶鍒讹紝?#22172;宸?#28729;炵幇涓濂楃綉鏍煎墫鍒?#37716;熻兘?#32029;涓?#37804;ц兘瑕佷紭浜?/span>TKMesh銆?#37734;?#32459;嬪簭鐨勭紪鍐?#26473;?#32459;?#28051;紝鍙?#28000;?#37716;犳繁BREP鏁版嵁缁撴瀯涓?#28051;浜涙?#20634;康鐨?#37918;?#29785;?#37510;?#37832;?#37711;?#29906;?#37928;?#29831;?#38000;?#37734;?#37908;熸倝BREP鏁版嵁缁撴瀯鍚庯紝涔熷彲浠?#28751;濊瘯涓嬬綉鏍煎墫鍒?#37716;熻兘鐨?#28729;炵幇銆?/span>


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


]]>
OpenCASCADE Incremental Meshhttp://www.2676208.com/eryar/archive/2018/12/31/IncementalMesh.htmleryareryarMon, 31 Dec 2018 14:45:00 GMThttp://www.2676208.com/eryar/archive/2018/12/31/IncementalMesh.htmlhttp://www.2676208.com/eryar/comments/216159.htmlhttp://www.2676208.com/eryar/archive/2018/12/31/IncementalMesh.html#Feedback0http://www.2676208.com/eryar/comments/commentRss/216159.htmlhttp://www.2676208.com/eryar/services/trackbacks/216159.htmlOpenCASCADE Incremental Mesh

eryar@163.com

 

Abstract. OpenCASCADE IncrementalMesh is used to build the mesh of a shape with respect of their correctly triangulated parts. The blog focus on the deflection control of the algorithm.

 

Key Words. Mesh, Visualization

 

1. Introduction

Mesh?#27128;鐢熸垚涓夌淮妯?#37736;嬫樉绀?#37825;版嵁鐨?#37711;?#38335;畻娉?#37510;?/span>OpenCASCADE鐨?/span>TKMesh鎻愪緵浜嗙綉鏍煎墫鍒嗙畻娉曪紝鐢?#27996;?#37922;熸垚BREP?#32139;鐨勬樉绀?#37825;版嵁銆?#37720;熸潵鐨?#28051;浜涙枃绔?#28725;圭綉鏍煎墫鍒?#37928;勭畻娉?#37721;?#37711;?#37922;?#23049;?#26473;?#29723;?#26473;?#29831;?#37828;庯紝?#28272;?#26499;涓?#29781;佸?#22317;綉鏍煎墫鍒?#37928;勬牳蹇?#38318;?#37714;?#26473;?#29723;屾?#21342;叆鎸?#37818;橈紝鐞?#29785;?#37711;跺墫鍒嗙?#24807;害鎺?#37714;?#37720;?#37918;?#37510;傛劅鍏?#29906;?#37928;?#29831;?#38000;呭彲浠?#32513;?#37722;堟?#24878;爜?#32029;瀛?#28052;?#37711;?#28729;炵幇鏂?#23049;?#37510;傚綋鐞?#29785;?#37711;剁畻娉?#37720;?#37918;?#37722;庯紝涔熷彲浠ヨ嚜宸?#28729;炵幇涓濂?#32513;?#37722;?#28729;?#38340;?#38343;姹?#37928;勯?#27195;ц兘?#32137;鏍煎墫鍒?#25652;?#37510;?/span>

?#32137;鏍煎墫鍒?#37928;?#28051;?#29781;?#23092;?#32459;嬪涓嬶細

 

閬?#37720;?/span>TopoDS_Shape鐨?/span>TopoDS_Face?#32029;瀵?#27996;庢瘡涓?/span>TopoDS_Face?#32029;閬?#37720;?#37711;?/span>TopoDS_Wire?#32029;瀵?#27996;庢瘡涓?/span>TopoDS_Wire閬?#37720;?#37711;?/span>TopoDS_Edge?#32029;鍦ㄦ牴鎹?/span>Edge鍜?/span>Face寰?#37714;?/span>PCurve銆?#37733;?#28051;?/span>TopoDS_Wire?#27128;闂?#37722;?#37928;勶紝?#22669;浠?/span>Wire鐨?/span>PCurve?#27128;鍦?#37721;傛暟绌?#38338;?#38338;?#37722;?#37718;哄煙銆傚PCurve鍥存垚鐨?#37721;傛暟鍖哄煙杩?#29723;?#28051;夎?#25489;墫鍒嗭紝灏?#28051;夎?#25489;墫鍒?#37928;?#32513;撴灉鏄?#28751;?#37714;?#28051;夌淮绌?#38338;达紝鏈缁?#37922;熸垚?#30241;涓?/span>Face鐨勭綉鏍煎墫鍒?#37510;?#26473;?#28051;?#23092;?#32459;嬪緢濂?#37918;?#29785;o紝浣嗘槸濡備綍瀵圭綉鏍煎墫鍒?#37928;勮川閲?#26473;?#29723;屾帶鍒跺憿锛?#37719;?#37922;?#37929;?#28725;瑰皯鐨?#28051;夎?#25492;綉鏍兼潵鏇村ソ鍦?#29723;?#32448;?#28051;夌淮妯″瀷鍛?#38171;?/span>

 

2. Mesh Deflection Control

OpenCASCADE瀵?/span>BRep?#32139;杩?#29723;?#28051;夎?#25489;墫鍒嗙綉鏍?#37718;?#37928;勭?#32472;槸BRepMesh_IncrementalMesh?#32029;姝?#32491;?#37832;?#28051;?#28051;?#28051;?#29781;?#37928;?#38315;?#26916;规潵鎺?#37714;?#28051;夎?#25492;綉鏍?#37718;?#38171;氱嚎鎬?#37707;?#23480;?/span>Linear deflection鍜?#29785;掑害鍋?#23480;?/span>Angular deflection銆?/span>

涓夎?#25492;綉鏍煎墫鍒?#32471;?#28051;姝ユ槸灏嗘墍鏈?#37928;?#26440;?/span>Edge杩?#29723;岀鏁o紝鍗虫牴鎹?#28051;瀹?#37928;勭?#24807;害鐢熸垚澶氭?#30005;嚎锛?/span>

 

?#22158;鎬?#37707;?#23480;?#38340;?#37714;?#32450;?#37825;?#37928;?#28598;氭?#30005;嚎涓?#37831;茬嚎涔嬮棿鐨勮窛绂?#38171;?#29785;掑害鍋?#23480;?#38340;?#37714;舵瘡娈电嚎娈?#32468;?#38318;?#37714;囩嚎鐨?#28598;?#29785;?#37510;?/span>

绗?#27996;屾?#27128;瀵归潰杩?#29723;?#28051;夎?#25489;墫鍒?#37510;傜嚎鎬?#37707;?#23480;?#28052;?#38340;?#37714;?#32450;?#37825;?#37928;?#28051;夎褰?#28051;?#37904;?#37714;版?#33580;嚎鐨勮窛绂?#37510;?/span>

 

搴?#37922;?#32459;嬪簭搴?#29831;?#37819;愪緵閫傚綋鐨勫亸宸?#37721;傛暟浠?#26440;?#37714;?#37922;熸垚?#24359;?#21104;鐨?#28051;夎?#25492;綉鏍?#37510;?#29785;掑害鍋?#23480;?/span>Angular deflection?#30254;杈?#32480;鍗?#28051;?#37711;?#29825;镐娇鐢?#28051;涓粯璁?#37706;?#38171;?/span>12~20搴?#38171;?#37510;傜嚎鎬?#37707;?#23480;?/span>Linear deflection鏈?#32513;?#28725;?#37928;勫惈?#31647;?#32029;闇瑕?#37922;?#32459;嬪簭?#28533;缁?#28729;氭纭?#37928;勫?#37510;?#32513;?#28051;涓?#23536;?#28751;?#37928;勭嚎鎬?#37707;?#23480;?#37706;?#28028;氬?#33392;嚧?#32137;鏍煎墫鍒?#26473;?#28725;嗭紝娑?#38000;?#28598;?#38322;?#37712;呭瓨鍙?#35120;卞搷鏄?#32448;?#37825;?#37916;?#38171;?#28003;嗘槸鍊?#28598;?#28598;?#23536;?#37714;?#37928;勭綉鏍?#37825;堟灉灏辨槸鏄?#32448;?#28598;?#37930;?#37510;傛墍浠?#28725;?#27996;?/span>LOD鐨勭綉鏍兼潵璇达紝闇瑕佹牴鎹?#22959;?#37736;嬪?#21700;?#21578;潵璁?#32515;?#37929;?#25652;?#37928;勭嚎鎬?#37707;?#23480;?#37706;?#37510;?/span>

涓婇潰瀵圭綉鏍煎墫鍒?#37928;?#37721;傛暟璁?#32515;?#26473;?#29723;?#27996;?#28000;?#32513;嶏紝涓嬮潰瀵圭綉鏍煎墫鍒?#37928;?#28729;炵幇鍘?#37918;?#26473;?#29723;?#29831;?#37828;?#37510;?#37733;?#28051;?#37831;茬嚎鏇查潰?#27128;涓夌淮鐨勶紝鑰屽鏇查潰杩?#29723;屽墫鍒?#37928;勫?#26334;眰涓夎?#25489;墫鍔熻兘?#27128;涓?#27996;岀淮涓夎?#25489;墫鍒?#25652;擄紝?#22669;浠ョ綉鏍煎墫鍒嗘?#37928;勬?#29882;槸瀵?#37831;茬嚎鍦?#27996;岀淮鍙傛暟绌?#38338;?#26473;?#29723;屽墫鍒嗭紝灏?#37721;傛暟绌?#38338;村墫鍒?#37928;?#32513;撴灉閫?#26473;?#37831;查潰鍙傛暟鏂?#32459;嬫槧灏?#37733;?#37714;?#28051;夌淮绌?#38338;?#37510;?#38315;?#26473;?#28725;?/span>pcurve鍥存垚鐨?#37721;傛暟绌?#38338;?#38338;?#37722;?#37718;哄煙杩?#29723;?#27996;岀淮涓夎?#25489;墫鍒嗭紝鍗?#37721;?#28725;?#28051;夌淮鏇查潰杩?#29723;屽墫鍒?#37510;傜被BRepMesh_FastDiscretFace?#27128;瀵规瘡涓?/span>TopoDS_Face杩?#29723;岀鏁o紝鍏?#28051;?#37713;芥暟control()?#27128;鐢ㄦ潵鎺?#37714;?#37922;熸垚?#32137;鏍?#37928;勮川閲?#37928;?#37510;?/span>

 

鏈澶?#26473;?#28000;?#23046;?#37825;版槸11娆?#37510;?#37734;ㄦ瘡涓娆?#26473;?#28000;?#26473;?#32459;?#28051;紝妫鏌?#37922;熸垚鐨勬墍鏈?#28051;夎褰?#37734;?#37721;傛暟绌?#38338;?#28051;?#36423;?#37904;?#28598;?#28051;?#37831;查潰鐨勮窛绂绘槸鍚︽弧瓒崇嚎鎬?#37707;?#23480;紝濡?#37835;?#28051;嶆弧瓒筹紝鍒欐?#25489;叆鏂?#37928;?#37904;?#28000;ヤ究涓嬫杩?#28000;?#37510;?/span>

 

浠?#28051;婇潰鐨?#28000;g爜鍙?#28000;ョ湅鍑?#37711;?#28729;炵幇鎬?#29882;?#28051;?#37711;?#32491;?#37722;?/span>Incremental杩樻槸寰堣创鍒?#37928;勶紝鍗冲閲?#23049;?#37510;?/span>

 

 

3. Conclusion

OpenCASCADE鐨勭綉鏍煎墫鍒?#28051;綉鏍艰川閲?#37818;?#37714;舵槸鐩?#28725;?#38322;嶈鐨勬牳蹇?#37716;熻兘銆?#37734;?#37918;?#29785;?#37711;?#37720;?#37918;?#37722;庯紝鍙?#28000;ヨ嚜宸?#28729;炵幇涓涓?#37831;?#23059;呮櫚鐨勭綉鏍煎墫鍒?#25652;?#37510;?/span>

 

2018骞?#28751;?#26473;?#32513;?#37833;?#27996;嗭紝杩?#28051;骞?#37824;惰幏棰?#28051;帮紝鍏?#28051;?#37832;澶?#37928;勬?#24816;幏灏辨槸鏈?#27996;嗚嚜宸?#37928;勫皬瀹?#28729;?#37510;?/span>

 

鍒?#27996;?#37714;涘缓浠?#37706;?#37510;傝?#30028;劧OpenCASCADE涓嶆槸瀹岀編鐨勶紝浣嗘槸濂规槸鐩?#37715;?#28051;?#37923;?#28051;婂敮涓涓娆?#37716;熻兘鐩?#28725;?#28729;屽杽鐨勫紑鏀?#37928;?#37713;犱綍閫犲?#23338;簱銆?/span>OpenCASCADE鐨勫紑鏀?#37714;?#27996;紝缁欏?#29808;甫?#28533;鐢?#37832;?#37510;傚綋浠?#27996;?#37733;?#28051;?#37812;?#37928;?/span>blog鐨?#37714;?#27996;?#37928;勬枃绔?#37812;?#28000;g爜鑱旂郴鎴?#37827;讹紝浠?#28000;?#37928;?#28051;澹版?#29115;阿?#32029;鎴?#38318;戒細瑙?#23536;?#23536;堥珮鍏?#37510;?/span>

 

2019骞撮┈涓?#28751;?#29781;?#37714;版潵?#32029;甯屾?#28056;ぇ瀹?#37734;?#37826;?#37928;?#28051;骞?#38322;岋紝鍒?#38315;?#37510;?#37714;?#37826;帮紝绐?#37934;磋嚜鎴戯紝鏇?#28051;?#28051;?#30512;妤?#38171;?/span>


涓?#27996;?#37826;逛究澶?#28729;?#37734;?#32457;?#37716;?#32468;?#28052;熻兘?#28229;鍒?#37812;?#37928;?#37719;氭枃鍜岃璁?#27996;?#23092;侊紝?#24135;宸?#23049;?#37712;屽井淇?#37711;紬鍙凤紝娆?#26473;?#28598;?#28729;舵壂鎻?#28051;嬫柟浜岀淮?#29212;鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)


]]>
探灵笔记系统攻略
极速时时彩168 微信捕鱼技巧打法 凤凰平台普通登录 双色球模拟机选号 网易重庆老时时 pc蛋蛋28官网走势图 安徽11选5走势图360 凤凰高手资料论坛中心 北京pk走势规律 重庆时时老五星走势图