Play with two points on two spheres

Guess conditions that make the scaling constraint impossible to satisfy.
This commit is contained in:
Aaron Fenyes 2024-02-12 22:48:16 -05:00
parent a450f701fb
commit 31d5e7e864
2 changed files with 33 additions and 12 deletions

View file

@ -184,6 +184,8 @@ function realize(ctx::Construction{T}) where T
)
# add relations to center, orient, and scale the construction
# [to do] the scaling constraint, as written, can be impossible to satisfy
# when all of the spheres have to go through the origin
if !isempty(ctx.points)
append!(eqns, [sum(pt.coords[k] for pt in ctx.points) for k in 1:3])
end