Re: How to trim a bezier path?
Re: How to trim a bezier path?
- Subject: Re: How to trim a bezier path?
- From: Jim Marschke <email@hidden>
- Date: Wed, 7 Dec 2005 06:50:38 -0800
But that means every time I want to draw the path I have to recreate
it. That can take a while when I have thousands of points -- and
multiple paths. The path itself seems to be a great storage area,
and when I resize I just do a transform rather than rebuilding.
There are easy ways to append data to a path, I was hoping someone
knew of a way to remove data.
Jim
On Dec 7, 2005, at 7:26 AM, Jim Marschke wrote:
I have a small app which collects temperature data and graphs it
over time. As I collect new data, I append it to an existing
path. If I run this app for many days the bezier path gets large
and eats up a lot of memory. What I want to do is set a limit of
how much data I display (maybe a day or two) and once I reach that
begin removing points from the beginning of the path as I add
points to the end of it.
Is there a simple way to do this?
Instead of storing your data inside the path, store the data in
your own storage area and generate the path from the last few
points of that storage area.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden