29 lines
867 B
C#
29 lines
867 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using TransmissionGraphic.Graphic;
|
|
using TransmissionGraphic.Type3D;
|
|
using MathNet.Numerics.LinearAlgebra;
|
|
|
|
namespace TransmissionGraphic
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Canvas canvas = new Canvas();
|
|
canvas.init_canvas();
|
|
Line line = new Line(new TGVector3D(10, 20, 10), new TGVector3D(400, 25, 35), 0.32e-3, 400);
|
|
canvas.draw(line.curve());
|
|
Tuple<Matrix<double>, double> sag_and_value = line.sag();
|
|
Matrix<double> sag_points = sag_and_value.Item1;
|
|
double sag_value = sag_and_value.Item2;
|
|
canvas.draw(sag_points);
|
|
canvas.draw(line.swing(30 / 180 * Math.PI));
|
|
canvas.save("abc.dxf");
|
|
|
|
}
|
|
}
|
|
}
|