|
From: MenTaLguY <me...@ry...> - 2008-05-20 03:32:32
|
On Mon, 2008-05-19 at 14:53 +0200, Marco wrote: > Yes, I think you have to use the replace method. > The reason is that a path has to be continuos. > Allowing to get a non const iterator would mean bypassing > the check on continuity preservation that is performed > when the path is modified by the append/replace/erase methods. Correct. Modifying the Curve directly would bypass the invariant checks. For now the best procedure is to copy out the sequence of Curves you are interested in, modify then, and then replace them. We do need a path editing abstraction which can ensure the invariants while providing a nicer API, however. I still haven't come up with anything satisfactory yet though. -mental |