Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
The .NET C# port of libspiro - conversion between spiro control points and bezier's.
License
wieslawsoltes/SpiroNet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The .NET C# port oflibspiro - conversion between spiro control points and bezier's
For libspiro introduction please seelibspiro project page anddrawing with spiro. There is also GUI version using libspiro written in C#/WPF for Windows.
SpiroNet is delivered as a NuGet package.
You can find the packages hereNuGet or by using nightly build feed:
- Add
https://www.myget.org/F/spironet-nightly/api/v2
to your package sources - Alternative nightly build feed
https://pkgs.dev.azure.com/wieslawsoltes/GitHub/_packaging/Nightly/nuget/v3/index.json
- Update your package using
SpiroNet
feed
You can install the package like this:
Install-Package SpiroNet -Pre
Provided examples create geometric paths as output usingPath Markup Syntax for WPF/Silverlight andPath Data for SVG.
varpoints=newSpiroControlPoint[4];points[0].X=-100;points[0].Y=0;points[0].Type=SpiroPointType.G4;points[1].X=0;points[1].Y=100;points[1].Type=SpiroPointType.G4;points[2].X=100;points[2].Y=0;points[2].Type=SpiroPointType.G4;points[3].X=0;points[3].Y=-100;points[3].Type=SpiroPointType.G4;varbc=newPathBezierContext();varsuccess=Spiro.SpiroCPsToBezier0(points,4,true,bc);Console.WriteLine(bc);Console.WriteLine("Success: {0} ",success);
varpoints=newSpiroControlPoint[5];points[0].X=-100;points[0].Y=0;points[0].Type=SpiroPointType.G4;points[1].X=0;points[1].Y=100;points[1].Type=SpiroPointType.G4;points[2].X=100;points[2].Y=0;points[2].Type=SpiroPointType.G4;points[3].X=0;points[3].Y=-100;points[3].Type=SpiroPointType.G4;points[4].X=0;points[4].Y=0;points[4].Type=SpiroPointType.End;varbc=newPathBezierContext();varsuccess=Spiro.TaggedSpiroCPsToBezier0(points,bc);Console.WriteLine(bc);Console.WriteLine("Success: {0} ",success);
varpoints=newSpiroControlPoint[4];points[0].X=-100;points[0].Y=0;points[0].Type=SpiroPointType.OpenContour;points[1].X=0;points[1].Y=100;points[1].Type=SpiroPointType.G4;points[2].X=100;points[2].Y=0;points[2].Type=SpiroPointType.G4;points[3].X=0;points[3].Y=-100;points[3].Type=SpiroPointType.EndOpenContour;varbc=newPathBezierContext();varsuccess=Spiro.TaggedSpiroCPsToBezier0(points,bc);Console.WriteLine(bc);Console.WriteLine("Success: {0} ",success);
SpiroNet is licensed under theGPL-3.0 license.
Original license and patent grant is included inREADME by Raph Levien for ppedit.
About
The .NET C# port of libspiro - conversion between spiro control points and bezier's.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.