Engine prototype #13

Open
Vectornaut wants to merge 117 commits from engine-proto into main
2 changed files with 6 additions and 6 deletions
Showing only changes of commit d0340c0b65 - Show all commits

View File

@ -39,7 +39,7 @@ rand_on_shell(shells::Array{<:Number}) = rand_on_shell(Random.default_rng(), she
# === elements === # === elements ===
point(pos) = [pos; 1; 0.25 * dot(pos, pos)] point(pos) = [pos; 0.5; 0.5 * dot(pos, pos)]
plane(normal, offset) = [normal; 0; offset] plane(normal, offset) = [normal; 0; offset]

View File

@ -65,11 +65,11 @@ guess = hcat(
1 -1 -1 1 0 0 1 -1 -1 1 0 0
0 0 0 0 1.5 0.5 0 0 0 0 1.5 0.5
1 1 1 1 -0.5 -1.5 1 1 1 1 -0.5 -1.5
] + 0.2*Engine.rand_on_shell(fill(BigFloat(-1), 6)), ] + 0.0*Engine.rand_on_shell(fill(BigFloat(-1), 6)),
Engine.point([-1, -1, -1] + 0.3*randn(3)), Engine.point([-0.5, -0.5, -0.5] + 0.3*randn(3)),
Engine.point([-1, 1, 1] + 0.3*randn(3)), Engine.point([-0.5, 0.5, 0.5] + 0.3*randn(3)),
Engine.point([ 1, -1, 1] + 0.3*randn(3)), Engine.point([ 0.5, -0.5, 0.5] + 0.3*randn(3)),
Engine.point([ 1, 1, -1] + 0.3*randn(3)), Engine.point([ 0.5, 0.5, -0.5] + 0.3*randn(3)),
BigFloat[0, 0, 0, 0, 1] BigFloat[0, 0, 0, 0, 1]
) )
frozen = vcat( frozen = vcat(