CompoundCurve3D bezierPath = new CompoundCurve3D(); mPreviousCommand = SVGCommand.CLOSE_PATH; inspectValues(bezierPath, mStartPoint.x + "," + -mStartPoint.y); paths.add(bezierPath); bezierPath = new CompoundCurve3D();
bezierPath.addCurve(new LinearBezierCurve3D(mPreviousPoint.clone(), p)); break; case HORIZONTAL: bezierPath.addCurve(new LinearBezierCurve3D(mPreviousPoint.clone(), p)); break; case CURVE_TO: cp2.add(mPreviousPoint); mPreviousControlPoint.setAll(cp2); bezierPath.addCurve(new CubicBezierCurve3D(mPreviousPoint.clone(), cp1, cp2, p)); break; case SMOOTH_CURVE_TO: if (mCurrentCommandIsRelative) cp2.add(mPreviousPoint); bezierPath.addCurve(new CubicBezierCurve3D(mPreviousPoint.clone(), cp1, cp2, p)); break; case LINE_TO: c = new Vector3(Double.parseDouble(vals[0]), -Double.parseDouble(vals[1]), 0); p = mCurrentCommandIsRelative ? c.addAndSet(mPreviousPoint, c) : c; bezierPath.addCurve(new LinearBezierCurve3D(mPreviousPoint.clone(), p)); break; default: return; if (bezierPath.getNumCurves() == 0) mStartPoint.setAll(p); mPreviousPoint.setAll(p);
bezierPath.addCurve(new LinearBezierCurve3D(mPreviousPoint.clone(), p)); break; case HORIZONTAL: bezierPath.addCurve(new LinearBezierCurve3D(mPreviousPoint.clone(), p)); break; case CURVE_TO: cp2.add(mPreviousPoint); mPreviousControlPoint.setAll(cp2); bezierPath.addCurve(new CubicBezierCurve3D(mPreviousPoint.clone(), cp1, cp2, p)); break; case SMOOTH_CURVE_TO: if (mCurrentCommandIsRelative) cp2.add(mPreviousPoint); bezierPath.addCurve(new CubicBezierCurve3D(mPreviousPoint.clone(), cp1, cp2, p)); break; case LINE_TO: c = new Vector3(Double.parseDouble(vals[0]), -Double.parseDouble(vals[1]), 0); p = mCurrentCommandIsRelative ? c.addAndSet(mPreviousPoint, c) : c; bezierPath.addCurve(new LinearBezierCurve3D(mPreviousPoint.clone(), p)); break; default: return; if (bezierPath.getNumCurves() == 0) mStartPoint.setAll(p); mPreviousPoint.setAll(p);
CompoundCurve3D bezierPath = new CompoundCurve3D(); mPreviousCommand = SVGCommand.CLOSE_PATH; inspectValues(bezierPath, mStartPoint.x + "," + -mStartPoint.y); paths.add(bezierPath); bezierPath = new CompoundCurve3D();