C++博客-eryar http://www.598club.com/eryar/zh-cnMon, 20 Jan 2020 19:16:04 GMTMon, 20 Jan 2020 19:16:04 GMT60C++博客-eryar http://www.598club.com/eryar/archive/2020/01/14/PySide.htmleryar???

????o??????????o??o?OpenCASCADE?-???????a???????o?????o??o??????????????????a?????????3???|??????????o??????????o???????????????????????o|??????????????????????????????????????????????-|???????o?????????????????????????????1????????????????o|???????????

 

 ???|??????????????PySide???????????????o???????

 

??????????|?????????3?a?????????????????'????????Qt?????1??????????????o???????a??????1????????1??????????????PySide???|????????????????????????1?o?????|?libclang???Python, CMake?-???????o????????????Qt???????????????-??????????

 

江苏快三开奖结果????????????????????????????????????????a??1?????????????-????|????????o???

@echo off
set path=%path%;D:\Qt\perl-5.20.3.3\perl\bin;D:\Python\Python37;D:\Python\Python37\Scripts;D:\Qt\Qt5.14.0\bin;
set LLVM_INSTALL_DIR=D:\Qt\libclang
python setup.py install --qmake=D:\Qt\Qt5.14.0\bin\qmake.exe --cmake=D:\Qt\cmake-3.8.0-win32-x86\bin\cmake.exe

?????Visual Studio?????????????????????????pyside-setup???????1??-?????????1?????????????o???????????????|????1????'?????????????????????a?????????Python???site-packages???????????????????-????????1???????????-????????????o????????????a?????'???????????????o????

 

?????Python????????????????????1?o??????o????????o?????????????????????????????GUI?????????????????????????1???????Tcl/Tk?????3OpenCASCADE???Draw Test Harness??????????????-?????a????1????????????????????????????????????1??????1?????????????????????Tcl????????????????1?????????????Python?????????????1?????|??????????????1????跨?13?????????a??????Qt???PySide????????1?????|????????????Qt???????o???????????????o??????2???????

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2020-01-14 20:48 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/12/05/occt_animation.htmleryar

 

?1???Draw Test Harness??-???????????vanimation??????????????????????????????|????????o???

 

??1?????????????????江苏快三开奖结果OCCT??-??????????????????????????????????????????????????????????|???3?3??????Draw Test Harness??-????????vanimation???????o?????????????1?????????????????????????????oDraw Test Harness??-?????vanimation??????????????????

 

????????????????????????-????o????????????????????|????'???????|?????????????1????????????????o?????????????????????????????????????????????????????????-?????????-???????a????????????????????????-????????o?o??????????a???????????

l -freeLook???3???????????????-????????????????????????????????????1???????????????????????-??????????

l -lockLoop????|????o?o?????-????????????????????????a?????????????????-?????????o?o??????|??-???????????a????????????

??????a??????????????????????????????o?OpenSceneGraph??-???????????????????????????????????o????????????????3????????????????-??????????1?????????o?o??????????

 

???????????????????????????o?????????????????????????-?????????????1?????????o?o???????????|????????????????-??????1?o??????????????????????????????????Draw Test Harness??-?????vanimation??????????????????????

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-12-05 17:37 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/11/24/RvmTranslator7_2.htmleryar

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-11-24 13:39 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/11/21/LeastSquare_Line.htmleryareryarThu, 21 Nov 2019 05:17:00 GMThttp://www.598club.com/eryar/archive/2019/11/21/LeastSquare_Line.htmlhttp://www.598club.com/eryar/comments/216992.htmlhttp://www.598club.com/eryar/archive/2019/11/21/LeastSquare_Line.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216992.htmlhttp://www.598club.com/eryar/services/trackbacks/216992.html??????o??1??3????????????'??'?o?

eryar@163.com

 

????????-????-|???????1|??-?????o?o???????o??1??3?????????'?o????????????????????????????a????-???????????o???'??'?o????f(t)=at+b??????1??????'??'?o?????1????????????o??1??3????????????????????????????????????????-????-|????1|??-???????-???????o????????????????13??1??????-???????????????-??????????????????????????a, b??????

 

M??????????????????a?????????????1???????????????????1????????????13??1?????o???????????????????????????a, b?????1?3?????????????o??1??3????Least Square???????????oM????13??1????????????M???????????????????-??o???????????????????????3???

 

??1???????a?????????????????????????????????????o??1??????????o???????????????o???'??'?o???1??f(t)=at+b????o????????????????o???'??'?o??????????????o?????????o??1??????????1?o??????'??'?o?????|???????????????????1????????????a?13??????o?o?????????????

 

???????????o????????????????????8??a??????????????a???????3????????????????'?o?????????????????1?????'?o??????1??????1???????o??'?o???????????1?????

 

