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.
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.
// 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
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 Task
thentest with coverage
(.NET Core Test Explorer
extension required then move to some file eg. Vector3D.cs and click onAdd Watch
from 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. |
.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,021 | 2/16/2024 |
8.2.0 | 2,913 | 4/24/2023 |
8.1.0 | 197 | 4/16/2023 |
8.0.0 | 225 | 4/15/2023 |
7.0.0 | 397 | 12/26/2022 |
6.5.0 | 398 | 11/15/2022 |
6.4.0 | 463 | 10/22/2022 |
6.3.1 | 481 | 10/22/2022 |
6.3.0 | 492 | 10/22/2022 |
6.2.1 | 499 | 9/8/2022 |
6.2.0 | 487 | 9/8/2022 |
6.0.0 | 432 | 8/31/2022 |
5.6.0 | 470 | 8/16/2022 |
5.5.0 | 430 | 8/15/2022 |
5.3.2 | 436 | 8/10/2022 |
5.3.1 | 439 | 8/9/2022 |
5.3.0 | 451 | 8/8/2022 |
5.2.0 | 474 | 8/6/2022 |
5.1.1 | 473 | 8/3/2022 |
5.1.0 | 490 | 7/31/2022 |
5.0.0 | 484 | 7/26/2022 |
4.2.0 | 464 | 7/18/2022 |
4.1.1 | 461 | 7/18/2022 |
4.1.0 | 481 | 7/18/2022 |
4.0.1 | 480 | 7/8/2022 |
3.6.1 | 509 | 7/7/2022 |
3.6.0 | 480 | 7/6/2022 |
3.5.4 | 533 | 7/3/2022 |
3.5.2 | 494 | 6/28/2022 |
3.5.1 | 462 | 6/27/2022 |
3.5.0 | 484 | 6/27/2022 |
3.4.0 | 633 | 6/26/2022 |
3.3.0 | 591 | 6/26/2022 |
3.2.0 | 469 | 6/24/2022 |
3.1.0 | 439 | 6/23/2022 |
3.0.0 | 493 | 6/23/2022 |
2.1.2 | 543 | 4/21/2022 |
2.1.1 | 512 | 4/19/2022 |
2.1.0 | 495 | 4/19/2022 |
2.0.0 | 388 | 1/13/2022 |
1.30.0 | 214 | 12/5/2021 |
1.29.0 | 1,331 | 6/22/2021 |
1.28.0 | 625 | 6/9/2021 |
1.27.0 | 222 | 6/4/2021 |
1.26.0 | 489 | 2/12/2021 |
1.25.0 | 234 | 2/10/2021 |
1.24.0 | 223 | 2/9/2021 |
1.23.0 | 231 | 2/9/2021 |
1.22.1 | 509 | 2/8/2021 |
1.20.0 | 485 | 1/23/2021 |
1.19.0 | 484 | 12/25/2020 |
1.18.0 | 553 | 12/24/2020 |
1.17.0 | 532 | 11/29/2020 |
1.16.0 | 573 | 11/21/2020 |
1.15.1 | 872 | 9/7/2020 |
1.15.0 | 555 | 8/28/2020 |
1.14.0 | 822 | 8/24/2020 |
1.13.0 | 808 | 8/16/2020 |
1.12.2 | 832 | 8/9/2020 |
1.12.1 | 600 | 8/9/2020 |
1.12.0 | 678 | 8/8/2020 |
1.11.0 | 687 | 8/6/2020 |
1.10.0 | 622 | 8/4/2020 |
1.9.1 | 584 | 8/4/2020 |
1.9.0 | 583 | 8/3/2020 |
1.8.0 | 729 | 8/3/2020 |
1.7.0 | 603 | 7/20/2020 |
1.6.0 | 753 | 7/19/2020 |
1.5.0 | 673 | 7/15/2020 |
1.4.0 | 642 | 7/4/2020 |
1.3.1 | 621 | 7/3/2020 |
1.3.0 | 650 | 7/2/2020 |
1.2.2 | 716 | 6/29/2020 |
1.2.1 | 815 | 6/28/2020 |
1.2.0 | 635 | 6/28/2020 |
1.1.34 | 662 | 6/27/2020 |
1.1.33 | 622 | 6/24/2020 |
1.1.32 | 596 | 4/9/2020 |
1.1.31 | 648 | 1/8/2020 |
1.1.30 | 575 | 12/30/2019 |
1.0.30 | 665 | 8/14/2019 |
1.0.29 | 656 | 8/14/2019 |
1.0.28 | 760 | 8/13/2019 |
1.0.27 | 776 | 7/15/2019 |
1.0.26 | 739 | 7/13/2019 |
1.0.24 | 713 | 7/12/2019 |
1.0.22 | 788 | 7/12/2019 |
1.0.21 | 746 | 7/12/2019 |
1.0.20 | 687 | 7/11/2019 |
1.0.19 | 647 | 7/1/2019 |
1.0.18 | 616 | 7/1/2019 |
1.0.17 | 646 | 6/29/2019 |
1.0.16 | 645 | 6/29/2019 |
1.0.15 | 634 | 6/29/2019 |
1.0.13 | 637 | 6/26/2019 |
1.0.12 | 651 | 6/26/2019 |
1.0.11 | 666 | 6/23/2019 |
1.0.10 | 678 | 6/23/2019 |
1.0.9 | 672 | 6/23/2019 |
1.0.8 | 649 | 6/23/2019 |
1.0.7 | 643 | 6/22/2019 |
1.0.6 | 655 | 6/20/2019 |
1.0.5 | 659 | 6/20/2019 |
1.0.4 | 717 | 6/20/2019 |
1.0.2 | 693 | 6/20/2019 |
1.0.1 | 668 | 6/20/2019 |
1.0.0 | 656 | 6/20/2019 |