SceneKit draw curved line
问题 I'd like to draw a bezier curved line with SceneKit and thought this would work: func drawCurvedLine() { let scene = SCNScene() let scnView = self.view as! SCNView scnView.scene = scene scnView.allowsCameraControl = true let path = UIBezierPath() path.moveToPoint(CGPoint(x: -20, y: -20)) path.addCurveToPoint(CGPoint(x: 20, y: 20), controlPoint1: CGPoint(x: 5, y: 5), controlPoint2: CGPoint(x: 15, y: 15)) path.closePath() path.flatness = 0.3 var scnShape:SCNShape = SCNShape(path: path,