??????|????????????1???N??a??????1Pi?????????????1?????P???D??????????????????1????'?o??????|?????13??1?????????????1?o??????'??1???????'??'?o??????|?????????????????????????1?3????????????????????????????1?????'?o????????????

 

?????V??oP????????1Pi????????????????D??o??'?o??????1????????????????????????????V???D??1?1??????V???D???????????o|?????3?????-?o??2????o??????????o|l????????????1????'?o??????|?????13??1????????V?????????13??1??????????????o|l????13??1???????????????????1????'?o??????|??13??1?????1?????

 

?????“??????o??1??3??????'(k??')??'?o???????”???????????????o??1??3????????????'?o?????????????????1?????-?????1?????3??????????????'?o????????1????-???P?????????????o??1???1????????a?????1????????????????a????????????????????math_MultipleVarFunctionWithGradient?????o?????????????o??1???1?????

 

?????-???????????myPoint?????'?o??????-?????1???myPoints??????????????????1?????????o??1???1????o????????'?o????????1????-?????1???????????dx, dy, dz???????????a???????1??????????math_BFGS?1?????????o?????????????????????1????a??????o??1???1??????????????????????o?????a?????????????

 

????????????????????????'??'?o??????????o??1???1????-??1????'?o??????|???o??1????'?o?????????'??|???????1|??-?o???'??'?o?????????a???????ay????1??'???????????

 

??? ??1????'?o??????|? ???????a??????

 

江苏快三开奖结果???????????????1?????????o?????'??'?o??????????????????a???o?????????????????????????????????????????-?a?????????o???????????1??????????????????3????????????????1??1????????????

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-11-21 13:17 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/10/08/PlaneSphere.htmleryareryarTue, 08 Oct 2019 14:57:00 GMThttp://www.598club.com/eryar/archive/2019/10/08/PlaneSphere.htmlhttp://www.598club.com/eryar/comments/216886.htmlhttp://www.598club.com/eryar/archive/2019/10/08/PlaneSphere.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216886.htmlhttp://www.598club.com/eryar/services/trackbacks/216886.html?????????

eryar 2019-10-08 22:57 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/10/07/IntAna_PlanePlane.htmleryareryarMon, 07 Oct 2019 11:38:00 GMThttp://www.598club.com/eryar/archive/2019/10/07/IntAna_PlanePlane.htmlhttp://www.598club.com/eryar/comments/216882.htmlhttp://www.598club.com/eryar/archive/2019/10/07/IntAna_PlanePlane.html#Feedback1http://www.598club.com/eryar/comments/commentRss/216882.htmlhttp://www.598club.com/eryar/services/trackbacks/216882.htmlOpenCASCADE ?13?????o

eryar@163.com

 

OpenCASCADE???????o???IntAna_QuadQuadGeo??????????????a?o??????2??quadric????????????????????????????????13??????13??????o??????2???????1???????1??'????o?o???????????1??'????????????????????

江苏快三开奖结果l ?????a??1

l ????????????????'?o?

江苏快三开奖结果l ?????a??1???????????'?o?

l ???

江苏快三开奖结果l ?-???

l ???????o?

江苏快三开奖结果l ?????2?o?

 

???o????????????????-????-|???????????????????????-??1|?????????????-|?1??|??????????o?????????????????????|???????????a????-????a?13?????o????o????????????????o??????-?1????????????oOpenCASCADE?????1???????oo?????????????1???????

 

江苏快三开奖结果???o?????????o?|???????

