锘??xml version="1.0" encoding="utf-8" standalone="yes"?>鏈灏忎簩涔樻硶鎷熷悎鐩寸嚎

鍦?#32457;?#28699;﹀疄楠屽拰鐢熶骇?#30084;?#36820;涓紝缁忓父闇瑕佷粠涓缁勫疄楠屾暟鎹嚭鍙戝姹傚嚱?#26271;y=f(x)鐨?#28051;涓繎浼艰〃杈惧紡?#32029;涔?#32457;?#28051;?#32513;?#26976;屽叕?#32033;銆備粠鍑犱綍涓婄湅?#32029;灏?#37828;笇鏈涙牴鎹?#32513;?#28729;?#37928;?/span>m涓偣?#32029;姹?#37831;茬嚎y=f(x)鐨?#28051;鏉¤繎浼?#37831;茬嚎銆傚洜姝よ繖鏄?#28051;?#37831;茬嚎鎷熷悎闂?#26864;?#37510;?/span>

褰撴垜浠?#29781;?#23033;傝繎浼?#37831;茬嚎涓?#37837;奸氳繃缁?#28729;?#37928;勬?#24526;釜?#20579;鏃讹紝?#32342;鏄?#37819;掑肩畻?#30838;銆傚浜?#37832;?#37826;囨墍杩?#37928;?#37929;寸嚎鎷熷悎鏉?#29831;?#38171;屽鏋?#37922;?#37819;掑肩畻?#30838;?#32029;鍒?#37721;?#38343;瑕?#28051;?#28051;偣灏卞?#29110;簡銆傚疄闄?#37929;寸嚎鎷熷悎?#26271;鎹?#37721;?#38003;芥弧瓒?#28051;?#27996;嗚繖涓?#37833;?#28000;讹紝涓?#27996;?#28186;夸簬璁$畻?#32029;鍒?#37835;?#28051;?#25652;?#37922;紝?#22428;浠?#26440;?#28598;氬湴?#29300;鎹?ldquo;浣挎祴閲忕偣鍒?#37929;寸嚎?#31387;绂?#37928;勫钩鏂瑰拰鏈灏?rdquo;鐨勫師鍒?#37833;?#37815;熷悎銆傛寜鏈灏忎簩涔樺師鍒欓?#37815;?#37815;熷悎鏇茬嚎鐨勬?#35268;硶?#32029;绉?#28051;?#37832;灏忎簩涔樻硶锛?/span>Method of Least Squares锛?#37510;?/span>

鍒?#37922;?#37832;灏忎簩涔樻硶鎷熷悎鏇茬嚎鐨?#28051;鑸?#23005;?#26976;?#37828;?#38171;?/span>

 

?#27932;涓?/span>OpenCASCADE涓暟鎹?#32513;撴?#21227;?#23108;畻?#30838;涓板瘜?#32029;?#22669;浠?#37922;?/span>OpenCASCADE鍙?#28000;?#36423;?#38315;熷疄鐜?#37929;寸嚎鐨?#37832;灏忎簩涔樻硶鎷熷悎?#30075;?#30838;銆?#28051;?#38344;?#32513;欏嚭鍏?#28003;撳疄鐜颁唬鐮?#38171;?/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;
}

鍦ㄥ嚱?#26271;fitLine()涓紝?#29300;鎹?#37815;熷悎?#20579;寤虹珛?#30838;鏂?#32459;?#32513;?#38171;屽苟浣?#37922;?/span>math_Gauss鏉?#28725;规硶鏂?#32459;?#32513;?#26473;?#29723;屾眰瑙?#37510;傚?#36346;疄涔熷彲浠?#28003;?#37922;?/span>math_GaussLeastSquare鎴栬?/span>math_SVD绛?#23033;傝В?#30838;鏂?#32459;?#32513;?#37510;?#37734;?#28051;诲嚱?#26271;main()涓祴璇?#27996;?#28051;?#32513;勬暟鎹?#37510;傛祴璇曟暟鎹?/span>1鏉ヨ嚜鏄?#28598;?#28052;?#32475;?#37510;?#29825;$畻鏂规硶銆嬶紝?#31092;璇曟暟鎹?/span>2鏉ヨ嚜銆婇珮绛夋暟瀛?#37510;?#37510;?#32459;?#25652;?#26473;?#29723;?#32513;撴?#28355;涓?#37733;炬墍绀?#38171;?/span>

涓?#28052;?#28051;?#29825;$畻缁撴灉鍚诲悎銆?/span>


鐢?#27996;?#38343;瑕?#28751;嗚?#30075;缁撴灉鏄?#32448;哄嚭鏉ワ紝?#22669;浠?#37734;?/span>fitLine()?#22193;?#26271;涓?#28583;?#37716;犱簡杈撳嚭Draw鑴?#37832;?#37826;?#28000;?#37928;勪唬鐮?#38171;屽疄闄?#26473;?#37922;?#37827;?#37721;?#28751;嗚繖閮?#37714;?#28000;?#37934;佸?#32472;帀銆?#28751;嗙▼搴忕敓鎴?#37928;?#38004;?#37832;?#37826;?#28000;跺姞杞?#37714;?/span>Draw涓紝鍗?#37721;?#23536;?#37714;?#28051;?#38344;?#28051;?#28051;?#37733;?#38171;?/span>

?#31092;璇曟暟鎹?/span>1鎷熷悎鐩寸嚎


?#31092;璇曟暟鎹?/span>2鎷熷悎鐩寸嚎


缁?#28051;婃墍杩?#38171;屽浜庝簩缁?#37929;寸嚎鐨?#37832;灏忎簩涔樻硶鎷熷悎?#30075;?#30838;鐨勫叧閿?#37828;?#28725;?#23524;虹珛鐨勬硶鏂?#32459;?#32513;?#26473;?#29723;屾眰瑙?#37510;?/span>OpenCASCADE鐨?/span>math鍖?#28051;?#37819;?#28186;?#27996;?#28051;浜?#29785;?#37826;?#32459;?#32513;?#37928;勭被鍙?#28000;?#37929;?#37818;?#28003;?#37922;?#37510;傚浜庢病鏈?#28003;?#37922;?/span>OpenCASCADE鐨勫紑鍙?#37916;?#28583;?#37928;勬?#21613;喌?#32029;涔熷彲浠?#28003;?#37922;?#37711;?#28000;?#37933;╅樀搴?#38171;屽Eigen绛?#37922;?#23536;?#23536;?#39582;?#23049;?#37510;?/span>Eigen瀹樻柟缃?#32468;?#38171;?/span>http://eigen.tuxfamily.org/index.php?title=Main_Page


灏嗚?#30075;缁撴?#28355;?#29006;嚭Draw鑴?#37832;?#37721;?#29785;嗗寲锛屽彲浠?#37826;?#28186;?#37929;?#29785;?#37734;版煡?#28229;鎷熷悎缁撴灉銆傚鏋滅?#29112;倝鍏?#28000;栬剼鏈?#25652;撳Python鐨?/span>matplotlib?#32029;涔熷彲浠ョ被浼?#28598;勭悊鏉?#28751;嗙?#25780;灉鍙?#29785;嗗寲銆?/span>



eryar 2019-07-04 16:26 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE鐩寸嚎涓?#39582;?#38344;?#23033;備氦http://www.kffa.tw/eryar/archive/2019/06/03/LinePlaneInt.htmleryareryarMon, 03 Jun 2019 08:40:00 GMThttp://www.kffa.tw/eryar/archive/2019/06/03/LinePlaneInt.htmlhttp://www.kffa.tw/eryar/comments/216393.htmlhttp://www.kffa.tw/eryar/archive/2019/06/03/LinePlaneInt.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216393.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216393.htmlOpenCASCADE鐩寸嚎涓?#39582;?#38344;?#23033;備氦

鍦?#37510;?#29785;?#37835;?#37713;犱綍銆?#37929;?#37711;?#37928;?#28052;?#28051;?#38318;?#32513;欏嚭浜嗙?#23544;嚎鍜屽钩闈?#37928;?#28051;鑸?#37826;?#32459;?#37724;屽?#20635;暟鏂?#32459;?#37510;傚叾涓?#37929;寸嚎鐨?#28051;鑸?#37826;?#32459;?#37832;夌偣鍚戝?#24531;舰寮忕殑銆?/span>

鐢?#27996;庤繃绌?#38338;?#28051;?#20579;鍙?#28003;?#28051;?#37721;?#38003;?#28003;?#28051;鏉?#37929;寸嚎骞?#29723;屼簬宸茬煡鐩寸嚎?#32029;?#22669;浠?#35120;?#37929;寸嚎涓?#28051;?#20579;锛?/span>x0, y0, z0)鍜屽畠鐨?#28051;鏂?#37722;戝悜閲?#38171;?/span>m,n,p)涓哄?#33580;煡鏃讹紝鐩寸嚎灏?#28729;屽叏纭?#28729;?#27996;?#37510;傛墍浠?#37734;?/span>OpenCASCADE涓?#37929;寸嚎?#34987;gp_Lin鏈?#28051;涓?#37835;?#38315;犲嚱?#26271;锛?/span>

gp_Lin (const gp_Pnt &P, const gp_Dir &V) 鍗?#38315;氳繃?#20579;?#25328;鏂?#37722;?#37833;?#37835;?#38315;?#37929;寸嚎銆?#37922;?#37929;寸嚎鐨勭偣鍚戝紡鏂?#32459;?#28729;?#37828;撳?#29006;嚭鐩寸嚎鐨勫?#20635;暟鏂?#32459;?#38171;?/span>

鍏?#28051;?/span>OpenCASCADE鐨?#37929;寸嚎鏄?#37922;?#37721;傛暟鏂?#32459;?#37833;?#29723;?#32448;?#37928;?#37510;?/span>

鍚岀?#21975;浜?#39582;?#38344;?#38000;岃█?#32029;?#32323;绌?#38338;?#28051;?#20579;鍙?#28000;?#28003;?#38000;?#28051;?#37721;?#38003;?#28003;?#28051;骞?#38344;?#37736;?#37929;?#27996;?#28051;宸茬煡鐩寸嚎?#32029;?#22669;浠?#39582;?#38344;?#37928;?#28051;?#20579;锛?/span>x0,y0,z0)鍜屽畠鐨?#28051;涓硶?#22158;鏂?#37722;?/span>(A, B, C)涓哄?#33580;煡鏃?#38171;屽钩闈?#28751;?#28729;屽叏纭?#28729;?#27996;?#37510;傛墍浠?#39582;?#38344;?#37826;?#32459;?#28052;?#37832;夌偣鍚戝?#24533;殑锛?/span>

?#31904;涓涓偣?#25328;涓?#28051;?#28051;?#37711;辩嚎鐨勫悜閲忕‘瀹?#28051;涓?#39582;?#38344;?#28003;?#28051;?#29825;?#29825;?#37928;勫嚭鍙戠偣锛屽彲浠?#23536;楀嚭骞?#38344;?#37928;勫?#20635;暟鏂?#32459;?#38171;?/span>

 

濡?#28051;?#37733;炬墍绀?#38171;屽?#33580;煡涓涓偣M0(x0,y0,z0)锛屽悜閲?/span>v1(x1,y1,z1)鍜屽悜閲?/span>v2(x2,y2,z2)?#32029;?#22428;浠?#37833;?#23033;傜偣M0鍜屽悜閲?/span>V1?#32029;V2纭?#28729;?#37928;勫钩闈?#37826;?#32459;?#37510;傜偣M(x,y,z)鍦?#39582;?#38344;?#28051;?#37928;勫厖瑕?#37833;?#28000;?#37828;?#37722;?#38322;?/span>M0M涓?/span>V1, V2鍏?#38344;?#37510;傚洜涓?#37722;?#38322;?/span>V1, V2涓?#39582;?#29723;岋紝?#22669;浠?#37711;?#38344;?#37928;勫厖瑕?#37833;?#28000;?#37828;?#28699;?#37734;ㄥ敮涓鐨?#28051;瀵瑰疄?#26271;u, v浣?#38171;?/span>

鍚?#38322;?/span>M0M?#25328;V1?#32029;V2鍏?#38344;?#37928;勫厖瑕?#37833;?#28000;?#37828;?#38171;?/span>

?#29300;鎹?#39582;?#38344;?#37928;勫?#20635;暟鏂?#32459;?#37721;?#37933;ワ紝瑕?#32429;?#28729;?#28051;涓?#39582;?#38344;粠鍙傛暟鏂?#32459;?#37928;?#29785;掑害鏉ョ湅闇瑕?#28051;涓偣?#25328;涓?#28051;?#37826;?#37722;?#37510;備粠鍙傛暟鏂?#32459;嬫帹瀵煎嚭涓鑸?#37826;?#32459;?#37928;勮繃绋?#28052;?#37828;?#29825;$畻骞?#38344;?#28051;鑸?#37826;?#32459;嬬?#32472;暟鐨勬?#35268;硶銆?/span>

?#29300;鎹?#37929;寸嚎鐨勫?#20635;暟鏂?#32459;?#37721;?#39582;?#38344;?#37928;?#28051;鑸?#37826;?#32459;?#37721;?#28000;?#37818;?#28725;煎嚭鐩寸嚎涓?#39582;?#38344;?#27996;ょ偣鐨?#29825;$畻鍏紡?#32029;鎺?#28725;艰繃绋嬪涓?#38171;?/span>

?#31904;涓?#38344;?#37928;勬帹瀵艰繃绋?#37721;?#28000;ョ湅?#22189;?#32029;璁$畻鐩寸嚎涓?#39582;?#38344;?#37928;勪氦?#20579;涓?#29781;?#28751;?#37828;?#29825;$畻鍙傛暟t锛屽綋t姹傚嚭鍚?#28000;?#37711;?#37929;寸嚎鍙傛暟鏂?#32459;?#37719;?#37721;?#23536;?#37714;颁氦?#20579;?#28503;鏍?#37510;備粠鍙傛暟t鐨?#29825;$畻鍏?#23534;忓彲鐭ワ紝鏈?#28051;?#37911;规畩鎯呭喌灏?#37828;?#37714;嗘瘝涓洪浂鐨勬?#21613;喌?#32029;姝?#37827;?#37828;?#37929;寸嚎涓?#39582;?#38344;?#39582;?#29723;屽叡闈?#38343;瑕佺壒鍒?#28598;勭悊銆?/span>

鍦?/span>OpenCASCADE涓?#37819;?#28186;?#27996;嗙?#23544;嚎涓?#39582;?#38344;?#23033;備氦鐨?#29825;$畻?#34987;IntAna_IntConicQuad锛屽?#36346;疄鐜版簮鐮佸涓?#38171;?/span>

 

void IntAna_IntConicQuad::Perform (const gp_Lin& L, const gp_Pln& P,
                                   const Standard_Real Tolang,
                                   const Standard_Real Tol,
                                   const Standard_Real Len) {
  // Tolang represente la tolerance angulaire a partir de laquelle on considere
  // que l angle entre 2 vecteurs est nul. On raisonnera sur le cosinus de cet
  // angle, (on a Cos(t) equivalent a t au voisinage de Pi/2).
  
  done=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=A*Al+B*Bl+C*Cl;
  Dis = A*Orig.X() + B*Orig.Y() + C*Orig.Z() + D;
  //
  parallel=Standard_False;
  if (Abs(Direc) < Tolang) {
    parallel=Standard_True;
    if (Len!=0 && Direc!=0) {
      //check the distance from bounding point of the line to the plane
      gp_Pnt aP1, aP2;
      //
      aP1.SetCoord(Orig.X()-Dis*A, Orig.Y()-Dis*B, Orig.Z()-Dis*C);
      aP2.SetCoord(aP1.X()+Len*Al, aP1.Y()+Len*Bl, aP1.Z()+Len*Cl);
      if (P.Distance(aP2) > Tol) {
        parallel=Standard_False;
      } 
    }
  }
  if (parallel) {
    if (Abs(Dis) < Tolang) {
      inquadric=Standard_True;
    }
    else {
      inquadric=Standard_False;
    }
  }
  else {
    parallel=Standard_False;
    inquadric=Standard_False;
    nbpts = 1;
    paramonc [0] = - Dis/Direc;
    pnts[0].SetCoord(Orig.X()+paramonc[0]*Al,
                     Orig.Y()+paramonc[0]*Bl,
                     Orig.Z()+paramonc[0]*Cl);
  }
  done=Standard_True;
}

 

?#31904;涓?#26473;颁唬鐮?#28051;?#37721;?#28000;ョ湅?#22189;鍏?#29825;$畻鎬濊矾涔?#37828;?#37711;?#29825;$畻鍙傛暟t?#32029;杩樺?#29361;簡涓涓?#37911;规畩鐢ㄦ硶?#32029;鍗?#35120;?#37721;傛暟Len!=0涓?#37721;傛暟t鐨?#37714;嗘瘝!=0鏃?#38322;?#37826;?#37714;?#37826;?#37929;寸嚎涓?#39582;?#38344;?#37928;勫钩琛岀?#33333;?#37510;傝繖涓?#37922;ㄦ硶铏界劧鏈?#39582;?#29723;岀?#33333;?#37928;?#38322;?#37826;?#37714;?#37826;紝浣?#37828;?#28641;?#37835;?#28051;?#39582;?#29723;屾病鏈?#29825;$畻浜ょ偣鐨勫?#21229;悊銆傛墍浠?#28003;?#37922;ㄨ繖涓嚱?#26271;鏃?#38171;屽?#20635;暟Len鍙?#28000;?#37922;ㄩ粯璁?#37706;?/span>0?#32029;鍗?#28051;?#37922;ㄨ繖娈?#28598;勭悊閫?#26440;?#37510;傝繕鏈?#28051;?#28051;?#28051;?#29835;?#37928;?#37734;?#37826;?#37828;繖閲?#37928;勫疄?#26271;鍒?#37826;病鏈?#37922;?#37718;?#38338;?#37714;?#37826;硶銆?/span>



eryar 2019-06-03 16:40 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE License FAQshttp://www.kffa.tw/eryar/archive/2019/05/29/occ_license_faq.htmleryareryarWed, 29 May 2019 13:03:00 GMThttp://www.kffa.tw/eryar/archive/2019/05/29/occ_license_faq.htmlhttp://www.kffa.tw/eryar/comments/216386.htmlhttp://www.kffa.tw/eryar/archive/2019/05/29/occ_license_faq.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216386.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216386.htmlOpenCASCADE License FAQs

 

缁忓父鐢?#27996;?#38338;垜浣?#37922;?/span>OpenCASCADE寮鍙戝晢涓氳蒋浠?#37828;?#37722;?#38343;瑕佷粯璐癸紝涓?#38344;粠OpenCASCADE鐨?#28729;樻柟缃?#32468;?#28051;?#37812;?#37721;?#37711;跺洖绛旂炕璇?#37812;?#28051;?#37826;?#38171;屽?#27195;柟缃戝潃锛?/span>https://www.opencascade.com/content/faqs 銆?/span>

 

?#28821;璇?#32513;熶竴灏?/span>Open CASCADE Technology绠绉?#28051;?OCCT銆?/span>

 

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

鏄?#37928;勶紝?#31904;鐗?#37832;?/span>6.7.0寮濮嬶紝OCCT鏄牴鎹?/span>GNU LGPL鐗?#37832;?/span>2.1鐨?#37833;?#23046;?#38171;?#28000;?#37721;?#28051;浜?#28751;忕殑闄勫姞鏉?#38340;?#38171;?#37721;戝竷鐨?#38171;屽洜姝?#28729;?#28051;?/span>GNU GPL鐗?#37832;?/span>2鍙?#37831;撮珮鐗?#37832;?#28729;屽叏鍏?#28729;?#37510;?/span>

浣?#37828;紝OCCT鐗?#37832;?/span>6.6.0鍙?#37831;?#37827;?#37911;?#37832;?#37828;牴鎹嚜瀹?#28052;?#29825;?#37721;?#29831;?#38171;?/span>OCCT Public License锛?#37721;戝竷鐨?#37510;?璇?#29825;?#37721;?#37734;?#37929;?#37928;勫拰鎰忓浘鏂?#38344;㈢被浼?#27996;?/span>GNU LGPL?#32029;浣?#28051;?/span>GNU GPL涓?#37711;?#28729;?#37510;?/span>

 

?#22428;鍙?#28000;?#28003;?#37922;?/span>OCCT?#29300;鎹?/span>GPL?#32029;LGPL鎴?#37711;?#28000;?#29825;?#37721;?#38171;?#37718;?#37815;?#28051;?#37832;?#38171;?#37714;?#37721;戞垜鐨勮蒋浠朵骇鍝?#37722;?#38171;?/span>

鏄?#37928;勪綘鍙?#28000;?#37510;?/span> 浣?#37828;紝鎮?#25652;斿缁?#32429;?#28103;?#37832;缁堜骇鍝?#29825;?#37721;?#29831;佺?#24718;?#39559;鍝?#28051;?#28003;?#37922;?#37928;勫簱鐨?#29825;?#37721;?#29831;?#29781;?#23033;?#37510;?/span> ?#31904;鐗?#37832;?/span>6.7.0寮濮嬶紝OCCT?#29300;鎹?/span>GNU LGPL鐗?#37832;?/span>2.1鐨?#37833;?#23046;?#38171;?#28000;?#37721;?#28051;浜?#28751;忕殑闄勫姞鏉?#38340;?#38171;?#37721;戝竷?#32029;浣?#37922;?#29831;?#25652;?#37928;勮蒋浠朵骇鍝?#37928;?#29781;?#23033;?#37734;?/span>LGPL鏂?#37832;?#37928;勭6閮?#37714;?#28051;?#37819;?#26473;?#37510;?濡?#37835;?#37806;?#37928;?#37832;缁堜骇鍝?#37928;?#29825;?#37721;?#28051;?#37711;?#28051;?#28003;?#37922;?#37928;勫簱鐨?#29825;?#37721;?#37832;?#28000;讳綍鍐茬?#20362;紝鎮?#38343;瑕?#38322;?#37721;?#37818;?#37826;?#38171;?#28186;嬪锛屽姝ょ被鏈缁堜骇鍝?#29825;?#37721;?#26473;?#29723;?#38315;傚綋鐨勪慨鏀?#38171;?#28000;?#29785;?#37712;?#28000;讳綍鐭?#37929;?#37510;?/span>

濡?#37835;?#37832;夌枒闂?#39582;堕伩鍏?#37721;?#38003;?#37928;?#29831;?#29785;o紝璇疯?#26050;?#32472;垜浠幏鍙?#23524;?#29825;紝?#22428;浠?#23536;?#28052;?#37808;忓洖绛?#37806;?#28725;?#23005;?#27996;?#37721;?#38003;?#37832;?#37928;勪?#35763;綍?#26514;闂?#37510;?/span>

 

?#22428;鍙?#28000;?#28003;?#37922;?/span>Open CASCADE鎶鏈?#37714;?#28003;滃晢涓氫骇鍝?#39582;?#26473;?#29723;?#38335;鍞?#37722;?#38171;?濡?#37835;?#37828;紝鏄?#37722;?#37832;?#28000;讳綍闄?#37714;?#38171;?/span>

鏄?#37928;勶紝鎮?#37721;?#28000;?#37734;ㄥ晢涓氬簲鐢?#32459;?#25652;忎腑浣?#37922;?/span>Open CASCADE鎶鏈?#38171;?/span>OCCT锛?#25652;擄紝鑰屾棤闇?#25966;浠?#28000;讳綍寮鍙?#29825;?#37721;?#29840;规垨杩?#29723;屾?#24816;?#35268;垨鐗?#32459;?#37510;傛偍鐨?#28052;?#37716;?#37828;?#29781;?#37828;?#32429;?#23049;ㄦ剰鎮?#37928;勮蒋浠?#28003;?#37922;?/span>Open CASCADE鎶鏈?#38171;?/span>OPEN CASCADE鍏?#37721;?#37928;勫晢鏍?#38171;夛紝鍦?#37806;?#37928;勪骇鍝?#28051;?#37819;?#28186;?/span>OCCT璁?#37721;?#29831;?#37928;勫壇鏈?#38171;屽?#22549;伒寰?#29825;?#37721;?#29831;?#37832;?#38892;?#37928;勫叾浠?#29781;?#23033;?#37510;??#31904;鐗?#37832;?/span>6.7.0寮濮嬶紝姝?#29825;?#37721;?#29831;?#37828;?/span>GNU LGPL鐗?#37832;?/span>2.1锛?#37711;?#37832;?#28051;浜?#28751;忕殑闄勫姞鏉?#38340;?#38171;?#37510;?#37721;?#29831;?#23049;?#37808;忥紝OCCT浣?#37922;?#8220;?#37108;缁?#29781;?#23033;?#8221;椤?#38344;?#28051;?#37714;楀嚭鐨勭涓?#37826;?#32513;勪欢銆?绗?#28051;?#37826;?#32513;勪欢鐨勪娇鐢?#37721;?#37711;?#37929;?#25652;?#29825;?#37721;?#29831;?#37928;?#32510;?#37833;?#37510;?/span>

 

 

濡?#37835;滄垜鎯?#37721;戝竷?#22172;宸?#28003;?#37922;?/span>OCCT鐨勮蒋浠讹紝?#22428;鏄?#37722;?#37832;?#28052;?#37716;?#38322;?#37826;?#37714;?#37721;?#37825;?#28051;?#28729;夎鍖咃紝鎴栬呮垜鍙?#38003;?#37714;?#37721;戞垜闇瑕?#37928;?#38318;?#37714;?#28000;?#37934;?#38171;?/span>

?#32342;鏍?#37828;?#37711;?#29825;?#37928;勫苟鏈?#37832;涙偍浠?#37714;?#37721;?#28003;?#37928;?#32459;?#25652;忎娇鐢?#37714;?#37928;勫?#25779;拰璧勬簮銆?/span>

 

 

鎴戝OCCT鐨勪娇鐢?#37828;?#37722;?#28028;?#28186;?#37912;?#28000;讳綍鍏?#28000;?#29825;?#37721;?#37812;?#28051;?#37714;?#38171;?/span>

鎮?#28051;?#38343;瑕佷?#35763;綍鐗?#28729;?#37928;?#28729;夋帓鏉?#28003;?#37922;?/span>OCCT寮婧?#37714;?#37721;?#28051;?#37718;?#37722;?#37928;勪?#35763;綍?#30075;?#30838;銆傚?#27692;勾鏉ワ紝?#22428;浠?#28051;鐩存病鏈?#37722;?#29831;磋繃瀹?#37812;?#37812;?#37922;?#37812;?#28003;?#37922;?/span>Open CASCADE鎶鏈?#37928;勪?#35763;綍涓?#37714;?#38338;?#26864;?#37510;?/span>

 

 

?#22428;鏄?#37722;?#37832;?#28052;?#37716;?#28003;?#37922;?/span>OCCT鐨勬?#36346;欏紑婧?#25652;?#37922;?#32459;?#25652;忕殑瀹屾暣婧?#28000;?#37934;?#38171;?/span>

涓嶏紝浣?#28051;?#37828;?#37510;?/span> 鎶?#38343;?#37806;?#37928;勫簲鐢?#32459;?#25652;?#23143;?#28000;?#37934;?#37928;勫喅瀹氬彇鍐?#27996;庢偍銆?/span>



eryar 2019-05-29 21:03 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE?#20579;鍚戝钩闈?#37814;?#35120;?/title><link>http://www.kffa.tw/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.kffa.tw/eryar/archive/2019/05/29/ProjLib.html</guid><wfw:comment>http://www.kffa.tw/eryar/comments/216385.html</wfw:comment><comments>http://www.kffa.tw/eryar/archive/2019/05/29/ProjLib.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/eryar/comments/commentRss/216385.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/eryar/services/trackbacks/216385.html</trackback:ping><description><![CDATA[ <p align="center">OpenCASCADE<span style="font-family: 瀹?#28003;?">?#20579;鍚戝钩闈?#37814;?#35120;?/span></p> <p> </p> <p>OpenCASCADE<span style="font-family: 瀹?#28003;?">鐨?/span><span style="font-family: Calibri;">ProjLib</span><span style="font-family: 瀹?#28003;?">?#34987;鎻?#28186;?#27996;嗚В鏋?#37831;茬嚎锛?#37929;寸嚎銆?#37734;?#37510;佹き鍦?#37510;佹姏鐗╃嚎銆?#37721;屾?#33580;嚎锛?#37722;?#29785;?#37835;?#37831;?#38344;?#38171;?#39582;?#38344;?#37510;?#37734;嗘煴闈?#37510;?#37734;?#38335;?#38344;?#37510;佺悆闈?#37510;?#37734;嗙幆闈?#38171;夋姇褰?#37928;勫姛鑳斤紝涓?#29781;?#37922;?#37833;?#29825;$畻涓?#32513;?#37831;茬嚎鍦ㄤ簩缁?#37721;傛暟绌?#38338;寸?#21227;?#20635;暟銆?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201905/534255-20190529205727182-1677674186.png" alt="" /> </p> <p><span style="font-family: 瀹?#28003;?">鍏?#28051;偣鍚戝钩闈?#37814;?#35120;?#37828;?#37832;绠鍗?#37928;勬?#21613;喌?#32029;鏈?#37826;?#28051;?#29781;佷粙缁嶇偣鍚戝钩闈?#37814;?#35120;?#37928;勬敞鎰忎?#23342;」銆?/span>ProjLib<span style="font-family: 瀹?#28003;?">?#34987;鏄?#28051;?#23480;?#37711;风被锛屽洜涓?#37711;跺嚱?#26271;閮?#37828;?#38344;欐佸嚱?#26271;銆傜偣鍚戝钩闈?#37814;?#35120;卞緢绠鍗曪紝鐩?#37818;?#37922;?/span><span style="font-family: Calibri;">ProjLib::Project(aPlane, aPoint)</span><span style="font-family: 瀹?#28003;?">鍗?#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: 瀹?#28003;?">鍏跺疄鐜颁唬鐮佸涓?#38171;?/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: 瀹?#28003;?">?#31904;涓?#38344;?#37928;勪唬鐮?#37721;?#28000;ョ湅?#22189;?#32029;?#20579;鍚戝钩闈?#37814;?#35120;卞疄鐜?#28751;?#37828;?#28751;嗙偣鍙樻崲鍒?#39582;?#38344;㈡墍鍦?#37928;勫潗鏍囩郴涓?#37510;備娇鐢ㄨ繖涓被鍚戝钩闈?#37814;?#35120;?#29781;?#23049;?#37808;忕?#21226;?#23342;」鏄?#39582;?#38344;?#37928;勬瀯閫?#37510;傚钩闈?/span>gp_Pln<span style="font-family: 瀹?#28003;?">鏈?#28641;?#28051;?#37835;?#38315;犲嚱?#26271;锛?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201905/534255-20190529205816042-90323085.png" alt="" /> </p> <p>l <span style="font-family: 瀹?#28003;?">?#31919;璁?#37835;?#38315;犲嚱?#26271;锛?#37835;?#38315;犱簡涓涓?/span>XOY<span style="font-family: 瀹?#28003;?">骞?#38344;?/span></p> <p>l <span style="font-family: 瀹?#28003;?">鍩?#27996;?#28051;涓潗鏍囩郴</span>gp_Ax3<span style="font-family: 瀹?#28003;?">鏋?#38315;?#39582;?#38344;?/span></p> <p>l <span style="font-family: 瀹?#28003;?">鍩?#27996;?#28051;涓偣?#25328;涓涓?#37826;?#37722;?#37835;?#38315;?#39582;?#38344;?/span></p> <p>l <span style="font-family: 瀹?#28003;?">鍩?#27996;?#39582;?#38344;?#37928;勭?#32472;暟鏂?#32459;嬶紝鍗?/span>AX+BY+CZ+D=0</p> <p><span style="font-family: 瀹?#28003;?">鍓?#28051;?#28051;?#37835;?#38315;犲嚱?#26271;寰堟?#21614;?#24110;紝鑰岀涓?#28051;?#37835;?#38315;犲嚱?#26271;鍗冲熀浜?#28051;涓偣?#25328;涓涓?#37826;?#37722;?#37835;?#38315;?#39582;?#38344;?#37928;勬柟?#32033;?#30149;鏈?#37828;?#32429;紝娉?#38322;?#28051;嶆?#21614;櫚銆傝繖閲?#37928;勬柟鍚戞寚瀹?#27996;?#39582;?#38344;?#37928;勬硶鍚戯紝浣?#37828;?#26473;樼己灏?#28051;涓?#37826;?#37722;?#37833;?#32429;?#28729;?#28051;涓潗鏍囩郴?#32029;?#22669;浠?#28003;?#37922;ㄨ繖涓?#37835;?#38315;犲嚱?#26271;鏉?#37922;?#37812;?#39582;?#38344;?#37928;勬?#36346;欙紝闇瑕佺?#21978;В鍏?#37922;?#37812;?#37721;?#28598;?#28051;涓?#37826;?#37722;?#37928;勭畻?#30838;鏄?#28051;?#37828;嚜宸?#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: 瀹?#28003;?">褰撹繖閲?#32429;?#28729;氬钩闈㈠潗鏍囩郴鐨勬柟寮忎笌闇瑕?#37928;?#28051;?#28051;鑷?#37827;讹紝鍦?#28003;?#37922;?#37814;?#35120;辩畻?#30838;鐨勬?#36346;?#28751;?#28028;氫骇鐢?#38338;?#26864;?#37510;?/span></p> <img src ="http://www.kffa.tw/eryar/aggbug/216385.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/eryar/" target="_blank">eryar</a> 2019-05-29 21:02 <a href="http://www.kffa.tw/eryar/archive/2019/05/29/ProjLib.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>Compile OpenCASCADE7.3 with VS2008http://www.kffa.tw/eryar/archive/2019/04/18/compile_occ730_vs2008.htmleryareryarWed, 17 Apr 2019 23:17:00 GMThttp://www.kffa.tw/eryar/archive/2019/04/18/compile_occ730_vs2008.htmlhttp://www.kffa.tw/eryar/comments/216353.htmlhttp://www.kffa.tw/eryar/archive/2019/04/18/compile_occ730_vs2008.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216353.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216353.html

