예제 #1
0
 public HXLDPoly TransPolygonXLD(HXLDPoly xldPoly)
 {
     try
     {
         HHomMat2D matd = new HHomMat2D();
         matd.VectorAngleToRigid(this.info.ModelRegionRow, this.info.ModelRegionCol, this.info.ModelRegionAngle, this.info.ResultY, this.info.ResultX, this.info.ResultAngle);
         if (IsSuccess)
         {
             xldPoly = matd.AffineTransPolygonXld(xldPoly);
             return(xldPoly);
         }
     }
     catch (Exception ex)
     {
         WriteErrorLog("VisionTool", ToolName + "模板" + ex.ToString());
     }
     return(null);
 }