void IntAna_QuadQuadGeo::Perform (const gp_Pln& P1, 
                                  const gp_Pln& P2,
                                  const Standard_Real TolAng,
                                  const Standard_Real Tol)
{
  Standard_Real A1, B1, C1, D1, A2, B2, C2, D2, dist1, dist2, aMVD;
  //
  done=Standard_False;
  param2bis=0.;
  //
  P1.Coefficients(A1,B1,C1,D1);
  P2.Coefficients(A2,B2,C2,D2);
  //
  gp_Vec aVN1(A1,B1,C1);
  gp_Vec aVN2(A2,B2,C2);
  gp_Vec vd(aVN1.Crossed(aVN2));
  //
  const gp_Pnt& aLocP1=P1.Location();
  const gp_Pnt& aLocP2=P2.Location();
  //
  dist1=A2*aLocP1.X() + B2*aLocP1.Y() + C2*aLocP1.Z() + D2;
  dist2=A1*aLocP2.X() + B1*aLocP2.Y() + C1*aLocP2.Z() + D1;
  //
  aMVD=vd.Magnitude();
  if(aMVD <=TolAng) {
    // normalles are collinear - planes are same or parallel
    typeres = (Abs(dist1) <= Tol && Abs(dist2) <= Tol) ? IntAna_Same 
      : IntAna_Empty;
  }
  else {
    Standard_Real denom, denom2, ddenom, par1, par2;
    Standard_Real X1, Y1, Z1, X2, Y2, Z2, aEps;
    //
    aEps=1.e-16;
    denom=A1*A2 + B1*B2 + C1*C2;
    denom2 = denom*denom;
    ddenom = 1. - denom2;
    denom = ( Abs(ddenom) <= aEps ) ? aEps : ddenom;
    par1 = dist1/denom;
    par2 = -dist2/denom;
    gp_Vec inter1(aVN1.Crossed(vd));
    gp_Vec inter2(aVN2.Crossed(vd));
    X1=aLocP1.X() + par1*inter1.X();
    Y1=aLocP1.Y() + par1*inter1.Y();
    Z1=aLocP1.Z() + par1*inter1.Z();
    X2=aLocP2.X() + par2*inter2.X();
    Y2=aLocP2.Y() + par2*inter2.Y();
    Z2=aLocP2.Z() + par2*inter2.Z();
    pt1=gp_Pnt((X1+X2)*0.5, (Y1+Y2)*0.5, (Z1+Z2)*0.5);
    dir1 = gp_Dir(vd);
    typeres = IntAna_Line;
    nbint = 1;
    //
    //-------------------------------------------------------
    // When the value of the angle between the planes is small
    // the origin of intersection line is computed with error
    // [ ~0.0001 ] that can not br considered as small one
    // e.g.
    // for {A~=2.e-6, dist1=4.2e-5, dist2==1.e-4} =>
    // {denom=3.4e-12, par1=12550297.6, par2=32605552.9, etc}
    // So, 
    // the origin should be refined if it is possible
    //
    Standard_Real aTreshAng, aTreshDist;
    //
    aTreshAng=2.e-6; // 1.e-4 deg
    aTreshDist=1.e-12;
    //
    if (aMVD < aTreshAng) {
      Standard_Real aDist1, aDist2;
      //
      aDist1=A1*pt1.X() + B1*pt1.Y() + C1*pt1.Z() + D1;
      aDist2=A2*pt1.X() + B2*pt1.Y() + C2*pt1.Z() + D2;
      //
      if (fabs(aDist1)>aTreshDist || fabs(aDist2)>aTreshDist) {
        Standard_Boolean bIsDone, bIsParallel;
        IntAna_IntConicQuad aICQ;
        //
        // 1.
        gp_Dir aDN1(aVN1);
        gp_Lin aL1(pt1, aDN1);
        //
        aICQ.Perform(aL1, P1, TolAng, Tol);
        bIsDone=aICQ.IsDone();
        if (!bIsDone) {
          return;
        }
        //
        const gp_Pnt& aPnt1=aICQ.Point(1);
        //----------------------------------
        // 2.
        gp_Dir aDL2(dir1.Crossed(aDN1));
        gp_Lin aL2(aPnt1, aDL2);
        //
        aICQ.Perform(aL2, P2, TolAng, Tol);
        bIsDone=aICQ.IsDone();
        if (!bIsDone) {
          return;
        }
        //
        bIsParallel=aICQ.IsParallel();
        if (bIsParallel) {
          return;
        }
        //
        const gp_Pnt& aPnt2=aICQ.Point(1);
        //
        pt1=aPnt2;
      }
    }
  }
  done=Standard_True;
}

|?????????a?o?????????|???????13????????????1?????Ax+By+Cz+D=0???????a?13???1??'????1??-??|????????????o??????????????????o?????????a?13???1??'????o?o?????-?a?|???????

l ????????a?13????????????1??????3??????A???B???C???D????????-?13??????3?????????A,B,C)??o??????????????

l ??????a?13??????3??????????1??????????????vd??o?13???o?o??????1??????

l ????????????????a?13??????????1????|???????a?13???????|????dist1???dist2???

l ?|?????????vd?????????o???????????2??o|TolAng?????????o????a?13???13???2?????o?o?????|????????a??|?dist1???dist2???o???????????2??o|Tol?????????o????a?13????????????????????????????

l ?????????a?13??????1?denom???

l ??1???????a?13??????1???????o?o?????????1???

江苏快三开奖结果l ?????????????????a?13???1??????????????????

l ????????????o?o?????????1pt1?????1???dir1

 

江苏快三开奖结果??????????????o?o??????1???????????????????????????????????????a?13?????o??1??????????'???????????|????o?o??????1????????o?3?????????????????a?13???????????a?13????????????o??1???????a?o??1??????????o?o????????????3???????|???????

gp_Pln P3(vd.X(), vd.Y(), vd.Z(), 0.0);
IntAna_Int3Pln aTool(P1, P2, P3);
if (aTool.IsDone())
{
    pt1 = aTool.Value();
}

