main.jl 531 Bytes
Newer Older
1
2
using DataFrames
using CSV
3
using JSON
4
5
6
7
8
9
10
11
12
13
14
using LightGraphs

struct contour
    pos
    time
end


function contour(d::Dict)
    return contour(d["pos"], d["time"])
end
15

16

17
18
19
20
21
22
23
24
25
26
27
function dependencyGraph(cons::Vector{contour})
    G = LightGraphs.SimpleDiGraph(0)
    # separate contours into layers
    # loop through contours from previous layer and compare waypoints
    # use KDTree to do this fast

    return G
end

voxels = DataFrames.DataFrame(CSV.File("tensile-1-1.csv"))
contours = contour.(JSON.parse(open("tensilecontours.json")))