netcore-sci 1.0.22

There is a newer version of this package available.
See the version list below for details.
dotnet add package netcore-sci --version 1.0.22
NuGet\Install-Package netcore-sci -Version 1.0.22
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="netcore-sci" Version="1.0.22" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add netcore-sci --version 1.0.22
#r "nuget: netcore-sci, 1.0.22"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install netcore-sci as a Cake Addin
#addin nuget:?package=netcore-sci&version=1.0.22

// Install netcore-sci as a Cake Tool
#tool nuget:?package=netcore-sci&version=1.0.22

netcore-sci

NuGet Badge

Quality Gate Status

.NET core sci

<hr/>

Quickstart

From examples follow example_0001 can be created following these steps:

  • create console project
dotnet new console -n example_0001
cd example_0001
  • add reference to netcore-sci ( check latest version here )
dotnet add package netcore-sci --version 1.0.21

if prefer to link source code directly to stepin with debugger add project reference instead

dotnet add reference ../../netcore-sci/netcore-sci.csproj
  • setup example code
using static System.Math;
using SearchAThing.Sci;
using SearchAThing;

namespace example_0001
{
    class Program
    {
        static void Main(string[] args)
        {
            var tol = 1e-8;
            var R = 100;

            var dxf = new netDxf.DxfDocument();
            var ang = 0d;
            var angStep = 10d.ToRad();
            var angElev = 20d.ToRad();

            var o = Vector3D.Zero;
            var p = new Vector3D(R, 0, 0);

            Circle3D circ = null;

            while (ang < 2 * PI)
            {
                var l = new Line3D(o, p.RotateAboutZAxis(ang));
                var l_ent = l.DxfEntity;
                l_ent.Color = netDxf.AciColor.Cyan;
                dxf.AddEntity(l_ent);

                var arcCS = new CoordinateSystem3D(o, l.V, Vector3D.ZAxis);
                var arc = new Arc3D(tol, arcCS, R, 0, angElev);
                var arc_ent = arc.DxfEntity;
                arc_ent.Color = netDxf.AciColor.Yellow;
                dxf.AddEntity(arc_ent);

                var arc2CS = new CoordinateSystem3D(l.To - R * Vector3D.ZAxis,
                    Vector3D.ZAxis, Vector3D.Zero - l.To);
                var arc2 = new Arc3D(tol, arc2CS, R, 0, PI / 2);
                var arc2_ent = arc2.DxfEntity;
                arc2_ent.Color = netDxf.AciColor.Green;
                dxf.AddEntity(arc2_ent);

                if (circ == null)
                {
                    circ = new Circle3D(tol,
                        CoordinateSystem3D.WCS.Move(Vector3D.ZAxis * arc.To.Z),
                        arc.To.Distance2D(Vector3D.Zero));
                    var circ_ent = circ.DxfEntity;
                    circ_ent.Color = netDxf.AciColor.Yellow;
                    dxf.AddEntity(circ_ent);
                }

                ang += angStep;
            }

            dxf.Viewport.ShowGrid = false;
            dxf.Save("output.dxf");
        }
    }
}
  • execute
dotnet run

<img src="examples/example_0001/output.png" width=300>

API Documentation

Unit tests

  • debugging unit tests
    • from vscode just run debug test from code lens balloon
  • executing all tests
    • from solution root folder dotnet test
  • testing coverage
    • from vscode run task ( ctrl+shift+p ) Tasks: Run Task then test with coverage ( .NET Core Test Explorer extension required then move to some file eg. Vector3D.cs and click on Add Watch from bottom bar )

How this project was built

mkdir netcore-sci
cd netcore-sci

dotnet new sln
dotnet new classlib -n netcore-sci

cd netcore-sci
dotnet add package netcore-util --version 1.0.2
dotnet add package netcore-psql-util --version 1.0.3
dotnet add package netDXF.Standard --version 2.1.1
cd ..

dotnet new xunit -n test
cd test
dotnet add reference ../netcore-sci/netcore-sci.csproj
cd ..

dotnet sln netcore-sci.sln add netcore-sci/netcore-sci.csproj
dotnet sln netcore-sci.sln add test/test.csproj
dotnet restore
dotnet build
dotnet test test/test.csproj
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on netcore-sci:

