netcore-sci
1.0.22
There is a newer version of this package available.
See the version list below for details.
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.
<PackageVersion Include="netcore-sci" Version="1.0.22" />
<PackageReference Include="netcore-sci" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add netcore-sci --version 1.0.22
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
#:package netcore-sci@1.0.22
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=netcore-sci&version=1.0.22
#tool nuget:?package=netcore-sci&version=1.0.22
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
netcore-sci
.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
- 3D Geometry
- Extension methods
- Python wrapper
- Measure unit and physical quantities
Unit tests
- debugging unit tests
- from vscode just run debug test from code lens balloon
- executing all tests
- from solution root folder
dotnet test
- from solution root folder
- testing coverage
- from vscode run task ( ctrl+shift+p )
Tasks: Run Taskthentest with coverage(.NET Core Test Explorerextension required then move to some file eg. Vector3D.cs and click onAdd Watchfrom bottom bar )
- from vscode run task ( ctrl+shift+p )
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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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.
-
.NETStandard 2.0
- netcore-psql-util (>= 1.0.2)
- netcore-sci-thirdy-clipper (>= 1.0.4)
- netcore-sci-thirdy-quaternion (>= 1.0.4)
- netcore-util (>= 1.0.4)
- netDXF.Standard (>= 2.1.1)
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 | 1,909 | 2/16/2024 |
| 8.2.0 | 3,298 | 4/24/2023 |
| 8.1.0 | 315 | 4/16/2023 |
| 8.0.0 | 338 | 4/15/2023 |
| 7.0.0 | 511 | 12/26/2022 |
| 6.5.0 | 502 | 11/15/2022 |
| 6.4.0 | 572 | 10/22/2022 |
| 6.3.1 | 597 | 10/22/2022 |
| 6.3.0 | 624 | 10/22/2022 |
| 6.2.1 | 627 | 9/8/2022 |
| 6.2.0 | 617 | 9/8/2022 |
| 6.0.0 | 561 | 8/31/2022 |
| 5.6.0 | 585 | 8/16/2022 |
| 5.5.0 | 544 | 8/15/2022 |
| 5.3.2 | 568 | 8/10/2022 |
| 5.3.1 | 569 | 8/9/2022 |
| 5.3.0 | 561 | 8/8/2022 |
| 5.2.0 | 621 | 8/6/2022 |
| 5.1.1 | 591 | 8/3/2022 |
| 5.1.0 | 612 | 7/31/2022 |
| 5.0.0 | 623 | 7/26/2022 |
| 4.2.0 | 603 | 7/18/2022 |
| 4.1.1 | 604 | 7/18/2022 |
| 4.1.0 | 627 | 7/18/2022 |
| 4.0.1 | 604 | 7/8/2022 |
| 3.6.1 | 630 | 7/7/2022 |
| 3.6.0 | 596 | 7/6/2022 |
| 3.5.4 | 668 | 7/3/2022 |
| 3.5.2 | 623 | 6/28/2022 |
| 3.5.1 | 597 | 6/27/2022 |
| 3.5.0 | 614 | 6/27/2022 |
| 3.4.0 | 760 | 6/26/2022 |
| 3.3.0 | 700 | 6/26/2022 |
| 3.2.0 | 605 | 6/24/2022 |
| 3.1.0 | 576 | 6/23/2022 |
| 3.0.0 | 610 | 6/23/2022 |
| 2.1.2 | 686 | 4/21/2022 |
| 2.1.1 | 634 | 4/19/2022 |
| 2.1.0 | 644 | 4/19/2022 |
| 2.0.0 | 525 | 1/13/2022 |
| 1.30.0 | 343 | 12/5/2021 |
| 1.29.0 | 1,495 | 6/22/2021 |
| 1.28.0 | 761 | 6/9/2021 |
| 1.27.0 | 332 | 6/4/2021 |
| 1.26.0 | 637 | 2/12/2021 |
| 1.25.0 | 370 | 2/10/2021 |
| 1.24.0 | 368 | 2/9/2021 |
| 1.23.0 | 372 | 2/9/2021 |
| 1.22.1 | 646 | 2/8/2021 |
| 1.20.0 | 656 | 1/23/2021 |
| 1.19.0 | 645 | 12/25/2020 |
| 1.18.0 | 715 | 12/24/2020 |
| 1.17.0 | 698 | 11/29/2020 |
| 1.16.0 | 736 | 11/21/2020 |
| 1.15.1 | 1,020 | 9/7/2020 |
| 1.15.0 | 708 | 8/28/2020 |
| 1.14.0 | 993 | 8/24/2020 |
| 1.13.0 | 955 | 8/16/2020 |
| 1.12.2 | 999 | 8/9/2020 |
| 1.12.1 | 752 | 8/9/2020 |
| 1.12.0 | 825 | 8/8/2020 |
| 1.11.0 | 834 | 8/6/2020 |
| 1.10.0 | 787 | 8/4/2020 |
| 1.9.1 | 749 | 8/4/2020 |
| 1.9.0 | 748 | 8/3/2020 |
| 1.8.0 | 896 | 8/3/2020 |
| 1.7.0 | 764 | 7/20/2020 |
| 1.6.0 | 919 | 7/19/2020 |
| 1.5.0 | 818 | 7/15/2020 |
| 1.4.0 | 767 | 7/4/2020 |
| 1.3.1 | 774 | 7/3/2020 |
| 1.3.0 | 797 | 7/2/2020 |
| 1.2.2 | 896 | 6/29/2020 |
| 1.2.1 | 973 | 6/28/2020 |
| 1.2.0 | 813 | 6/28/2020 |
| 1.1.34 | 825 | 6/27/2020 |
| 1.1.33 | 810 | 6/24/2020 |
| 1.1.32 | 770 | 4/9/2020 |
| 1.1.31 | 819 | 1/8/2020 |
| 1.1.30 | 731 | 12/30/2019 |
| 1.0.30 | 820 | 8/14/2019 |
| 1.0.29 | 826 | 8/14/2019 |
| 1.0.28 | 941 | 8/13/2019 |
| 1.0.27 | 940 | 7/15/2019 |
| 1.0.26 | 918 | 7/13/2019 |
| 1.0.24 | 866 | 7/12/2019 |
| 1.0.22 | 1,072 | 7/12/2019 |
| 1.0.21 | 1,016 | 7/12/2019 |
| 1.0.20 | 868 | 7/11/2019 |
| 1.0.19 | 799 | 7/1/2019 |
| 1.0.18 | 772 | 7/1/2019 |
| 1.0.17 | 813 | 6/29/2019 |
| 1.0.16 | 820 | 6/29/2019 |
| 1.0.15 | 794 | 6/29/2019 |
| 1.0.13 | 805 | 6/26/2019 |
| 1.0.12 | 817 | 6/26/2019 |
| 1.0.11 | 823 | 6/23/2019 |
| 1.0.10 | 837 | 6/23/2019 |
| 1.0.9 | 819 | 6/23/2019 |
| 1.0.8 | 824 | 6/23/2019 |
| 1.0.7 | 786 | 6/22/2019 |
| 1.0.6 | 831 | 6/20/2019 |
| 1.0.5 | 830 | 6/20/2019 |
| 1.0.4 | 907 | 6/20/2019 |
| 1.0.2 | 855 | 6/20/2019 |
| 1.0.1 | 842 | 6/20/2019 |
| 1.0.0 | 828 | 6/20/2019 |