Compile OpenCASCADE7.3 with VS2008

eryar@163.com

 

1. 姒傝堪

鍦?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">OpenCASCADE鐨勬簮鐮?#37826;?#28000;?#28598;?#28051;?#37832;?#28051;?/span>adm鏂?#28000;?#28598;癸紝閲?#38344;?#37819;?#28186;?#27996;?#37722;?#28051;?#39582;?#37721;?#28051;?#32514;?#29831;?#23143;?#37934;?#37928;勯」鐩?#37826;?#28000;?#37510;傚叾涓?#37734;?/span>Windows鎿?#28003;滅郴缁熶腑浣?#37922;?#23536;?#26462;?#37928;?/span>Visual Studio鍗?/span>msvc鏂?#28000;?#28598;?#28051;?#37819;?#28186;?#27996;?/span>VS鐩?#25652;旂増鏈?#37928;勯」鐩?#37826;?#28000;?#37510;傛墍浠?#37734;?#28003;?#37922;?#37813;?#28598;勭?#21975;OpenCASCADE婧?#37934;?#26473;?#29723;岀紪璇?#37928;勬?#36346;欙紝浼氭牴鎹?/span>vc鐨勭増鏈?#37833;?#37722;?#37716;?#37929;?#25652;旂増鏈?#37928;?/span>visual studio銆傚鏋?#37826;?#28000;?#28598;?#28051;病鏈?#28725;?#25652;?#37928;?/span>VS鐗?#37832;紝灏?#37813;?#28051;?#23534;鐩?#25652;?#37928;?/span>VS銆?/span>

 

鍦?#37832;鏂扮増鏈?#37928;?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">OpenCASCADE7.3.0涓紝?#30149;鏈?#37819;?#28186;?/span>VS2008鐨勯」鐩?#37826;?#28000;?#37510;傛墍浠?#28725;?#27996;庢兂灏?/span>OpenCASCADE鐢?#27996;?#38000;?#37928;勭郴缁?#38171;屽XP?#37108;缁熶腑鏃讹紝鎴栬?#28051;荤▼搴?#37828;?#37922;?/span>VS2008缂?#29831;?#37928;勶紝?#32342;鏃?#28751;?#38343;瑕?#28751;?/span>OpenCASCADE鐢?/span>VS2008鏉?#32514;?#29831;?#27996;?#37510;?/span>

2. 鐢?#37812;?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">VS椤?#37929;?/span>

鍏跺疄OpenCASCADE鐨?/span>VS椤?#37929;?#38318;?#37828;?#38322;?#37922;?/span>Tcl鑴?#37832;?#37922;?#37812;?#37928;勶紝鑰?#28051;?#37922;?#37812;?#37928;?#38004;?#37832;?#38322;?#38344;?#26473;?#28103;濈暀浜嗗VS2008鐨勬敮鎸?#37510;?#28051;?#38344;?#28751;?#28000;?#32513;?#28051;涓嬪?#20633;綍鐢?#37812;?/span>VS椤?#37929;?#37510;?#37734;?/span>OpenCASCADE婧?#37934;?#37826;?#28000;?#28598;?#28051;?#37832;?#28051;?#37813;?#28598;勭悊鏂?#28000;?/span>genproj.bat

 

鐢?#27996;庤繖涓?#37813;?#28598;勭悊浼氳皟鐢?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">Tcl鏂?#28000;?#28051;?#37928;勫懡浠わ紝?#22669;浠?#38343;瑕?#28751;?/span>Tcl鍔?#37711;?#37714;扮幆澧?#37721;?#38322;?/span>PATH涓?#28000;?#28186;夸簬杩?#29723;?/span>Tcl鑴?#37832;?#37826;?#28000;?#28051;?#37928;勫懡浠?#37510;傚涓?#37733;?#28051;?/span>

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

灏?#37828;?#28751;員cl鍔?#37711;?#37714;癙ATH鐨?#28051;绉?#37826;规硶?#32029;?#21412;缃?#28610;借繖涓?#28751;?#37721;?#28000;?#37929;?#37818;?#37721;屽嚮genproj.bat?#32029;杩?#29723;屾埅鍥惧涓?#38171;?/p>

 

?#29300;鎹甮enproj.bat涓?#37928;勬敞閲?#37721;?#37933;?/span>genproj杩?#37721;?#28000;?#29999;?#28051;?#37721;傛暟?#32029;绗?#28051;涓?#37721;傛暟鏄?/span>VS缂?#29831;戝櫒鐨勭増鏈紝绗簩涓?#37721;傛暟鏄?#37823;?#28003;滅郴缁?#37510;傛垜浠?#29781;?#37922;?#37812;?/span>Windows鎿?#28003;滅郴缁熶腑VS2008鐨勯」鐩紝?#22669;浠?#26440;?#37711;?#37721;傛暟锛?/span>

genproj vc9 wnt

?#32342;鏍?#28751;?#37922;?#37812;?#27996;?span style="margin: 0px; padding: 0px; font-family: "Times New Roman";">VS2008鐨勯」鐩?#27996;?#38171;?/span>

 


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


eryar 2019-04-18 07:17 鍙?#29723;?#29831;?#29825;?/a>
]]>姝?#23033;夋鍑?#23536;?#28103;?#37805;?#32457;戞妧鏈?#38340;?#37711;?#37721;?/title><link>http://www.kffa.tw/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.kffa.tw/eryar/archive/2019/04/08/wuhan_ocade_intro.html</guid><wfw:comment>http://www.kffa.tw/eryar/comments/216344.html</wfw:comment><comments>http://www.kffa.tw/eryar/archive/2019/04/08/wuhan_ocade_intro.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.kffa.tw/eryar/comments/commentRss/216344.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/eryar/services/trackbacks/216344.html</trackback:ping><description><![CDATA[<h3 align="center"><strong><span style="font-family: 瀹?#28003;?">姝?#23033;夋鍑?#23536;?#28103;?#37805;?#32457;戞妧鏈?#38340;?#37711;?#37721;?/span></strong></h3> <p><span style="font-family: 瀹?#28003;?">姝?#23033;夋鍑?#23536;?#28103;?#37805;?#32457;戞妧鏈?#38340;?#37711;?#37721;?#37721;?#37722;?#37833;?#23143;?#27996;?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">鐨勯煶璇戯紝涓?#29781;?#37819;?#28186;?#23534;婧?#37713;犱綍閫犲瀷搴?/span><span style="font-family: Calibri;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">鐩?#37711;?#37928;勫挩璇?#37510;佸煿璁?#37724;屽?#27692;埗寮鍙?#37832;?#37716;?#37510;?/span><span style="font-family: Calibri;">Open</span><span style="font-family: 瀹?#28003;?">鎰忎负寮鏀?#37714;?#27996;紝姝?#37828;洜涓?#37714;?#27996;紝涓?#28000;?#27996;?#37714;?#38315;犱环鍊兼墠浼?#37832;?#37831;?#28598;?#37928;勫?#28852;姤銆?#28751;?#28028;?#32513;?#32513;?#37714;?#27996;?/span><span style="font-family: Calibri;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">鐨?#28051;浜涙妧宸?#37724;屽疄鐜板師?#24714;锛屽?#21342;悓杩涙銆?/span></p> <p> </p> <p><span style="font-family: 瀹?#28003;?">鐩?#37715;?#37711;?#37721;?#37928;勪骇鍝?#37832;?#38171;?/span></p> <h3>l RvmTranslator</h3> <p>RvmTranslator<span style="font-family: 瀹?#28003;?">鍙?#28000;?#28751;?/span><span style="font-family: Calibri;">AVEVA PDMS/Plant/Marine</span><span style="font-family: 瀹?#28003;?">涓?#28725;煎嚭鐨?/span><span style="font-family: Calibri;">RVM</span><span style="font-family: 瀹?#28003;?">鏂?#28000;?#26473;?#29723;屽彲瑙嗗?#26677;紝浠?#37721;?#28751;?/span><span style="font-family: Calibri;">RVM</span><span style="font-family: 瀹?#28003;?">杞?#37817;?#37812;愬父瑙?#37928;?#28051;?#32513;?#37826;?#28000;?#37837;煎紡銆傚</span><span style="font-family: Calibri;">STEP</span><span style="font-family: 瀹?#28003;?">?#32029;</span><span style="font-family: Calibri;">IGES</span><span style="font-family: 瀹?#28003;?">?#32029;</span><span style="font-family: Calibri;">STL</span><span style="font-family: 瀹?#28003;?">?#32029;</span><span style="font-family: Calibri;">DXF, OBJ, 3DPDF, 3DXML, IFC</span><span style="font-family: 瀹?#28003;?">绛夛紝渚夸簬涓?#37711;?#28000;?/span><span style="font-family: Calibri;">CAD</span><span style="font-family: 瀹?#28003;?">?#37108;缁?#26473;?#29723;屾暟鎹?#27996;?#37817;?#38171;屽</span><span style="font-family: Calibri;">Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley</span><span style="font-family: 瀹?#28003;?">绛?#37510;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112724580-819751049.png" /></p> <p><span style="font-family: 瀹?#28003;?">鍥?/span>1 RvmTranslator<span style="font-family: 瀹?#28003;?">绋?#25652;忕晫闈?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112742908-287211285.png" /> </p> <p><span style="font-family: 瀹?#28003;?">鍥?/span>2 RvmTranslator<span style="font-family: 瀹?#28003;?">杞?#37817;?#37928;?/span><span style="font-family: Calibri;">3DXML</span><span style="font-family: 瀹?#28003;?">鍒?#26440;剧儲?#37108;缁?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408112753166-1690564034.png" /></p> <p><span style="font-family: 瀹?#28003;?">鍥?/span>3 RvmTranslator<span style="font-family: 瀹?#28003;?">杞?#37817;?#37928;?/span><span style="font-family: Calibri;">STEP</span><span style="font-family: 瀹?#28003;?">鍒?/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: 瀹?#28003;?">鍥?/span>4 RvmTranslator <span style="font-family: 瀹?#28003;?">杞?#37817;?#37928;?/span><span style="font-family: Calibri;">IFC</span></p> <p> </p> <h2>l IsoAlgo</h2> <p>IsoAlgo<span style="font-family: 瀹?#28003;?">鏄?/span><span style="font-family: Calibri;">piping Isometric drawing generation Algorithm</span><span style="font-family: 瀹?#28003;?">鐨?#32480;绉帮紝鎰忎负绠?#38316;?#26462;存祴鍥惧嚭鍥剧畻?#30838;銆傚浗闄?#28051;?#23092;?#37928;?#32480;?#38316;?#26462;存祴鍥惧嚭鍥?#32459;?#25652;?/span><span style="font-family: Calibri;">ISOGEN</span><span style="font-family: 瀹?#28003;?">鏄?#21342;浗涓瀹?#37711;?#37721;?#23534;鍙?#37928;勶紝鐜拌</span><span style="font-family: Calibri;">Intergraph</span><span style="font-family: 瀹?#28003;?">鏀惰喘?#32029;鑰?/span><span style="font-family: Calibri;">Intergraph</span><span style="font-family: 瀹?#28003;?">涔熷湪</span><span style="font-family: Calibri;">2010</span><span style="font-family: 瀹?#28003;?">骞磋缇?#37733;?#37711;?#37721;?/span><span style="font-family: Calibri;">Hexagon</span><span style="font-family: 瀹?#28003;?">鏀惰喘銆?/span><span style="font-family: Calibri;">ISOGEN</span><span style="font-family: 瀹?#28003;?">浣?#28051;?#37929;?#28725;规?#24878;啛鐨勮蒋浠讹紝涔熷瓨鍦?#28051;浜?#38338;?#26864;?#38171;屽鐜?#32480;″嚭鍥?#37812;?#37814;樼嚎?#32029;浠?#37721;?#28729;?#37812;?#37928;?#28051;浜?#28729;氬?#36346;寲瑕?#23033;?#28051;?#38003;?#37721;?#37827;?#37721;嶉绛?#37510;?/span><span style="font-family: Calibri;">IsoAlgo</span><span style="font-family: 瀹?#28003;?">鍏?#37832;夎嚜涓荤煡璇嗕骇鏉?#38171;屽叏闈?#37711;?#28729;?/span><span style="font-family: Calibri;">ISOGEN</span><span style="font-family: 瀹?#28003;?">鐨?#26440;?#37711;?#38171;屽绠?#38316;撴暟鎹?#37826;?#28000;?/span><span style="font-family: Calibri;">PCF</span><span style="font-family: 瀹?#28003;?">?#25328;</span><span style="font-family: Calibri;">IDF</span><span style="font-family: 瀹?#28003;?">?#32029;浠?#37721;?/span><span style="font-family: Calibri;">SKEY</span><span style="font-family: 瀹?#28003;?">瀹?#28052;?#37826;?#28000;?#37510;?/span><span style="font-family: Calibri;">IsoAlgo</span><span style="font-family: 瀹?#28003;?">鐢?#37812;?#32480;?#38316;?#26462;存祴鍥惧涓?#38171;?/span></p> <p><span style="font-family: 瀹?#28003;?"><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: 瀹?#28003;?">閫氳繃绋?#25652;?/span>IsoAlgo3d<span style="font-family: 瀹?#28003;?">鏂?#28186;?#37734;?#28751;?/span><span style="font-family: Calibri;">PCF/IDF</span><span style="font-family: 瀹?#28003;?">鍙?#29785;嗗?#26677;紝鏇?#28186;?#37817;?#37928;?#37828;?#32448;哄嚭绠?#38316;?#28103;?#37805;?#37510;備互鍙婂熀浜?/span><span style="font-family: Calibri;">IsoAlgo3d</span><span style="font-family: 瀹?#28003;?">瀹氬埗寮鍙?#37929;?#37711;?#37928;勭?#23108;偣绠?#37918;嗙▼搴?#37510;?/span></p> <h2>l <span style="font-family: 瀹?#28003;?">瀹氬埗寮鍙?/span></h2> <p><span style="font-family: 瀹?#28003;?">闅忕潃鍥藉?#21615;増鏉冩剰璇嗙殑鎻愰珮浠?#37721;?#37832;?#37734;板寲鐨?#28051;浜涙爣鍑嗚?#21230;寖瑕?#23033;傦紝鑰冭檻鎴?#37832;拰鏁?#37916;囷紝鏈?#29906;?#37833;?#29906;?#28598;?#37928;?#28729;氬?#36346;寲寮鍙?#37832;?#37716;?#37510;傛垚鍔熸渚?#37832;?#38171;?/span></p> <p>v GIM<span style="font-family: 瀹?#28003;?">寤烘ā</span></p> <p><span style="font-family: 瀹?#28003;?">闅忕潃鍥?#28729;?#37922;?#32515;戞暟瀛楀寲涓?#32513;?#29825;?#29825;?#37928;勬帹骞匡紝鎻愬嚭浜?/span>GIM<span style="font-family: 瀹?#28003;?">涓?#32513;?#29825;?#29825;?#37837;?#37713;嗭紝涓?#27996;嗘弧瓒?#37733;?#32515;?/span><span style="font-family: Calibri;">GIM</span><span style="font-family: 瀹?#28003;?">宸?#32459;嬫暟瀛楀寲绉?#27996;わ紝涓烘煇鍏?#37721;?#28729;氬埗寮鍙?#27996;?/span><span style="font-family: Calibri;">GIM</span><span style="font-family: 瀹?#28003;?">寤烘ā鍔?#38003;?#38171;?/span></p> <p><span style="font-family: 瀹?#28003;?"><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: 瀹?#28003;?">瀹氬埗</span></h2> <p>FORAN<span style="font-family: 瀹?#28003;?">鏄?#28051;娆?/span><span style="font-family: Calibri;">3D</span><span style="font-family: 瀹?#28003;?">閫?#38008;?#26462;?#28000;讹紝</span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹?#28003;?">杞?#28000;?#37922;辫?#36328;彮鐗?/span><span style="font-family: Calibri;">SENER</span><span style="font-family: 瀹?#28003;?">闆嗗洟寮鍙戯紝璇?#37711;?#37721;?#28000;?#38008;?#38008;?#29825;?#29825;?#29863;?#28729;?#38171;屽凡鏈?/span><span style="font-family: Calibri;">50</span><span style="font-family: 瀹?#28003;?">骞寸?#21227;巻鍙?#38171;屽叿鏈?/span><span style="font-family: Calibri;">40</span><span style="font-family: 瀹?#28003;?">澶氬?#23544;殑閫?#38008;?/span><span style="font-family: Calibri;">CAD</span><span style="font-family: 瀹?#28003;?">杞?#28000;?#23534;鍙戝?#23677;簲鐢?#32513;?#26976;?#37510;?#37929;?#37715;?#37734;?#26473;?#29723;?#26462;?#28000;?#23534;鍙戝?#23677;簲鐢?#37928;勫?#23678;?#35769;紝浠?#37906;?#37813;挎帴鑸?#38008;?#29825;?#29825;?#26916;?#37929;?#37510;?/span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹?#28003;?">杞?#28000;?#37828;?#28051;栫晫涓?#25652;?#37922;?#37832;涓?#39582;?#23049;?#37928;勫ぇ鍨嬮?#38008;?#28051;?#28051;氳蒋浠?#28052;?#28051;锛屽叏鐞?#37922;?#37812;?#37718;?#37815;?#27996;?/span><span style="font-family: Calibri;">120</span><span style="font-family: 瀹?#28003;?">瀹?#28000;?#28051;?#37928;?#29825;?#29825;?#37711;?#37721;稿拰閫?#38008;瑰?#20646;紝杩戝勾鏉?#37831;?#28000;?#26440;?#36423;?#37928;?#38315;熷害鍦?#37711;?#37918;?#37818;?#39582;?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?">瀹氬埗寮鍙?#27996;?#37711;?#38344;㈡敮鎸?/span>FORAN<span style="font-family: 瀹?#28003;?">鍑犱綍瀹忓強</span><span style="font-family: Calibri;">NORM</span><span style="font-family: 瀹?#28003;?">鍙傛暟鍖栨ā鍨嬶紝鏂?#28186;?#37929;?#37818;?#29825;?#38338;?/span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹?#28003;?">鐨勬暟鎹?#25652;擄紝鑴?#32450;?/span><span style="font-family: Calibri;">FORAN</span><span style="font-family: 瀹?#28003;?">鐜?#28583;?#26473;?#29723;?#28051;?#32513;?#37721;?#29785;嗗寲銆?/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: 瀹?#28003;?">鑸?#38008;?#32480;?#28699;愰浂浠跺浘</span></h2> <p><span style="font-family: 瀹?#28003;?">鑸?#38008;?#32480;?#28699;愰浂浠跺浘涔?#32457;?#28751;忕エ鍥撅紝?#27970;浠跺浘涓?#38340;?#27996;嗗?#24807;舰鍙?#37711;?#37837;?#23049;?#28598;栵紝杩?#25652;?#37718;?#37815;?#32480;?#37833;?#29785;?#37837;?#37510;?#23534;?#32480;℃暟鎹?#37510;?#37837;?#32480;℃暟鎹?#37510;?#29723;?#38344;?#28598;勭悊銆?#28729;夎浣?#32515;?#32475;変俊鎭?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201904/534255-20190408113103012-37825149.png" /></span></p> <p> </p><img src ="http://www.kffa.tw/eryar/aggbug/216344.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/eryar/" target="_blank">eryar</a> 2019-04-08 11:34 <a href="http://www.kffa.tw/eryar/archive/2019/04/08/wuhan_ocade_intro.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>[杞琞GLTF-3D鍥惧舰鐣?#37928;凧PEGhttp://www.kffa.tw/eryar/archive/2019/03/30/gltf.htmleryareryarSat, 30 Mar 2019 13:47:00 GMThttp://www.kffa.tw/eryar/archive/2019/03/30/gltf.htmlhttp://www.kffa.tw/eryar/comments/216324.htmlhttp://www.kffa.tw/eryar/archive/2019/03/30/gltf.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216324.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216324.htmlGLTF绠浠?/strong>

1.glTF(GL TransmissionFormat)?#32029;鍗?#37733;惧舰璇?#29815;浜?#37817;?#37837;煎紡锛屽畠鏄?#28051;绉?D鍐?#28729;?#37928;?#37837;煎紡鏍?#37713;嗭紝鐢?strong>Khronos Group绠$悊锛圞hronos Group杩?#32480;?#37918;嗙潃OpenGL?#37108;鍒?#37510;丱penCL绛?#38322;?#29781;?#37928;?#29723;?#28051;?#37837;?#37713;?#38171;?#38171;?/p>

2.glTF鐨?#29825;?#29825;?#37828;?#38344;?#37722;?strong>?#30084;鏃舵覆鏌?/strong>搴?#37922;?#37928;勶紝灏?#38322;?#37819;?#28186;?#37721;?#28000;?#37929;?#37818;?#28028;?#26440;?#32513;欏?#24807;舰API鐨勬暟鎹?#35120;㈠紡?#32029;涓嶅啀闇瑕佷簩娆?#26462;?#37817;?#38171;?/p>

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

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

5.浣?#28051;?#28051;涓?#37837;?#37713;嗭紝?#22172;2015骞?0鏈?#37721;戝竷锛坓lTF 1.0锛?#28000;?#37833;?#38171;屽凡缁忓緱鍒颁簡涓氱?#23677;箍娉?#37928;?#29825;?#37721;紝浣?#37721;?#28000;?#37929;?#28103;?#28729;?#37928;勬按骞?#38171;?/p>

6.glTF鐩?#37715;?#37832;鏂扮増鏈?#28051;?.0宸?#27996;?017骞?鏈?#23005;?#23534;忓?#25117;竷銆?/p>

GLTF鍏?#28003;?#37928;勬暟鎹?#28699;樺偍鏍?#23534;忓彲浠?#37720;?#28729;樻柟缃?#32468;?#28051;婄湅锛歨ttps://www.khronos.org/gltf/锛屽ぇ姒?#28751;?#37828;?#37929;?#28725;?#27996;嶺ML鐨凧SON瀛樺偍鏂瑰紡銆?/p>

 

鏂?#32468;?#37711;?#23049;?#37928;?#37828;疓LTF缁欐垜浠?#29999;?#37833;?#37928;勪究鍒?#8212;—鑺?#32510;?#28699;樺偍绌?#38338;?#38171;屽噺灏戝甫瀹?#37720;嬪姏銆?/p>

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

鐩?#37715;?#23480;?#32513;?#37832;?#27996;嗗緢澶?#37928;勮浆鎹?#23480;?#37711;?#38171;?/p>

 

鍏?#28051;璉nput浠?#29723;?#26440;?#37711;?#22959;?#37736;?#37928;?#37837;煎紡?#32029;杈撳嚭涓篻ltf鏍煎紡銆?#37922;?#27996;?#28052;嬪墠浣?#37922;ㄨ繃Dae鏍?#23534;忕殑鏂?#28000;?#38171;坔ttps://www.khronos.org/collada/锛?#38171;屽洜姝?#37826;?#32468;?#38315;?#37721;朇OLLADA2GLTF宸?#37711;?#26462;?#37817;?#37826;?#28000;?#38171;?/p>

 

鍗?#28051;?#37714;?#32510;?#32513;?#27996;庡伐鍏?#23143;?#28000;?#37934;?#37928;勭紪璇?#38171;屽洜涓篕hronosGroup宸?#32513;忕粰?#22189;浜哛elease鐗?#37832;?#37510;傝繖閲?#29831;?#28051;浜?#28003;?#37922;?#37826;规硶锛?/p>

1.瑙?#37720;媧ip鏂?#28000;讹紝鍦ㄦ牴鐩綍鏂?#23524;篸ae鏂?#28000;?#28598;?#8212;—鐢?#27996;?#28699;樻?#24807;?#29111;鐨刣ae鏂?#28000;?/p>

2.鍦ㄦ牴鐩綍鏂?#23524;篻ltf鏂?#28000;?#28598;?#8212;—鐢?#27996;?#28699;樻斁杞?#37817;?#37722;?#37928;刧ltf鏂?#28000;?/p>

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

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

鍏?#28051;璱nput涓篸ae鏂?#28000;?#37928;勫悕绉帮紝output涓?#26440;撳嚭gltf鏂?#28000;?#37928;勫悕绉?#37510;?/p>

5.Enter寮濮嬭浆鎹?#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鏂?#28000;跺寘鍚?涓猨pg璐?#37733;?#28051;鍏?strong>2.46M?#32029;杞?#37817;?#37722;?#28051;?strong>涓涓?#37719;曠嫭鐨刧ltf鏂?#28000;?#32510;?strong>1.38M锛?#37722;?#29840;?#37733;?#38171;?#37510;傚?#36346;疄鎴戝緢濂藉閭?#27996;涜创鍥?#37826;?#28000;跺?#35826;摢鍎夸簡?#32029;浜?#37828;?#37813;?#23534;浜唃ltf鏂?#28000;舵煡?#28229;锛屽彂鐜?#37734;╥mage?#26271;缁?#28051;嬪凡缁?#37814;婅繖浜涜创鍥?#37826;?#28000;?#37922;╞ase 64缂?#37934;?#38171;屽?#27195;垚涓鍫?#37832;哄櫒鐮?#37929;?#37818;?#37819;?#37734;╣ltf鏂?#28000;?#28051;?#37510;?/p>

瀹屾垚妯?#37736;嬭浆鎹?#28000;?#37722;庯紝鍒?#37922;═hreeJS鐨凩oadGLTF API瀵?#37711;?#32515;戦〉涓?#23092;?#29785;?#37825;?#37835;滃涓?#38171;?nbsp;

濡備綍鍦℅LTF鏍?#23534;忎腑鎹曡幏鍔?#37922;?#38171;?/strong>

涓?#26473;拌繃绋嬪睍绀?#27996;嗕粠Collada鍒癵ltf鐨勮浆鎹?#28000;?#37721;?#29825;ゞltf妯?#37736;嬪睍绀?#37734;?#32515;戦〉涓?#37510;?#28051;?#38344;?#28751;嗙户缁?#37934;旂?#36346;?#20633;綍?#24143;鍙杇ltf妯?#37736;?#37928;勫姩鐢?#38171;?Talk is cheap?#32029;show me the code"——鍝?#37725;?#37725;?#38171;?nbsp;

鏁?#37835;滃?#20634;浘?#22669;绀?#38171;?/p>

鑷?#23005;わ紝gltf?#31904;妯?#37736;?#37714;板姩鐢?#38318;絩un浜?#28051;閬?#37510;?/p>

 

鎬?#32513;?/strong>

GLTF鏍?#23534;忓彿绉?D鍥惧舰鐣?#37928;凧PEG?#32029;鑳?#28598;熷疄鐜板揩閫?#37928;勬ā鍨嬫暟鎹?#27996;?#37817;?#37510;?#37734;?017骞?#28051;?#37827;?#37831;?#37826;?#37928;?.0鐗?#37832;?#37711;?#37832;?#27996;?#28051;浜?#28003;?#37911;?#37832;?#37928;勫姛鑳界己闄凤紝浣?#23536;楄嚜韬?#37716;?#38003;藉緱鍒?#37721;戝睍锛?#37722;屾?#35769;紝gltf瑙?#37835;?#37721;婅浆鎹ool鐨勫揩閫熷?#25117;?#26346;紝涓篏LTF鐨?#26473;?#28051;姝?#37818;?#39582;垮?#27692;嚭浜嗗緢澶?#37928;勮础鐚?#37510;?#37826;?#28051;?#28052;熷簲璇佷簡?#32029;浣?#28051;篏LTF鏍?#23534;忕殑鐢?#37812;凤紝鑳?#28598;?#37714;?#37922;?#37916;?#37832;?#37928;勫伐鍏?#28725;规ā鍨?#28598;勭悊锛屽噺灏戞ā鍨?#37928;勬暟鎹?#38322;忥紝鍦╓ebGL鐨勫簲鐢?#28051;?#37734;?#37812;愬?#37734;拌?#20636;?#20344;甫瀹?#37928;勫?#23678;椂鑳?#28598;熻幏鍙?#37722;岃川閲忕殑妯?#37736;?#28000;?#37721;?#37716;?#37922;?#37510;?/p>

 

?#24107;鏂?#38171;歨ttps://cloud.tencent.com/developer/news/204942

 



