Changeset 7855:0fed8c25284d


Ignore:
Timestamp:
12/14/07 17:55:57 (5 years ago)
Author:
Robert Bradshaw <robertwb@…>
Branch:
default
Message:

Initial triangulation bug in ParametricSurface?

Location:
sage/plot/plot3d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sage/plot/plot3d/all.py

    r7694 r7732  
    11from shapes import Box, ColorCube, Cone, Cylinder, Line, Arrow, Sphere, Torus, Text as Text3D 
     2from parametric_surface import ParametricSurface, MobiusStrip 
    23from plot3d import plot3d, axes as axes3d 
    34from platonic import Tetrahedron, Cube, Octahedron, Dodecahedron, IndexFaceSet, Icosahedron 
  • sage/plot/plot3d/parametric_surface.pyx

    r7779 r7855  
    6868cdef class ParametricSurface(IndexFaceSet): 
    6969 
     70    """ 
     71    EXAMPLES:  
     72        sage: from sage.plot.plot3d.parametric_surface import ParametricSurface 
     73        sage: def f(x,y): return cos(x)*sin(y), sin(x)*sin(y), cos(y)+log(tan(y/2))+0.2*x 
     74        sage: S = ParametricSurface(f, (srange(0,12.4,0.1), srange(0.1,2,0.1))) 
     75        sage: show(S) 
     76         
     77        sage: len(S.face_list()) 
     78        2214 
     79    """ 
     80 
    7081    def __init__(self, f=None, domain=None, **kwds): 
    7182        self.f = f 
     
    130141        urange = [float(u) for u in urange] 
    131142        vrange = [float(v) for v in vrange] 
    132         if self.render_grid == (urange, vrange): 
     143        if self.render_grid == (urange, vrange) and self.fcount != 0: 
     144            # Already triangulated at on this grid.  
    133145            return 
    134146         
Note: See TracChangeset for help on using the changeset viewer.