()
| 28 | } |
| 29 | |
| 30 | func main() { |
| 31 | blocks := load("examples/mountain.csv") |
| 32 | fmt.Println(len(blocks)) |
| 33 | scene := ln.Scene{} |
| 34 | size := ln.Vector{0.5, 0.5, 0.5} |
| 35 | for _, v := range blocks { |
| 36 | scene.Add(ln.NewCube(v.Sub(size), v.Add(size))) |
| 37 | } |
| 38 | eye := ln.Vector{90, -90, 70} |
| 39 | center := ln.Vector{0, 0, -15} |
| 40 | up := ln.Vector{0, 0, 1} |
| 41 | width := 1920.0 |
| 42 | height := 1080.0 |
| 43 | paths := scene.Render(eye, center, up, width, height, 50, 0.1, 1000, 0.1) |
| 44 | paths.WriteToPNG("out.png", width, height) |
| 45 | // paths.Print() |
| 46 | } |
nothing calls this directly
no test coverage detected