eryar 2019-03-30 21:47 鍙?#29723;?#29831;?#29825;?/a>
]]>瑙?#37835;?#37713;犱綍姹備氦涔?#37734;?#28051;庝簩娆?#37831;?#38344;?/title><link>http://www.kffa.tw/eryar/archive/2019/02/21/IntAna_Circle.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Thu, 21 Feb 2019 14:05:00 GMT</pubDate><guid>http://www.kffa.tw/eryar/archive/2019/02/21/IntAna_Circle.html</guid><wfw:comment>http://www.kffa.tw/eryar/comments/216252.html</wfw:comment><comments>http://www.kffa.tw/eryar/archive/2019/02/21/IntAna_Circle.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/eryar/comments/commentRss/216252.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/eryar/services/trackbacks/216252.html</trackback:ping><description><![CDATA[<h2 align="center"><strong><span style="font-family: 瀹?#28003;?">瑙?#37835;?#37713;犱綍姹備氦涔?#37734;?#28051;庝簩娆?#37831;?#38344;?/span></strong></h2> <p align="center"><a><span style="text-decoration: underline;">eryar@163.com</span></a></p> <p> </p> <p>Abstract. OpenCASCADE provides the analytic intersection between a conic and a quadric in the package IntAna.</p> <p>Key Words. Analytic geometry, intersection, coninc, quadric</p> <h3>1. Introduction</h3> <p>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#37928;勫寘</span><span style="font-family: Calibri;">IntAna</span><span style="font-family: 瀹?#28003;?">鎻?#28186;?#27996;嗚В鏋?#37713;犱綍鏇茬嚎锛堜簩娆?#37831;茬嚎锛?#28051;?#29785;?#37835;?#37831;?#38344;?#38171;堜簩娆?#37831;?#38344;?#38171;?#23033;備氦銆?#29785;?#37835;?#37831;?#38344;?#28051;?#29785;?#37835;?#37831;?#38344;?#23033;備氦鐨勫姛鑳?#37510;傚叾涓?/span><span style="font-family: Calibri;">IntAna</span><span style="font-family: 瀹?#28003;?">鍒?#37714;?#37828;?/span><span style="font-family: Calibri;">Intersection Analytic</span><span style="font-family: 瀹?#28003;?">鐨勫墠涓?#28051;?#28699;楁瘝缂?#37712;欙紝琛?#32448;?#29785;?#37835;?#37713;犱綍姹備氦銆?/span></p> <p><span style="font-family: 瀹?#28003;?">?#22428;浠?#28699;﹁繃浜?#37510;婄嚎鎬?#28000;f暟銆?#28051;?#37928;勪簩娆?#37736;?#38171;屽叾涓簩娆?#37736;?#37734;?#29785;?#37835;?#37713;犱綍涓?#37928;?#28051;涓?#25652;?#37922;?#28751;?#37828;簩娆?#37831;茬嚎?#25328;?#31785;娆?#37831;?#38344;?#37826;?#32459;?#37928;勫寲绠鍙?#37711;舵?#29840;?#37928;?#37714;?#37835;?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?">鏈?#37826;?#28051;?#29781;?#32513;撳悎婧?#37934;?#37714;?#37835;?#37734;?#28051;庝簩娆?#37831;?#38344;?#23033;備氦鐨勫疄鐜?#38171;屽叾浠栦簩娆?#37831;茬嚎涓庝簩娆?#37831;?#38344;?#23033;備氦鐨勫彲浠?#28186;?#23005;ょ被鎺?#37510;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221214824833-1915945009.png" /></p> <h3>2. Quadratic form</h3> <p><span style="font-family: 瀹?#28003;?">鍦?#29785;?#37835;?#37713;犱綍涓紝涓?#27996;?#28186;夸簬鐮旂?#26421;簩娆?#37831;茬嚎</span></p> <p><span style="font-family: 瀹?#28003;?"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221214837282-2133613567.png" /></span></p> <p><span style="font-family: 瀹?#28003;?">鐨勫?#29361;綍鎬?#29840;紝?#22428;浠?#37721;?#28000;?#38315;?#37815;?#38315;傚綋鐨勫潗鏍?#37827;嬭浆鍙樻崲</span></p> <p><span style="font-family: 瀹?#28003;?"><span style="font-family: 'PingFang SC','Helvetica Neue','Helvetica','Arial',sans-serif;"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221214848027-1841343209.png" /></span></span></p> <p><span style="font-family: 瀹?#28003;?">鎶?#37826;?#32459;嬪寲鎴?#37837;?#37713;?#35120;㈠紡锛?/span></p> <p><span style="font-family: 瀹?#28003;?"><span style="font-family: 'PingFang SC','Helvetica Neue','Helvetica','Arial',sans-serif;"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221214858700-736435163.png" /></span></span></p> <p><span style="font-family: 瀹?#28003;?">?#29300;鎹?#37837;?#37713;?#35120;?#23534;忎腑鐨勭?#32472;暟鏉?#37714;?#37835;愯繖涓簩娆?#37831;茬嚎鏄?#28000;涔?#37831;茬嚎?#32029;鍗?#37734;?#37510;佹き鍦?#37510;佹姏鐗╃嚎銆?#37721;屾?#33580;嚎銆?/span></p> <p><span style="font-family: 瀹?#28003;?">鍦?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#29785;?#37835;?#37713;犱綍鐨勪簩娆?#37831;?#38344;?#37832;?#28000;?#28051;?#37713;?#32457;嶇被鍨?#38171;?/span></p> <p>l gp_Pln<span style="font-family: 瀹?#28003;?">锛氬钩闈?#37721;湅浣滀簩娆?#37831;?#38344;?#37928;勭壒渚?/span></p> <p>l gp_Sphere<span style="font-family: 瀹?#28003;?">锛氳В鏋愮悆闈?/span></p> <p>l gp_Cylinder<span style="font-family: 瀹?#28003;?">锛氳В鏋?#37836;?#38344;?/span></p> <p>l gp_Cone<span style="font-family: 瀹?#28003;?">锛氳В鏋?#38335;?#38344;?/span></p> <p><span style="font-family: 瀹?#28003;?">?#32342;浜?#29785;?#37835;?#37831;?#38344;?#38318;?#37721;?#28000;?#32513;熶竴浣?#37922;ㄤ簩娆?#28598;?#26916;瑰紡鏉?#29723;?#32448;猴紝鍗宠繖涓簩娆?#28598;?#26916;?#23534;忕殑绯绘暟纭?#28729;?#27996;?#28051;涓簩娆?#37831;?#38344;?#37510;?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#37929;?#25652;?#37928;勭被鏄?/span><span style="font-family: Calibri;">IntAna_Quaric</span><span style="font-family: 瀹?#28003;?">锛?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221214911122-186510965.png" /></p> <h3>3. Math Trigonometric Function Roots</h3> <p>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓被</span><span style="font-family: Calibri;">IntAna_IntConicQuad</span><span style="font-family: 瀹?#28003;?">涓?#37819;?#28186;?#27996;嗕簩娆?#37831;茬嚎涓庝簩娆?#37831;?#38344;?#23033;備氦鍔?#38003;?#38171;屽叾涓?#29825;$畻鍦?#28051;庝簩娆?#37831;?#38344;?#37929;?#27996;?#37928;勫嚱?#26271;鏄?#38171;?/span></p> <p>  //! Creates the intersection between a circle and a quadric.</p> <p>  Standard_EXPORT IntAna_IntConicQuad<strong>(</strong>const gp_Circ<strong>&</strong> C<strong>,</strong> const IntAna_Quadric<strong>&</strong> Q<strong>);</strong></p> <p><span style="font-family: 瀹?#28003;?">鍏跺疄鐜板師鐮?#28051;?#23049;?#38322;?#28641;?#28051;?#38171;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221214923311-1114783430.png" /> </p> <p><span style="font-family: 瀹?#28003;?">?#29300;鎹?#37711;?#23049;?#38322;?#38171;屽彲鐭?#37711;?#29825;$畻?#32323;绋嬪涓?#38171;氬皢鍦嗙殑鏂?#32459;?#37734;?#37711;跺眬閮ㄥ潗鏍囩郴涓?#37922;?#37721;傛暟褰㈠紡琛?#32448;猴紝</span></p> <p><span style="font-family: 瀹?#28003;?"><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221215036103-137187322.png" /></span></p> <p><span style="font-family: 瀹?#28003;?">灏嗕簩娆?#37831;?#38344;?#37826;?#32459;?#37928;勭?#32472;暟涔熷?#27195;崲鍒?#37734;嗙?#21227;潗鏍囩郴涓?#38171;屽洜涓?#37734;嗙?#21227;?#20635;暟鏂?#32459;?#28051;?#28051;?/span>0<span style="font-family: 瀹?#28003;?">?#32029;?#22669;浠?#28751;?#37734;嗙?#21227;?#20635;暟鏂?#32459;?#28000;?#37711;ヤ簩娆?#37831;?#38344;?#37928;勬柟绋?#37722;?#38171;屽拰</span><span style="font-family: Calibri;">z</span><span style="font-family: 瀹?#28003;?">鐩?#37711;?#37928;勯」鐨勭?#32472;暟閮?#37721;?#28000;?#32480;鍖?#27996;?#37510;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221215058087-823214203.png" /></p> <p><span style="font-family: 瀹?#28003;?">寰?#37714;?#28051;涓?#28051;?#29785;掑嚱?#26271;鐨勬柟绋?#37722;庯紝?#32342;鏃?#28751;?#29781;?#23534;?#37711;?#37737;?#32429;妯?#37735;?#28051;?#37928;勬暟瀛?#23480;?#37711;?#38342;?#37833;?#29785;?#37712;?#38338;?#26864;?#27996;?#37510;?br /></span><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221215127233-2101143657.png" /></p> <p><span style="font-family: 瀹?#28003;?">?#34987;</span>math_TrigonometricFunctionRoots<span style="font-family: 瀹?#28003;?">涓?#29781;?#37922;?#27996;?#28725;瑰涓?#35120;?#23534;忕殑涓?#29785;掑嚱?#26271;鏂?#32459;?#26473;?#29723;屾眰瑙?#38171;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221215136068-2104905422.png" /></p> <h3>4. Conclusion</h3> <p><span style="font-family: 瀹?#28003;?">瀵?#27996;?#37734;?#28051;庝簩娆?#37831;?#38344;?#23033;備氦鐨勫疄鐜?#37833;ョ湅?#32029;涔熷彲浠?#28051;?#37922;?#37721;樻崲?#31785;娆?#37831;?#38344;?#37928;勫潗鏍囩郴?#32029;鐩?#37818;?#28751;?#37734;嗙?#21227;?#20635;暟鏂?#32459;?#28000;?#37711;?#37831;?#38344;?#37928;勪簩娆?#37826;?#32459;?#28051;?#38171;?/span></p> <p><img alt="" src="https://img2018.cnblogs.com/blog/534255/201902/534255-20190221215146977-191005949.png" /></p> <p><span style="font-family: 瀹?#28003;?">鏈缁?#37718;?#32480;涔熷彲寰?#37714;?#28051;涓?#28051;?#29785;掑嚱?#26271;鏂?#32459;嬶紝浣?#37828;?#29825;$畻閲忎笌鍙樻崲鏇?#38344;㈠潗鏍囩?#35826;?#35268;瘮鏉ョ湅浼?#37831;?#28598;?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?">?#31904;涓?#38344;?#37928;勬簮鐮?#37714;?#37835;?#37721;?#37933;ワ紝鍦?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#28725;?#27996;?#29785;?#37835;?#37831;茬嚎涓?#37831;?#38344;?#23033;備氦浣?#37922;ㄤ簩娆?#28598;?#26916;?#23534;忕?#32472;暟鏉?#29723;?#32448;?#37928;?#37510;?#38315;氳繃灏嗕簩娆?#37831;茬嚎鐢?#37721;傛暟褰?#23534;忕殑鏂?#32459;?#37833;?#29723;?#32448;?#38171;屽苟浠?#37711;ヤ簩娆?#37831;?#38344;?#37928;勬柟绋?#38171;屽寲绠鍚?#37929;?#37818;?#28003;?#37922;?/span><span style="font-family: Calibri;">math</span><span style="font-family: 瀹?#28003;?">鍖?#28051;?#37928;勫伐鍏?#38171;?#28598;?#26916;瑰紡鏂?#32459;?#23033;傝В?#25328;涓?#29785;掑嚱?#26271;姹傝В宸?#37711;?#38171;?#28725;?#37826;?#32459;?#26473;?#29723;屾眰瑙?#37510;?/span></p> <h3>5. References</h3> <p>1. <span style="font-family: 瀹?#28003;?">鍚屾祹澶?#28699;?#25652;?#37922;ㄦ暟瀛︾郴</span>. <span style="font-family: 瀹?#28003;?">?#22158;鎬?#28000;f暟锛堢鍥?#37911;?#38171;?/span><span style="font-family: Calibri;">. </span><span style="font-family: 瀹?#28003;?">?#29678;绛?#37825;欒偛?#22189;鐗?#32448;?/span></p> <p>2. <span style="font-family: 瀹?#28003;?">涓?#32513;村0</span>. <span style="font-family: 瀹?#28003;?">瑙?#37835;?#37713;犱綍</span><span style="font-family: Calibri;">. </span><span style="font-family: 瀹?#28003;?">鍖?#27996;?#28598;?#28699;﹀嚭鐗?#32448;?br /></span></p><span style="font-family: 瀹?#28003;?"><p> </p><div><div id="cnblogs_post_body" style="background-color: transparent; color: #000000; font-family: &quot;Helvetica Neue&quot;,Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"><p style="margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;"></p></div><div id="MySignature" style="background-color: transparent; color: #000000; display: block; font-family: &quot;Helvetica Neue&quot;,Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"><hr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /> <h5>涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5> <img width="200" height="200" title="娆?#26473;?#37711;?#23049;∣penCASCADE鍏?#28028;?#37721;? style="background-image: none; border-bottom-color: #000000; border-bottom-style: none; border-bottom-width: 0px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: #000000; border-left-style: none; border-left-width: 0px; border-right-color: #000000; border-right-style: none; border-right-width: 0px; border-top-color: #000000; border-top-style: none; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" alt="Shing Liu(eryar@163.com)" src="https://files.cnblogs.com/files/opencascade/qrcode_occ.gif" border="0" /> <hr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /></div><span style='display: inline !important; float: none; background-color: transparent; color: #000000; font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;'> </span><div style="background-color: transparent; clear: both; color: #000000; font-family: &quot;Helvetica Neue&quot;,Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"><font color="#002000"></font></div></div><p><strong></strong><em></em><u></u><sub></sub><sup></sup><strike></strike><br /></p></span><img src ="http://www.kffa.tw/eryar/aggbug/216252.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/eryar/" target="_blank">eryar</a> 2019-02-21 22:05 <a href="http://www.kffa.tw/eryar/archive/2019/02/21/IntAna_Circle.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>瑙?#37835;?#37713;犱綍姹備氦涔?#37929;寸嚎涓庝簩娆?#37831;?#38344;?/title><link>http://www.kffa.tw/eryar/archive/2019/01/29/IntAna_IntConicQuad.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Tue, 29 Jan 2019 14:06:00 GMT</pubDate><guid>http://www.kffa.tw/eryar/archive/2019/01/29/IntAna_IntConicQuad.html</guid><wfw:comment>http://www.kffa.tw/eryar/comments/216225.html</wfw:comment><comments>http://www.kffa.tw/eryar/archive/2019/01/29/IntAna_IntConicQuad.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/eryar/comments/commentRss/216225.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/eryar/services/trackbacks/216225.html</trackback:ping><description><![CDATA[ <h2 align="center"><strong><span style="font-family: 瀹?#28003;?">瑙?#37835;?#37713;犱綍姹備氦涔?#37929;寸嚎涓庝簩娆?#37831;?#38344;?/span></strong></h2> <p align="center"><a><span style="text-decoration: underline;">eryar@163.com</span></a></p> <p> </p> <p>Abstract. OpenCASCADE provides the analytic intersection between a conic and a quadric in the package IntAna.</p> <p>Key Words. Analytic geometry, intersection, coninc, quadric </p> <h3>1. Introduction</h3> <p>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#37928;勫寘</span><span style="font-family: Calibri;">IntAna</span><span style="font-family: 瀹?#28003;?">鎻?#28186;?#27996;嗚В鏋?#37713;犱綍鏇茬嚎锛堜簩娆?#37831;茬嚎锛?#28051;?#29785;?#37835;?#37831;?#38344;?#38171;堜簩娆?#37831;?#38344;?#38171;?#23033;備氦銆?#29785;?#37835;?#37831;?#38344;?#28051;?#29785;?#37835;?#37831;?#38344;?#23033;備氦鐨勫姛鑳?#37510;傚叾涓?/span><span style="font-family: Calibri;">IntAna</span><span style="font-family: 瀹?#28003;?">鍒?#37714;?#37828;?/span><span style="font-family: Calibri;">Intersection Analytic</span><span style="font-family: 瀹?#28003;?">鐨勫墠涓?#28051;?#28699;楁瘝缂?#37712;欙紝琛?#32448;?#29785;?#37835;?#37713;犱綍姹備氦銆?/span></p> <p><span style="font-family: 瀹?#28003;?">?#22428;浠?#28699;﹁繃浜?#37510;婄嚎鎬?#28000;f暟銆?#28051;?#37928;勪簩娆?#37736;?#38171;屽叾涓簩娆?#37736;?#37734;?#29785;?#37835;?#37713;犱綍涓?#37928;?#28051;涓?#25652;?#37922;?#28751;?#37828;簩娆?#37831;茬嚎?#25328;?#31785;娆?#37831;?#38344;?#37826;?#32459;?#37928;勫寲绠鍙?#37711;舵?#29840;?#37928;?#37714;?#37835;?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?">鏈?#37826;?#28051;?#29781;?#32513;撳悎婧?#37934;?#37714;?#37835;?#37929;寸嚎涓庝簩娆?#37831;?#38344;?#23033;傝В鐨勫疄鐜?#37833;?#37814;?#37934;?#23534;?#37916;?#38171;屽悗鏈?#28751;嗕簩娆?#37831;茬嚎涓庝簩娆?#37831;?#38344;?#23033;備氦鐨勫悇绉?#37807;呭喌鍋氬叏闈?#37714;?#37835;?#37510;?/span></p> <h3>2. Quadratic form</h3> <p><span style="font-family: 瀹?#28003;?">鍦?#29785;?#37835;?#37713;犱綍涓紝涓?#27996;?#28186;夸簬鐮旂?#26421;簩娆?#37831;茬嚎</span><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203458203-77825616.png" alt="" /><img src="file:///C:/Users/eryar/AppData/Local/Temp/ksohtml/wps6818.tmp.png" alt="" width="207" height="41" /></p> <p><span style="font-family: 瀹?#28003;?">鐨勫?#29361;綍鎬?#29840;紝?#22428;浠?#37721;?#28000;?#38315;?#37815;?#38315;傚綋鐨勫潗鏍?#37827;嬭浆鍙樻崲</span></p> <p><span style="font-family: 瀹?#28003;?"><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203506461-1004974782.png" alt="" /></span></p> <p><span style="font-family: 瀹?#28003;?">鎶?#37826;?#32459;嬪寲鎴?#37837;?#37713;?#35120;㈠紡锛?img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203514082-441549350.png" alt="" /></span></p> <p><span style="font-family: 瀹?#28003;?">?#29300;鎹?#37837;?#37713;?#35120;?#23534;忎腑鐨勭?#32472;暟鏉?#37714;?#37835;愯繖涓簩娆?#37831;茬嚎鏄?#28000;涔?#37831;茬嚎?#32029;鍗?#37734;?#37510;佹き鍦?#37510;佹姏鐗╃嚎銆?#37721;屾?#33580;嚎銆?/span></p> <p><span style="font-family: 瀹?#28003;?">鍦?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#29785;?#37835;?#37713;犱綍鐨勪簩娆?#37831;?#38344;?#37832;?#28000;?#28051;?#37713;?#32457;嶇被鍨?#38171;?/span></p> <p>l gp_Pln<span style="font-family: 瀹?#28003;?">锛氬钩闈?#37721;湅浣滀簩娆?#37831;?#38344;?#37928;勭壒渚?/span></p> <p>l gp_Sphere<span style="font-family: 瀹?#28003;?">锛氳В鏋愮悆闈?/span></p> <p>l gp_Cylinder<span style="font-family: 瀹?#28003;?">锛氳В鏋?#37836;?#38344;?/span></p> <p>l gp_Cone<span style="font-family: 瀹?#28003;?">锛氳В鏋?#38335;?#38344;?/span></p> <p><span style="font-family: 瀹?#28003;?">?#32342;浜?#29785;?#37835;?#37831;?#38344;?#38318;?#37721;?#28000;?#32513;熶竴浣?#37922;ㄤ簩娆?#28598;?#26916;瑰紡鏉?#29723;?#32448;猴紝鍗宠繖涓簩娆?#28598;?#26916;?#23534;忕殑绯绘暟纭?#28729;?#27996;?#28051;涓簩娆?#37831;?#38344;?#37510;?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#37929;?#25652;?#37928;勭被鏄?/span><span style="font-family: Calibri;">IntAna_Quaric</span><span style="font-family: 瀹?#28003;?">锛?/span></p> <p><span style="font-family: 瀹?#28003;?"><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203525955-608496972.png" alt="" /></span> </p> <h3> 3. Math Direct Polynomial Roots</h3> <p>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓被</span><span style="font-family: Calibri;">IntAna_IntConicQuad</span><span style="font-family: 瀹?#28003;?">涓?#37819;?#28186;?#27996;嗕簩娆?#37831;茬嚎涓庝簩娆?#37831;?#38344;?#23033;備氦鍔?#38003;?#38171;屽叾涓?#29825;$畻鐩寸嚎涓庝簩娆?#37831;?#38344;?#37929;?#27996;?#37928;勫嚱?#26271;鏄?#38171;?/span></p> <p>  //! Creates the intersection between a line and a quadric.</p> <p>  Standard_EXPORT IntAna_IntConicQuad<strong>(</strong>const gp_Lin<strong>&</strong> L<strong>,</strong> const IntAna_Quadric<strong>&</strong> Q<strong>);</strong></p> <p><span style="font-family: 瀹?#28003;?">鍏跺疄鐜板師鐮?#28051;?#23049;?#38322;?#28641;?#28051;?#38171;?/span></p> <p><span style="font-family: 瀹?#28003;?"><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203541279-1842098859.png" alt="" /></span> </p> <p><span style="font-family: 瀹?#28003;?">?#29300;鎹?#37711;?#23049;?#38322;?#38171;屽彲鐭?#37711;?#29825;$畻?#32323;绋嬪涓?#38171;氬?#21977;?#23544;嚎鏂?#32459;?#37922;?#37721;傛暟褰㈠紡琛?#32448;猴紝</span></p> <p><span style="font-family: 瀹?#28003;?"><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203554852-446923209.png" alt="" /></span></p> <p><span style="font-family: 瀹?#28003;?">灏?#37721;傛暟琛?#32448;?#37928;?#37929;寸嚎鏂?#32459;?#28000;?#37711;ヤ簩娆?#37831;?#38344;?#37826;?#32459;?#38171;屽寲绠鍙?#23536;?#28051;涓簩娆?#28598;?#26916;瑰紡锛屽?#36891;簩娆?#28598;?#26916;瑰紡杩?#29723;屾眰瑙?#37719;冲緱鐩寸嚎涓庝簩娆?#37831;?#38344;?#37928;勪氦?#20579;銆?/span></p> <p><span style="font-family: 瀹?#28003;?"><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203614159-34907821.png" alt="" /></span></p> <p><span style="font-family: 瀹?#28003;?">寰?#37714;?#28051;涓簩娆?#28598;?#26916;?#23534;忕殑鏂?#32459;?#37722;庯紝?#32342;鏃?#28751;?#29781;?#23534;?#37711;?#37737;?#32429;妯?#37735;?#28051;?#37928;勬暟鎹?#23480;?#37711;?#38342;?#37833;?#29785;?#37712;?#38338;?#26864;?#27996;?#37510;?/span></p> <p><img src="https://img2018.cnblogs.com/blog/534255/201901/534255-20190129203625698-1811141561.png" alt="" /> </p> <p><span style="font-family: 瀹?#28003;?">?#34987;</span>math_DirectPolynomialRoots<span style="font-family: 瀹?#28003;?">鍙?#28000;?#37922;?#37833;?#28725;?/span><span style="font-family: Calibri;">4</span><span style="font-family: 瀹?#28003;?">娆?#37721;?#28000;?#28051;?#37928;勫椤瑰紡鏂?#32459;?#26473;?#29723;屾眰瑙?#37510;傚浜?#37718;?#32480;鍚?#37928;?#37929;寸嚎涓庝簩娆?#37831;?#38344;?#37826;?#32459;?#37828;?#28051;涓簩娆?#28598;?#26916;瑰紡鏂?#32459;嬶紝鍒?#28003;?#37922;ㄨ繖涓被鐩?#37818;?#26473;?#29723;屾眰瑙?#37510;?/span></p> <h3>4. Conclusion</h3> <p><span style="font-family: 瀹?#28003;?">?#31904;涓?#38344;?#37928;勬簮鐮?#37714;?#37835;?#37721;?#37933;ワ紝鍦?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#28725;?#27996;?#29785;?#37835;?#37831;茬嚎涓?#37831;?#38344;?#23033;備氦浣?#37922;ㄤ簩娆?#28598;?#26916;?#23534;忕?#32472;暟鏉?#29723;?#32448;?#37928;?#37510;?#38315;氳繃灏?#37826;?#32459;嬪寲绠鍚?#37929;?#37818;?#28003;?#37922;?/span><span style="font-family: Calibri;">math</span><span style="font-family: 瀹?#28003;?">鍖?#28051;?#37928;勫伐鍏?#28725;?#37826;?#32459;?#26473;?#29723;屾眰瑙?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?">浣?#37922;?/span>OpenCASCADE<span style="font-family: 瀹?#28003;?">?#21851;缁?#28028;氬彂鐜颁粬浠?#37928;勭紪鐮侀鏍?#28052;?#37828;?#37832;?#28051;瀹?#37928;勫?#26948;矾鐨勶紝鍗?#28051;涓被浼?#37819;?#28186;?#37713;?#28051;?#37835;?#38315;犲嚱?#26271;?#32029;灏?#28051;?#37722;屽?#20635;暟杩?#29723;?#26440;?#37711;?#37510;?#37832;?#37928;?#37734;?#37835;?#38315;犲嚱?#26271;涓?#29835;?#37922;?#37714;?#28654;嬪?#26663;嚱?#26271;</span><span style="font-family: Calibri;">Init()</span><span style="font-family: 瀹?#28003;?">鏉?#28725;圭畻?#30838;闇瑕?#37928;勫叾浠?#26440;?#37711;ユ暟鎹?#26473;?#29723;?#37714;?#28654;嬪?#26677;紝鏈?#37928;?#37714;?#37929;?#37818;?#37734;?#37835;?#38315;犲嚱?#26271;涓?#29835;?#37922;?#37928;?#29825;$畻?#22193;?#26271;</span><span style="font-family: Calibri;">Perform()</span><span style="font-family: 瀹?#28003;?">銆傚鏋?#37835;?#38315;犲嚱?#26271;涓病鏈?#29835;?#37922;?#29825;$畻?#22193;?#26271;</span><span style="font-family: Calibri;">Perform()</span><span style="font-family: 瀹?#28003;?">?#32029;鍒?#38343;瑕?#37813;嬪姩璋?#37922;?/span><span style="font-family: Calibri;">Perform()</span><span style="font-family: 瀹?#28003;?">銆傜畻?#30838;鐨勬垚鍔?#38315;氳繃?#22193;?#26271;</span><span style="font-family: Calibri;">IsDone()</span><span style="font-family: 瀹?#28003;?">鏉?#22955;?#31092;銆傛牴鎹?#22955;?#31092;鍒?#37826;?#37828;?#37722;?#37721;栧嚭璁$畻鍊?#37510;?/span></p> <p><span style="font-family: 瀹?#28003;?">鏄?#38010;?#28751;?#29781;?#37714;颁簡?#32029;绁?#28598;?#28729;?#37734;?#37826;?#37928;?#28051;骞?#38322;屽績鎯?#27996;嬫垚?#32029;涓?#27996;嬪?#20635;剰锛?/span></p> <h3>5. References</h3> <p>1. <span style="font-family: 瀹?#28003;?">鍚屾祹澶?#28699;?#25652;?#37922;ㄦ暟瀛︾郴</span>. <span style="font-family: 瀹?#28003;?">?#22158;鎬?#28000;f暟锛堢鍥?#37911;?#38171;?/span><span style="font-family: Calibri;">. </span><span style="font-family: 瀹?#28003;?">?#29678;绛?#37825;欒偛?#22189;鐗?#32448;?/span></p> <p>2. <span style="font-family: 瀹?#28003;?">涓?#32513;村0</span>. <span style="font-family: 瀹?#28003;?">瑙?#37835;?#37713;犱綍</span><span style="font-family: Calibri;">. </span><span style="font-family: 瀹?#28003;?">鍖?#27996;?#28598;?#28699;﹀嚭鐗?#32448;?/span></p> <img src ="http://www.kffa.tw/eryar/aggbug/216225.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/eryar/" target="_blank">eryar</a> 2019-01-29 22:06 <a href="http://www.kffa.tw/eryar/archive/2019/01/29/IntAna_IntConicQuad.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>Mesh BRep Shapeshttp://www.kffa.tw/eryar/archive/2019/01/06/BRepMesh.htmleryareryarSun, 06 Jan 2019 02:49:00 GMThttp://www.kffa.tw/eryar/archive/2019/01/06/BRepMesh.htmlhttp://www.kffa.tw/eryar/comments/216169.htmlhttp://www.kffa.tw/eryar/archive/2019/01/06/BRepMesh.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216169.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216169.html

Mesh BRep Shapes

eryar@163.com

Abstract. 褰撳OpenCASCADE鐨?/span>BRep琛?#32448;烘硶鐨勬暟鎹?#32513;撴瀯鏈?#27996;?#28051;瀹?#37928;勭?#21978;В鍚?#38171;屽缓璁?#37721;?#28000;ヨ嚜宸卞疄鐜?#28051;涓?#37828;?#32448;烘暟鎹?#37922;?#37812;?#37928;勫姛鑳斤紝鍗?#32515;?#37837;煎墫鍒嗗姛鑳?#37510;?/span>

Key Words. BRep, Mesh, Triangulation

1. Introduction

鍦?/span>OpenCASCADE涓?#32515;?#37837;煎墫鍒嗗姛鑳?#37828;?#23536;?#38322;?#29781;?#37928;?#28051;涓?#22959;?#37735;楋紝浠?#37721;?#37922;?#27996;?#37922;?#37812;愭ā鍨?#37928;勫彲瑙嗗?#26664;暟鎹紝杩?#37721;?#37922;?#27996;?/span>HLR娑?#38341;?#38171;屽浜?#32450;?#37825;?#23033;備氦?#30075;?#30838;涔?#37828;?#37737;?#27996;?#32515;?#37837;兼暟鎹?#37510;?/span>OpenCASCADE寮婧愮増鏈?#28051;?#37928;勬ā鍧?/span>TKMesh鍙?#28000;?#37922;?#37833;?#37922;?#37812;愮綉鏍?#37928;?#37828;?#32448;烘暟鎹紝涓?#29781;?#37928;勭被涓?/span>BRepMesh_IncrementalMesh銆?/span>

鍦?#28003;?#37922;?/span>BRepMesh_IncrementalMesh鐨勮繃绋?#28051;?#37721;?#37916;?#37711;跺墫鍒嗙?#24807;害?#29678;?#32029;涓旂?#24807;害涓?#28186;夸?#24226;帶鍒?#37510;傚?#20634;涓涓?#37918;?#26473;?#29723;岀綉鏍煎墫鍒嗭紝鎯冲緱鍒?#28051;涓?#32494;楃硻鐨?#37825;?#37835;滐紝鍗?#28051;涓?#28598;?#26440;?#35120;紝浣?#37922;?/span>BRepMesh_IncrementalMesh鏄?#28051;?#28729;?#37828;撳緱鍒?#37928;?#37510;?/span>

濡?#28051;?#37733;炬墍绀?#28051;?#37722;?#28051;涓?#37918;?#37928;?#28051;?#37722;?#37928;勫墫鍒嗙?#24807;害寰?#37714;?#37928;勬ā鍨?#37510;?#28051;?#27996;?#38003;界簿纭?#37818;?#37714;?#32515;?#37837;煎墫鍒嗙?#24807;害?#32029;浠?#28186;?#37722;?#37832;熶娇鐢?/span>LOD绛?#28028;樺?#26667;畻?#30838;?#32029;?#22172;宸卞疄鐜?#28051;涓?#32515;?#37837;煎墫鍒嗗姛鑳?#37510;?/span>

缃?#37837;煎墫鍒嗙殑涓?#29781;佹濊矾灏?#37828;?#38316;?#37720;嗘?#24526;釜TopoDS_Face鐨?/span>TopoDS_Wire?#32029;?#29300;鎹?/span>Wire鎵?#37714;?#26440;圭?#23678;垨闈?#28051;?#37928;?#28699;旀礊銆?#28751;?/span>Wire瀵?#25652;?#37714;颁簩缁?#37721;傛暟绌?#38338;?#38171;屽?#36346;?#36891;簩缁?#37721;傛暟绌?#38338;?#28051;?#37928;?#26440;圭?#23677;厛杩?#29723;?#28051;娆?#28051;?#29785;?#32515;?#37837;煎墫鍒?#37510;傚浜?#39582;?#38344;?#37833;?#29831;?#38171;屽彧闇瑕佽繖涓姝?#28751;?#37721;?#28000;ユ弧瓒?#37721;?#29785;嗗寲鐨?#29781;?#23033;?#37510;傚浜?#37711;?#28000;?#37831;?#38344;?#37833;?#29831;达紝灏?#38343;瑕?#37734;ㄤ簩缁?#37721;傛暟绌?#38338;?#28051;?#26864;?#28598;?#37819;?#37711;?#28051;浜涚偣?#32029;浠?#28003;?#37832;缁?#37922;?#37812;?#37928;勭綉鏍兼弧瓒冲墫鍒嗙?#24807;害瑕?#23033;?#37510;?#37832;鍚?#28751;嗕簩缁?#37721;傛暟绌?#38338;寸殑涓?#29785;掑墫鍒?#37828;?#28751;?#37714;?#28051;?#32513;寸┖闂?#37510;?/span>

