我正在尝试使用UIBezierPath制作一个矩形。我采用了两种不同的方式来绘制它。另外,我将描边宽度增加到25像素。第一种方法:使用closePathUIBezierPath*bpath=[UIBezierPathbezierPath];[bpathmoveToPoint:CGPointMake(x,y)];[bpathaddLineToPoint:CGPointMake(x+w,y)];[bpathaddLineToPoint:CGPointMake(x+w,y+h)];[bpathaddLineToPoint:CGPointMake(x,y+h)];[bpathclosePath
我想在ScenekitiOS中画一条3d线,我正在尝试下面的代码来画线,funcpath()->UIBezierPath{varbPath=UIBezierPath()bPath.moveToPoint(CGPointMake(0,0))bPath.addLineToPoint(CGPointMake(10,10))bPath.addLineToPoint(CGPointMake(5,5))bPath.closePath()returnbPath}下面的代码是加载SCNNode中的行,letsap=SCNShape()sap.path=path()letcarbonNode=SCNNo