Geometry of Curve (PoligonMorph)

Ned Konz ned at bike-nomad.com
Thu Nov 21 17:26:46 UTC 2002


On Thursday 21 November 2002 05:16 am, Torsten Sadowski wrote:
> On Wed, 20 Nov 2002 Andreas.Raab at gmx.de wrote:
> > Nope - CurveMorphs (e.g., 'smoothed' PolygonMorphs) are natural
> > cubic splines. Which is one of the problems with editing them
> > since there is no local control of the curve.
> >
> > Cheers,
> >   - Andreas
>
> So if I want a bit more geometry I could take the bezier from
> Balloon2D, turn it into a Morph (add Connectors etc...).

If you make your Morph have the same API as a PolygonMorph (vertices, 
etc.) you can subclass NCConnectorMorph to make a Connector that uses 
your new curve class.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list