2. Mesh Boundary Region

?#27932;涓轰娇鐢?/span>BRepBuilderAPI_MakeFace鍙?#28000;?#38315;氳繃Add(TopoDS_Wire)鏉?#23075;诲姞闈?#28051;?#37928;勫紑瀛旓紝?#22669;浠?#28051;涓?/span>TopoDS_Face浼?#37832;?#28598;?#27996;?/span>1涓?#37928;?/span>TopoDS_Wire銆傛?#24807;嚭澶?#26440;圭?#23677;?#23677;唴瀛?/span>Wire鍚?#37721;?#26473;?#29723;?#28051;娆?#28051;?#29785;掑墫鍒?#38171;屽涓?#37733;炬墍绀?#38171;?/span>

 

濡?#28051;?#37733;炬墍绀?#38171;屽浜?#39582;?#38344;?#38000;岃█?#32029;鐩?#37818;?#28725;?#26440;圭?#23677;強鍐?#28699;?#26473;?#29723;?#28051;娆?#28051;?#29785;掑墫鍒?#37719;?#37721;?#28000;?#23536;?#37714;版弧鎰忕殑缃?#37837;兼暟鎹?#37510;傚浜?#37831;?#38344;?#38000;岃█?#32029;?#32342;鏄剧劧鏄?#28051;嶆弧瓒崇?#24807;害瑕?#23033;?#37928;?#37510;?/span>

 

濡?#28051;?#37733;炬墍绀?#28051;虹悆闈?#37928;勭涓娆?#28725;?#26440;圭晫杩?#29723;?#28051;?#29785;掑墫鍒嗗緱鍒?#37928;?#37825;?#37835;?#37510;傚洜涓?#37734;?#28051;涓?#37721;傛暟涓?#37928;?#26440;?#37828;?#38315;鍖?/span>Degenerated杈癸紝?#22669;浠?#38315;鍖?#26440;?#37928;勫?#20635;暟绌?#38338;?#28051;婃病鏈夊潎鍒?#37510;?#28751;?#37721;傛暟绌?#38338;寸殑涓?#29785;掑墫鍒?#37828;?#28751;?#37714;?#28051;?#32513;寸┖闂?#37722;?#38171;屽緱鍒?#37928;?#37828;?#28051;鏉$嚎锛屽?#36346;疄鏄?#28051;?#28051;?#38344;為鍖?#26440;?#37510;?/span>

 

3. Deflection Control

瀵?#27996;?#37831;?#38344;?#37833;?#29831;?#38171;屽鏋?#37929;?#28725;?#26440;圭晫杩?#29723;?#28051;娆?#28051;?#29785;掑墫鍒嗭紝鏄?#26440;?#28051;?#37714;扮?#24807;害瑕?#23033;?#37510;?#28051;?#27996;?#28003;?#37831;?#38344;?#32515;?#37837;煎墫鍒?#37825;?#37835;?#37831;村?#26020;紝灏?#38343;瑕佸?#35268;寜杈圭?#23677;墫鍒?#37722;?#37928;勭綉鏍艰繘琛屾彃鍏ョ偣缁?#32513;?#37715;?#37714;?#37510;傚浜?#28051;?#38344;?#37918;?#38344;?#37928;勫?#20635;暟绌?#38338;?#37718;哄煙?#32029;?#29300;鎹?#32494;惧害瑕?#23033;?#37819;?#37711;ョ偣鍓?#37714;?#37722;?#37928;?#32513;撴?#28355;涓?#37733;炬墍绀?#38171;?/span>

 

寰?#37714;?#37928;?#28051;?#32513;?#37825;?#37835;滃涓?#37733;炬墍绀?#38171;?/span>

 

4. Demo

涓?#38344;?#32513;欏嚭鍑?#28051;嚜宸卞疄鐜扮綉鏍煎墫鍒嗙殑缁撴灉涓?/span>OpenCASCADE鐨?/span>TKMesh浣?#28051;?#28725;规瘮锛?/span>

 

涓?#37733;?#28051;鸿嚜宸卞疄鐜扮綉鏍煎墫鍒嗙畻?#30838;瀵规き鐞?#38344;?#37928;勭綉鏍煎墫鍒嗙?#25780;灉

 

涓?#37733;?#28051;?/span>TKMesh缃?#37837;煎墫鍒嗙畻?#30838;瀵规き鐞?#38344;?#37928;勭綉鏍煎墫鍒嗙?#25780;灉

 

涓?#37733;?#28051;鸿嚜宸卞疄鐜扮綉鏍煎墫鍒嗙畻?#30838;瀵规き鍦嗙幆闈?#37928;勭綉鏍煎墫鍒嗙?#25780;灉

 

涓?#37733;?#28051;?/span>TKMesh缃?#37837;煎墫鍒嗙畻?#30838;瀵规き鍦嗙幆闈?#37928;勭綉鏍煎墫鍒嗙?#25780;灉

閫氳繃涓?#38344;?#37928;勫?#35268;瘮鍙?#28000;?#37721;?#37916;帮紝鍦?#28598;?#38007;?#37929;?#37722;?#37928;?#37828;?#32448;?#37825;?#37835;?#37807;呭喌涓嬶紝OpenCASCADE?#39559;鐢熶簡鏇?#28598;?#37928;勯?#21057;偣?#25328;涓?#29785;?#35120;㈡暟鎹?#37510;傝嚜宸卞疄鐜?#37928;勭綉鏍煎墫鍒嗕骇鐢?#37928;勭綉鏍艰川閲忕浉瀵?#37721;?#37818;?#28051;?#37804;?#38003;介珮銆?/span> 

5. Conclusion

OpenCASCADE涓?#23534;婧?#37928;勭綉鏍煎墫鍒?#25652;?/span>TKMesh鍙?#28000;ュ疄鐜版ā鍨?#37928;勫彲瑙嗗?#26664;暟鎹?#37922;?#37812;?#37716;?#38003;斤紝浣?#37828;?#28725;?#27996;?#32515;?#37837;煎墫鍒嗙殑绮惧害鍙?#37818;?#37804;?#23480;?#37510;?#28051;?#27996;嗗?#35268;ā鍨?#37928;勭綉鏍肩?#24807;害杩?#29723;屾洿濂?#37734;版帶鍒讹紝?#22172;宸卞疄鐜?#28051;濂楃綉鏍煎墫鍒嗗姛鑳斤紝涓?#37804;?#38003;?#29781;佷紭浜?/span>TKMesh銆?#37734;?#32459;?#25652;忕殑缂?#37712;欒繃绋?#28051;?#38171;屽彲浠?#37716;犳繁BREP?#26271;鎹?#32513;撴瀯涓?#28051;浜涙?#20634;康鐨勭?#21978;В銆?#37832;?#37711;?#29906;?#37928;?#29831;?#38000;?#37734;?#37908;熸倝BREP?#26271;鎹?#32513;撴?#21227;悗?#32029;涔熷彲浠?#28751;?#29831;?#28051;嬬綉鏍煎墫鍒嗗姛鑳?#37928;勫疄鐜?#37510;?/span>


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


eryar 2019-01-06 10:49 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE Incremental Meshhttp://www.kffa.tw/eryar/archive/2018/12/31/IncementalMesh.htmleryareryarMon, 31 Dec 2018 14:45:00 GMThttp://www.kffa.tw/eryar/archive/2018/12/31/IncementalMesh.htmlhttp://www.kffa.tw/eryar/comments/216159.htmlhttp://www.kffa.tw/eryar/archive/2018/12/31/IncementalMesh.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216159.htmlhttp://www.kffa.tw/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鏄?#37922;?#37812;?#28051;?#32513;存ā鍨?#37828;?#32448;烘暟鎹?#37928;勫叧閿畻?#30838;銆?/span>OpenCASCADE鐨?/span>TKMesh鎻?#28186;?#27996;嗙綉鏍煎墫鍒嗙畻?#30838;?#32029;鐢?#27996;?#37922;?#37812;?/span>BREP浣?#37928;?#37828;?#32448;烘暟鎹?#37510;傚師鏉?#37928;?#28051;浜涙枃绔?#28725;圭綉鏍煎墫鍒嗙殑?#30075;?#30838;鍙?#37711;?#37922;ㄦ硶杩?#29723;岃繃璇?#37828;庯紝鏈?#37826;?#28051;?#29781;佸?#22317;綉鏍煎墫鍒嗙殑鏍?#36423;?#38318;?#37714;?#26473;?#29723;屾繁鍏?#37816;?#37818;橈紝鐞嗚В鍏跺墫鍒嗙?#24807;害鎺?#37714;跺師?#24714;銆傛?#29111;叴瓒?#37928;?#29831;?#38000;?#37721;?#28000;?#32513;撳悎婧?#37934;侊紝瀛?#28052;?#37711;跺疄鐜?#37826;规硶銆傚綋鐞嗚В鍏剁畻?#30838;?#24107;?#24714;鍚庯紝涔熷彲浠ヨ嚜宸卞疄鐜?#28051;濂?#32513;撳悎?#30084;闄?#38343;姹?#37928;勯?#27195;?#38003;?#32515;?#37837;煎墫鍒?#25652;?#37510;?/span>

缃?#37837;煎墫鍒嗙殑涓?#29781;?#23092;?#32459;嬪涓?#38171;?/span>

 

閬?#37720;?/span>TopoDS_Shape鐨?/span>TopoDS_Face锛屽浜庢?#24526;釜TopoDS_Face?#32029;閬?#37720;?#37711;?/span>TopoDS_Wire锛屽浜庢?#24526;釜TopoDS_Wire閬?#37720;?#37711;?/span>TopoDS_Edge?#32029;鍦ㄦ牴鎹?/span>Edge?#25328;Face寰?#37714;?/span>PCurve銆傚洜涓?/span>TopoDS_Wire鏄?#38338;悎鐨勶紝?#22669;浠?/span>Wire鐨?/span>PCurve鏄?#37734;?#37721;傛暟绌?#38338;?#38338;悎鍖哄煙銆傚PCurve?#27967;鎴?#37928;勫?#20635;暟鍖哄煙杩?#29723;?#28051;?#29785;掑墫鍒嗭紝灏?#28051;?#29785;掑墫鍒嗙殑缁撴灉鏄?#28751;?#37714;?#28051;?#32513;寸┖闂达紝鏈缁?#37922;?#37812;?#23011;忎釜Face鐨勭綉鏍煎墫鍒?#37510;傝繖涓?#23092;?#32459;嬪緢濂界?#21978;В?#32029;浣?#37828;?#28641;備綍瀵圭綉鏍煎墫鍒嗙殑璐?#38322;?#26473;?#29723;屾帶鍒跺憿锛?#37719;?#37922;?#37929;?#28725;?#28751;?#37928;?#28051;?#29785;?#32515;?#37837;?#37833;?#37831;村ソ鍦?#29723;?#32448;?#28051;?#32513;存ā鍨嬪憿锛?/span>

 

2. Mesh Deflection Control

OpenCASCADE瀵?/span>BRep浣?#26473;?#29723;?#28051;?#29785;掑墫鍒嗙綉鏍?#37718;?#37928;勭被鏄?/span>BRepMesh_IncrementalMesh?#32029;姝ょ被鏈?#28051;?#28051;?#28051;?#29781;?#37928;?#38315;?#26916;?#37833;?#37818;?#37714;?#28051;?#29785;?#32515;?#37837;?#37718;?#38171;氱嚎鎬?#37707;忓樊Linear deflection?#25328;瑙掑害鍋忓樊Angular deflection銆?/span>

涓?#29785;?#32515;?#37837;煎墫鍒嗙涓姝?#37828;?#28751;嗘墍鏈?#37928;?#26440;?/span>Edge杩?#29723;?#32450;?#37825;o紝鍗虫牴鎹?#28051;瀹?#37928;勭?#24807;害鐢?#37812;?#28598;氭?#30005;嚎锛?/span>

 

?#22158;鎬?#37707;忓樊闄?#37714;?#32450;?#37825;?#37928;勫?#27693;?#30005;嚎涓?#37831;茬嚎涔?#38338;寸殑?#31387;绂?#38171;?#29785;掑害鍋忓樊闄?#37714;舵瘡娈电嚎娈?#32468;?#38318;?#37714;囩嚎鐨勫す瑙?#37510;?/span>

绗簩姝?#37828;?#28725;?#38344;?#26473;?#29723;?#28051;?#29785;掑墫鍒?#37510;傜嚎鎬?#37707;忓樊涔?#38340;?#37714;?#32450;?#37825;?#37928;?#28051;?#29785;?#35120;?#28051;偣鍒?#37831;茬嚎鐨勮窛绂?#37510;?/span>

 

搴?#37922;?#32459;?#25652;忓簲璇?#37819;?#28186;?#38315;傚綋鐨勫?#24531;樊鍙傛暟浠?#26440;?#37714;?#37922;?#37812;愭弧鎰忕殑涓?#29785;?#32515;?#37837;?#37510;傝?#25489;害鍋忓樊Angular deflection姣?#26440;?#32480;鍗?#28051;?#37711;?#29825;?#28003;?#37922;?#28051;涓粯璁?#37706;?#38171;?/span>12~20搴?#38171;?#37510;傜嚎鎬?#37707;忓樊Linear deflection鏈?#32513;?#28725;?#37928;勫惈涔夛紝闇瑕?#37922;?#32459;?#25652;?#37833;?#32513;?#28729;?#23005;?#32429;?#37928;勫?#37510;?#32513;?#28051;涓?#23536;?#28751;忕殑?#22158;鎬?#37707;忓樊鍊?#28028;氬?#33392;?#23544;綉鏍煎墫鍒嗚繃瀵嗭紝娑?#38000;?#28598;?#38322;忓唴瀛?#37721;?#35120;卞搷鏄?#32448;?#37825;?#37916;?#38171;?#28003;?#37828;?#37706;?#28598;?#28598;?#23536;?#37714;?#37928;勭綉鏍?#37825;?#37835;?#28751;?#37828;?#37828;?#32448;?#28598;?#37930;?#37510;傛墍浠?#28725;?#27996;?/span>LOD鐨勭綉鏍?#37833;?#29831;达紝闇瑕佹牴鎹?#22959;?#37736;?#28751;哄鏉?#29825;剧疆鐩?#25652;?#37928;勭嚎鎬?#37707;忓樊鍊?#37510;?/span>

涓?#38344;?#28725;圭綉鏍煎墫鍒嗙?#21227;?#20635;暟璁剧疆杩?#29723;屼簡浠?#32513;嶏紝涓?#38344;?#28725;圭綉鏍煎墫鍒嗙?#21227;疄鐜板師?#24714;杩?#29723;?#29831;?#37828;?#37510;傚洜涓?#37831;茬嚎鏇?#38344;?#37828;?#28051;?#32513;寸殑?#32029;鑰屽鏇?#38344;?#26473;?#29723;屽墫鍒嗙?#21227;?#26334;眰涓?#29785;掑墫鍔?#38003;?#37828;?#28051;簩缁?#28051;?#29785;掑墫鍒?#25652;擄紝?#22669;浠?#32515;?#37837;煎墫鍒嗘?#37928;勬濊矾鏄?#28725;?#37831;茬嚎鍦ㄤ簩缁?#37721;傛暟绌?#38338;?#26473;?#29723;屽墫鍒嗭紝灏?#37721;傛暟绌?#38338;村墫鍒嗙殑缁撴灉閫氳繃鏇?#38344;?#37721;傛暟鏂?#32459;?#37828;?#28751;勫洖鍒?#28051;?#32513;寸┖闂?#37510;?#38315;氳繃瀵?/span>pcurve?#27967;鎴?#37928;勫?#20635;暟绌?#38338;?#38338;悎鍖哄煙杩?#29723;屼簩缁?#28051;?#29785;掑墫鍒嗭紝鍗?#37721;?#28725;?#28051;?#32513;?#37831;?#38344;?#26473;?#29723;屽墫鍒?#37510;傜被BRepMesh_FastDiscretFace鏄?#28725;规?#24526;釜TopoDS_Face杩?#29723;?#32450;?#37825;?#38171;屽叾涓嚱?#26271;control()鏄?#37922;?#37833;?#37818;?#37714;?#37922;?#37812;愮綉鏍?#37928;勮川閲忕殑銆?/span>

 

鏈澶氳凯浠?#23046;℃暟鏄?/span>11娆?#37510;?#37734;?#23011;忎竴娆?#26473;?#28000;h繃绋?#28051;紝妫?#29025;鐢?#37812;?#37928;勬墍鏈?#28051;?#29785;?#35120;?#37734;?#37721;傛暟绌?#38338;?#28051;?#36423;冪偣澶?#28051;?#37831;?#38344;?#37928;勮窛绂?#37828;?#37722;︽弧瓒崇嚎鎬?#37707;忓樊锛屽鏋?#28051;嶆弧瓒筹紝鍒欐彃鍏?#37826;?#37928;勭偣浠?#28186;?#28051;嬫杩?#28000;?#37510;?/span>

 

?#31904;涓?#38344;?#37928;勪唬鐮?#37721;?#28000;ョ湅?#22189;鍏跺疄鐜版濊矾涓?#37711;剁被鍚?/span>Incremental杩樻槸寰堣创鍒?#37928;勶紝鍗冲閲忔硶銆?/span>

 

 

3. Conclusion

OpenCASCADE鐨勭綉鏍煎墫鍒?#28051;?#32515;?#37837;艰川閲?#37818;?#37714;?#37828;?#37929;?#28725;?#38322;?#29781;?#37928;?#37837;?#36423;?#37716;?#38003;?#37510;?#37734;?#37918;嗚В鍏跺師?#24714;鍚?#38171;屽彲浠ヨ嚜宸卞疄鐜?#28051;涓?#37831;存?#21614;櫚鐨勭綉鏍煎墫鍒?#25652;?#37510;?/span>

 

2018骞?#28751;辫繃缁?#37833;熶簡?#32029;?#32342;涓骞?#37824;惰幏棰?#28051;?#38171;屽叾涓?#37832;澶?#37928;勬?#24816;幏灏?#37828;?#37832;?#27996;嗚嚜宸?#37928;?#28751;?#28729;?#28729;?#37510;?/span>

 

鍒?#27996;?#37714;?#23524;?#28000;?#37706;?#37510;傝?#30028;劧OpenCASCADE涓?#37828;?#28729;岀編鐨勶紝浣?#37828;?#28610;?#37828;?#37929;?#37715;?#28051;栫晫涓婂敮涓涓娆惧姛鑳?#37929;?#28725;?#28729;屽杽鐨勫紑鏀?#37928;勫?#29361;綍閫犲瀷搴?#37510;?/span>OpenCASCADE鐨勫紑鏀?#37714;?#27996;紝缁欏?#29808;甫鏉?#37922;?#37832;?#37510;傚綋浠?#27996;哄洜涓烘垜鐨?/span>blog鐨?#37714;?#27996;?#37928;勬枃绔?#37812;?#28000;?#37934;佽?#26050;?#32472;垜鏃讹紝浠?#28000;?#37928;?#28051;澹版劅璋紝?#22428;閮?#28028;氳寰?#23536;堥珮鍏?#37510;?/span>

 

2019骞撮┈涓?#28751;?#29781;?#37714;?#37833;?#38171;屽笇鏈?#28598;?#28729;?#37734;?#37826;?#37928;?#28051;骞?#38322;岋紝鍒?#38315;?#37510;?#37714;涙?#24110;紝绐?#37934;磋嚜?#22428;?#32029;鏇?#28051;?#28051;?#30512;妤?#38171;?/span>


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)


eryar 2018-12-31 22:45 鍙?#29723;?#29831;?#29825;?/a>
]]>RvmTranslator6.6 - RVM to CATIAhttp://www.kffa.tw/eryar/archive/2018/12/09/RVM2CATIA.htmleryareryarSun, 09 Dec 2018 08:35:00 GMThttp://www.kffa.tw/eryar/archive/2018/12/09/RVM2CATIA.htmlhttp://www.kffa.tw/eryar/comments/216114.htmlhttp://www.kffa.tw/eryar/archive/2018/12/09/RVM2CATIA.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216114.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216114.htmlRvmTranslator6.6 - RVM to CATIA

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, .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 RvmTranslator6.6.

 

RvmTranslatoer6.6 is a minor release, which includes the following new features:

 

RvmTranslator鍙?#28000;?#28751;?/span>AVEVA PDMS/Plant/Marine涓?#28725;煎嚭鐨?/span>RVM鏂?#28000;?#26473;?#29723;屽彲瑙嗗?#26677;紝浠?#37721;?#28751;?/span>RVM杞?#37817;?#37812;愬父瑙?#37928;?#28051;?#32513;?#37826;?#28000;?#37837;煎紡銆傚STEP?#32029;IGES?#32029;STL?#32029;DXF, OBJ, 3DPDF, 3DXML绛夛紝渚夸簬涓?#37711;?#28000;?/span>CAD?#37108;缁?#26473;?#29723;屾暟鎹?#27996;?#37817;?#38171;屽Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley绛?#37510;?/span>

 

RvmTranslator6.6涓?#29781;佸鍔?#28725;煎嚭甯?#29825;?#29825;?#32513;撴瀯鐨?/span>STEP鏂?#28000;讹紝姝?#37826;?#28000;?#37734;?#28725;?#37711;?/span>CATIA鍚?#37928;?#32513;撴瀯涓庢ā鍨?#28051;?/span>PDMS涓?#28051;鑷?#38171;屽涓?#37733;炬墍绀?#38171;?/span>

 

Download RvmTranslator

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

  



eryar 2018-12-09 16:35 鍙?#29723;?#29831;?#29825;?/a>
]]>PipeCAD涔嬬閬撴爣鍑?#25652;揚ipeStd(2)http://www.kffa.tw/eryar/archive/2018/11/26/PipeCAD_PipeStd2.htmleryareryarMon, 26 Nov 2018 14:08:00 GMThttp://www.kffa.tw/eryar/archive/2018/11/26/PipeCAD_PipeStd2.htmlhttp://www.kffa.tw/eryar/comments/216082.htmlhttp://www.kffa.tw/eryar/archive/2018/11/26/PipeCAD_PipeStd2.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216082.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216082.htmlPipeCAD涔嬬閬撴爣鍑?#25652;?/span>PipeStd(2)

eryar@163.com

 

Key Words. PipeCAD, PipeStd, 绠?#38316;?#29825;?#29825;?#26462;?#28000;讹紝绠?#28000;?#25652;?/span>

 

1. Introduction

绠?#38316;撴爣鍑?#38318;?#28000;?#25652;?#32459;?#25652;?/span>PipeStd鐨?#28051;?#29781;?#37922;ㄦ硶涓?/span>PDMS鐨?/span>Paragon妯?#37735;楃被浼硷紝涓?#29781;?#28052;?#37828;?#38322;?#37922;?#37721;傛暟鍖?#37928;勬柟?#32033;鏉?#29723;?#32448;虹浠?#37510;傛?#24533;?#23943;被鍨?#37928;?#32480;?#28000;?/span>Category鍖?#37722;?#28051;?#28051;?#38342;嗗悎锛氬?#20635;暟闆?/span>Parameter Set銆佺偣闆?/span>Point Set鍜屽舰闆?/span>Geometry Set銆?#37832;?#37826;?#28051;?#29781;?#37833;?#28000;?#32513;?#28641;備綍鍒?#23524;?#28051;涓?#37721;傛暟鍖?#37928;?#37837;?#37713;嗙浠?#37510;傚涓?#37733;炬墍绀?#28051;?#28051;甯?#26864;?#28725;圭?#23107;硶鍏?/span>Weld Neck Flange鐨勫?#20635;暟鍖?#32480;?#28000;?#38171;?/span>

鍥?/span>1 ?#30838;鍏?#37721;傛暟鍖栨ā鍨?/span>

 

2. Category

?#34987;鍨?/span>Category鏄?#28051;?#34987;绠?#28000;舵暟鎹?#37928;勯?#21975;悎锛屽90搴?#23534;?#28598;?#37510;?#38338;?#38339;绛?#37510;?#37714;?#23524;虹被鍨?#37928;勬?#36346;?#28028;氳嚜鍔?#37714;?#23524;?#37711;?#28051;?#28051;?#36423;?#26916;?#37928;勯?#21975;悎锛氬?#20635;暟闆?#37510;佺偣闆?#37724;屽舰闆?#38171;屽涓?#37733;炬墍绀?#38171;?/span>

鍥?/span>2 鍒?#23524;?/span>Category

 

3. Parameter Set

鍙傛暟闆嗗悎Parameter Set鐢?#37833;?#28729;?#28052;?#29831;?#32457;嶇被鍨?#37928;?#32480;?#28000;?#38343;瑕?#26440;?#37711;?#37725;?#27996;?#37721;傛暟?#32029;鍗?#32480;?#28000;?#37837;?#37713;?#28051;?#28729;?#28052;?#37928;勬暟鎹?#37510;?/span>

鍥?/span>3 甯?#26864;?#28725;圭?#23107;硶鍏?#28751;哄?#21578;暟鎹?#29723;?#37837;?/span>

涓?#37733;?#37833;?#27996;?#38171;?/span>http://www.wermac.org/flanges/dimensions_welding-neck-flanges_asme-b16-5.html

涓?/span>ASME B16.5鏍?#37713;?#28051;?#28729;?#28052;?#37928;?#28751;哄?#21578;暟鎹?#37510;傚叾涓?#23011;忎釜灏哄锛屽A?#32029;D绛?#38318;?#37721;?#28000;ョ湅浣?#28051;鸿繖閲屽?#20635;暟闆?#28051;?#37928;?#28051;涓?#37721;傛暟銆?/span>

鍥?/span>4 鍙傛暟闆?#28729;?#28052;?/span>

姣忎竴涓?#37721;傛暟鍙?#28000;?#28725;?#25652;?#28051;涓?#28751;哄?#38761;紝鍦?#28051;?#37733;?/span>4?#22669;绀?#37928;勫乏杈?#28729;?#28052;夊ソ鍙傛暟闆?#37722;庯紝鍦?#37721;?#26440;?#37928;?#37714;?#29723;?#28051;?#37721;?#28000;?#28051;烘?#24526;釜绠?#23536;?#37928;?#32480;?#28000;?#26440;?#37711;?#37929;?#25652;?#37928;?#28751;哄?#21578;暟鎹?#37510;?/span>

 

4. Point Set

?#20579;闆?/span>Point Set涓?#29781;?#37922;?#37833;?#28729;?#28052;?#32480;?#28000;?#37928;?#26473;?#37818;ョ偣鎴?#28051;浜?#26440;?#37716;?#28729;?#28052;?#28003;嶇偣銆傚涓?#37733;炬墍绀?#38171;?/span>

鍥?/span>5 ?#20579;闆?#28729;?#28052;?/span>

姣忎釜?#20579;闇瑕?#28729;?#28052;?#28051;涓?#32514;?#37721;?#38171;屽浜庣偣鐨勭紪鍙?#28052;?#37832;?#32510;?#28729;?#37510;傚?#20634;浜庢櫘閫?#37928;?#32480;?#28000;讹紝缂?#37721;?/span>1銆?/span>2琛?#32448;虹浠?#37928;?#28051;?#32468;?#37510;傚浜?#28051;?#38315;氬叾?#25966;绠?#29781;?#37922;?#32514;?#37721;?/span>3绛?#37510;傝繖浜?#32510;?#28729;?#37828;?#28051;?#27996;?#37722;?#38344;?#37922;?#37812;?#26462;存祴鍥?#37928;?#29781;?#23033;?#37510;傜偣鐨勪綅缃?/span>PX?#32029;PY?#32029;PZ鍙?#37826;?#37722;?/span>DX?#32029;DY?#32029;DZ閮?#37828;?#37721;?#28000;?#37922;?#37715;?#38344;?#28729;?#28052;?#37928;勫?#20635;暟琛?#32448;?#37510;傚?#20635;煇涓?#37706;?#29781;?#37922;?#37721;傛暟1?#32029;灏卞?#27408;垚$PA1銆傛?#26668;?#26473;?#37721;?#28000;?#37922;ㄦ暟瀛?#29723;?#26440;惧紡锛屽锛?/span>$PA1 + 2 * cos($PA2)绛?#37510;?/span>

 

5. Geometry Set

褰?#38342;?/span>Geometry Set涓?#29781;?#37833;?#28729;?#28052;?#32480;?#28000;?#37928;勫?#29361;綍褰㈢姸銆備娇鐢?#28051;浜涘熀鏈?#35120;㈢姸锛屽?#20638;暱鏂?#28003;擄紝鍦嗘煴浣?#37510;?#37734;?#37721;颁綋绛?#37833;?#37835;?#38315;?#32480;?#28000;?#28598;?#35120;?#37510;傛?#24533;?#23941;熀鏈?#28003;?#38318;?#37828;?#37922;?#37721;傛暟琛?#32448;?#38171;屽涓?#37733;炬墍绀?#28051;?#37734;嗘煴浣?#37928;勫?#20635;暟锛?/span>

鍥?/span>6 鍙傛暟鍖栧熀鏈?#28003;?/span>

瀵?#27996;?#37734;嗘煴浣擄紝闇瑕?#32429;?#28729;氬?#24816;酱鍚?/span>PAXI?#32029;?#29678;搴?/span>PHEI鍙?#37929;?#23536;?#38171;?/span>PDIA锛?#32475;?#37510;傚浜庢暟鎹?#37706;煎瀷鐨勫?#20635;暟閮?#37828;?#37721;?#28000;?#28003;?#37922;ㄦ暟瀛?#29723;?#26440;惧紡鏉?#29723;?#32448;?#37510;傝繖鏍?#37721;?#28000;?#28003;?#28051;?#37722;?#37928;?#32480;?#23536;勫搴?#28051;?#37722;?#37928;勫舰?#23032;銆?/span>

鍥?/span>7 DN10?#25328;DN80鐨勬硶鍏?/span>

 

6. Conclusion

缁?#28051;婃墍杩帮紝閫氳繃瀹?#28052;?#37721;傛暟闆?#37510;佺偣闆?#37724;屽舰闆?#37833;ュ疄鐜?#37837;?#37713;嗙浠?#37928;勫?#20635;暟鍖?#37510;?#38315;氳繃缁熶竴鐨勬柟?#32033;锛屽浠绘剰鏍?#37713;嗙浠?#26473;?#29723;屽?#20635;暟鍖?#28598;勭悊銆傝繖鏍?#32459;?#25652;忔搷浣?#37826;?#23534;忕?#29110;竴?#32029;浣?#37922;?#32480;鍗?#37510;傚浜?#28051;浜?#37911;规?#23108;浠讹紝涔熷彲浠?#38315;氳繃?#32342;绉?#37826;瑰紡鏉?#23524;烘ā?#32029;鐏垫?#26127;嚜鐢?#37510;?#28051;嶅儚鏈?#37928;勮蒋浠?#37828;?#28751;嗙浠剁被鍨嬮氳繃纭?#32514;?#37934;?#37928;勬柟寮忓啓鍦?#32459;?#25652;忎腑锛屽鏋?#29781;佸鍔?#32459;?#25652;忎腑?#30149;鏈?#37928;?#32480;?#28000;剁被鍨?#38171;屽彧鏈夋敼绋?#25652;忕殑涓?#28186;?#37510;?/span>

