Changeset 27:9756e29f1ed0 in rrlib_geometry


Ignore:
Timestamp:
20.03.2012 14:43:47 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Fixed operator << for cubic spline curves

File:
1 edited

Legend:

Unmodified
Added
Removed
  • curves/tSplineCurve.hpp

    r26 r27  
    327327  for (unsigned int i = 1; i < number_of_segments; ++i) 
    328328  { 
    329     canvas.AppendCubicBezierCurve(bezier_curve.ControlPoints() + 1, bezier_curve.ControlPoints() + 4); 
     329    canvas.AppendCubicBezierCurve(bezier_curve.ControlPoints()[1], bezier_curve.ControlPoints()[2], bezier_curve.ControlPoints()[3]); 
    330330    bezier_curve = spline.GetBezierCurveForSegment(i); 
    331331  } 
    332   canvas.AppendCubicBezierCurve(bezier_curve.ControlPoints() + 1, bezier_curve.ControlPoints() + 4); 
     332  canvas.AppendCubicBezierCurve(bezier_curve.ControlPoints()[1], bezier_curve.ControlPoints()[2], bezier_curve.ControlPoints()[3]); 
    333333 
    334334  return canvas; 
Note: See TracChangeset for help on using the changeset viewer.