#5514: [with patch, needs work] implement exclusions for parametric 3d plots
-------------------------+--------------------------------------------------
Reporter: wcauchois | Owner: wcauchois
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.0.1
Component: graphics | Keywords:
-------------------------+--------------------------------------------------
Comment(by wcauchois):
Replying to [comment:14 jason]:
I had overlooked `_clean_point_list`; the solution was right there under
my nose :). I agree that keeping track of the (u,v) coordinates for every
vertex will be necessary.
> make it so that the region passed into the plot3d command is used during
the initial evaluation; if the point passes the region function, then a
vertex is calculated from it. This would probably save time anyway. If we
do this, we need to take into account the different signatures of region
functions. For a two-argument function, check before the vertex is
calculated, and for a three- or five-argument region function, check after
the vertex is calculated (because the arguments to the region function
include the vertex coordinates). Because of this last possibility, we
probably also want to also make the indexed face sets handle evaluations
which throw errors, in a similar way that 2d plotting handles undefined
values. This would also probably necessitate storing the parameter values
with the vertices.
One concern I have about implementing this is, have you seen
ParametricSurface.eval_grid? There's a lot of duplicated code, since it
branches for every type of function and then replicates the nested loop. I
feel like I would have to implement this logic in several places. Do you
have any ideas for how to factor eval_grid? Or any general suggestions?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5514#comment:15>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---