绠?#28000;?#37837;?#37713;?#25652;?#32459;?#25652;?/span>PipeStd鐨?#32480;?#28000;?#28729;?#28052;夊熀鏈?#37812;愬?#23350;紝涓?#28051;姝ュ疄鐜扮閬?#32475;夌骇Piping Specification鍔?#38003;?#37510;?#32480;?#38316;?#32475;夌骇鐨勪綔鐢?#28051;?#29781;?#37922;?#27996;?#32475;?#38315;夎繃?#25252;?#32029;鏂?#28186;?#37833;?#37826;欐帶鍒?#37510;傝冭檻鍒?#37722;?#38344;?#37922;?#37812;?/span>ISO杞存祴鍥?#37928;勫姛鑳?#38171;屽洜涓烘?#24533;绠?#28000;?#38318;?#28028;?#37832;?/span>SKEY?#32029;鑰岃繖浜?/span>SKEY宸?#32513;?#37714;嗗?#30028;被鍨?#27996;?#37510;傛墍浠?#32480;?#38316;?#32475;夌骇鐨勫?#21229;悊涔?#28751;?#38322;忕畝鍖栵紝鐩?#37818;ユ牴鎹?/span>SKEY鏉?#37714;?#28598;?#37928;勭被鍨?#37721;?#28751;忕被锛屽?#20635;硶鍏?#37928;勫ぇ?#34987;涓?/span>Flange?#32029;灏忕被閲?#38344;㈡牴鎹?/span>SKEY鏉?#32475;?#38315;夛紝FLWN?#32029; FLSO绛?#37510;?/span>



eryar 2018-11-26 22:08 鍙?#29723;?#29831;?#29825;?/a>
]]>PipeCAD涔嬬閬撴爣鍑?#25652;揚ipeStdhttp://www.kffa.tw/eryar/archive/2018/11/25/PipeCAD_PipeStd.htmleryareryarSun, 25 Nov 2018 14:27:00 GMThttp://www.kffa.tw/eryar/archive/2018/11/25/PipeCAD_PipeStd.htmlhttp://www.kffa.tw/eryar/comments/216080.htmlhttp://www.kffa.tw/eryar/archive/2018/11/25/PipeCAD_PipeStd.html#Feedback2http://www.kffa.tw/eryar/comments/commentRss/216080.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216080.htmlPipeCAD涔嬬閬撴爣鍑?#25652;?/span>PipeStd

eryar@163.com

 

Key Words. PipeCAD, PipeStd, 绠?#38316;?#29825;?#29825;?#26462;?#28000;讹紝绠?#28000;?#25652;?/span>

 

1. Introduction

鍓?#28051;?#28052;咃紝涓?#28003;?#38000;?#37721;嬪緪鎬诲拰姣涙?#37734;?#28051;?#23092;?#23092;?#28051;?#38322;戞ˉ鐨?#28051;鑼?#28051;?#28503;灏忚仛锛屽洖鎯?#37714;?#37713;?#39582;村?#23942;垜浠?#28000;?#37734;?#38317;?#38322;岃仛浼?#37928;勬儏鏅?#37510;備粬浠?#37714;?#37714;?#37734;?/span>A鍏?#37721;稿拰I鍏?#37721;革紝鎴戝?#25780;椂鍦ㄥ仛SPD鐨勫紑鍙?#37510;?#37734;?#28051;璧疯亰鐨?#29831;?#26864;?#28052;?#37828;?#37711;?#27996;?#29825;?#29825;?#26462;?#28000;?#37928;?#38171;屽?#25780;椂涔?#37832;?#28051;浜涙?#37807;崇?#29256;挒鐨勭伀鑺憋紝鎯崇潃鍋氬嚭涓涓?#28000;涔?#26462;?#28000;讹紝鎴?#28051;?/span>CEO?#32029;杩庡?#21057;?#34249;瘜缇庯紝璧?#28051;?#27996;?#37922;?#26916;跺嘲銆?#32513;撴灉鍑?#39582;磋繃鍘?#38171;屽綋骞?#37722;硅繃鐨勭墰B?#32029;?#30149;鏈夊疄鐜?#37510;傚叾涓?#37832;?#28051;涓?#28751;?#37828;仛涓涓?#32480;?#38316;撴爣鍑?#25652;?#32459;?#25652;忥紝鏂?#28186;?#32480;?#28000;?#37928;?#28729;?#28052;?#37510;?#28729;?#28052;夊ソ涔?#37722;?#38171;屽彲浠?#28725;?#37711;?/span>AVEVA PDMS?#25328;Intergraph SmartPlant銆?/span>

?#28229;?#28483;鍥藉?#21613;伐鍘?/span>/鑸?#38008;?#29825;?#29825;?#26462;?#28000;跺PDSOFT?#32029;UESOFT?#32029;PDMAX杩?#37832;?#38008;?#38008;?#29825;?#29825;?#26462;?#28000;?/span>SPD閮?#28051;嶆俯涓嶇伀?#32029;鑰?#28051;?#37733;?#28598;?#37928;?/span>AVEVA PDMS/Marine, Intergraph SmartPlant宸?#32513;?#37719;?#37817;?#27996;嗗?#34249;?#21613;競鍦猴紝鏈?#37827;舵垜涔熷湪鎯?#23534;鍙?#28051;涓師鏉?#22986;?#37807;?#37928;?#32480;?#38316;?#29825;?#29825;?#26462;?#28000;?#37928;勬?#24526;?#22794;拰浠?#37706;?#37510;?/span>

AVEVA PDMS/Marine?#22428;瑙?#23536;?#37828;?#32480;鍗?#37828;?#37922;?#37928;勮蒋浠讹紝涓鑷寸殑鎿?#28003;?#37826;瑰紡锛屽熀浜?/span>CSG鐨?#38315;犲?#23340;畻?#30838;?#32029;杩樻彁渚?#27996;嗕簩娆?#23534;鍙?#29831;?#29815;PML鍙?/span>C#鏉?#28725;?#32459;?#25652;?#26473;?#29723;岀?#22443;椿鎵?#28766;?#37510;傚熀浜庢枃浠?#37928;勫眰娆℃暟鎹?#25652;?#38171;屽苟鎻?#28186;?#27996;嗘暟鎹?#25652;?#37928;勫銆?#37714;?#37510;佹敼鍙婃暟鎹?#37733;為鍔?#38003;?#38171;屽彲浠?#37922;?#27996;?#28598;?#28051;?#37736;嬮」鐩?#29825;?#29825;?#37510;?#37922;?#27996;?#23536;?#28729;?#37828;撳緱鍒板拰璋愮増?#32029;?#22669;浠?#37922;?#37812;?#23536;?#28598;?#37510;?/span>

Intergraph SmartPlant鏄?#32519;?#37733;?#37928;?#28051;娆?#26462;?#28000;讹紝鐢?#27996;?#37711;?#28000;?#37837;?#37828;傝?#30857;紝鍦?#37733;藉唴鐨?#37922;?#37812;?#38318;?#37828;?#28051;?#23480;?#38333;?#37928;?#37719;?#28003;?#37510;?#37922;?#27996;庢病鏈?#28003;?#37922;ㄨ繃?#32029;?#22669;浠?#28725;?#37711;?#28051;?#28186;夸簬璇勪环銆備絾鏄?#37922;?#27996;?#37733;藉唴澶?#37832;?#28051;?#28051;?#28028;氭寚瀹氳繖娆?#26462;?#28000;讹紝?#22669;浠?#37733;?#38340;?#28051;?#37922;?#37812;?#28052;熷緢澶?#37510;?/span>

鍐嶇湅鍥藉唴鐨勫伐鍘?/span>/鑸?#38008;?#29825;?#29825;$郴缁?/span>PDSOFT?#32029;UESOFT?#32029;PDMAX鍙?/span>SPD绛夛紝閮?#37828;?#37737;?#27996;?/span>AutoCAD寮鍙?#37928;?#37510;?#37827;?#37832;熷熀浜?/span>AutoCAD锛屽洜涓?/span>AutoCAD姣?#26440;冩櫘鍙婏紝?#22669;浠?#28028;氬惛寮?#28051;浜?#28028;?/span>AutoCAD鐨?#37922;?#37812;?#37510;備絾鏄?#37737;?#27996;?/span>AutoCAD寮鍙?#32459;?#25652;忓?#23108;涔?#28051;鏄?/span>AutoCAD鐗?#37832;?#37719;囩骇?#32029;绋?#25652;?#29781;?#37807;?#38315;傚簲AutoCAD?#32029;涔熷繀椤昏?#29114;潃鍗囩骇銆傚?#23108;?#31785;鏄?/span>AutoCAD鐨勬彁渚?#37928;勫紑鍙戝簱ObjectARX, .NET绛?#38318;?#28051;?#37828;?#23534;婧?#37928;?#38171;屽鏋?#37828;?#38317;?#27996;?#25652;撳嚭鐜?/span>BUG鎴?#37828;?#28051;嶆敮鎸?#37928;勫姛鑳斤紝瑕?#28052;?#37720;诲拰Autodesk鍏?#37721;?#23052;?#38315;氾紝瑕?#28052;?#37721;?#37832;?#32513;?#38316;?#27996;?#37510;?#37832;?#37928;勪娇鐢?/span>ObjectARX鐨?/span>C++搴?#23534;鍙戯紝铏界劧绋?#25652;?#37804;?#38003;藉?#26020;紝杩?#37734;?#28003;?#37922;?/span>MFC?#20187;GUI?#32029;浣?#37828;?#23534;鍙?#37825;?#37916;?#28003;?#37510;傚?#23108;涔?#28051;?#37828;?#37832;?#27996;?#37716;?#38003;?#28051;?/span>AutoCAD鐨勫姛鑳?#32510;犵紶涓嶆?#21635;紝鐢?#37812;?#28003;?#26976;?#28051;?#28598;?#37721;嬪ソ銆?/span>

涓?#27996;嗗疄鐜?#37713;?#39582;村墠鐨勬ⅵ鎯筹紝鎴戝喅瀹氬紑鍙?#28051;涓?#32480;?#38316;?#29825;?#29825;?#26462;?#28000;?/span>PipeCAD銆?/span>

 

2. PipeCAD

瀵?/span>PipeCAD鐨?#28051;涓?#28729;?#28003;?#28751;?#37828;?#38315;?#37922;?#27996;?#28051;?#28751;忓?#23342;」鐩?#37928;?#32480;?#38316;?#29825;?#29825;?#26462;?#28000;?#37510;傚洜涓?#28598;?#37736;嬮」鐩?#37928;?#37922;?#37812;?#28051;鑸?#38318;?#37828;?#37922;?/span>PDMS鎴?/span>SmartPlant銆?/span>

浣?#37922;?#23534;婧?#25652;?/span>OpenCASCADE鏉?#26473;?#29723;?#28051;?#32513;?#37733;惧舰寮鍙戯紝浣?#37922;?#23534;婧?#25652;?/span>Qt鏉?#26473;?#29723;?/span>GUI寮鍙戯紝鎻愰珮绋?#25652;忓紑鍙?#37825;?#37916;?#37510;傚洜涓轰娇鐢?#23534;婧?#37814;鏈?#38171;屽嚭鐜?/span>BUG鍙?#28000;ヤ粠?#29300;鎹?#28051;?#29785;?#37712;?#37510;?#28051;?#28186;濊禆鍏?#28000;?#38338;?#23143;?#37928;勮蒋浠讹紝涓?#28028;?#37832;?#37711;?#28000;栬蒋浠?#37719;囩骇甯?#37833;?#37928;勫?#21342;搷銆?/span>

涓氬姟鏍?#36423;?#37716;?#38003;?#38318;借嚜宸卞疄鐜帮紝绋?#25652;忚嚜涓?#37721;?#37818;э紝鏂?#28186;?#28583;?#37716;?#37826;板姛鑳?#37510;?/span>

 

PipeCAD鐨?#37714;?#23005;?#23534;鍙?#28000;?#28051;嬪姛鑳芥ā鍧?#38171;?/span>

绠?#28000;?#25652;?#32475;夌骇搴?#32480;?#37918;嗙▼搴?/span>PipeStd锛?/span>

涓?#32513;?#29825;?#29825;?#22959;?#37735;?/span>PipeCAD锛?/span>

绠?#38316;?#26462;存祴鍥惧嚭鍥炬ā鍧?/span>IsoAlgo銆?/span>

 

3. PipeStd

PipeStd涓?#29781;?#37922;?#37833;?#28725;?#32480;?#28000;?#37837;?#37713;嗘暟鎹?#37510;?#32480;?#38316;?#32475;夌骇绛夋暟鎹?#26473;?#29723;?#32480;$悊銆?#37832;?#27996;嗙浠舵暟鎹紝灏?#37721;?#28000;?#28725;?#32480;?#28000;?#26473;?#29723;?#28051;?#32513;?#37828;?#32448;?#37510;?#37832;?#27996;嗙閬?#32475;夌骇?#32029;灏?#37721;?#28000;?#37734;?#28051;?#32513;?#29825;?#29825;?#22959;?#37735;?#37833;?#28003;?#37922;?#32480;?#28000;?#37833;?#28725;?#32480;?#38316;?#26473;?#29723;屽缓妯?#37510;?/span>PipeStd鐨勪娇鐢?#37826;?#23534;忎笌PDMS鐨?/span>Paragon妯?#37735;楃被浼硷紝閫氳繃鍙傛暟鍖?#37928;勬柟?#32033;鏉?#28729;?#28052;?#32480;?#28000;?#37510;?#37929;?#37715;?#32459;?#25652;忕殑涓?#29781;佸姛鑳藉凡缁忓疄鐜帮紝绋?#25652;忕晫闈?#28641;?#28051;?#37733;炬墍绀?#38171;?/span>

鍏?#28051;?#26473;?#29825;?#37807;?#37928;勫姛鑳?#37832;?#38171;?/span>

瀵?#37711;?#37510;佸?#29006;嚭PDMS涓?#37928;?#32480;?#28000;?#37721;婄閬?#32475;夌骇Piping Specification?#26271;鎹?#38171;?/span>

瀵?#37711;?#37510;佸?#29006;嚭SmartPlant涓?#37928;?#32480;?#28000;?#37721;婄閬?#32475;夌骇Piping Specification?#26271;鎹?#38171;?/span>

 

4. Conclusion

涓?#28003;?#37721;?#27996;?#37928;勬彁閱?#38171;屽喅瀹氬紑鍙?#28051;涓?#28051;?#32513;寸閬?#29825;?#29825;?#26462;?#28000;?/span>PipeCAD銆?#28051;?#28051;?#28751;忓?#23342;」鐩?#37928;?#32480;?#38316;?#29825;?#29825;?#37819;?#28186;?#27996;?#28051;涓?#38315;?#37815;?#37510;?#37837;?#36423;?#37716;?#38003;?#38318;借嚜宸卞疄鐜帮紝绋?#25652;忚嚜涓?#37721;?#37818;?#37510;?#28051;?#28186;濊禆鍏?#28000;栬蒋浠?#38171;屽AutoCAD?#32029;鎻?#28186;涜壇濂?#37928;?#37922;?#37812;?#28003;?#26976;?#37510;?/span>

 



eryar 2018-11-25 22:27 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE Face Normalshttp://www.kffa.tw/eryar/archive/2018/10/17/Face_Normals.htmleryareryarWed, 17 Oct 2018 14:02:00 GMThttp://www.kffa.tw/eryar/archive/2018/10/17/Face_Normals.htmlhttp://www.kffa.tw/eryar/comments/216013.htmlhttp://www.kffa.tw/eryar/archive/2018/10/17/Face_Normals.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216013.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216013.htmlOpenCASCADE Face Normals

eryar@163.com

 

Abstract. 瑕?#37828;?#32448;?#28051;涓?#38315;肩湡鐨?#28051;?#32513;存ā鍨?#38171;屽叾椤剁偣?#28503;鏍?#37510;侀?#21057;偣?#30838;鍚?#37510;?#32510;圭?#21975;潗鏍囪繖涓?#28051;?#28103;?#37805;?#36423;?#28051;?#37721;?#28751;?#37510;?#37832;?#37826;?#28051;?#29781;佷粙缁?#28641;備綍鍦?/span>OpenCASCADE鐨?/span>Draw涓?#37828;?#32448;哄嚭鏇?#38344;?#37928;勬硶鍚?#38322;忥紝閫氳繃浣?#37922;?#37929;?#37711;冲懡浠わ紝鏉?#37826;?#28186;?#37734;板鏇?#38344;?#37928;勬硶鍚?#26473;?#29723;屾?#29025;銆?/span>

Key Words. Face, Surface, Normals

1. Introduction

鏇?#38344;?#28051;婄偣鐨勬硶鍚?#38322;忓浜?#28051;?#32513;?#37828;?#32448;虹▼搴?#37833;?#29831;?#37828;?#28051;涓?#38322;?#29781;?#37928;勬暟鎹紝浠?#37928;?#23005;?#32429;?#28051;?#37722;?#37929;?#37818;?#35120;卞搷鏇?#38344;?#28725;?#37711;夌収鐨勫弽搴?#26473;涜屽?#21342;搷鏄?#32448;?#37825;?#37835;?#37510;傚涓?#37733;炬墍绀?#28051;?#37722;?#28051;涓?#37918;?#37928;?#28051;?#32513;?#37828;?#32448;猴紝涓?#37722;?#37928;勬硶鍚戝緱鍒?#37928;?#37828;?#32448;?#37825;?#37835;?#37828;?#28051;?#37722;?#37928;?#37510;?/span>

 

瀵?#27996;?/span>OpenGL鏉?#29831;达紝鎻?#28186;?#27996;嗘帴鍙?/span>glNormal()鏉?#29825;剧疆?#30838;鍚?#38322;?#37510;傚叧浜?/span>OpenCASCADE涓?#37831;?#28598;?#37831;?#38344;㈡硶鍚?#38322;?#29825;$畻鍙?#37929;?#37711;充俊鎭?#38171;屽彲浠?#37721;傝冨師鏉?#37712;?#37928;?/span>blog:

Topology and Geometry in OpenCascade-Face

Surface Normal Vector in OpenCascade

Surface Normal Averaging

?#31904;?#32342;浜涙枃绔?#28051;?#37721;?#28000;ョ湅?#22189;?#32029;涓?#28051;鑸?#37828;?#32448;哄?#26335;搸涓?#37722;?#37928;?#37828;紝OpenCASCADE瀵?#27996;?#38315;氳繃閫犲?#23340;畻?#30838;鏋?#38315;?#37928;勬ā鍨嬶紝鐢?#27996;?#37711;跺唴鍦?#37928;勭簿纭?#37721;傛暟鏂?#32459;?#37928;?#29723;?#32448;?#38171;屽彲浠ョ簿纭?#29825;$畻?#22189;鏇?#38344;?#28051;?#28000;绘?#24533;偣澶?#37928;勬硶鍚?#38322;?#37510;傝?#28051;?#37922;?#37709;忎竴鑸?#37928;?#37828;?#32448;哄?#26335;搸閭?#37837;凤紝閫氳繃璁$畻骞冲?#22248;硶鍚戠被浼?#37928;勭畻?#30838;鏉?#28598;勭悊椤剁偣?#30838;鍚?#37510;?/span>

2. Face Normals

鍦?/span>OpenCASCADE鏃?#37832;?#37911;?#37832;?#37928;?/span>Draw Test Harness涓?#37819;?#28186;?#27996;?/span>normals鍛?#28000;?#38171;屽彲浠?#28751;?#37831;?#38344;?#37928;勬硶鍚?#37828;?#32448;哄嚭鏉?#37510;?/span>

鍛?#28000;?#37922;ㄦ硶濡?#28051;?#38171;?/span>

normals shape [Length {10}] [-NbAlongU {1}] [-NbAlongV {1}] [-UseMesh] [-print], display normals

閫氳繃鐩?#25652;?#37928;勫?#20635;暟鍙?#28000;?#29825;剧疆?#30838;?#22158;绠?#28598;寸殑?#26289;搴?#37510;佹部鏇?#38344;?#37721;傛暟UV鏂?#37722;?#37828;?#32448;烘硶鍚?#37928;勬暟閲?#37510;?#37828;?#37722;?#37828;?#32448;虹綉鏍?#37928;勬硶鍚?#37721;?#37828;?#37722;?#37813;?#37719;?#37734;?/span>Draw鐨勫懡浠?#32464;?#37721;?#28051;?#37510;?#28051;?#38344;?#38315;氳繃鏄?#32448;?#28051;涓?#37734;嗘煴浣?#37722;?#28051;?#38344;?#37928;勬硶鍚?#37833;?#29831;?#37828;庡懡浠?#37928;?#37922;ㄦ硶銆傚懡浠?#37714;楀嚭濡?#28051;?#38171;?/span>

axo

pcylinder c 10 20

normals c

fit

棣?#37711;?#28003;?#37922;?#37723;?#28000;?/span>axo鎵?#23534;涓涓簩缁?#26462;存祴瑙嗗浘銆?/span>

鍐?#28003;?#37922;?#37723;?#28000;?/span>pcylinder鍒?#23524;?#28051;涓?#37719;?#23536;?/span>10?#32029;?#29678;搴?/span>20鐨?#37734;嗘煴浣?#38171;?/span>

浣?#37922;?#37723;?#28000;?/span>normals鏉?#37922;ㄩ粯璁?#37721;傛暟鏄?#32448;哄嚭鍦嗘煴鐨勬硶鍚?#38171;?/span>

浣?#37922;?/span>fit鍛?#28000;?#37833;?#32514;?#37824;句簩缁?#26462;存祴瑙嗗浘銆?/span>

 

鍏?#28051;?#32510;㈣壊琛?#32448;烘硶?#22158;鏂?#37722;?#28051;?#37828;?#32448;?#37928;勬柟鍚?#28051;鑷达紝钃濊壊琛?#32448;烘硶鍚?#28051;?#37828;?#32448;?#37928;勬柟鍚?#37929;?#37721;?#37510;?#37922;?#27996;庤繖涓簩缁?#26462;存祴瑙嗗浘涓?#38003;?#28000;绘剰鏃嬭浆銆佺缉鏀撅紝?#30149;鏈?#28051;?#32513;?#29785;嗗浘鏂?#28186;匡紝?#22669;浠?/span>OpenCASCADE鍙?#37819;?#28186;?#27996;?#28051;涓?#37734;?#28051;?#32513;?#29785;嗗浘涓?#37828;?#32448;?#37831;?#38344;㈡硶鍚?#37928;勫懡浠?/span>vnormals?#32029;鐩?#37711;?#37721;傛暟璁剧疆涓?/span>normals涓鑷?#37510;傛墍浠?#28051;?#38344;?#28051;?#29781;?#37734;?#28051;?#32513;?#29785;嗗浘涓?#37833;?#28725;硅繖鍑?#28051;?#37721;傛暟鐨?#37922;ㄦ硶杩?#29723;?#29831;?#37828;?#37510;傚叾涓?/span>vnormals鍛?#28000;?#37922;ㄦ硶濡?#28051;?#38171;?/span>

Displays/Hides normals calculated on shape geometry or retrieved from triangulation

vnormals Shape [{on|off}=on] [-length {10}] [-nbAlongU {1}] [-nbAlongV {1}] [-nbAlong {1}]

                :        [-useMesh] [-oriented {0}1}=0]

褰?#28003;?#37922;ㄩ粯璁?#37721;傛暟鏉?#37828;?#32448;?#28051;?#38344;?#37928;?#37734;嗘煴浣?#37928;勬硶鍚?#37827;讹紝鐩?#37818;?#26440;?#37711;?#37723;?#28000;?#38171;?/span>vnormals c

 

?#27932;涓?#37734;?#28051;?#32513;?#29785;嗗浘涓?#28003;?#37922;?#32480;?#28598;?#37833;?#29723;?#32448;烘硶鍚?#37928;勬柟鍚戯紝?#22669;浠?#28051;?#37922;?#26864;滆壊鏉?#37718;?#37714;?#37826;?#37722;?#37928;?#23005;?#37721;?#37510;?#37922;?#28051;?#37733;?#37721;?#29785;?#38171;屽簳闈?#37928;勬硶鍚?#23005;?#32429;?#37928;勫簲璇?#29781;?#37721;?#37722;?#37510;傞粯璁?#37721;傛暟鍙?#37828;?#32448;?#37928;?/span>TOPO闈?#28051;?#37928;勫?#29361;綍闈?#37928;勬硶鍚戯紝?#30149;鏈?#38000;冭檻TOPO闈?#37928;勬柟鍚?#37510;?#38315;氳繃鍙傛暟-oriented浣垮懡浠?#37828;?#32448;烘硶鍚?#37827;惰冭檻TOPO闈?#37928;勬柟鍚戯紝鍗?#37832;缁?#37828;?#32448;?#37922;?#37928;勬硶鍚?#37826;?#37722;?#37510;傚懡浠?#28051;?#38171;?/span>

vnormals c -oriented

 

涓?#38344;?#23011;忎釜闈?#28051;?#37721;?#37828;?#32448;?#27996;?#28051;涓硶鍚?#38171;屽浜?#37734;嗘煴闈?#23536;?#37828;?#37828;?#28051;涓硶鍚?#28051;?#28598;?#37510;?#37721;?#28000;?#38315;氳繃鍙傛暟-nbAlong绛?#37833;?#29825;剧疆鏇?#38344;?#37734;?#37721;傛暟UV鏂?#37722;戞硶鍚?#37928;?#28051;暟銆?/span>

 

瀵?#27996;?#37828;?#32448;烘暟鎹?#37719;?#28051;?#29785;?#32515;?#37837;奸?#21057;偣鐨勬硶鍚?#37721;?#28000;?#38315;氳繃鍙傛暟-useMesh鏉?#37816;?#28729;?#37510;傝繖涓?#37922;ㄦ硶鍙?#28000;?#37826;?#28186;?#37734;版?#29025;缃?#37837;兼暟鎹?#37928;勯?#21057;偣鍙婇?#21057;偣?#30838;鍚?#37510;?/span>

鏄?#32448;?#28051;涓灪鏃嬫〃妯?#37736;?#38344;?#37928;勬硶鍚?#38171;?/span>

杩?#37721;?#28000;?#38315;氳繃璁剧疆鍙傛暟on鍙?/span>-length鏉?#29825;剧疆?#30838;鍚?#37928;?#37828;?#32448;?#28051;?#28051;?#37828;?#32448;?#38171;屽強?#30838;鍚?#37928;?#37828;?#32448;洪暱搴︼紝?#32342;閲?#28751;?#28051;?#32513;嗚浜嗭紝璇?#38000;?#37721;?#28000;ヨ嚜宸辨祴璇?#37510;?/span>

3. Conclusion

缁?#28051;婃墍杩帮紝OpenCASCADE鍦?/span>Draw Test Harness涓?#28751;佽浜?#37828;?#32448;?#38344;㈡硶鍚?#37928;勫懡浠?/span>normals?#25328;vnormals銆?#38315;氳繃浣?#37922;ㄨ繖浜涘懡浠?#37721;?#28000;?#37826;?#28186;?#37734;?#37833;?#22955;?#29025;闈?#37928;勬硶鍚?#37828;?#37722;?#23005;?#32429;?#37510;?#28751;?#37711;?#37828;?#37721;傛暟-useMesh

鏉?#37828;?#32448;虹綉鏍?#28051;?#37928;勬硶鍚戝姛鑳?#38171;屽浜庢ā鍨?#37928;?#37828;?#32448;虹綉鏍兼暟鎹?#28051;?#37928;勯?#21057;偣?#30838;鍚?#37928;勬?#29025;寰?#37832;夊府鍔?#37510;?#38315;氳繃?#29025;鎵?#37929;?#37711;冲懡浠ゅ疄鐜?#37928;勬簮鐮?#38171;屽彲浠?#37826;?#28186;?#37734;版壘鍒?#37929;?#37711;?#37716;?#38003;藉疄鐜?#37928;勬簮鐮侊紝?#32342;涔?#37828;?#23534;婧?#37928;?#28051;涓?#28028;樺娍銆?br />


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)



eryar 2018-10-17 22:02 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE Make Face With Holeshttp://www.kffa.tw/eryar/archive/2018/10/14/MakeFaceWithHoles.htmleryareryarSun, 14 Oct 2018 07:40:00 GMThttp://www.kffa.tw/eryar/archive/2018/10/14/MakeFaceWithHoles.htmlhttp://www.kffa.tw/eryar/comments/216009.htmlhttp://www.kffa.tw/eryar/archive/2018/10/14/MakeFaceWithHoles.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/216009.htmlhttp://www.kffa.tw/eryar/services/trackbacks/216009.htmlOpenCASCADE Make Face With Holes

eryar@163.com

OpenCASCADE鎻?#28186;?#27996;?#37835;?#38315;燜ace鐨勭被BRepBuilderAPI_MakeFace?#32029;浣?#37922;ㄨ繖涓被鍙?#28000;?#37835;?#38315;犲嚭甯?#28699;?#37928;?#38344;?#37510;傚涓?#37733;炬墍绀?#38171;?/p>

wps_clip_image-21779

褰?#37906;讹紝瑕佸緱鍒?#28051;?#37733;炬墍绀?#37928;?#32513;撴灉?#32029;杩?#37721;?#28000;?#28003;?#37922;˙oolean鎿?#28003;滐紝鐢?#28051;涓?#38344;?#37720;籆ut鍑?#28051;?#37734;嗘煴銆傚綋浣?#37922;ㄥ竷灏旀搷浣?#28751;?#28028;氭秹鍙?#37714;?#28051;浜?#28598;?#37833;傜畻?#30838;锛屽姹備氦?#32029;閲?#37835;凾opo浣?#32475;夛紝姣?#26440;?#38000;?#37827;?#37510;?#37827;?#37906;?#37721;?#28000;?#37929;?#37818;?#37734;?#37922;?#37812;?#38344;?#37928;勬?#36346;欐寲瀛旓紝?#32342;涓?#28051;嶆秹鍙?#28598;?#37833;傜畻?#30838;?#32029;閫熷害銆?#32459;?#28729;氭?#38318;芥瘮浣?#37922;ㄥ竷灏旀搷浣?#29781;佸ソ銆?#37832;?#37826;?#28051;?#29781;?#37833;?#28000;?#32513;?#28641;備綍浣?#37922;˙RepBuilderAPI_MakeFace鏉?#37922;?#37812;愬甫瀛?#37928;?#38344;?#38171;屽強鍏?#23049;?#37808;忎?#23342;」銆?#37929;?#37818;?#28051;?#28000;?#37934;?#38171;?/p>

