| 1 |
--- lua-tikz3dtools-implementation.lua |
| 2 |
--- Entry point: loads and wires the split modules for lua-tikz3dtools v3.1.0. |
| 3 |
|
| 4 |
local Vector = require("lua-tikz3dtools-vector") |
| 5 |
local Matrix = require("lua-tikz3dtools-matrix") |
| 6 |
local Geometry = require("lua-tikz3dtools-geometry") |
| 7 |
local Scene = require("lua-tikz3dtools-scene") |
| 8 |
|
| 9 |
-- Resolve circular dependencies |
| 10 |
Vector._set_Matrix(Matrix) |
| 11 |
Matrix._set_Vector(Vector) |
| 12 |
Geometry._set_classes(Vector, Matrix) |
| 13 |
Scene._set_classes(Vector, Matrix, Geometry) |
| 14 |
|
| 15 |
-- Update sandbox environment now that Vector/Matrix are wired |
| 16 |
Scene._init_math_env() |
| 17 |
|
| 18 |
-- Register TeX commands |
| 19 |
Scene.register_commands() |