?????o?????a?13?????o??1?????????????????3????????????????1?????????????2????????????????????????????'???-????????????????????|???????????????a??????????


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-10-07 19:38 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/10/03/occt_740.htmleryareryarThu, 03 Oct 2019 08:07:00 GMThttp://www.598club.com/eryar/archive/2019/10/03/occt_740.htmlhttp://www.598club.com/eryar/comments/216870.htmlhttp://www.598club.com/eryar/archive/2019/10/03/occt_740.html#Feedback2http://www.598club.com/eryar/comments/commentRss/216870.htmlhttp://www.598club.com/eryar/services/trackbacks/216870.html?????????

eryar 2019-10-03 16:07 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/09/22/Project_Point_Cylinder.htmleryareryarSun, 22 Sep 2019 14:39:00 GMThttp://www.598club.com/eryar/archive/2019/09/22/Project_Point_Cylinder.htmlhttp://www.598club.com/eryar/comments/216854.htmlhttp://www.598club.com/eryar/archive/2019/09/22/Project_Point_Cylinder.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216854.htmlhttp://www.598club.com/eryar/services/trackbacks/216854.htmlOpenCASCADE??1???????????????

eryar@163.com

 

OpenCASCADE?????Extrema_ExtPElS???????o???1????o?????2?????????????????????????|??????????????????????????????????|???????????o?????1?????????????????????????a???????1P1???P2????????1????????????|???????????????P??P1?????|??????????????P??P2?????|?????????????|??????1?-????-??1???????????????????3??????????????

 

??Extrema_ExtPElS????-???????1????????????????o?????????o?|???????

 

???????o????????3?????????????o??1P???????S???????????|????????|?????-?a???

l ???????1P??????????S?'?o???o?3??o?????13????????????1Pp???

l ????1P???'?o????????????????'?????????

l ???????1Pp???????U??1???????????U1?????o|??????

l ???????U1?????o|??????180?o|??????????U2???

l ?????????????U1???V?????????U2???V?????1?o??????????????????1???

????????????|??1??????????????????????????????????o????????????????????????-????-??????|??????|?????13??1????????????1??????|????????????a??|????????1????????????????????|???????|????????a?????????1????????1?????????????????????????????1??????

OpenCASCADE??????????gp_Vec???????o??????a?????AngleWithRef()??????????o??????????????a????????|?????????????a??????1??'????1?????????-??????????Ref???????????????o|????-?'???????????a?????????1??????????????????????Ref?????????????1????????????????o|??????'????

??????????????a??????????????o???????????????????Draw Test Harness??-??????????????????????'???a????????????

 

?????????????????????????????DRAW??-??????|???????????o????????????

 

????????????????????o????????????????????a??1P1???P2??????o|????????1P???????????????


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-09-22 22:39 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/09/20/Project_Point_Line.htmleryareryarFri, 20 Sep 2019 05:15:00 GMThttp://www.598club.com/eryar/archive/2019/09/20/Project_Point_Line.htmlhttp://www.598club.com/eryar/comments/216847.htmlhttp://www.598club.com/eryar/archive/2019/09/20/Project_Point_Line.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216847.htmlhttp://www.598club.com/eryar/services/trackbacks/216847.htmlOpenCASCADE??1?????'?o??????

eryar@163.com

 

??GeomLib_Tool????-???????o??????????????1????2?o??????2????????????????????a????3?????????????????3??1????????2?o??????2????????????1???????????

 

?????????|????????o????????????1?????'?o?????????????3????????Extrema_ExtPElC??-???????o???1?????o????????2?o???|?????????????????????????o?????2?o??????????????'?o???????????-?????????????o?????????2?o??-?????????-??1????'?o??????|??o?????|???????

 

??1????o??????????????????o?????a???????'????????'??'?????????-?????V1?????'?o??????1???????????V?????'?o???????1????1P???????????

 

????3????|?????????????1?1????????1?????????'?o?????????|?Mydist??????????1OR?2??????'?o??????1???V1????Mydist??|????????o???1?????????'?o?????????1??????????o???????????3???????????????o??a?????1????'?o???????????1????'?o??????1OR?????|?Mydist???????????????'?????????????-?????????????????????????'?????????????3?????????????1???o????????????????????????????????1????'?o????????????

??????????????????????????????????o??????????3??????????????????????????????????1???????????????????????-|???????-?????o??????

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-09-20 13:15 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/09/19/IntAna_Circle_Plane.htmleryareryarThu, 19 Sep 2019 05:19:00 GMThttp://www.598club.com/eryar/archive/2019/09/19/IntAna_Circle_Plane.htmlhttp://www.598club.com/eryar/comments/216842.htmlhttp://www.598club.com/eryar/archive/2019/09/19/IntAna_Circle_Plane.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216842.htmlhttp://www.598club.com/eryar/services/trackbacks/216842.htmlOpenCASCADE???????13?????o