#include <gp_Circ.hxx>
#include <gp_Pln.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepTools.hxx>
#pragma comment(lib, "TKernel.lib")
#pragma comment(lib, "TKMath.lib")
#pragma comment(lib, "TKG2d.lib")
#pragma comment(lib, "TKG3d.lib")
#pragma comment(lib, "TKGeomBase.lib")
#pragma comment(lib, "TKGeomAlgo.lib")
#pragma comment(lib, "TKBRep.lib")
#pragma comment(lib, "TKTopAlgo.lib")
void makeFaceTest()
{
    gp_Pln aPlane;
    gp_Circ aCircle1(gp::XOY(), 1.0);
    gp_Circ aCircle2(gp::XOY(), 1.0);
    gp_Circ aCircle3(gp::XOY(), 1.0);
    aCircle1.SetLocation(gp_Pnt(3.0, 3.0, 0.0));
    aCircle2.SetLocation(gp_Pnt(7.0, 3.0, 0.0));
    aCircle3.SetLocation(gp_Pnt(3.0, 7.0, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker1(aCircle1);
    BRepBuilderAPI_MakeEdge anEdgeMaker2(aCircle2);
    BRepBuilderAPI_MakeEdge anEdgeMaker3(aCircle3);
    BRepBuilderAPI_MakeWire aWireMaker1(anEdgeMaker1.Edge());
    BRepBuilderAPI_MakeWire aWireMaker2(anEdgeMaker2.Edge());
    BRepBuilderAPI_MakeWire aWireMaker3(anEdgeMaker3.Edge());
    BRepBuilderAPI_MakeFace aFaceMaker(aPlane, 0.0, 10.0, 0.0, 10.0);
    if (aWireMaker1.IsDone())
    {
        aFaceMaker.Add(aWireMaker1.Wire());
    }
    if (aWireMaker2.IsDone())
    {
        aFaceMaker.Add(aWireMaker2.Wire());
    }
    if (aWireMaker3.IsDone())
    {
        aFaceMaker.Add(aWireMaker3.Wire());
    }
    if (aFaceMaker.IsDone())
    {
        BRepTools::Write(aFaceMaker.Shape(), "d:/face.brep");
    }
}
int main(int argc, char* argv[])
{
    makeFaceTest();
    return 0;
}

涓?#38344;?#28000;?#37934;?#28751;?#37828;?#37734;?#28051;涓?#39582;?#38344;?#28051;?#23534;涓?#28051;?#28699;旓紝鏈鍚?#37734;―鐩?#37922;?#37812;恌ace.brep鏂?#28000;?#37510;?#37734;―raw Test Harness涓?#37716;?#26462;?#39582;?#37828;?#32448;鸿繖涓?#37826;?#28000;跺緱鍒?#38171;?/p>

wps_clip_image-4565

褰?#37714;?#37817;?#37714;扮嚎妗?#37828;?#32448;烘ā?#32033;鏃?#38171;屽拰棰?#37832;?#37825;?#37835;?#28051;鑷?#37510;備絾鏄?#35120;?#37714;?#37817;?#37714;扮潃?#22730;鏄?#32448;烘ā?#32033;鏃?#38171;屽彂鐜?#37922;?#37812;?#37928;?#38344;㈠拰棰?#37832;?#37928;?#37825;?#37835;?#37714;氬ソ鐩?#37721;?#37510;傝繖鏄?#28000;涔?#37720;熷洜鍛?#38171;?/p>

鍦―raw Test Harness涓?#26440;?#37711;?#37723;?#28000;cruve鏉?#22955;?#29025;锛屽涓?#37733;炬墍绀?#38171;?/p>

wps_clip_image-8080

?#29300;鎹畃curve鍛?#28000;?#37928;勬彁绀哄?#26947;煡?#32029;钃濊壊鐨勬柟鍚戝簲璇?#37721;?#37722;戯紝绾㈣壊鐨?#28051;?#28598;?#37916;?#37510;傛墍浠?#23536;楃煡锛屽?#21615;幆瀛?#37928;勬柟鍚?#37721;?#27996;?#37510;備慨鏀?#28000;?#37934;侊紝鐩?#37818;?#28751;哤ire鐨勬柟鍚慠everse銆備慨鏀?#37722;?#37928;勪唬鐮佸涓?#38171;?/p>

#include <gp_Circ.hxx>
#include <gp_Pln.hxx>
#include <TopoDS_Wire.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepTools.hxx>
#pragma comment(lib, "TKernel.lib")
#pragma comment(lib, "TKMath.lib")
#pragma comment(lib, "TKG2d.lib")
#pragma comment(lib, "TKG3d.lib")
#pragma comment(lib, "TKGeomBase.lib")
#pragma comment(lib, "TKGeomAlgo.lib")
#pragma comment(lib, "TKBRep.lib")
#pragma comment(lib, "TKTopAlgo.lib")
void makeFaceTest()
{
    gp_Pln aPlane;
    gp_Circ aCircle1(gp::XOY(), 1.0);
    gp_Circ aCircle2(gp::XOY(), 1.0);
    gp_Circ aCircle3(gp::XOY(), 1.0);
    aCircle1.SetLocation(gp_Pnt(3.0, 3.0, 0.0));
    aCircle2.SetLocation(gp_Pnt(7.0, 3.0, 0.0));
    aCircle3.SetLocation(gp_Pnt(3.0, 7.0, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker1(aCircle1);
    BRepBuilderAPI_MakeEdge anEdgeMaker2(aCircle2);
    BRepBuilderAPI_MakeEdge anEdgeMaker3(aCircle3);
    BRepBuilderAPI_MakeWire aWireMaker1(anEdgeMaker1.Edge());
    BRepBuilderAPI_MakeWire aWireMaker2(anEdgeMaker2.Edge());
    BRepBuilderAPI_MakeWire aWireMaker3(anEdgeMaker3.Edge());
    BRepBuilderAPI_MakeFace aFaceMaker(aPlane, 0.0, 10.0, 0.0, 10.0);
    if (aWireMaker1.IsDone())
    {
        TopoDS_Wire aWire1 = aWireMaker1.Wire();
        aWire1.Reverse();
        aFaceMaker.Add(aWire1);
    }
    if (aWireMaker2.IsDone())
    {
        TopoDS_Wire aWire2 = aWireMaker2.Wire();
        aWire2.Reverse();
        aFaceMaker.Add(aWire2);
    }
    if (aWireMaker3.IsDone())
    {
        TopoDS_Wire aWire3 = aWireMaker3.Wire();
        aWire3.Reverse();
        aFaceMaker.Add(aWire3);
    }
    if (aFaceMaker.IsDone())
    {
        BRepTools::Write(aFaceMaker.Shape(), "d:/face.brep");
    }
}
int main(int argc, char* argv[])
{
    makeFaceTest();
    return 0;
}

閲?#37826;板姞杞?#37826;?#37922;?#37812;?#37928;刦ace.brep骞?#28003;?#37922;╬curve?#29025;?#28229;锛屽緱鍒板涓?#37733;炬墍绀?#37928;?#37825;?#37835;?#38171;?/p>

wps_clip_image-12231

?#31904;涓?#37733;?#37721;?#37933;ワ紝?#32342;鏃跺緱鍒?#37928;?#28051;洪鏈?#37928;?#37825;?#37835;?#37510;?#32513;?#28051;婃墍杩?#38171;屽鏋?#29781;?#37929;?#37818;?#28003;?#37922;˙RepBuilderAPI_MakeFace鏉?#37922;?#37812;愬甫鏈?#28699;?#37928;?#38344;紝闇瑕佽嚜宸?#28051;?#28598;?#37916;?#37724;屽?#21615;幆鐨勬柟鍚戣礋璐o紝opencascade瀵?#23005;?#28051;?#28003;滄?#29025;銆傚綋闈?#37828;?#32448;?#28051;?#23005;?#32429;?#37827;?#38171;屽彲浠?#28003;?#37922;―raw Test Harness鐨刾curve鍛?#28000;?#37833;?#22955;?#29025;銆?#28051;涓?#29999;?#28699;?#37928;?#38344;?#37928;刾curve鐨?#29785;?#37714;?#28051;?#38171;氬鐜?#28051;?#38315;?#37827;堕拡鏂?#37722;?#38171;?#37712;呯幆瀛?#37928;勬柟鍚?#28051;洪『鏃堕拡鏂?#37722;?#37510;?/p>

鍩?#27996;?#37929;?#37818;?#37922;?#37812;?#37928;勫甫瀛?#37928;?#38344;紝杩?#37721;?#28000;?#26473;?#28051;姝?#28003;?#37922;?#37824;?#37837;风畻?#30838;鏉?#38315;犲瀷锛屽鎷?#28028;革紝鏃嬭浆绛?#38171;屽涓?#37733;炬墍绀?#37510;傝繖鏍?#28751;?#37721;?#28000;?#38316;?#37711;?#28003;?#37922;ㄥ竷灏旀搷浣滐紝鎻愰珮閫犲?#23340;畻?#30838;鐨勬?#38003;藉拰绋?#28729;氭?#37510;?/p>

wps_clip_image-665


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)


eryar 2018-10-14 15:40 鍙?#29723;?#29831;?#29825;?/a>
]]>RvmTranslator6.5 is releasedhttp://www.kffa.tw/eryar/archive/2018/10/01/RvmTranslator65.htmleryareryarMon, 01 Oct 2018 15:52:00 GMThttp://www.kffa.tw/eryar/archive/2018/10/01/RvmTranslator65.htmlhttp://www.kffa.tw/eryar/comments/215985.htmlhttp://www.kffa.tw/eryar/archive/2018/10/01/RvmTranslator65.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215985.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215985.htmlRvmTranslator6.5 is released

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, .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 RvmTranslator6.5.

 

RvmTranslatoer6.5 is a minor release, which includes the following new features:

 

RvmTranslator鍙?#28000;?#28751;?/span>AVEVA PDMS/Plant/Marine涓?#28725;煎嚭鐨?/span>RVM鏂?#28000;?#26473;?#29723;屽彲瑙嗗?#26677;紝浠?#37721;?#28751;?/span>RVM杞?#37817;?#37812;愬父瑙?#37928;?#28051;?#32513;?#37826;?#28000;?#37837;煎紡銆傚STEP?#32029;IGES?#32029;STL?#32029;DXF, OBJ, 3DPDF, 3DXML绛夛紝渚夸簬涓?#37711;?#28000;?/span>CAD?#37108;缁?#26473;?#29723;屾暟鎹?#27996;?#37817;?#38171;屽Autodesk AutoCAD, Plant3d, 3ds Max, CATIA, Solidworks, Pro/E, Unity3d, Bentley绛?#37510;?/span>

 

3DXML is a proprietary 3D file format developed by Dassault Systemes under its 3DVIA Brand. It uses an XML container whose specifications were published. It should not be confused with X3D, the ISO standard XML-based file format for representing 3D computer graphics.

The 3DXML file itself is actually a zip archive file that contains a BOM file and one or more 3D representation files. Renaming the file from .3dxml to .zip allows a program like WinZip to open the archive.

 

3DXML鏍煎紡鏄?#26440;剧儲杞?#28000;?#23534;鍙?#37928;?#28051;涓?#26462;?#38322;忓寲涓?#32513;?#37826;?#28000;?#37837;煎紡銆?/span>3DXML鏄?#28051;绉嶅熀浜?/span>XML鐨勮交閲忓寲3D?#26271;鎹?#37837;煎紡?#32029;浣?#32457;?#37831;?#28751;?#38171;屽?#23340;缉姣旈珮?#32029;鑳?#28003;?#37922;?#37812;?#36423;?#38315;?#37510;?#32480;鍗?#37734;拌幏鍙?#37724;屽叡浜?/span>3D?#26271;鎹?#37510;?/span>3DXML鏄?#28051;绉?#23534;鏀?#37928;?#28051;?#32513;?#37826;?#28000;?#37837;煎紡?#32029;3DXML鏂?#28000;?#28051;?#28051;?#37718;?#37722;?#37713;犱綍淇?#37805;?#38171;屽彧鍖?#37722;?#22959;?#37736;嬪疄浣?#28103;?#37805;拰瑁?#38320;嶄俊鎭?#37510;傝繖浣?/span>3DXML鐨勬枃浠?#28751;哄灏忎簬涓鑸?#37928;?/span>CAD鏂?#28000;?#38171;屽?#23678;椂3DXML鏂?#28000;惰杩?#28051;姝?#37720;嬬缉?#32029;浣?#37711;?#37826;?#28000;?#37831;?#28751;忥紝鑳?#28598;熻鏇?#36423;?#37928;勪紶杈撳拰鍗?#37922;?#37831;?#28751;忕殑瀛樺偍绌?#38338;?#37510;?/span>

 

3DXML瀹屽叏閬?#23536;?/span>XML璇硶?#32029;浣?#37922;?#28000;讳綍鏍?#37713;?/span>XML瑙?#37835;愬櫒閮?#37721;?#28000;?#28725;?#37711;?#26473;?#29723;?#29785;?#37835;愶紝鎻?#37721;?#37812;?#37712;?#37711;?#28103;?#37805;?#37510;?#26440;剧儲鍦?#37711;舵墍鏈?#37928;勪骇鍝?#28051;?#28641;?/span>CATIA, Virtools,绛?#38318;?#37716;?#37711;?#27996;?/span>3DXML鐨勬敮鎸?#38171;屽彲浠?#28751;?/span>CAD鏂?#28000;惰浆鎹?#37812;?/span>3DXML鏂?#28000;?#38171;屽悓杩?#26440;剧儲鎻?#28186;?#37711;?#29840;?#37928;?/span>3DXML娴?#29785;堝櫒?#32029;鏂?#28186;?#37922;?#37812;?#28725;?/span>3DXML鐨勬祻瑙?#37510;?/span>

 

1. Fix bugs for 3DXML

Fix the missing model bugs, and test by the Spooler and Stabilizer model:

淇?#28598;?#26462;?#37817;?/span>3DXML妯?#37736;?#28051;?#28598;?#37928;?/span>Bug;

 

2. Fix bugs for 3DXML Color

淇?#28598;?#26462;?#37817;?/span>3DXML棰?#38009;茬己澶?#37928;?/span>Bug:

 

3. Download RvmTrnaslator6.5

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

  


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5> Shing Liu(eryar@163.com)



eryar 2018-10-01 23:52 鍙?#29723;?#29831;?#29825;?/a>
]]>qmake鐢?#37812;怴isual Studio宸?#32459;?http://www.kffa.tw/eryar/archive/2018/09/30/qmake.htmleryareryarSun, 30 Sep 2018 05:49:00 GMThttp://www.kffa.tw/eryar/archive/2018/09/30/qmake.htmlhttp://www.kffa.tw/eryar/comments/215984.htmlhttp://www.kffa.tw/eryar/archive/2018/09/30/qmake.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215984.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215984.html 

鏁?#28051;猀t鍦╓indows涓?#38318;?#37721;?#28000;?#38315;氳繃鎵?#28598;勭悊鏉?#32514;?#29831;?#38171;屽綋缂?#29831;戝?#32072;t鍚庯紝浼?#37922;?#37812;恞make.exe銆?/p>

鍦ㄦ病鏈?#28729;夎?#21293;t-VS-Addin鐨勬?#21613;喌涓?#38171;屽?#20633;綍浣?#37922;?#37714;?#27996;?#37819;?#28186;?#37928;凲t *.pro椤?#37929;?#37826;?#28000;跺憿锛?/p>

浣?#37922;╭make鍙?#28000;?#37929;?#37818;?#37922;?#37812;怴isual Studio椤?#37929;?#37826;?#28000;?#38171;屽懡浠?#28641;?#28051;?#38171;?/p>

qmake -tp vc


濡?#37835;?#28051;?#37812;?#37716;?#38171;屽彲鑳?#26473;?#38343;瑕侀厤缃甉MAKESPEC锛?/p>

set QMAKESPEC=win32-msvc2015


?#31904;Visual Studio鐨勮彍鍗?#37722;?#37716;╒S鍛?#28000;?#32464;?#37721;?#38171;屽彲浠?#37814;妐make绋?#25652;忕殑?#30718;寰?#29825;剧疆鍒扮幆澧?#37721;?#38322;廝ATH涓?#38171;屽啀鍒?#37817;?#37714;?.pro鏂?#28000;舵墍鍦?#37929;綍?#32029;浣?#37922;╭make鍛?#28000;?#37510;傚鏋?#38343;瑕?#38315;?#35120;掑?#21229;?#21976;墍鏈?.pro鏂?#28000;?#38171;屽彲浠?#37716;?#28051;?recursive閫?#26916;?#37510;?#28729;屾暣鍐?#28729;瑰涓?#38171;?/p>

set PATH=%PATH%;D:/Qt5.8.0/bin;
set QMAKESPEC=win32-msvc2015
qmake -tp vc -recursive
nmake

 



eryar 2018-09-30 13:49 鍙?#29723;?#29831;?#29825;?/a>
]]>Levmar:Levenberg-Marquardt闈炵嚎鎬?#37832;灏忎簩涔樼畻?#30838;http://www.kffa.tw/eryar/archive/2018/09/26/levmar.htmleryareryarWed, 26 Sep 2018 12:53:00 GMThttp://www.kffa.tw/eryar/archive/2018/09/26/levmar.htmlhttp://www.kffa.tw/eryar/comments/215950.htmlhttp://www.kffa.tw/eryar/archive/2018/09/26/levmar.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215950.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215950.htmlLevmar:Levenberg-Marquardt闈炵嚎鎬?#37832;灏忎簩涔樼畻?#30838;

eryar@163.com

Abstract. Levmar is GPL native ANSI C implementations of the Levenberg-Marquardt optimization algorithm.The blog focus on the compilation of levmar on Windows with Visual Studio.

Key Words. Levmar, C, LM least squares

1. levmar绠浠?/h3>

Gauss-Newton?#30075;?#30838;鏄?#28051;涓?#37721;?#38000;?#37928;勫?#21229;悊闈炵嚎鎬?#37832;灏忎簩涔?#38338;?#26864;?#37928;勬?#35268;硶銆傝鏂规硶鍦?#26473;?#28000;h繃绋?#28051;?#29781;?#23033;傜煩?#27136;J(x)?#24359;绉?#37510;?#28051;?#27996;?#37711;?#37832;嶈繖涓?#37733;?#38341;撅紝Levenberg(1944)鎻愬嚭浜?#28051;绉?#37826;?#37928;勬?#35268;硶?#32029;浣?#37832;?#37721;?#37714;?#38322;?#29785;?#37510;傚悗鏉arquardt(1963)鍙?#38322;?#37826;?#37819;愬嚭锛屽苟鍦?#37918;嗚涓?#26473;?#29723;屼簡鎺?#29825;?#38171;屽緱鍒癓evenberg-Marquardt鏂规硶?#32029;绠绉癓M鏂规硶銆?#37734;?#23005;?#37737;?#32429;涓婏紝Fletcher(1971)瀵?#37711;跺疄鐜扮?#26667;暐杩?#29723;屼簡鏀?#26473;?#38171;屽緱鍒颁簡Levenberg-Marquardt-Fletcher鏂规硶锛圠MF锛?#37510;傚啀鍚?#37833;ワ紝More(1978)灏哃M鏂规硶涓庝俊璧栧煙鏂规硶缁撳悎锛屽?#34425;珛浜嗗甫淇?#29863;栧煙鐨凩M鏂规硶銆?/p>

LM?#30075;?#30838;鐨勪骇鐢熶富瑕?#37828;?#29785;?#37712;?#37831;茬嚎鏈灏忎簩涔樻?#29111;悎闂?#26864;橈紝鐜?#37734;?#23536;?#28598;氳蒋浠?#28003;?#37922;↙M?#30075;?#30838;鏉?#29785;?#37712;?#38315;?#37922;?#37928;?#37831;茬嚎鎷熷悎闂?#26864;?#37510;?/p>

鏈?#37826;?#28051;?#29781;佷粙缁岹PL寮婧?#25652;搇evmar2.6浣?#37922;╒isual Studio鍦╓indows涓?#26473;?#29723;岀紪璇?#37510;傝繖涓?#23534;婧?#25652;?#37928;?#28729;樻柟缃?#32468;?#37828;?#38171;?a href="http://users.ics.forth.gr/~lourakis/levmar/">http://users.ics.forth.gr/~lourakis/levmar/

wps_clip_image-24963

2. 缂?#29831;憀evmar

涓嬭?#33445;簮鐮乴evmar-2.6瑙?#37720;嬶紝鍦?#37711;禦EADME.txt涓?#28725;筶evmar鐨勬巿鏉僄PL銆佺紪璇?#32475;?#26473;?#29723;屼?#21978;鏄?#37510;?#37734;╓indows鎿?#28003;滅郴缁熶腑锛屽彲浠?#28003;?#37922;╪make /f Makefile.vc鏉?#32514;?#29831;憀evmar?#25328;涓涓?#32448;轰緥绋?#25652;?#37510;?/p>

?#31904;瀹?#32515;?#28000;?#32513;?#37721;?#37933;ワ紝levmar鏈?#27996;涚畻?#30838;渚濊禆LAPACK搴擄紝涓涓嚎鎬?#28000;f暟璁$畻寮婧?#25652;?#37510;傛墍浠?#28641;?#37835;?#29781;佷娇鐢?#38317;?#27996;涚畻?#30838;?#32029;缂?#29831;?#37928;勬?#36346;欏繀椤诲寘鍚繖涓?#25652;?#37510;備粠绀轰緥绋?#25652;忕殑婧?#37826;?#28000;秎mdemo.c涓?#37721;?#28000;ョ湅?#22189;?#32029;鏈?#27996;?#38338;?#26864;?#37928;?#23033;傝В鏄?#38343;瑕丩APACK搴?#37928;勶紝鐩?#37711;虫簮鐮?#37714;楀嚭濡?#28051;?#38171;?/p>

  /* uncomment the appropriate line below to select a minimization problem */
  problem=
          //0; // Rosenbrock function
          //1; // modified Rosenbrock problem
          //2; // Powell's function
      //3; // Wood's function
          4; // Meyer's (reformulated) problem
          //5; // Osborne's problem
      //6; // helical valley function
#ifdef HAVE_LAPACK
      //7; // Boggs & Tolle's problem 3
      //8; // Hock - Schittkowski problem 28
      //9; // Hock - Schittkowski problem 48
      //10; // Hock - Schittkowski problem 51
#else // no LAPACK
#ifdef _MSC_VER
#pragma message("LAPACK not available, some test problems cannot be used")
#else
#warning LAPACK not available, some test problems cannot be used
#endif // _MSC_VER
#endif /* HAVE_LAPACK */
      //11; // Hock - Schittkowski problem 01
      //12; // Hock - Schittkowski modified problem 21
      //13; // hatfldb problem
      //14; // hatfldc problem
      //15; // equilibrium combustion problem
#ifdef HAVE_LAPACK
      //16; // Hock - Schittkowski modified #1 problem 52
      //17; // Schittkowski modified problem 235
      //18; // Boggs & Tolle modified problem #7
      //19; // Hock - Schittkowski modified #2 problem 52
      //20; // Hock - Schittkowski modified problem #76"
#endif /* HAVE_LAPACK */
  switch(problem){
  default: fprintf(stderr, "unknown problem specified (#%d)! Note that some minimization problems require LAPACK.\n", problem);
           exit(1);
    break;

?#31904;涓?#26473;版簮鐮?#37721;?#37933;?#38171;屽鏋淟APACK搴?#28051;?#37721;?#37922;?#37928;勬?#36346;欙紝绀轰緥绋?#25652;忎腑鐨?#38338;?#26864;?/p>

l 7 Boggs & Tolle’s problem 3

l 8 Hock - Schittkowski problem 28

l 9 Hock - Schittkowski problem 48

l 10 Hock - Schittkowski problem 51

l 16 Hock - Schittkowskit modified #1 problem 52

l 17 Schittkowski modified problem 235

l 18 Boggs & Tolle modified problem #7

l 19 Hock - Schittkowski modified #2 problem 52

l 20 Hock - Schittkowski modified probem #76

?#32342;浜?#38338;?#26864;?#37928;?#23033;傝В鍔?#38003;?#37828;?#28051;?#38003;?#28003;?#37922;?#37928;?#37510;備粠澶?#37826;?#28000;秎evmar.h涓?#29781;佷互?#28229;?#22189;?#32029;

#ifdef LM_DBL_PREC
/* double precision LM, with & without Jacobian */
/* unconstrained minimization */
extern int dlevmar_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, int itmax, double *opts,
      double *info, double *work, double *covar, void *adata);
extern int dlevmar_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, int itmax, double *opts,
      double *info, double *work, double *covar, void *adata);
/* box-constrained minimization */
extern int dlevmar_bc_der(
       void (*func)(double *p, double *hx, int m, int n, void *adata),
       void (*jacf)(double *p, double *j, int m, int n, void *adata),  
       double *p, double *x, int m, int n, double *lb, double *ub, double *dscl,
       int itmax, double *opts, double *info, double *work, double *covar, void *adata);
extern int dlevmar_bc_dif(
       void (*func)(double *p, double *hx, int m, int n, void *adata),
       double *p, double *x, int m, int n, double *lb, double *ub, double *dscl,
       int itmax, double *opts, double *info, double *work, double *covar, void *adata);
#ifdef HAVE_LAPACK
/* linear equation constrained minimization */
extern int dlevmar_lec_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *A, double *b, int k,
      int itmax, double *opts, double *info, double *work, double *covar, void *adata);
extern int dlevmar_lec_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *A, double *b, int k,
      int itmax, double *opts, double *info, double *work, double *covar, void *adata);
/* box & linear equation constrained minimization */
extern int dlevmar_blec_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *lb, double *ub, double *A, double *b, int k, double *wghts,
      int itmax, double *opts, double *info, double *work, double *covar, void *adata);
extern int dlevmar_blec_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *lb, double *ub, double *A, double *b, int k, double *wghts,
      int itmax, double *opts, double *info, double *work, double *covar, void *adata);
/* box, linear equations & inequalities constrained minimization */
extern int dlevmar_bleic_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *lb, double *ub,
      double *A, double *b, int k1, double *C, double *d, int k2,
      int itmax, double *opts, double *info, double *work, double *covar, void *adata);
extern int dlevmar_bleic_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *lb, double *ub, 
      double *A, double *b, int k1, double *C, double *d, int k2,
      int itmax, double *opts, double *info, double *work, double *covar, void *adata);
/* box & linear inequality constraints */
extern int dlevmar_blic_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *lb, double *ub, double *C, double *d, int k2,
      int itmax, double opts[4], double info[LM_INFO_SZ], double *work, double *covar, void *adata);
extern int dlevmar_blic_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *lb, double *ub, double *C, double *d, int k2,
      int itmax, double opts[5], double info[LM_INFO_SZ], double *work, double *covar, void *adata);
/* linear equation & inequality constraints */
extern int dlevmar_leic_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *A, double *b, int k1, double *C, double *d, int k2,
      int itmax, double opts[4], double info[LM_INFO_SZ], double *work, double *covar, void *adata);
extern int dlevmar_leic_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *A, double *b, int k1, double *C, double *d, int k2,
      int itmax, double opts[5], double info[LM_INFO_SZ], double *work, double *covar, void *adata);
/* linear inequality constraints */
extern int dlevmar_lic_der(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      void (*jacf)(double *p, double *j, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *C, double *d, int k2,
      int itmax, double opts[4], double info[LM_INFO_SZ], double *work, double *covar, void *adata);
extern int dlevmar_lic_dif(
      void (*func)(double *p, double *hx, int m, int n, void *adata),
      double *p, double *x, int m, int n, double *C, double *d, int k2,
      int itmax, double opts[5], double info[LM_INFO_SZ], double *work, double *covar, void *adata);
#endif /* HAVE_LAPACK */
#endif /* LM_DBL_PREC */

?#31904;澶?#37826;?#28000;秎evmar.h涓?#37928;勪唬鐮?#37721;?#28000;ョ湅?#22189;?#32029;鍦?ifdef HAVE_LAPACK?#25328;#endif /* HAVE_LAPACK */涔?#38338;寸?#21227;嚱?#26271;閮?#37828;?#28051;?#37721;?#37922;?#37928;?#37510;?#38340;?#23005;?#28052;?#28598;?#37928;勫嚱?#26271;鏄?#37721;?#37922;?#37928;?#38171;屽?#20634;熀鏈?#37928;刣levmar_der?#25328;dlevmar_dif绛夊嚱?#26271;鏄?#28051;?#28186;濊禆LAPACK搴?#37928;?#37510;傚鏋?#37721;?#28003;?#37922;ㄨ繖鍑?#28051;嚱?#26271;?#32029;鍒?#37721;?#28000;?#28051;?#37922;ㄩ厤缃甃APACK搴擄紝缂?#29831;憀evmar灏卞緢绠鍗?#27996;?#37510;?/p>

濡?#37835;?#28051;?#28003;?#37922;↙APACK搴?#38171;屽彲浠?#37711;?#37734;?#28598;?#37826;?#28000;秎evmar.h涓?#37814;?define HAVE_LAPACK ?#32342;涓琛屾敞閲婃帀锛?/p>

wps_clip_image-1378

鐒?#37722;庡?#23940;慨鏀筂akefile.vc鏂?#28000;讹紝鍦∕akefile.vc涓?#37721;?#28000;ョ湅鍒板涓?#37733;炬墍绀?#28051;鍙?#23049;?#38322;婏紝鍗?#35120;?#28051;?#28003;?#37922;↙APACK搴?#37828;紝鎶婇偅涓琛屾敞閲婃帀锛?#37715;?#38344;?#37716;?锛?#38171;?/p>

wps_clip_image-511

?#32342;鏃?#28751;?#37721;?#28000;?#37722;?#37716;╒isual Studio鐨勭紪璇戝櫒CL鏉?#32514;?#29831;憀evmar搴?#27996;?#37510;傞厤缃?#28610;界紪璇?#37916;?#28583;?#37928;勫懡浠?#23480;?#37711;蜂粠Visual Studio鐨勮彍鍗?#37833;?#37722;?#37716;?#38171;?/p>

wps_clip_image-31275

瑕佺紪璇?2浣?#37928;刲evmar搴?#38171;屽彲浠?#28003;?#37922;▁86鐨勫懡浠?#23480;?#37711;凤紝瑕佺紪璇?4浣?#37928;刲evmar锛屽彲浠?#28003;?#37922;▁64鐨勫懡浠?#23480;?#37711;?#37510;傚惎鍔?#37723;?#28000;?#23480;?#37711;?#37722;庯紝鍒?#37817;?#37714;發evmar婧?#37934;?#37826;?#28000;?#28598;?#38171;屽苟杈?#37711;?#37723;?#28000;?/p>

nmake /f Makefile.vc

濡?#28051;?#37733;炬墍绀?#38171;?/p>

wps_clip_image-5008

缂?#29831;?#37812;?#37716;?#37922;?#37812;恖evmar.lib?#25328;lmdemo.exe璇?#37828;庣紪璇?#37812;?#37716;熶簡銆?/p>

wps_clip_image-7636

鎺ョ潃鍦?#37723;?#28000;?#32464;?#37721;?#28051;?#26473;?#29723;宭mdemo.exe?#32029;?#31092;璇昹evmar渚?#28699;?#32459;?#25652;?#37510;傚鏋渓mdemo姝e父杩?#29723;岋紝璇?#37828;巐evmar宸?#32513;?#37812;?#37716;?#32514;?#29831;?#37510;?/p>

?#22172;宸?#37928;?#32459;?#25652;忓鏋?#29781;佷娇鐢╨evmar?#32029;灏?#37721;?#28000;?#37709;忎娇鐢?#37711;?#28000;?#23534;婧?#25652;?#28051;鏍凤紝璁剧疆澶?#37826;?#28000;惰矾寰勫強搴搇evmar.lib鐨勮矾寰勶紝灏?#37721;?#28000;?#28003;?#37922;?#27996;?#37510;?/p>

wps_clip_image-10013


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)