Package Downloads
netcore-opengl-core

Core module contains everything useful for gl calculations and view management.

SearchAThing.Wpf

WPF library that uses netcore-sci

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.3.0 760 2/16/2024
8.2.0 2,708 4/24/2023
8.1.0 169 4/16/2023
8.0.0 194 4/15/2023
7.0.0 357 12/26/2022
6.5.0 366 11/15/2022
6.4.0 439 10/22/2022
6.3.1 440 10/22/2022
6.3.0 460 10/22/2022
6.2.1 466 9/8/2022
6.2.0 454 9/8/2022
6.0.0 416 8/31/2022
5.6.0 435 8/16/2022
5.5.0 401 8/15/2022
5.3.2 404 8/10/2022
5.3.1 401 8/9/2022
5.3.0 415 8/8/2022
5.2.0 441 8/6/2022
5.1.1 439 8/3/2022
5.1.0 440 7/31/2022
5.0.0 446 7/26/2022
4.2.0 433 7/18/2022
4.1.1 428 7/18/2022
4.1.0 450 7/18/2022
4.0.1 436 7/8/2022
3.6.1 468 7/7/2022
3.6.0 448 7/6/2022
3.5.4 488 7/3/2022
3.5.2 461 6/28/2022
3.5.1 428 6/27/2022
3.5.0 447 6/27/2022
3.4.0 591 6/26/2022
3.3.0 557 6/26/2022
3.2.0 426 6/24/2022
3.1.0 421 6/23/2022
3.0.0 437 6/23/2022
2.1.2 503 4/21/2022
2.1.1 475 4/19/2022
2.1.0 460 4/19/2022
2.0.0 351 1/13/2022
1.30.0 187 12/5/2021
1.29.0 1,233 6/22/2021
1.28.0 601 6/9/2021
1.27.0 200 6/4/2021
1.26.0 472 2/12/2021
1.25.0 211 2/10/2021
1.24.0 207 2/9/2021
1.23.0 197 2/9/2021
1.22.1 471 2/8/2021
1.20.0 446 1/23/2021
1.19.0 446 12/25/2020
1.18.0 525 12/24/2020
1.17.0 492 11/29/2020
1.16.0 553 11/21/2020
1.15.1 840 9/7/2020
1.15.0 519 8/28/2020
1.14.0 791 8/24/2020
1.13.0 772 8/16/2020
1.12.2 790 8/9/2020
1.12.1 567 8/9/2020
1.12.0 645 8/8/2020
1.11.0 648 8/6/2020
1.10.0 589 8/4/2020
1.9.1 544 8/4/2020
1.9.0 546 8/3/2020
1.8.0 693 8/3/2020
1.7.0 568 7/20/2020
1.6.0 712 7/19/2020
1.5.0 639 7/15/2020
1.4.0 606 7/4/2020
1.3.1 576 7/3/2020
1.3.0 614 7/2/2020
1.2.2 680 6/29/2020
1.2.1 770 6/28/2020
1.2.0 584 6/28/2020
1.1.34 624 6/27/2020
1.1.33 581 6/24/2020
1.1.32 561 4/9/2020
1.1.31 613 1/8/2020
1.1.30 560 12/30/2019
1.0.30 634 8/14/2019
1.0.29 613 8/14/2019
1.0.28 726 8/13/2019
1.0.27 729 7/15/2019
1.0.26 711 7/13/2019
1.0.24 681 7/12/2019
1.0.22 756 7/12/2019
1.0.21 705 7/12/2019
1.0.20 648 7/11/2019
1.0.19 612 7/1/2019
1.0.18 584 7/1/2019
1.0.17 604 6/29/2019
1.0.16 605 6/29/2019
1.0.15 603 6/29/2019
1.0.13 606 6/26/2019
1.0.12 609 6/26/2019
1.0.11 635 6/23/2019
1.0.10 642 6/23/2019
1.0.9 638 6/23/2019
1.0.8 613 6/23/2019
1.0.7 610 6/22/2019
1.0.6 617 6/20/2019
1.0.5 626 6/20/2019
1.0.4 679 6/20/2019
1.0.2 634 6/20/2019
1.0.1 629 6/20/2019
1.0.0 624 6/20/2019