clothoid to bezier conversion
Using bézier splines an artist can easily draw curves with the same slope on either side of an on-curve point. Spiros, on the other hand, are based on clothoid splines which make it easy to maintain constant curvature as well as constant slope. Such curves will simply look nicer.
Raph Levien's spiro splines only use on-curve points and so are easier to use and more intuitive to the artist.
This library will take an array of spiro control points and convert them into a series of bézier splines which can then be used in the myriad of ways the world has come to use béziers.
- Developed at devel:libraries:c_c++
- Sources inherited from project openSUSE:Factory
-
4
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:Rebuild/libspiro && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
20221101.tar.gz | 0000107796 105 KB | |
libspiro.changes | 0000005582 5.45 KB | |
libspiro.spec | 0000002424 2.37 KB |
Latest Revision
Dominique Leuenberger (dimstar_suse)
accepted
request 1060348
from
Petr Gajdos (pgajdos)
(revision 10)
- update to 20221101: * Bugfix - removed forgotten if-then code used with scaling tests. Majority of users won't notice a difference since most FontForge fonts are created in the +x,+y quadrant. Users that might see a change/difference are users drawing only in the -x, -y quadrant. * Enhanced libspiro to allow closed-loop spiros starting with '[' or 'a' by seeking the first available 'v', 'c', or 'o' as start, which may be found later in the spiro curve. This was the least modification needed to allow call-test10 or call-test11 to pass. * Due to confusion created when ppedit was also re-licensed as MIT APACHE and GPL2+, it's necessary to re-clarify libspiro is GPL3+. In summary, GPL can include MIT code, MIT code cannot accept GPL. Please note code not in ppedit like libspiro's java is GNU GPL2+. Please note that libspiro's improvements or patches are also GPL. * Thanks to orbea for bugfixes concerning linking and linker flags, and removing .libs from linker path (some linkers don't like it). * Added more commenting in spiroentrypoints.h to clarify functions. * Reconfigured code to avoid exporting bezctx_intf.h since this is supposed to be internal to libspiro and not for external calling. * Also added https://gcc.gnu.org/wiki/Visibility to reduce exports. * SPIRO_INTERNAL_BEZCTX and call-test21.c added for simpler method of accessing libspiro for programs that only need the end result. * Test added for 'a','h' to ensure points don't overlap, else exit. (forwarded request 1060006 from dirkmueller)
Comments 0