(matrix Matrix, eye Vector, width, height, step float64)
| 45 | } |
| 46 | |
| 47 | func (s *Scene) RenderWithMatrix(matrix Matrix, eye Vector, width, height, step float64) Paths { |
| 48 | s.Compile() |
| 49 | paths := s.Paths() |
| 50 | if step > 0 { |
| 51 | paths = paths.Chop(step) |
| 52 | } |
| 53 | paths = paths.Filter(&ClipFilter{matrix, eye, s}) |
| 54 | if step > 0 { |
| 55 | paths = paths.Simplify(1e-6) |
| 56 | } |
| 57 | matrix = Translate(Vector{1, 1, 0}).Scale(Vector{width / 2, height / 2, 0}) |
| 58 | paths = paths.Transform(matrix) |
| 59 | return paths |
| 60 | } |