#18510: uniform api for 3d graphics renderers
-------------------------------------+-------------------------------------
Reporter: niles | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.8
Component: graphics | Resolution:
Keywords: graphics3d, | Merged in:
rich_repr | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | c5906947a9c79076369ad18778097e39941db295
public/3drenderers | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by vbraun):
No, the preferences are what you access through `%display`, so they are in
fact the easiest and intended way to interact with the display manager.
Thats why its user hostile if you name settings after obscure package
names, and confusing to boot since not every 3d implementation makes sense
for every UI.
If you want to micromanage the format then there is already
`foo.plot(viewer='jmol')` and friends. The keyword name might/should be
changed but at least its hidden away so that no ordinary user has to deal
with it. An alternative would be `foo.save('output.obj').show()` and use
the file extension to guess the type.
You can't realistically have pluggable arbitrary rich output, the author
of the Sage object needs to know what the possibilities are in order to
decide on the suitable rich output. Now for the the very special case of
just 3d graphics that might make sense, but then you can easily do that by
{{{
def _rich_repr_:
... try sane defaults first ...
# if none of the defaults work try the rest
for output_type in display_manager.supported_output():
try:
return renderer(self, output_type)
except:
pass
}}}
and then declare a particular output type as the only supported one from
your backend.
--
Ticket URL: <http://trac.sagemath.org/ticket/18510#comment:19>
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.