Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LineMesh3DPainter.cs
1using System;
2using System.Numerics;
3using SkiaSharp;
6
8{
13 {
25 public void DrawGraph(Graphs3D.Canvas3D Canvas, Vector4[,] Points, Vector4[,] Normals,
26 object[] Parameters, Vector4[,] PrevPoints, Vector4[,] PrevNormals,
27 object[] PrevParameters, DrawingVolume DrawingVolume)
28 {
29 int i, c = Points.GetLength(0);
30 int j, d = Points.GetLength(1);
31 SKColor Color = Graph.ToColor(Parameters[0]);
32 Vector4[] Nodes = new Vector4[4];
33
34 c--;
35 d--;
36
37 for (i = 0; i < c; i++)
38 {
39 for (j = 0; j < d; j++)
40 {
41 Nodes[0] = Points[i, j];
42 Nodes[1] = Points[i + 1, j];
43 Nodes[2] = Points[i + 1, j + 1];
44 Nodes[3] = Points[i, j + 1];
45
46 if (Normals is null)
47 Canvas.PolyLine(Nodes, Color);
48 }
49 }
50 }
51 }
52}
Contains information about the current drawing area.
void DrawGraph(Graphs3D.Canvas3D Canvas, Vector4[,] Points, Vector4[,] Normals, object[] Parameters, Vector4[,] PrevPoints, Vector4[,] PrevNormals, object[] PrevParameters, DrawingVolume DrawingVolume)
Draws the graph on a canvas.
Base class for graphs.
Definition: Graph.cs:79
static SKColor ToColor(object Object)
Converts an object to a color.
Definition: Graph.cs:828
Interface for 3D graph drawing functions.
Definition: IPainter3D.cs:11