-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDiscrete.cs
36 lines (33 loc) · 1.28 KB
/
Discrete.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Collections.Generic;
using Vascular.Geometry;
using Vascular.Structure;
using Vascular.Structure.Nodes;
namespace Vascular.Functionality
{
/// <summary>
/// Represents a discrete functional unit that takes a specified vessel from each tree
/// and merges them together through the functional structure.
/// </summary>
public abstract class Discrete
{
/// <summary>
/// Filters the provided list of locations and ensures that space is free for those which are selected.
/// </summary>
/// <param name="networks"></param>
/// <param name="locations"></param>
/// <returns></returns>
public abstract IEnumerable<(Vector3, Terminal[], Attachment[])>
PrepareLocations(Network[] networks, IEnumerable<Vector3> locations);
/// <summary>
/// Creates the functional structure and connects the specified terminals to it.
/// </summary>
/// <param name="position"></param>
/// <param name="connections"></param>
/// <returns></returns>
public abstract IEnumerable<Segment> Insert(Vector3 position, Terminal[] connections);
}
/// <summary>
///
/// </summary>
public record Attachment(Vector3 Position, Vector3 Direction, int Type);
}