Bezier curves

Alejandro Tejada capellan2000 at yahoo.com
Sat May 8 22:46:06 EDT 2004


Jim Hurley wrote:

> A single bezier line--two end
> points only--is about 50 K! 
> A bezier line with 10 segments is 500 K.

That's exactly what i suspect!

Could you implement the bezier code as a backscript?

In this way, every object could refer to this 
backscript code, not their own
script of many lines. 

> As a work-around, to reduce the size, I have added a

> button to the bezier plug-in which converts any 
> bezier curve to a simple line graphic. 
> It takes each of the bezier line groups and 
> concatenates their graphic points to form a single
> graphic line and deletes all the controls and their 
> scripts.

This is great!!!

Could you store all the locations of startpoint 
endpoint, first control point and second control point
within a custom property of the polygon graphics? 

In this way you could restore these points if the user
needs to edit the line as a bezier graphic.

SVG, PDF and Adobe Ilustrator file formats have
defined these characteristics of their vector
graphics.

What could be better? 

SVG, PDF or Adobe Ilustrator
notation format for this custom property?

> The size of a stack with a single bezier line drops 
> from 50 K to 4 K. This is something one could do 
> after the bezier controls have done their job and 
> you are satisfied with the shape.

In the stack "Graphic_Tools_v01beta", i reuse a
bezier curve to modify the shape of a polygon
graphic. This is the tool with 
a shape like this: >

You could use this tool only in a polygon graphic,
by clicking in two different points of the graphic.

1- click on a point of the graphic, not any point,
but one of the marker points. Then appears an
empty blue circle in the first point of this
polygon graphic and a dot over the marker point
that you clicked.
2- click on a second marker point of the same graphic
Now appear a second dot an a line that joins the
first and second points.
3- move the dots (controls points for the bezier
curve) to reshape the line. When the line has the
shape that you want, double click in one of the dots,
and the points of the bezier curve replace all the
points between the two marker points. Notice, the
auxiliar bezier curve returns to his place in the
upper left corner. A single line is reused unlimited 
times!

It will be excelent if you could use a similar
approach with this bezier curves stack.
 
Look for yourself in this file: 

http://www.geocities.com/capellan2000/Graphic_Tools_v01beta.zip

> I have posted a compact version of the plug-in; it 
> is 80 K.

Thanks again for this working example!
KeepUp the good work!

al

=====
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


More information about the use-livecode mailing list