eryar@163.com

 

?? ?????????????o?1????????o??????2????-???????o?OpenCASCADE???????????IntAna_IntConicQuad???????????????????????o??????2???1??'????o??1???????a????3???????13??Plane?????o?o??????2??????????a??1???????????????????????|??????1???????????1????????????

 

?????'???????????????13???????o???????????IntAna_IntConicQuad?????o??????Perform?????1???????13?????????o????????????????????3???????????????????????????????????|???????

void IntAna_IntConicQuad::Perform (const gp_Circ& C, const gp_Pln& P,
                  const Standard_Real Tolang,
                  const Standard_Real Tol)
{
  
  done=Standard_False;
  
  gp_Pln Plconic(gp_Ax3(C.Position()));
  IntAna_QuadQuadGeo IntP(Plconic,P,Tolang,Tol);
  if (!IntP.IsDone()) {return;}
  if (IntP.TypeInter() == IntAna_Empty) {
    parallel=Standard_True;
    Standard_Real distmax = P.Distance(C.Location()) + C.Radius()*Tolang;
    if (distmax < Tol) {
      inquadric = Standard_True;
    }
    else {
      inquadric = Standard_False;
    }
    done=Standard_True;
  }
  else     if(IntP.TypeInter() == IntAna_Same) { 
    inquadric = Standard_True;
    done = Standard_True;
  }
  else {
    inquadric=Standard_False;
    parallel=Standard_False;
    gp_Lin Ligsol(IntP.Line(1));
    
    gp_Vec V0(Plconic.Location(),Ligsol.Location());
    gp_Vec Axex(Plconic.Position().XDirection());
    gp_Vec Axey(Plconic.Position().YDirection());
    
    gp_Pnt2d Orig(Axex.Dot(V0),Axey.Dot(V0));
    gp_Vec2d Dire(Axex.Dot(Ligsol.Direction()),
          Axey.Dot(Ligsol.Direction()));
    
    gp_Lin2d Ligs(Orig,Dire);
    gp_Pnt2d Pnt2dBid(0.0,0.0);
    gp_Dir2d Dir2dBid(1.0,0.0);
    gp_Ax2d Ax2dBid(Pnt2dBid,Dir2dBid);
    gp_Circ2d Cir(Ax2dBid,C.Radius());
    
    IntAna2d_AnaIntersection Int2d(Ligs,Cir);
    
    if (!Int2d.IsDone()) {return;}
    
    nbpts=Int2d.NbPoints();
    for (Standard_Integer i=1; i<=nbpts; i++) {
      
      gp_Pnt2d resul(Int2d.Point(i).Value());
      Standard_Real X= resul.X();
      Standard_Real Y= resul.Y();
      pnts[i-1].SetCoord(Plconic.Location().X() + X*Axex.X() + Y*Axey.X(),
             Plconic.Location().Y() + X*Axex.Y() + Y*Axey.Y(),
             Plconic.Location().Z() + X*Axex.Z() + Y*Axey.Z());
      paramonc[i-1]=Int2d.Point(i).ParamOnSecond();
    }
    done=Standard_True;
  }
}

???????????????-???????????o?????'?????1???????13?????o???????3??-?a?|???????

江苏快三开奖结果l ??1?????????13??????13?????????o??????????-?????????13??????13???????????????13??????????????13?????????

l ?|?????????????13??????13??????13?????????????o?o?o????

l ?????????o?o????????????????o???'??o?'???????o????????

 

??????????????o?????????13??????13??????o?o??????????????????o???'??o?'?????????o??1?????1?3??????1???????????????????a?13??????o?o????????????????'???????????P0??????????o?o????????????????1Pm??????????-????????Pm??1??|??-??o????????????????????13?????a????????a?o??1???????Pm??????o?????????????????a?o??1?????Pm?2?????o?o???1?????????????L??????L??|??????????????o??1?o?????????-???

 

江苏快三开奖结果???????????a?????????????a??1?????'?o??????????????a?????1????????a????????????????????????????1?????????


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-09-19 13:19 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/08/11/PipeCAD_IDF.htmleryareryarSun, 11 Aug 2019 14:45:00 GMThttp://www.598club.com/eryar/archive/2019/08/11/PipeCAD_IDF.htmlhttp://www.598club.com/eryar/comments/216663.htmlhttp://www.598club.com/eryar/archive/2019/08/11/PipeCAD_IDF.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216663.htmlhttp://www.598club.com/eryar/services/trackbacks/216663.htmlPipeCAD Import IDF

eryar@163.com