eryar 2018-09-26 20:53 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE瑙?#38344;炵嚎鎬?#37826;?#32459;?#32513;?/title><link>http://www.kffa.tw/eryar/archive/2018/09/06/FunctionSet.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Thu, 06 Sep 2018 13:20:00 GMT</pubDate><guid>http://www.kffa.tw/eryar/archive/2018/09/06/FunctionSet.html</guid><wfw:comment>http://www.kffa.tw/eryar/comments/215910.html</wfw:comment><comments>http://www.kffa.tw/eryar/archive/2018/09/06/FunctionSet.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/eryar/comments/commentRss/215910.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/eryar/services/trackbacks/215910.html</trackback:ping><description><![CDATA[<h1 style="text-align: center;">OpenCASCADE<span style="font-family: 瀹?#28003;?">瑙?#38344;炵嚎鎬?#37826;?#32459;?#32513;?/span></h1> <p class="p0" style="text-align: center;">eryar@163.com</p> <p class="p0"> </p> <p class="p0"><strong>Abstract.</strong> <span style="font-family: 瀹?#28003;?">鍦?#32457;?#28699;?#37814;鏈?#26864;嗗煙閲屽父?#29238;鎻愬嚭姹傝В闈炵嚎鎬?#37826;?#32459;?#32513;?#37928;?#38338;?#26864;橈紝渚嬪?#20646;紝鐢?#38344;炵嚎鎬у嚱?#26271;鎷熷悎?#30084;楠屾暟鎹?#38338;?#26864;?#37510;?#38344;炵嚎鎬?#32515;?#32513;?#38338;?#26864;?#37510;?#37713;犱綍涓?#37928;?#37831;茬嚎鏇?#38344;?#23033;備氦闂?#26864;?#32475;?#37510;?/span><span style="font-family: Times New Roman;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">涓?#37832;?#37711;?#27996;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#28729;?#28052;?#37928;勭被鍙?#37711;?#23033;傝В?#34987;?#32029;鏈?#37826;?#28051;?#29781;佷粙缁?#28641;備綍鍦?/span><span style="font-family: Times New Roman;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">涓?#28729;?#28052;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#38171;屽強瀵?#37711;?#26473;?#29723;屾眰瑙?#37510;?/span></p> <p class="p0"><strong>Key Words.</strong> Function Set, Function Set Root, Newton Raphson Algorithm</p> <h3 class="p0">1.Introduction</h3> <p class="p0">鍦?#32457;?#28699;?#37814;鏈?#26864;嗗煙閲屽父?#29238;鎻愬嚭姹傝В闈炵嚎鎬?#37826;?#32459;?#32513;?#37928;?#38338;?#26864;橈紝渚嬪?#20646;紝鐢?#38344;炵嚎鎬у嚱?#26271;鎷熷悎?#30084;楠屾暟鎹?#38338;?#26864;?#37510;?#38344;炵嚎鎬?#32515;?#32513;?#38338;?#26864;?#32475;?#37510;?#37734;?#37713;犱綍閫犲瀷涓?#23536;?#28598;?#38338;?#26864;?#28052;熷彲浠?#37714;?#37922;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#37833;?#29785;?#37712;?#37510;傚鏇茬嚎鐨勫厜椤猴紝鏇茬嚎姹備氦銆?#37831;?#38344;?#23033;備氦銆?span style="font-family: Times New Roman;">Blend</span><span style="font-family: 瀹?#28003;?">閫犲瀷闂?#26864;?#32475;?#37510;?/span></p> <p class="p0">OpenCASCADE<span style="font-family: 瀹?#28003;?">鎻?#28186;?#27996;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#37928;勭被</span><span style="font-family: Times New Roman;">math_FunctionSet</span><span style="font-family: 瀹?#28003;?">锛屽彲浠?#37711;堜粠?#34987;鍥?#28051;?#37833;ョ湅?#28229;鏈夊摢浜涚畻?#30838;浣?#37922;?#27996;嗚繖涓被锛?/span></p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211233569-362384595.png" /> </p> <p class="p0">鍥? 鏇茬嚎鍏?#26916;哄寘FaireCurve</p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211242396-1305470757.png" /></p> <p class="p0">鍥? Blending Surface between two surfaces</p> <p class="p0">鎰熷叴瓒?#37928;勫悓瀛?#37721;?#28000;ヨ嚜宸?#37813;?#23534;OpenCASCADE鐨勭被绱?#23534;?#37826;?#28000;舵煡?#28229;銆?#37721;?#28000;ョ湅鍒板緢澶氱畻?#30838;娑?#37721;?#37714;?#37826;?#32459;?#32513;?#37928;?#23033;傝В闂?#26864;?#37510;?#37832;?#37826;?#28051;?#29781;佷粙缁?#28641;備綍瀹?#28052;?#38344;炵嚎鎬?#37826;?#32459;?#32513;勫強瀵?#37711;?#26473;?#29723;屾眰瑙?#37510;傜?#21978;В?#32342;浜涘?#26948;矾鍚?#38171;屽math_FunctionSet鐩?#37711;?#37928;勬淳鐢熺被鍙?#37711;?#37922;?#37922;?#38315;?#28751;?#28028;?#37832;?#28051;?#23059;呮櫚鐨?#29825;?#29831;嗭紝渚夸簬瀵规簮鐮?#37928;勭?#21978;В銆?/p> <h3 class="p0">2.Function Set Definition</h3> <p class="p0">璁?#37832;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?/p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211302686-890332092.png" /></p> <p class="p0">涓哄疄鍙?#38322;忕殑闈炵嚎鏂?#32459;嬪嚱?#26271;銆傚紩鍏?#37722;?#38322;忓舰?#32033;琛?#32448;?#38171;屽紩杩?#29825;?#37721;?#38171;?/p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211318237-1985007063.png" /></p> <p class="p0">浜?#37828;?#38344;炵嚎鎬?#37826;?#32459;?#32513;勫彲浠?#32480;鍗?#29825;颁綔锛?span style="font-family: Times New Roman;">F(x)=0</span><span style="font-family: 瀹?#28003;?">銆傛垜浠?#37928;?#38338;?#26864;樻槸瀵?#23033;?/span><span style="font-family: Times New Roman;">X</span><span style="font-family: 瀹?#28003;?">浣?/span><span style="font-family: Times New Roman;">F(X)=0</span><span style="font-family: 瀹?#28003;?">?#32029;?#32342;涓?/span><span style="font-family: Times New Roman;">X</span><span style="font-family: 瀹?#28003;?">灏?#37828;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#37928;?#29785;?#37510;?/span></p> <p class="p0">OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#28003;?#37922;ㄧ被</span><span style="font-family: Times New Roman;">math_FunctionSet</span><span style="font-family: 瀹?#28003;?">鏉?#29723;?#32448;?#37826;?#32459;?#32513;勶紝?#32342;鏄?#28051;?#37814;借薄?#34987;锛屽畾涔?#27996;嗗涓?#32510;?#38095;氬嚱?#26271;锛?/span></p> <p class="p0">l NbVariables()<span style="font-family: 瀹?#28003;?">锛氬彉閲忕殑涓暟?#32029;鍗?#37832;?#37933;?#38322;忕殑涓暟锛?/span></p> <p class="p0">l NbEquations()<span style="font-family: 瀹?#28003;?">锛?#37826;?#32459;?#37928;?#28051;暟?#32029;鍗?#37826;?#32459;?#32513;?#28051;?#37832;?#37713;?#28051;?#37826;?#32459;?#38171;?/span></p> <p class="p0">l Value(const math_Vector&X, math_Vector& F)<span style="font-family: 瀹?#28003;?">锛?#37826;?#32459;?#32513;?#37928;勫硷紝鍗?#28000;?#37711;?#37721;?#38322;?#23011;忎釜鏂?#32459;?#37928;勫?#38171;?/span></p> <h3 class="p0">3.Function Set Root Algorithm</h3> <p class="p0">瑙?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#37928;勭墰椤挎硶?#25328;瑙?#37826;?#32459;?#23534;忕殑鎬濊矾涓鏍凤紝瑕?#23033;?#37826;?#32459;?#37832;?#28051;闃跺?#20860;暟銆傝?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#37719;?#37828;?#29781;?#23033;?#37832;夊?#24531;?#20860;暟銆?#37922;?span style="font-family: Times New Roman;">fi(x)</span><span style="font-family: 瀹?#28003;?">鍋忓?#20860;暟浣?#37812;?#37928;勭煩?#27136;璁?#28051;?/span><span style="font-family: Times New Roman;">J(x)</span><span style="font-family: 瀹?#28003;?">鎴?/span><span style="font-family: Times New Roman;">F</span>’(x)<span style="font-family: 瀹?#28003;?">?#32029;绉?#28051;?/span><span style="font-family: Times New Roman;">F(x)</span><span style="font-family: 瀹?#28003;?">鐨?/span><span style="font-family: Times New Roman;">Jacobi</span><span style="font-family: 瀹?#28003;?">鐭╅樀锛?/span></p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211340847-1208606963.png" /></p> <p class="p0">姹傝В闈炵嚎鎬?#37826;?#32459;?#32513;?#37928;勭墰椤挎硶涓?#38171;?/p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211354299-779455022.png" /></p> <p class="p0">鍏?#28051;?span style="font-family: Times New Roman;">x</span><sup>k</sup>涓?#37826;?#32459;嬬嚎鐨勮繎浼艰В鍚?#38322;?#37510;?/p> <p class="p0"> </p> <p class="p0">OpenCASCADE<span style="font-family: 瀹?#28003;?">涓?#28052;?#37819;?#28186;?#27996;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#37928;?#23033;傝В?#34987;锛屽锛?/span><span style="font-family: Times New Roman;">math_FunctionSetRoot</span><span style="font-family: 瀹?#28003;?">?#32029;</span><span style="font-family: Times New Roman;">math_NewtonFunctionSetRoot</span><span style="font-family: 瀹?#28003;?">銆傝屼娇鐢ㄨ繖浜涚被鐨?#26440;?#37711;?#38318;?#37828;?#29781;?#23033;傚叿鏈?#28051;闃跺?#24531;?#20860;暟鐨勭嚎鎬?#37826;?#32459;?#32513;?#37928;?#28729;?#28052;?/span><span style="font-family: Times New Roman;">math_FunctionSetWithDerivaties</span><span style="font-family: 瀹?#28003;?">銆傝繖涓被瀹?#28052;?#27996;?#37711;?#37832;?#28051;闃跺?#24531;?#20860;暟鐨?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#38171;屽叾绾?#38095;氬嚱?#26271;闄?#27996;嗗墠闈?#29831;?#37828;?#37928;勫嚑涓?#28000;?#28598;栵紝杩樺鍔犱簡濡?#28051;?#28051;?#28051;?#38171;?/span></p> <p class="p0">l Derivatives(const math_Vector& X, math_Matrix& D)<span style="font-family: 瀹?#28003;?">锛?#28051;闃跺?#24531;?#20860;暟鍊硷紝鍗?#29825;$畻</span><span style="font-family: Times New Roman;">Jacobi</span><span style="font-family: 瀹?#28003;?">鐭╅樀锛?/span></p> <p class="p0">l Values(const math_Vector& X, math_Vector& F, math_Matrix& D)<span style="font-family: 瀹?#28003;?">锛氳?#30075;鏂?#32459;?#37928;勫?#37721;?#28051;闃跺?#24531;?#20860;暟鐭╅樀</span><span style="font-family: Times New Roman;">Jacobi</span><span style="font-family: 瀹?#28003;?">鐭╅樀銆?/span></p> <h3 class="p0">4.Code Example</h3> <p class="p0">涓?#38344;?#32513;欏嚭涓涓?#37711;?#28003;?#37928;勪緥瀛?#37833;?#29831;?#37828;庤繖浜涚被鐨?#37922;ㄦ硶銆傝鏈?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#38171;?/p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211416852-509849077.png" /></p> <p class="p0">?#31904;鍑犱綍涓婄湅鍏惰В灏?#37828;?#37734;嗗績鍦ㄥ師?#20579;?#32029;鍗?#23536;?#28051;?span style="font-family: Times New Roman;">2</span><span style="font-family: 瀹?#28003;?">鐨?#37734;?#28051;?#37831;茬嚎鐨勪氦?#20579;锛?/span></p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211428165-799282376.png" /></p> <p class="p0">鍥?span style="font-family: Times New Roman;">3 </span><span style="font-family: 瀹?#28003;?">鍦?#28051;?#37831;茬嚎姹備氦</span></p> <p class="p0">涓?#38344;㈡垜浠?#28003;?#37922;?span style="font-family: Times New Roman;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">鏉?#28725;?#28051;?#26473;?#38338;?#26864;?#26473;?#29723;屾眰瑙?#37510;傞鍏?#28729;?#28052;夎繖涓?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#38171;?/span> <br /><br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">#include </span><span style="color: #000000; "><</span><span style="color: #000000; ">math_FunctionSet.hxx</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />#include </span><span style="color: #000000; "><</span><span style="color: #000000; ">math_FunctionSetWithDerivatives.hxx</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />#include </span><span style="color: #000000; "><</span><span style="color: #000000; ">math_FunctionSetRoot.hxx</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />#pragma comment(lib, </span><span style="color: #000000; ">"</span><span style="color: #000000; ">TKernel.lib</span><span style="color: #000000; ">"</span><span style="color: #000000; ">)<br />#pragma comment(lib, </span><span style="color: #000000; ">"</span><span style="color: #000000; ">TKMath.lib</span><span style="color: #000000; ">"</span><span style="color: #000000; ">)<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> MyFunctionSet : </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> math_FunctionSetWithDerivatives<br />{<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; ">:<br />    </span><span style="color: #0000FF; ">virtual</span><span style="color: #000000; "> Standard_Integer NbVariables() </span><span style="color: #0000FF; ">const</span><span style="color: #000000; "><br />    {<br />        </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #000000; ">2</span><span style="color: #000000; ">;<br />    }<br />    </span><span style="color: #0000FF; ">virtual</span><span style="color: #000000; "> Standard_Integer NbEquations() </span><span style="color: #0000FF; ">const</span><span style="color: #000000; "><br />    {<br />        </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #000000; ">2</span><span style="color: #000000; ">;<br />    }<br />    </span><span style="color: #0000FF; ">virtual</span><span style="color: #000000; "> Standard_Boolean Value(</span><span style="color: #0000FF; ">const</span><span style="color: #000000; "> math_Vector</span><span style="color: #000000; ">&</span><span style="color: #000000; "> X, math_Vector</span><span style="color: #000000; ">&</span><span style="color: #000000; "> F)<br />    {<br />        F(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">*</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">+</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">*</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">-</span><span style="color: #000000; "> </span><span style="color: #000000; ">4.0</span><span style="color: #000000; ">;<br />        F(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Pow(M_E, X(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">)) </span><span style="color: #000000; ">+</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">-</span><span style="color: #000000; "> </span><span style="color: #000000; ">1.0</span><span style="color: #000000; ">;<br />        </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> Standard_True;<br />    }<br />    </span><span style="color: #0000FF; ">virtual</span><span style="color: #000000; "> Standard_Boolean Derivatives(</span><span style="color: #0000FF; ">const</span><span style="color: #000000; "> math_Vector</span><span style="color: #000000; ">&</span><span style="color: #000000; "> X, math_Matrix</span><span style="color: #000000; ">&</span><span style="color: #000000; "> D)<br />    {<br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> matrix D is Jacobi matrix.</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        D(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">, </span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">2.0</span><span style="color: #000000; "> </span><span style="color: #000000; ">*</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">);<br />        D(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">, </span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">2.0</span><span style="color: #000000; "> </span><span style="color: #000000; ">*</span><span style="color: #000000; "> X(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">);<br />        D(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">, </span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Pow(M_E, X(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">));<br />        D(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">, </span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">1.0</span><span style="color: #000000; ">;<br />        </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> Standard_True;<br />    }<br />    </span><span style="color: #0000FF; ">virtual</span><span style="color: #000000; "> Standard_Boolean Values(</span><span style="color: #0000FF; ">const</span><span style="color: #000000; "> math_Vector</span><span style="color: #000000; ">&</span><span style="color: #000000; "> X, math_Vector</span><span style="color: #000000; ">&</span><span style="color: #000000; "> F, math_Matrix</span><span style="color: #000000; ">&</span><span style="color: #000000; "> D)<br />    {<br />        Value(X, F);<br />        Derivatives(X, D);<br />        </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> Standard_True;<br />    }<br /></span><span style="color: #0000FF; ">private</span><span style="color: #000000; ">:<br />};<br /></span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> test()<br />{<br />    MyFunctionSet aFunctionSet;<br />    math_FunctionSetRoot aSolver(aFunctionSet);<br />    math_Vector aStartingPoint(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">, </span><span style="color: #000000; ">2</span><span style="color: #000000; ">);<br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 1. (1.0, 1.0)</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    aStartingPoint(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">1.0</span><span style="color: #000000; ">;<br />    aStartingPoint(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">1.0</span><span style="color: #000000; ">;<br />    aSolver.Perform(aFunctionSet, aStartingPoint);<br />    </span><span style="color: #0000FF; ">if</span><span style="color: #000000; "> (aSolver.IsDone())<br />    {<br />        aSolver.Dump(std::cout);<br />    }<br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 2. (1.0, -1.0)</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    aStartingPoint(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">1.0</span><span style="color: #000000; ">;<br />    aStartingPoint(</span><span style="color: #000000; ">2</span><span style="color: #000000; ">) </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">-</span><span style="color: #000000; ">1.0</span><span style="color: #000000; ">;<br />    aSolver.Perform(aFunctionSet, aStartingPoint);<br />    </span><span style="color: #0000FF; ">if</span><span style="color: #000000; "> (aSolver.IsDone())<br />    {<br />        aSolver.Dump(std::cout);<br />    }<br />}<br /></span><span style="color: #0000FF; ">int</span><span style="color: #000000; "> main(</span><span style="color: #0000FF; ">int</span><span style="color: #000000; "> argc, </span><span style="color: #0000FF; ">char</span><span style="color: #000000; ">*</span><span style="color: #000000; "> argv[])<br />{<br />    test();<br />    </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000;">;<br />}</span></div><div class="cnblogs_code"><pre><strong></strong><em></em><u></u><sub></sub><sup></sup><strike></strike><br /></pre></div><p>涓?#26473;颁唬鐮?#37711;?#28729;?#28052;?#27996;嗗甫鏈?#28051;闃跺?#24531;?#20860;暟鐨?#38344;炵嚎鎬?#37826;?#32459;?#32513;勭被锛?span style="font-family: Times New Roman;">MyFunctionSet</span><span style="font-family: 瀹?#28003;?">锛屽洜涓?#37832;?#28051;?#28051;?#37721;?#38322;忓強涓?#28051;?#37826;?#32459;?#38171;屽啀鍒?#37714;疄鐜?#29825;$畻鏂?#32459;嬪?#37721;婂?#24531;?#20860;暟鐨勮?#27692;嚱?#26271;銆?/span></p> <p class="p0">鐒?#37722;?#28003;?#37922;ㄧ被<span style="font-family: Times New Roman;">math_FunctionSetRoot</span><span style="font-family: 瀹?#28003;?">鏉?#28725;?#37826;?#32459;?#32513;?#26473;?#29723;屾眰瑙o紝姹傝В鐨?#32513;撴?#28355;涓?#37733;炬墍绀?#38171;?/span></p> <p class="p0"> <img alt="" src="https://images2018.cnblogs.com/blog/534255/201809/534255-20180906211514313-2040000280.png" /></p> <p class="p0">鍥?span style="font-family: Times New Roman;">4 </span><span style="font-family: 瀹?#28003;?">闈炵嚎鎬?#37826;?#32459;?#32513;?#23033;傝В缁撴灉</span></p> <p class="p0">鐢卞浘<span style="font-family: Times New Roman;">3</span><span style="font-family: 瀹?#28003;?">鍙?#37933;ワ紝涓?#28051;?#37831;茬嚎鐩?#27996;?#37832;?#28051;?#28051;?#27996;ょ偣?#32029;浣?#37828;?#28003;?#37922;ㄧ被</span><span style="font-family: Times New Roman;">math_FunctionSetRoot</span><span style="font-family: 瀹?#28003;?">涓娆?#37721;?#38003;?#29825;$畻涓涓?#29785;?#37510;備粠鍥?/span><span style="font-family: Times New Roman;">4</span><span style="font-family: 瀹?#28003;?">鐨?#29825;$畻缁撴灉杩?#37721;?#28000;ョ湅?#22189;?#32029;鍒?#37706;?#37928;?#38315;?#37815;?#28725;?#29785;?#37928;勫?#21342;搷寰?#28598;э紝鏃?#35120;卞搷璁$畻缁撴灉?#32029;涔熷?#21342;搷杩?#28000;?#23046;℃暟銆?/span></p> <h3 class="p0"> 5.Conclusion</h3> <p class="p0">缁?#28051;婃墍杩帮紝<span style="font-family: Times New Roman;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">鐨?/span><span style="font-family: Times New Roman;">math</span><span style="font-family: 瀹?#28003;?">宸?#37711;?#32480;?#28051;?#37819;?#28186;?#27996;?#37826;?#32459;?#32513;?#37928;?#28729;?#28052;?#37510;?#23033;傝В鍔?#38003;?#37510;傚叾涓?#28725;?#38344;炵嚎鎬?#37826;?#32459;?#32513;?#23033;傝В浣?#37922;?#37928;?#37828;?/span><span style="font-family: Times New Roman;">Newton</span><span style="font-family: 瀹?#28003;?">杩?#28000;f硶?#32029;?#22669;浠?#29781;?#23033;?#37826;?#32459;?#32513;勫繀椤诲疄鐜?#29825;$畻涓闃跺?#24531;?#20860;暟鐨勮?#27692;嚱?#26271;?#32029;鍗?#29825;$畻</span><span style="font-family: Times New Roman;">Jacobi</span><span style="font-family: 瀹?#28003;?">鐭╅樀銆?/span></p> <p class="p0">?#31904;<span style="font-family: Times New Roman;">OpenCASCADE</span><span style="font-family: 瀹?#28003;?">?#34987;鍥?#28051;?#37721;?#28000;ョ湅?#22189;?#32029;鏂?#32459;?#32513;?#28729;?#28052;夌被鐢?#37734;?#27996;嗗緢澶氬湴鏂癸紝?#22669;浠?#37918;嗚В涓?#26473;板鏂?#32459;?#32513;?#37928;?#28729;?#28052;?#37721;?#29785;?#37928;?#37922;ㄦ硶锛屽鍏?#28000;?#28003;?#37922;ㄨ繖涓淳鐢熺被鐨?#37734;?#37826;?#37831;?#28729;?#37828;?#37711;舵簮鐮?#37510;?/span></p> <h3 class="p0"> 6.References</h3> <ol> <li>鍚屾祹澶?#28699;︽暟瀛?#37825;?#37934;?#28729;?span style="font-family: Times New Roman;">. </span><span style="font-family: 瀹?#28003;?">?#29678;绛夋暟瀛?nbsp;绗?#37733;?#37911;?/span><span style="font-family: Times New Roman;">. </span><span style="font-family: 瀹?#28003;?">?#29678;绛?#37825;欒偛?#22189;鐗?#32448;?/span><span style="font-family: Times New Roman;">. 2004</span></li> <li>鏄?#28598;?#28052;?span style="font-family: Times New Roman;">, </span><span style="font-family: 瀹?#28003;?">娌?#27996;?#28729;?/span><span style="font-family: Times New Roman;">, </span><span style="font-family: 瀹?#28003;?">鏉?#37832;夋硶</span><span style="font-family: Times New Roman;">. </span><span style="font-family: 瀹?#28003;?">璁$畻鏂规硶</span><span style="font-family: Times New Roman;">. </span><span style="font-family: 瀹?#28003;?">娴?#23033;熷ぇ瀛﹀嚭鐗?#32448;?/span><span style="font-family: Times New Roman;">. 2002</span></li> </ol> <p class="p0">  </p><div><div id="MySignature" style="background-color: transparent; color: #000000; display: block; font-family: &quot;Helvetica Neue&quot;,Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"><hr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /> <h5>涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5> <img width="200" height="200" title="OpenCASCADE鍏?#28028;?#37721;?#38171;氬紑鏀?鍒?#27996;?涔?#29906;?#38171;歄PEN-SHARE-FUN" style="background-image: none; border-bottom-color: #000000; border-bottom-style: none; border-bottom-width: 0px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: #000000; border-left-style: none; border-left-width: 0px; border-right-color: #000000; border-right-style: none; border-right-width: 0px; border-top-color: #000000; border-top-style: none; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" alt="Shing Liu(eryar@163.com)" src="https://files.cnblogs.com/files/opencascade/qrcode_occ.gif" border="0" /> <hr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /></div><span style='display: inline !important; float: none; background-color: transparent; color: #000000; font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;'> </span><div style="background-color: transparent; clear: both; color: #000000; font-family: &quot;Helvetica Neue&quot;,Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"></div><span style='display: inline !important; float: none; background-color: transparent; color: #000000; font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;'> </span><div id="blog_post_info_block" style="background-color: transparent; color: #000000; font-family: &quot;Helvetica Neue&quot;,Helvetica,Verdana,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 20px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"> <div id="BlogPostCategory" style="color: #666666; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"></div></div></div><img src ="http://www.kffa.tw/eryar/aggbug/215910.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/eryar/" target="_blank">eryar</a> 2018-09-06 21:20 <a href="http://www.kffa.tw/eryar/archive/2018/09/06/FunctionSet.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>RvmTranslator6.4 is releasedhttp://www.kffa.tw/eryar/archive/2018/09/05/RvmTranslator64.htmleryareryarWed, 05 Sep 2018 14:57:00 GMThttp://www.kffa.tw/eryar/archive/2018/09/05/RvmTranslator64.htmlhttp://www.kffa.tw/eryar/comments/215907.htmlhttp://www.kffa.tw/eryar/archive/2018/09/05/RvmTranslator64.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215907.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215907.htmlRvmTranslator6.4 is released

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, .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 RvmTranslator6.4.

RvmTranslatoer6.4 is a minor release, which includes the following new features:

 

  1. Fix bugs

Fix the missing model bugs, and test by the Spooler and Stabilizer model:

 

2. Download RvmTrnaslator6.4

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

 

 



eryar 2018-09-05 22:57 鍙?#29723;?#29831;?#29825;?/a>
]]>Intel TBB in OpenCASCADEhttp://www.kffa.tw/eryar/archive/2018/09/04/opencascade_tbb.htmleryareryarTue, 04 Sep 2018 01:25:00 GMThttp://www.kffa.tw/eryar/archive/2018/09/04/opencascade_tbb.htmlhttp://www.kffa.tw/eryar/comments/215902.htmlhttp://www.kffa.tw/eryar/archive/2018/09/04/opencascade_tbb.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215902.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215902.html

Intel TBB in OpenCASCADE

eryar@163.com

 

OpenCASCADEIntel TBB 

濡?#37835;?#28051;?#37922;?#38171;屽彲浠?#37734;?#37813;?#28598;勭悊涓厤缃繖涓?#37721;?#38315;夌涓?#37826;?#25652;擄紝灏?#37711;?#29825;剧疆鎴?span style="font-family: Times New Roman">false  

鏈?#32334;?#31904;TBBTBBLicenseGPLApache V2.0 

https://www.threadingbuildingblocks.org/faq/10

 

TBBApache V2.0Apache V2.0 LicenseBSDApache V2.0 涓嶈繃TBB 2017GPLApache V2.0opencascadeTBBTBB 2017


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)
 


eryar 2018-09-04 09:25 鍙?#29723;?#29831;?#29825;?/a>
]]>[杞琞C璇?#29815;瀛?#38010;傚?#24402;綈闂?#26864;?#29831;?#29785;?http://www.kffa.tw/eryar/archive/2018/08/15/align.htmleryareryarWed, 15 Aug 2018 02:12:00 GMThttp://www.kffa.tw/eryar/archive/2018/08/15/align.htmlhttp://www.kffa.tw/eryar/comments/215848.htmlhttp://www.kffa.tw/eryar/archive/2018/08/15/align.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215848.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215848.html闃?#29831;?#37711;?#37826;?/a>

eryar 2018-08-15 10:12 鍙?#29723;?#29831;?#29825;?/a>
]]>[杞琞鍙?#37721;?#37721;傛暟?#22193;?#26271;璇?#29785;?http://www.kffa.tw/eryar/archive/2018/08/15/215847.htmleryareryarWed, 15 Aug 2018 02:10:00 GMThttp://www.kffa.tw/eryar/archive/2018/08/15/215847.htmlhttp://www.kffa.tw/eryar/comments/215847.htmlhttp://www.kffa.tw/eryar/archive/2018/08/15/215847.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215847.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215847.html闃?#29831;?#37711;?#37826;?/a>

eryar 2018-08-15 10:10 鍙?#29723;?#29831;?#29825;?/a>
]]>[杞琞C璇?#29815;棰勫?#21229;?#21975;懡浠?#29831;?#29785;?http://www.kffa.tw/eryar/archive/2018/08/15/macro.htmleryareryarWed, 15 Aug 2018 02:09:00 GMThttp://www.kffa.tw/eryar/archive/2018/08/15/macro.htmlhttp://www.kffa.tw/eryar/comments/215846.htmlhttp://www.kffa.tw/eryar/archive/2018/08/15/macro.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215846.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215846.html闃?#29831;?#37711;?#37826;?/a>

eryar 2018-08-15 10:09 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE Extended Data Exchange - XDEhttp://www.kffa.tw/eryar/archive/2018/07/29/XDE.htmleryareryarSun, 29 Jul 2018 11:43:00 GMThttp://www.kffa.tw/eryar/archive/2018/07/29/XDE.htmlhttp://www.kffa.tw/eryar/comments/215807.htmlhttp://www.kffa.tw/eryar/archive/2018/07/29/XDE.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215807.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215807.htmlOpenCASCADE Extended Data Exchange - XDE

eryar@163.com

Abstract. OpenCASCADE Data Exchange allows developing OCCT-Based applications that can interact with other CAD systems by writing and reading CAD models to and from external data. The exchanges run smoothly regardless of the quality of external data or requirements to its internal representation, for example to the data types, accepted geometric inaccuracies, etc. Data Exchange is organized in a modular way as a set of interfaces that comply with various CAD formats: IGES, STEP, STL, VRML, etc. The interfaces allow software based on OCCT to exchange data with various CAD/PDM software packages, maintaining a good level of interoperability. Extended Data Exchange allows translating additional attributes attached to geometric data(colors, layers, names, materials, etc.)

Key Words. DataExchange, STEP, IGES, XDE, OCAF, 

1. Introduction

OpenCASCADE鐨凞ataExchange?#26271;鎹?#27996;?#37817;?#22959;?#37735;?#37721;?#28000;?#38315;氳繃璇诲啓CAD妯?#37736;嬫暟鎹?#37928;勬柟寮忎笌鍏?#28000;朇AD?#37108;缁?#26473;?#29723;屼氦浜?#37510;?#37837;?#37713;嗘暟鎹?#27996;?#37817;?#38171;圫tandardized Data Exchange锛?#37928;勬帴鍙?#37721;?#28000;ユ煡璇㈠拰妫?#29025;杈?#37711;?#37826;?#28000;讹紝杞?#37817;?#37826;?#28000;?#28051;?#37928;凜AD妯?#37736;嬶紝姝?#32429;?#37804;?#22955;?#29025;銆?#37929;?#37715;?#23534;婧?#38318;?#37714;嗘敮鎸?#37928;勬枃浠?#37837;煎紡鏈?#38171;?/p>

l STEP锛圓P203锛歁echanical Design锛汚P214锛欰utomotive Design锛?/p>

l IGES锛?.3鐗?#37832;?#38171;?/p>

l VRML?#25328;STL锛?/p>

wps_clip_image-25767

Figure 1. 瀵?#37711;?#37928;凷TEP妯?#37736;?/p>

2. Extended Data Exchange锛圶DE锛?/h3>

鎵?#28766;?#37928;勬暟鎹?#27996;?#37817;?#22959;?#37735;?#37721;?#28000;?#26462;?#37817;?#38340;勫姞鍦?#37713;犱綍BREP浣?#28051;?#37711;?#28000;?#28103;?#37805;?#38171;屽棰滆壊銆?#37733;惧眰?#32029;缁勮缁撴瀯绛?#38171;屽洜姝?#37819;愰珮涓?#37711;?#28000;朇AD杞?#28000;?#37928;勫吋瀹规?#37510;?#37929;?#37715;?#37718;?#37722;繖浜涗俊鎭?#37928;勬枃浠?#37837;煎紡鏈塈GES?#25328;STEP銆俋DE閫氳繃XCAF妗?#37835;?#37833;?#29831;诲?#27407;寘鍚?#26864;滆壊銆?#37733;惧眰绛変俊鎭?#37928;処GES?#32029;STEP鏂?#28000;?#37510;?/p>

wps_clip_image-29842

Figure 2. 浣?#37922;╔DE瀵?#37711;?#37928;勬ā鍨?/p>

3. XDE Basic Terms

涓?#27996;?#37831;村ソ鐨勭?#21978;ВXDE锛屽畾涔?#27996;?#37713;?#28051;?#37711;?#38335;?#37832;?#29831;?#38171;?/p>

l Shape锛?#37719;曠嫭鐨勬ā鍨嬶紝涓嶅睘浜?#28000;讳綍瑁呴厤缁撴瀯(a standalone shape, which does not belong to the assembly structure)锛?/p>

l Instance锛氬叾浠栨ā鍨?#37928;?#28051;涓疄渚嬪?#26677;紝浣?#32515;?#28103;?#37805;?#37721;?#28000;?#37929;?#37722;岋紝涔熷彲浠?#28051;?#37722;?a replication of another shape with a location that can be the same location or different one)锛?/p>

l Assembly锛氳?#21620;厤缁撴瀯锛?/p>

4. XDE Organization

XDE鐨勫熀纭鏄疿CAF?#32029;XCAF鏄?#28051;涓?#37737;?#27996;嶰CAF锛圤pen CASCADE Technology Application Framework锛夋鏋?#37928;勬鏋?#38171;屽彲鐢?#27996;?#28598;勭?#21978;閰嶄俊鎭?#37724;屽叾浠栧睘鎬ф暟鎹?#37510;俋DE浣?#37922;∣CAF鏉?#28699;樺偍瑁呴厤缁撴?#21227;?#23677;睘鎬э紝?#22669;浠?#37721;?#28000;?#23536;?#37714;拌?#21620;厤缁撴瀯鏍?#37928;勬?#24531;眰TopoDS琛?#32448;?#37510;?/p>

5. Assemblies

XDE?#25966;鎸佽?#21620;厤缁撴瀯鐨?#29831;诲啓銆傚涓?#37733;炬墍绀?#38171;?/p>

wps_clip_image-19676

Figure 3. 瑁呴厤缁撴瀯鏍?/p>

瑁呴厤缁撴瀯閫氳繃OCAF鐨凩abel/SubLabel鏉?#32513;?#32513;?#38171;?/p>

wps_clip_image-18828

Figure 4. 涓涓?#32480;鍗?#37928;勬鏋舵ā鍨?nbsp;

?#34987;XCAFDoc_ShapeTool鏉?#32480;$悊Label涓?#37928;勬ā鍨嬪睘鎬?#37510;?/p>

6. Names

XDE?#25966;鎸?#29831;诲啓IGES?#25328;STEP涓?#37928;勫悕瀛楁暟鎹?#37510;傝繖涓?#37711;?#38338;繖涓?#37716;?#38003;?#28000;?#37713;?#28751;?#37826;?#28000;?#37510;?/p>

wps_clip_image-10693

Figure 5. 妯?#37736;?#37722;?#28699;?/p>

7. Colors and Layers

XDE鍙?#28000;?#29831;诲?#27408;ā鍨?#37928;勯鑹叉暟鎹紝浣?#37922;?#37714;?#37928;勭被鏈?#38171;?/p>

l 閫?#37922;?#26864;滆壊锛歡eneric color(XCAFDoc_ColorGen)

l 鏇?#38344;?#26864;滆壊锛歴urface color(XCAFDoc_ColorSurf)

l 鏇茬嚎棰滆壊锛歝urve color(XCAFDoc_ColorCurv)

wps_clip_image-4463

Figure 6. XDE棰滆壊

8. Code Example

绋?#25652;?#28751;咲raw Test Harness鐨剆amples鐨刋DE鐨勪緥瀛愭ā鍨?#37833;ユ祴璇?#29831;?#37721;栬?#21620;厤缁撴瀯銆侀鑹茬瓑淇?#37805;?#37510;傞鍏?#28751;?#28186;?#28699;愭ā鍨嬮氳繃鍛?#28000;?#38171;歐riteStep D d:/rod.step鏉?#28103;?#28699;樿?#21620;厤缁撴瀯銆侀鑹茬?#22795;暟鎹?#37714;癝TEP鏍煎紡銆?/p>

wps_clip_image-24546

Figure 7. XDE Samples in Draw Test Harness

wps_clip_image-18659

Figure 8. Shapes with assembly and color info

浣?#37922;╔DE璇?#37721;朣TEP鏂?#28000;?#28000;?#37934;?#32448;轰?#23338;涓?#38171;?/p>

Handle(XCAFDoc_ColorTool) aColorTool;
Handle(XCAFDoc_ShapeTool) aShapeTool;
void visit(const TDF_Label& theLabel)
{
    theLabel.EntryDump(std::cout);
    Handle(TDataStd_Name) aName;
    if (theLabel.FindAttribute(TDataStd_Name::GetID(), aName))
    {
        std::cout << "  Name: " << aName->Get() << std::endl;
    }
    if (aColorTool->IsSet(theLabel, XCAFDoc_ColorGen))
    {
        Quantity_Color aColor;
        aColorTool->GetColor(theLabel, aColor);
        std::cout << "  Color: " << Quantity_Color::StringName(aColor.Name()) << std::endl;
    }
    if (aShapeTool->IsShape(theLabel))
    {
        TopoDS_Shape aShape;
        aShapeTool->GetShape(theLabel, aShape);
    }
    for (TDF_ChildIterator c(theLabel); c.More(); c.Next())
    {
        visit(c.Value());
    }
}
void readStepXde(const std::string& theStepName)
{
    Handle(TDocStd_Document) aDoc;
    Handle(XCAFApp_Application) anApp = XCAFApp_Application::GetApplication();
    anApp->NewDocument("MDTV-XCAF", aDoc);
    STEPCAFControl_Reader aStepReader;
    aStepReader.SetColorMode(true);
    aStepReader.SetNameMode(true);
    aStepReader.ReadFile(theStepName.c_str());
    aStepReader.Transfer(aDoc);
    TDF_Label aRootLabel = aDoc->Main();
    aShapeTool = XCAFDoc_DocumentTool::ShapeTool(aRootLabel);
    aColorTool = XCAFDoc_DocumentTool::ColorTool(aRootLabel);
    visit(aRootLabel);
}
int main(int argc, char *argv[])
{
    readStepXde("D:/rod.STEP");
    return 0;
}

绋?#25652;?#26473;?#29723;?#32513;撴?#28355;涓?#37733;炬墍绀?#38171;?/p>

wps_clip_image-8893

Figure 9. 浣?#37922;╔DE璇?#37721;朣TEP瑁呴厤缁撴瀯銆侀?#28358;壊銆?#37722;?#28699;?#32475;?/p>

9. Conclusion

浣?#37922;╔DE妯?#37735;楁敮鎸丼TEP?#25328;IGES涓?#37928;勮?#21620;厤缁撴瀯銆侀?#28358;壊銆?#37722;?#28699;?#32475;変俊鎭?#37928;?#29831;诲?#27417;紝鎻愰珮涓?#37711;?#28000;朇AD?#37108;缁熸暟鎹?#27996;?#37817;?#37825;?#37835;?#37510;?/p>

XDE涓?#29781;佷娇鐢∣CAF妗?#37835;?#37833;?#28598;勭?#21978;?#21620;厤缁撴瀯銆佸睘鎬?#28103;?#37805;紝?#22669;浠?#29781;佷娇鐢╔DE锛屽繀椤荤?#21978;ВOCAF鐨勬鏋讹紝OCAF妗?#37835;?#28052;?#37828;?#28051;涓?#37737;?#27996;嶭abel鐨?#37837;?#32513;撴瀯銆?/p>



涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


eryar 2018-07-29 19:43 鍙?#29723;?#29831;?#29825;?/a>
]]>RvmTranslator6.2 is releasedhttp://www.kffa.tw/eryar/archive/2018/07/15/RvmTranslator62.htmleryareryarSun, 15 Jul 2018 00:43:00 GMThttp://www.kffa.tw/eryar/archive/2018/07/15/RvmTranslator62.htmlhttp://www.kffa.tw/eryar/comments/215785.htmlhttp://www.kffa.tw/eryar/archive/2018/07/15/RvmTranslator62.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215785.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215785.htmlRvmTranslator6.2 is released

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, .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 RvmTranslator6.2.

