1.曲梁
PolyBeam polyBeam = new PolyBeam(beamType);//声明折梁的类型
ContourPoint contourPoint1 = new ContourPoint(new Point(0,0,0), null);
//ContourPoint contourPoint2 = new ContourPoint(new Point(1000, 1000, 0), new Chamfer(0,0,Chamfer.ChamferTypeEnum.CHAMFER_ARC_POINT));//添加圆弧点
ContourPoint contourPoint3 = new ContourPoint(new Point(2000, 0, 0), null);
polyBeam.AddContourPoint(contourPoint1);
double x = contourPoint1.X, y = 0.0, r = 0.0;
for (int i=0;i<n-1;i++)
{
x += (contourPoint3.X - contourPoint1.X) / n;
r = (contourPoint3.X - contourPoint1.X) / 2;
y = contourPoint1.Y + Math.Pow(r*r-( x-contourPoint1.X-r)* (x - contourPoint1.X - r), 1.0/2);
ContourPoint contourPoint = new ContourPoint(new Point(x,y,0),null);
polyBeam.AddContourPoint(contourPoint);
}
polyBeam.AddContourPoint(contourPoint3);
polyBeam.Profile.ProfileString =