IDF/PCF???????????????????????????????o???????????????|????o?isogen??????ISO????????????????????????????????????????????o????????????????????|?PDMS???Intergraph SmartPlant3d?-??????????PipeCAD???????????IDF/PCF?????????????????????????????????'??????????????????????????????????????????????????????o|?-?????????????

|???????IDF/PCF??????|??????o?????a?1?????????????????????????????????>?????????>IDF/PCF??3???????|?????????'??????2?????-????????o??????1??????|?????1???????-??ospec????????????????3?o??-??ospec????????????????????????1????????????????o?'????????????

????????????????aPipeCAD????????????|?????????????????????IDF/PCF??????????????????'????o??????????????'????o??????????-?????????????????o?o??-??????????o????????????????|??????????????????????????????????????????-?????????'?????????-|???????????????????????????

 

????????????????????o?????????????'???????????????????????????????eryar@163.com

 

 

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)

 

 

 

 



eryar 2019-08-11 22:45 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/08/06/animation.htmleryareryarTue, 06 Aug 2019 03:07:00 GMThttp://www.598club.com/eryar/archive/2019/08/06/animation.htmlhttp://www.598club.com/eryar/comments/216643.htmlhttp://www.598club.com/eryar/archive/2019/08/06/animation.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216643.htmlhttp://www.598club.com/eryar/services/trackbacks/216643.htmlOpenCASCADE??????????

 

eryar@163.com


1.Introduction

OpenCASCADE???????o???AIS_Animation?-???????????????????????????????

 

??????????????????????o????????????????????????????????????o????????AnimationCamera????????????????????????AnimationObject????????oOpenCASCADE??????OpenSceneGraph????????????????????????????????????????o??????OpenCASCADE??-????????????????????o?????awhile(true) {update();}?????3???????????'?????1?????o???????????????????????????-??????????????????1???'????????????????????1?o??????????????????????????????1???????????o????

 

2. Examples

??OpenCASCADE????o???????????1??-???????o?????????3?????o????????????????o?o???????????????????????????????????????-??????????????????????????a???????|???????????????1?o?FFmpeg???

OpenCASCADE??-???????-?'????????????????????o???gp_TrsfNLerp?????????????

 ??1???????3???????1?????a??????????????a???????????????o????????????????????????????????????????????????????????????1???????????????3?????????????|????????????????????????a?????????????a?????????????-????

??Draw Test Harness??-???????????????????

source tests/v3d/anim/propeller

vanim anim -play -playSpeed 0.1

??3?????????????a?o????????????o????

??????????a?o???????????????a????????????-???????????o????????????????????????????1?o???????????o???????????????????|???????a????????????????????-?????????1????????????

 

3. Conclusion

OpenCASCADE7.3????????-???????o????????????????????????????????????????????????????????????o???????????????1??????????o???-????????????????????????????????-?????????????????1?????????????????????????????????????????????????????????????????o?????a?????1??'?????????????????|???????????????????????????-?'????????a?????????????????????????????o????????????????????????

 

 

 

 

 

 

 

 



eryar 2019-08-06 11:07 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/07/24/PipeCAD.htmleryareryarWed, 24 Jul 2019 15:28:00 GMThttp://www.598club.com/eryar/archive/2019/07/24/PipeCAD.htmlhttp://www.598club.com/eryar/comments/216597.htmlhttp://www.598club.com/eryar/archive/2019/07/24/PipeCAD.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216597.htmlhttp://www.598club.com/eryar/services/trackbacks/216597.htmlPipeCAD ??????

 

 

江苏快三开奖结果PipeCAD??????????????-??????1??????????????????????????|???????????o???????????o?????????????ISO???????13????????????????o????????????1????????????PDMS???????????'??????????o??????????|???????????????????????????????????????????1?????????|?????????????o?o??????????????13?????????????????????1???????13???|?AutoCAD??????o???????????3??????????

?2?????-??o??????o???????????1???????????PDMS????????????????????'?????????Undo/Redo???

?????o???PipeStd????????????1??????????????????????????????o?o??-??????????????????????????o??????????PCF/IDF?????????????????1??????Specification???????????1???????PCF/IDF??-????????????????????1?????????????????????????????'??????????????????o??o?????a?3??????????????????????

???????????????IDF???ISOGEN Data File???????aIntergraph PDS and AVEVA PDMS??????PCF???Piping Component File???????aIntergraph SmartPlant 3D?-??????ISOGEN????????????????????????????????/??????????????????????????????????1?????????????????IDF/PCF????????????????????1????????????????'?????????1??????????1???????o???????????????'???????????????a??????-???????o??o???????????3?????????????|???????-??o??????????????????????????????????????????-????

?????????????a??????????????????????????????o???????3?????????2???????????????????

 

 

 

 

 

 

 

 