RvmTranslatoer6.2 is a minor release, which includes the following new features:

l Color File

The colors.txt file in the application folder can used to set up to resemble the ReviewReality color scheme. You can edit the colors.txt to change the color scheme to show model in your need.

wps_clip_image-31185

Figure 1. Colors.txt

After you config the colors in the colors.txt, you can show the same color in RvmTranslator. The following figures show the result in RvmTranslator, you can see the color is the same with PDMS.

How to customized the color please read the colors.txt.

wps_clip_image-17318

Figure 2. Spooler model in AVEVA PDMS

wps_clip_image-2971

Figure 3. Spooler model in RvmTranslator6.2

wps_clip_image-16977

Figure 4. Stabilizer model in PDMS

wps_clip_image-13723

Figure 5. Stabilizer model in RvmTranslator6.2

l Add Model to 3D Viewer & Remove model from 3D Viewer

1. From the menu View->Add Model / Remove Model;

wps_clip_image-3053

2. From the Design Explorer context menu, 

wps_clip_image-21783

These Add Model/Remove Model functions are to add the selected tree node model to the 3D viewer or remove the selected tree node model from the 3D viewer.

l Clear 3D Viewer

wps_clip_image-16165

The clear 3D viewer function will remove all the models in the 3D viewer.

 

Download RvmTranslator6.2


涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


eryar 2018-07-15 08:43 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE 鎷涜仒淇?#37805;?/title><link>http://www.kffa.tw/eryar/archive/2018/06/30/OpenCASCADE_Job.html</link><dc:creator>eryar</dc:creator><author>eryar</author><pubDate>Fri, 29 Jun 2018 23:41:00 GMT</pubDate><guid>http://www.kffa.tw/eryar/archive/2018/06/30/OpenCASCADE_Job.html</guid><wfw:comment>http://www.kffa.tw/eryar/comments/215757.html</wfw:comment><comments>http://www.kffa.tw/eryar/archive/2018/06/30/OpenCASCADE_Job.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.kffa.tw/eryar/comments/commentRss/215757.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/eryar/services/trackbacks/215757.html</trackback:ping><description><![CDATA[<div id="cnblogs_post_body" style="margin: 0px 0px 20px; word-break: break-word; font-family: "Helvetica Neue", Helvetica, Verdana, Arial, sans-serif; background-color: #ffffff;"><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;">涓?#37719;?#29825;?#29825;?#38342;嗗洟锛?#23005;?#23033;?#38171;夊伐绋嬫妧鏈?#37934;旂┒闄?#37832;?#38340;?#37711;?#37721;?#37828;?#28051;?#37719;楀伐绋?#37724;?#29831;?#29825;?#29825;?#38342;嗗洟鏈?#38340;?#37711;?#37721;?#38171;?#28000;?#28051;嬬畝绉?#8220;涓?#37719;?#29825;?#29825;?#38342;嗗洟”锛夋墦閫?#37928;勫伐绋嬫妧鏈?#37934;?#37721;戝拰绉?#37934;?#37714;涙柊骞?#37721;帮紝涓?#28051;?#37719;?#29825;?#29825;?#38342;嗗洟鏃?#28051;?#37711;ㄨ祫瀛?#37711;?#37721;革紝浜?018骞?鏈堟?#24878;珛銆傚叕鍙?#28051;氬姟鑼冨洿娑?#37929;?#26946;樻?#29256;妧鏈?#37812;?#37835;?#28699;?#37718;栵紝绉?#28699;?#37814;鏈?#37812;?#37835;?#26462;?#29825;?#38171;?#32457;戞妧涓?#28000;?#37832;?#37716;★紝鏂?#37833;?#37826;?#37934;?#37721;?#37510;?#38335;鍞?#37510;佹妧鏈?#37832;?#37716;★紝璁$畻鏈?#26462;?#28000;?#28051;庢櫤鑳藉寲鎺?#37714;剁郴缁?#37928;?#37934;?#37721;?#37510;?#38335;鍞?#37721;婃妧鏈?#37832;?#37716;?#37510;?br style="margin: 0px; padding: 0px;" />   涓?#37719;?#29825;?#29825;?#38342;嗗洟鏄箹鍖楃?#20345;斂搴?#32513;勫缓鐨勫伐绋?#29825;?#29825;?#37724;?#29831;?#32513;煎悎骞?#37721;帮紝鏄?#28000;?#23480;?#32459;?#23524;?#29825;?#26864;嗗煙鐨勫挩璇?#37510;佹祴缁?#37510;?#29785;?#37714;?#37510;?#32457;?#37934;?#37510;?#37916;?#29831;?#37510;佸?#27194;療銆?#29825;?#29825;?#37510;?#28729;℃煡銆?#37929;戠悊銆侀」鐩?#32480;$悊涓庡伐绋嬫?#37813;?#37718;?#37510;?#37815;涙爣浠g悊銆?#29840;?#38322;忔?#31092;銆?#28729;?#37711;?#29831;勪环绛?#28051;?#28051;?#28051;?#37928;勫浗鏈?#28598;?#37736;?#32457;戞妧鍨嬪伐绋?#37711;?#37721;革紝闆嗗洟鎬?#38318;?#28003;?#27996;?#23005;?#23033;夊競銆?br style="margin: 0px; padding: 0px;" />涓?#37719;?#29825;?#29825;?#38342;嗗洟涓嬪睘涓?#37719;?#23524;虹瓚璁?#29825;?#38340;㈣偂浠?#37832;?#38340;?#37711;?#37721;?#37510;佹箹鍖楃?#20343;氦閫氳鍒?#29825;?#29825;?#38340;㈣偂浠?#37832;?#38340;?#37711;?#37721;?#37510;佹箹鍖楃渷寤虹瓚绉?#28699;?#37934;旂┒璁?#29825;?#38340;?#37510;佹箹鍖楃渷鎴愬鎷涙爣?#20546;浠?#37832;?#38340;?#37711;?#37721;?#37510;佹箹鍖楃渷鎷涙爣?#20546;浠?#37832;?#38340;?#37711;?#37721;?#37510;佹箹鍖楃?#20344;煄寤?#29825;?#29825;?#38340;㈣偂浠?#37832;?#38340;?#37711;?#37721;?#37510;佹箹鍖楃?#20344;?#24225;?#20637;鍒?#29825;?#29825;?#37934;旂┒闄?#37510;?#28051;?#37719;?#28729;?#37711;?#37916;?#28583;?#37814;鏈?#37934;旂┒闄㈣偂浠?#37832;?#38340;?#37711;?#37721;?#37510;佹箹鍖楃?#20344;伐绋?#37724;?#29831;㈣偂浠?#37832;?#38340;?#37711;?#37721;?#37510;?#28051;?#37719;楀伐绋?#37724;?#29831;?#29825;?#29825;?#38342;嗗洟鎶曡?#21227;紑鍙?#37832;?#38340;?#37711;?#37721;?#37510;?#28051;?#37719;?#29825;?#29825;?#38342;嗗洟锛?#23005;?#23033;?#38171;夊伐绋嬫妧鏈?#37934;旂┒闄?#37832;?#38340;?#37711;?#37721;?#37510;?015骞达紝涓?#37719;?#29825;?#29825;?#38342;嗗洟浠?#37711;舵墍鏈?#29825;?#29825;?#37724;?#29831;㈢被缁忚惀鎬?#37713;璧勪骇?#22189;?#31083;璁剧珛浜?#28051;?#37719;楀伐绋?#37724;?#29831;?#29825;?#29825;¤偂浠?#37832;?#38340;?#37711;?#37721;革紝娉?#37712;岃祫鏈??#22158;鍏?#37510;?/p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;"> <br /><br /><span style="font-family: punctuation, PingFangSC-Regular, "Microsoft Yahei", sans-serif; font-size: 15px;">鍥惧舰?#30075;?#30838;宸?#32459;嬪笀<br /></span></p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;">宸?#28003;?#38001;岃矗锛?br style="margin: 0px; padding: 0px;" />?#31904;浜婤IM骞?#37721;?#28051;?#37733;惧舰鍙?#37713;犱綍?#30075;?#30838;鐩?#37711;?#37934;旂┒鍜屽紑鍙戝伐浣?#38171;?br style="margin: 0px; padding: 0px;" />浠昏亴瑕?#23033;?#38171;?/p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;">1銆?#37832;?#32457;?#37721;?#28000;?#28051;?#28699;?#37720;嗭紝鏈?#26440;?#23534;?#37928;?#28699;?#28052;犲拰閫傚簲鑳?#37716;?br style="margin: 0px; padding: 0px;" />2銆?~3骞?#28000;?#28051;?#23480;?#28003;?#32513;?#26976;?#38171;屽?#34425;瓚銆?#37832;烘銆佹暟瀛?#37510;?#29825;$畻鏈虹瓑鐩?#37711;?#28051;?#28051;?#38171;?br style="margin: 0px; padding: 0px;" />3銆佺啛缁?#37818;屾彙C++鍙奝ython鑴?#37832;?#29831;?#29815;锛屽叿鏈夋?#21342;帤鐨勭畻?#30838;璁?#29825;?#37737;?#32429;?#32029;?#26271;瀛?#37716;熷?#26334;ソ锛?br style="margin: 0px; padding: 0px;" />4銆佺?#29112;倝璁$畻鍑犱綍鍙?#37733;惧舰瀛︾畻?#30838;?#32029;OpenCASCADE搴?#37721;奜SG鍥惧舰寮曟搸锛?br style="margin: 0px; padding: 0px;" />5銆?#37711;?#37832;?#28051;?#32513;碈AD鍜屽?#34425;瓚璁?#29825;$被杞?#28000;?#37934;?#37721;?#32513;?#26976;?#38000;?#28028;?#37711;?#38000;冭檻.</p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;"> </p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;">宸?#28003;?#37734;扮偣锛氭箹鍖楃渷姝?#23033;夊競姝?#37828;屽尯涓?#37719;椾簩?#30718;</p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;">钖?#29863;勮?#20904;洿锛?5W~25W / 骞?#38171;屽叿浣?#38344;?#29825;?/p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;">鏈?#37711;?#29906;?#37928;?#32468;ラ瀷鍏?#23049;?#28051;?#37826;?#37711;?#28028;?#37721;风暀瑷銆?/p><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px;"> </p></div><div id="MySignature" style="margin: 0px; font-family: "Helvetica Neue", Helvetica, Verdana, Arial, sans-serif; background-color: #ffffff;"><hr style="margin: 0px; padding: 0px;" /><h5>涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5><img title="OpenCASCADE鍏?#28028;?#37721;?#38171;氬紑鏀?鍒?#27996;?涔?#29906;?#38171;歄PEN-SHARE-FUN" border="0" alt="Shing Liu(eryar@163.com)" src="https://files.cnblogs.com/files/opencascade/qrcode_occ.gif" width="200" height="200" style="margin: 0px; padding: 0px; border: 0px; background-image: none; display: inline;" /><hr style="margin: 0px; padding: 0px;" /></div><div style="margin: 0px; clear: both; font-family: "Helvetica Neue", Helvetica, Verdana, Arial, sans-serif; background-color: #ffffff;"></div><div id="blog_post_info_block" style="margin: 20px 0px 0px; font-family: "Helvetica Neue", Helvetica, Verdana, Arial, sans-serif; background-color: #ffffff;"><div id="BlogPostCategory" style="margin: 0px 0px 10px; color: #666666;"></div></div><img src ="http://www.kffa.tw/eryar/aggbug/215757.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/eryar/" target="_blank">eryar</a> 2018-06-30 07:41 <a href="http://www.kffa.tw/eryar/archive/2018/06/30/OpenCASCADE_Job.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>OpenCASCADE7.3.0 is available for downloadhttp://www.kffa.tw/eryar/archive/2018/06/22/OpenCASCADE730.htmleryareryarFri, 22 Jun 2018 02:56:00 GMThttp://www.kffa.tw/eryar/archive/2018/06/22/OpenCASCADE730.htmlhttp://www.kffa.tw/eryar/comments/215738.htmlhttp://www.kffa.tw/eryar/archive/2018/06/22/OpenCASCADE730.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215738.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215738.htmlOpenCASCADE7.3.0 is available for download

OPEN CASCADE is pleased to announce a new public release of Open CASCADE Technology (version 7.3.0).

Open CASCADE Technology version 7.3.0 is a minor release, which includes more than 350 new features, improvements and bug fixes over minor release 7.2.0.

New in this version:

General

  • Support of Unicode file names and software signals handling for MinGW-w64 builds
  • Recommendations on fulfillment of LGPL terms in Overview documentation
  • Restored compatibility with Visual Studio 2008
  • Support of GBK and Big5 code pages

Application Framework

  • Ability to redefine the stored/retrieved document version and the application name

Modeling

  • Face Removal algorithm
  • Optimized surface intersection, shape offset and Boolean operation algorithms
  • Oriented Bounding Boxes (OBB)
  • More complete history in the family of Boolean Operations algorithms
  • Improved stability of BRepProj_Projection algorithm

Visualization

  • Corrected translation of single-stroke fonts into BRep
  • Improved compatibility with EGL on Linux, Intel HD GPUs, Mesa OpenGL, remote desktop
  • Possibility to arrange more than 8 light sources and assign them to layers
  • Possibility to assign Shading Model per primitive array
  • Support of custom GLSL programs with Geometry and Tessellation shaders
  • Distance and size culling options for rendering large scenes
  • Depth pre-pass option for rendering heavy custom GLSL programs
  • Verbose frame statistics for profiling 3D Viewer performance

Data exchange

  • Documentation for PMI in XCAF

wps_clip_image-24706

OpenCASCADE7.3.0鍙戝竷浜嗭紝涓?.2.0鐗?#37832;?#37929;?#23011;?#37718;?#37722;?#27996;?50涓?#37826;?#37928;勫姛鑳?#26473;?#37832;?#23536;?#28598;歜ug鐨勪慨澶?#37510;?/p>

General

  • l ?#25966;鎸乁nicode鏂?#28000;?#37722;?#38171;?/li>
  • l ?#25966;鎸乂isual Studio 2008鐨勭紪璇?#37510;?/li>

Modeling

  • l 澧?#37716;?#38344;?#37720;?#38340;ょ畻?#30838;Face Removal Algorithm锛?/p>

  • l 浼樺寲闈?#23033;備氦锛屽?#24533;ОOffset鍜屽竷灏旀搷浣淏oolean Operation鐨勭畻?#30838;銆?/p>

  • l 澧?#37716;燨riented Bounding Boxes(OBB)瀹氬?#25117;?#21613;洿鐩?#38171;?/p>

  • l ?#31479;灏旀搷浣淏oolean Operation?#30075;?#30838;鐨?#28729;屾?#23544;?#21227;巻鍙?#29825;板綍锛?/p>

  • l 鎻?#26946;樻姇褰辩畻?#30838;?#34987;BRepProj_Projection鐨?#32459;?#28729;氭?#38171;?/p>

Data Exchange
  • l 澧?#37716;犱簡鍏?#27996;嶺CAF涓?#37928;凱MI鏂囨。锛?/li>

?#24107;鏂囬摼鎺?#38171;?/p>

https://www.opencascade.com/content/open-cascade-technology-730-available-download

鍥藉唴涓嬭浇锛?/p>

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



涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)


eryar 2018-06-22 10:56 鍙?#29723;?#29831;?#29825;?/a>
]]>OpenCASCADE涓?#37825;?#28052;盓dge鐢?#37812;怶irehttp://www.kffa.tw/eryar/archive/2018/05/20/WireOrder.htmleryareryarSun, 20 May 2018 13:50:00 GMThttp://www.kffa.tw/eryar/archive/2018/05/20/WireOrder.htmlhttp://www.kffa.tw/eryar/comments/215660.htmlhttp://www.kffa.tw/eryar/archive/2018/05/20/WireOrder.html#Feedback0http://www.kffa.tw/eryar/comments/commentRss/215660.htmlhttp://www.kffa.tw/eryar/services/trackbacks/215660.htmlOpenCASCADE涓?#37825;?#28052;盓dge鐢?#37812;怶ire

eryar@163.com

Abstract. In OpenCASCADE a wire can be built from any number of edges in sequence. If edges are not in sequence, you must sort them in order.

Key Words. Edge, Wire, Wire order

1. Introduction

鍦∣penCASCADE涓?#37922;?#37812;怶IRE鏃?#29781;?#23033;傛?#35826;姞鍒癢IRE涓?#37928;?#26440;笶DGE鏄?#37832;?#26916;?#25652;?#29781;?#23033;?#37928;?#37510;傚綋缁?#28729;?#37928;?#26440;规病鏈夋寜椤?#25652;忔?#35826;姞鍒癢IRE涔嬪?#23951;紝闇瑕佽嚜宸?#28751;咵DGE?#23516;椤?#25652;忓?#21229;悊銆侽penCASCADE涓?#28052;?#37819;?#28186;?#27996;嗗?#31542;DGE?#23516;椤?#25652;?#26473;?#29723;屾?#25489;?#24533;?#21227;姛鑳斤紝鏂?#28186;縒IRE鐨?#37922;?#37812;?#37510;?/p>

鏈?#37826;?#32513;欏嚭灏?#37825;?#28052;?#37928;凟DGE鎺掑?#24531;悗鐢?#37812;怶IRE鐨勫疄鐜颁唬鐮侊紝?#32342;涓?#37716;?#38003;?#37922;?#28598;?#26473;樻槸寰?#28598;?#37928;?#37510;?/p>

2. Code 

鍦?#22959;?#37736;嬫?#29025;妯?#37735;桾KShHealing涓紝OpenCASCADE鎻?#28186;?#27996;嗙被ShapeAnalysis_WireOrder鐢?#37833;?#28751;嗙敤浜?#37922;?#37812;怶IRE鐨?#28051;?#37108;鍒桬DGE杩?#29723;屾?#25489;簭銆傝繖涓被鐨勫疄鐜板師?#24714;鏄牴鎹瓻DGE鐨勮?#39118;偣銆?#32513;堢偣?#28503;鏍?#37833;?#26473;?#29723;?#26473;?#37818;ワ紝鐢?#37812;?#26916;?#25652;?#37510;?/p>

濡?#28051;?#37733;炬墍绀?#28051;?#28051;涓?#28751;?#38338;?#37928;刉IRE?#32029;?#29300;鎹繖浜?#28751;哄鏍?#23049;紝鐢?#37812;怶IRE鐨凟DGE銆?/p>

wps_clip_image-18201

?#30084;鐜?#28051;?#26473;癢ire鐨?#32459;?#25652;忎唬鐮佸涓嬫墍绀?#38171;?/p>

/*
The MIT License (MIT)
---------------------
Copyright(C) 2018 Shing Liu(eryar@163.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions :
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <vector>
#include <gp_Pnt.hxx>
#include <gp_Circ.hxx>
#include <TopTools_ListOfShape.hxx>
#include <BRep_Tool.hxx>
#include <BRepTools.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <ShapeAnalysis_Edge.hxx>
#include <ShapeAnalysis_WireOrder.hxx>
#pragma comment(lib, "TKernel.lib")
#pragma comment(lib, "TKMath.lib")
#pragma comment(lib, "TKG2d.lib")
#pragma comment(lib, "TKG3d.lib")
#pragma comment(lib, "TKGeomBase.lib")
#pragma comment(lib, "TKGeomAlgo.lib")
#pragma comment(lib, "TKBRep.lib")
#pragma comment(lib, "TKTopAlgo.lib")
#pragma comment(lib, "TKShHealing.lib")
void test(void)
{
    std::vector<TopoDS_Edge> anEdges;
    // 5 Segment edges.
    BRepBuilderAPI_MakeEdge anEdgeMaker1(
        gp_Pnt(-1650.0, 2857.88383249, 0.0),
        gp_Pnt(-750.0, 1299.03810568, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker2(
        gp_Pnt(1299.03810568, 750.0, 0.0),
        gp_Pnt(2857.88383249, 1650.0, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker3(
        gp_Pnt(2857.88383249, 1650.0, 0.0),
        gp_Pnt(8000.0, 1650.0, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker4(
        gp_Pnt(8000.0, 1650.0, 0.0),
        gp_Pnt(8000.0, -3300.0, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker5(
        gp_Pnt(8000.0, -3300.0, 0.0),
        gp_Pnt(0.0, -3300.0, 0.0));
    anEdges.push_back(anEdgeMaker1.Edge());
    anEdges.push_back(anEdgeMaker2.Edge());
    anEdges.push_back(anEdgeMaker3.Edge());
    anEdges.push_back(anEdgeMaker4.Edge());
    anEdges.push_back(anEdgeMaker5.Edge());
    // 2 Arc edges.
    gp_Circ aCircle1(gp::XOY(), 1500.0);
    gp_Circ aCircle2(gp::XOY(), 3300.0);
    BRepBuilderAPI_MakeEdge anEdgeMaker6(aCircle1,
        gp_Pnt(-750.0, 1299.03810568, 0.0),
        gp_Pnt(1299.03810568, 750.0, 0.0));
    BRepBuilderAPI_MakeEdge anEdgeMaker7(aCircle2,
        gp_Pnt(-1650.0, 2857.88383249, 0.0),
        gp_Pnt(0.0, -3300.0, 0.0));
    anEdges.push_back(anEdgeMaker6.Edge());
    anEdges.push_back(anEdgeMaker7.Edge());
    // Get edges order for the wire.
    ShapeAnalysis_Edge anEdgeAnalyser;
    ShapeAnalysis_WireOrder aWireOrder;
    for (std::vector<TopoDS_Edge>::const_iterator i = anEdges.begin();
        i != anEdges.end(); ++i)
    {
        TopoDS_Vertex aVf = anEdgeAnalyser.FirstVertex(*i);
        TopoDS_Vertex aVl = anEdgeAnalyser.LastVertex(*i);
        gp_Pnt aPf = BRep_Tool::Pnt(aVf);
        gp_Pnt aPl = BRep_Tool::Pnt(aVl);
        aWireOrder.Add(aPf.XYZ(), aPl.XYZ());
    }
    // 
    TopTools_ListOfShape aOrderedEdges;
    for (Standard_Integer e = 1; e <= aWireOrder.NbEdges(); ++e)
    {
        const TopoDS_Edge& anEdge = anEdges.at(e - 1);
        aOrderedEdges.Append(anEdge);
    }
    BRepBuilderAPI_MakeWire aWireMaker;
    aWireMaker.Add(aOrderedEdges);
    if (aWireMaker.IsDone())
    {
        BRepTools::Write(aWireMaker.Shape(), "d:/wire.brep");
    }
}
int main(int argc, char* argv[])
{
    test();
    return 0;
}

绋?#25652;忓?#22559;?#35826;姞5鏉$嚎娈?#37714;癊DGE?#26271;缁?#38171;屽?#23942;?#35826;姞涓?#28051;?#37734;嗗姬鍒癊DGE?#26271;缁?#37510;傚啀浣?#37922;ㄧ被ShapeAnalysis_WireOrder鏉?#28725;笶DGE?#26271;缁?#26473;?#29723;屾?#25489;?#24549;紝灏嗘?#25489;?#24531;悗鐨凟DGE?#26271;缁勫幓鐢?#37812;怶IRE銆傚鏋?#37922;?#37812;怶IRE鎴?#37716;燂紝浼氬湪D鐩樺緱鍒?#28051;涓獁ire.brep鏂?#28000;?#37510;?#37734;―raw涓?#37716;?#26462;?#37722;?#37828;?#32448;哄涓?#37733;炬墍绀?#38171;?/p>

wps_clip_image-1190

鐢?#37812;怶IRE鍚庯紝缁?#38000;屽彲浠?#37922;?#37812;怓ACE锛屽FACE杩?#29723;?#37815;?#28028;?#37721;?#28000;?#23536;?#37714;?#37815;?#28028;?#28003;?#38171;屽涓?#37733;炬墍绀?#38171;?/p>

wps_clip_image-9137

3. Conclusion

OpenCASCADE涓?#37922;?#37812;怶IRE鏃跺?#35268;?#35826;姞鐨凟DGE鏄?#37832;?#26916;?#25652;忕殑瑕?#23033;?#37510;傚?#20633;綍瀵?#37825;?#28052;?#37928;凟DGE杩?#29723;屾?#25489;?#24526;互杈?#37714;?#37922;?#37812;怶IRE鐨?#29781;?#23033;傚憿锛烵penCASCADE鍦═KShHealing妯?#37735;?#28051;?#37819;?#28186;?#27996;嗗?#31542;DGE鎺掑?#24533;?#21227;姛鑳?#37510;?/p>

瀵笶DGE鎺掑?#24533;?#21227;姛鑳藉師鐞嗗緢绠鍗曪紝灏?#37828;?#28751;嗘墍鏈?#37928;凟DGE棣?#28751;?#37929;?#26473;烇紝鎰熷叴瓒?#37928;?#29831;?#38000;?#37721;?#28000;?#32513;撳悎婧?#37934;?#28699;?#28052;?#28051;?#37510;?br />



涓?#27996;?#37826;?#28186;?#28598;?#28729;?#37734;?#32457;诲姩绔?#28052;?#38003;界湅鍒版垜鐨?#37719;?#37826;囧拰璁?#29825;?#27996;?#23092;侊紝鐜板凡娉?#37712;屽井淇?#37711;?#28028;?#37721;凤紝娆?#26473;?#28598;?#28729;?#37813;?#37819;忎笅鏂逛簩缁寸爜鍏?#23049;?#37510;?/h5>Shing Liu(eryar@163.com)

 



eryar 2018-05-20 21:50 鍙?#29723;?#29831;?#29825;?/a>
]]>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
快三3稳赚技巧钱绝招
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
天际六合心水论坛 福彩3d走势图 天际心水论坛0055 河南快三几点上班 浙江快乐12开奖结果查询 365bet娱乐平台 排5中奖体彩 09001期14场胜负彩开奖公告 精准一头一尾中特l介绍 法国与阿根廷足球比分预测 安徽时时彩哪里买 华东15选5什么时候开奖 吉林11选5任3遗漏数据 大乐透走势图浙江2 小投资赚钱项目