#17258: 3d graphics: unintentional mutation
------------------------+----------------------------
Reporter: was | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: graphics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+----------------------------
This is a significant bug in the 3d graphics that Theron Hitchman found.
It's easy to replicate on the command line, and doesn't involve actually
rendering anything. Basically, in some cases, if g and h are 3d scenes,
then doing "k = g+h" actually *mutates* g itself. This ends up breaking
multi-step constructions of scenes (e.g., [1]).
{{{
sage: g = point3d([0,-2,-2]); g += point3d([2,-2,-2])
sage: print len(g.all)
2
sage: h = g + arrow([0,-2,-2], [2,-2,-2]) # this should *NOT* change g
sage: print len(g.all) # it changed g
3
}}}
[1]
https://cloud.sagemath.com/projects/d115ee6d-f378-4f70-b400-0f2aba16f10c/files/ProjectionOntoAPlane.sagews
--
Ticket URL: <http://trac.sagemath.org/ticket/17258>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.