eryar 2019-07-24 23:28 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/07/15/PipeStd3.htmleryareryarMon, 15 Jul 2019 11:04:00 GMThttp://www.598club.com/eryar/archive/2019/07/15/PipeStd3.htmlhttp://www.598club.com/eryar/comments/216555.htmlhttp://www.598club.com/eryar/archive/2019/07/15/PipeStd3.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216555.htmlhttp://www.598club.com/eryar/services/trackbacks/216555.htmlPipeCAD?1?????????????o?PipeStd(3)

Key Words: PipeCAD, PipeStd, Pipe Design 3D, Linux

1. Introduction
    ????????????????o????o?PipeStd??????????PDMS???Paragon???????????|??1?????????????????????1????????o???????????PipeStd??-????1???????????????????????????????????-??o????????????????????o???????????????o??????????o??????
    ???o????|???C++?????????????????????跨?13???????????3????????Linux?3??????-????????1?????????Windows?3??????-????????|???????????o??o???o???Ubuntu?3??????-?????????a??????


???o?????????|??????o??????????????????a???????????'??????o????????????a?????-????o????1????????????????????????-??o??????????????'??????o?????????o????????????????????????????????????'????o??o????o???????????a?3?????????

2. Catalogue
江苏快三开奖结果    ??????????????????????????1?????o??Catalogue??-?????????????????????????????????o??a????1??????3??????????1????????????'?????????????????????o???????????o???????1??????


?????????????????1??????????a????1??????????????????????o?????????????1????????????'????????

????????o????1???????????????????????

3. Specification
江苏快三开奖结果    ??????-??oSpecification????????????????????o???????????????????a?????????????????-??o??-??????????????????o???????????????????????????????????????'??o?????????????????o???????????????????????-??o??????????????????????????????????????????????


?????????????????a??????????????aSPEC World???????o????1????????????????-??o????????

4. Conclusion
江苏快三开奖结果    ????o?????????????????????????????-??o???????????????-??????????-??o????????????????a???????o????o?????????o???????o??a??????????????????跨?13?????????



eryar 2019-07-15 19:04 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/07/08/Ubuntu_Nodejs.htmleryareryarMon, 08 Jul 2019 04:10:00 GMThttp://www.598club.com/eryar/archive/2019/07/08/Ubuntu_Nodejs.htmlhttp://www.598club.com/eryar/comments/216511.htmlhttp://www.598club.com/eryar/archive/2019/07/08/Ubuntu_Nodejs.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216511.htmlhttp://www.598club.com/eryar/services/trackbacks/216511.htmlInstalling Node.js and Express on Ubuntu

1. ??nodejs??????????????Linux Binaries(?2??????????o?npm):

2. ?????Node.js
????????????????1?????????????????1??-?????Terminal???????????????????
    sudo cp * /usr/local/ -r
????????????????
    node -v
    npm -v
?????????o????????????????????????|??????????????


3. ?????express
    npm install -g express-generator

4. ?????Node???Express
??Cesium????????????????????????|????????????????Cesium?o???????????1????????????????
Node server.js


??o????????????????????????-??????????????http://localhost:8080/


??1????????Hello World??o??????????????a????????





eryar 2019-07-08 12:10 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/07/06/boost_test.htmleryareryarSat, 06 Jul 2019 04:54:00 GMThttp://www.598club.com/eryar/archive/2019/07/06/boost_test.htmlhttp://www.598club.com/eryar/comments/216504.htmlhttp://www.598club.com/eryar/archive/2019/07/06/boost_test.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216504.htmlhttp://www.598club.com/eryar/services/trackbacks/216504.htmlBoost test vs2013 fatal error C1001

??Visual Studio 2013??-?????boost???test???????????????'???????????|???????????o???

????o????????????|???????

江苏快三开奖结果1>------ Build started: Project: Test, Configuration: Debug Win32 ------

江苏快三开奖结果1>  main.cpp

江苏快三开奖结果1>d:\boost_1_70_0\boost\type_traits\common_type.hpp(47): fatal error C1001: An internal error has occurred in the compiler.

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

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

江苏快三开奖结果1>  Please choose the Technical Support command on the Visual C++ 

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

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

 

??????????????????????common_type.hpp???

 

???????????o????????oCXX11?????????????????oVS2013?????????C++11?????????boost???????o??????a???????1??????????????|??????CXX11???

BOOST_NO_CXX11_TEMPLATE_ALIASES

??Project->Properties->C/C++->Preprocessor??-???????3??????

 

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-07-06 12:54 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/07/04/fitLine.htmleryar


??????????????????oDraw???????????????????????1?????'?????????????????????????|??????????????????????o??|?Python???matplotlib????1??????????????????????????????????????



eryar 2019-07-04 16:26 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/06/24/RvmTranslator_Linux.htmleryareryarMon, 24 Jun 2019 11:27:00 GMThttp://www.598club.com/eryar/archive/2019/06/24/RvmTranslator_Linux.htmlhttp://www.598club.com/eryar/comments/216449.htmlhttp://www.598club.com/eryar/archive/2019/06/24/RvmTranslator_Linux.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216449.htmlhttp://www.598club.com/eryar/services/trackbacks/216449.htmlRvmTranslator for Linux
eryar@163.com

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

???o????????????跨?13?????Qt?-?????o??o??????????RvmTranslator??????Linux?3??????-????|???????????o??oRvmTranslator??Ubuntu?3??????-???????????

??????RVM????????-?????-????-???|???


RVM???AVEVA????????a????????????????????????????????'-????1???3????Tribon?1????????????oRVM??????????????????

????????o?1????????????


????????o?1??????????????o?1?????o?'?????1??-??????1?????????????????????o????

??Ubuntu?3??????????o???????????????????????????????o???????????????IDE????????Qt Creator?????o???????3???????????????|???????????Qt Creator??????????a???????????1????????????跨?13???????????Ubuntu???????????????Qt???*.pro??????????-????????????'?????Visual Studio??-??Qt VS Addin??????????????


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-06-24 19:27 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/06/15/RvmTranslator7_1.htmleryar

 


??o?o???1?????????????????1?????????????????????????o?o?????????2?3????????????????????????????????????????1?o???'?????3?3???
Shing Liu(eryar@163.com)


eryar 2019-06-15 10:04 ???????o
]]>
C++博客-eryar http://www.598club.com/eryar/archive/2019/06/03/LinePlaneInt.htmleryareryarMon, 03 Jun 2019 08:40:00 GMThttp://www.598club.com/eryar/archive/2019/06/03/LinePlaneInt.htmlhttp://www.598club.com/eryar/comments/216393.htmlhttp://www.598club.com/eryar/archive/2019/06/03/LinePlaneInt.html#Feedback0http://www.598club.com/eryar/comments/commentRss/216393.htmlhttp://www.598club.com/eryar/services/trackbacks/216393.htmlOpenCASCADE??'?o?????13?????o

???????????????????????3????1|??-???????o?o???'?o?????13????????????1????????????1??????????-??'?o???????????1???????1??????????????????

???o?????o?'?????1???????????a?????????????'?o??13???o??2?????'?o???????????????'?o?????????1???x0, y0, z0)??????????????1???????????m,n,p)??o?2???????????'?o??????????????o????????????OpenCASCADE??-??'?o???gp_Lin????????a?????????????

gp_Lin (const gp_Pnt &P, const gp_Dir &V) ??3??????1?????1?????????????'?o????????'?o??????1????????1????1????????o??'?o???????????1?????

?????-OpenCASCADE?????'?o?????????????1???????o??????

????????1?o??13????????????o?'?????1????????????????a?????????13???????'?o?????2?????'?o???????????13??????????1???x0,y0,z0)??????????????a?3??o???1???(A, B, C)??o?2??????????13???????????????o???????????13????1???1??????1????????????

????????a??1???????a??????o????????????????????a?13???????o??o?????o?????1??????????????o?13????????????1?????

 

?|???????????o????2????????a??1M0(x0,y0,z0)????????v1(x1,y1,z1)????????v2(x2,y2,z2)????????????????1M0????????V1???V2??????????13????1???????1M(x,y,z)???13???????????|???????????????M0M???V1, V2????????????o?????V1, V2????13?????????????????????|???????????-?????????????????1?????u, v??????

?????M0M???V1???V2??????????|?????????????

??1????13????????????1???????????|????????????a?13????????????1???????o|????????|??????a??1???????a??1????????????????1?????????o???????1??????????1??????????13?????????1???3????????1?3????

??1?????'?o???????????1??????13????????????1???????????????o??'?o?????13???o??1???????????????????????????|???????

???????????????????????????????o??????????'?o?????13??????o??1???|???????????????t??????t????o???????????'?o????????1????3?????????o??1?????????????????t????????????????????????????a??1?????????????????????o???????????????-????????'?o?????13???13????????|???1???????????

??OpenCASCADE??-???????o???'?o?????13?????o??????????IntAna_IntConicQuad????????????o?????|???????

 

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;
}

 

???????????????-???????????o?????????????1?????????????????t?????????o??????a??1??????3??????3????????Len!=0????????t?????????!=0???????????-??'?o?????13??????13???????????????a???3??????????13???????????????????-??????????|????????13???2??????????o??1??????????????????????????a????????????????Len??????????????0?????3?????????????????????????????a??????谨???????1???????????????????-?2????????o?'????-?3????



eryar 2019-06-03 16:40 ???????o
]]>