Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-10-01 Thread Robert Kern
On Thu, Sep 30, 2010 at 23:04, Geoffrey Irving wrote: > On Fri, Oct 1, 2010 at 11:39 AM, Robert Kern wrote: >>  s = mlab.pipeline.triangular_mesh_source(x,y,z,triangles) >>  s.data.cell_data.scalars = # Your data here. >>  surf = mlab.pipeline.surface(s) >>  surf.contours.filled_contours =

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Geoffrey Irving
On Fri, Oct 1, 2010 at 11:39 AM, Robert Kern wrote: > On Thu, Sep 30, 2010 at 16:26, Geoffrey Irving wrote: >> On Fri, Oct 1, 2010 at 10:18 AM, Robert Kern wrote: >>> On Thu, Sep 30, 2010 at 16:00, Geoffrey Irving wrote: On Fri, Oct 1, 2010 at 9:38 AM, Robert Kern wrote: > On Thu, Sep

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Robert Kern
On Thu, Sep 30, 2010 at 16:26, Geoffrey Irving wrote: > On Fri, Oct 1, 2010 at 10:18 AM, Robert Kern wrote: >> On Thu, Sep 30, 2010 at 16:00, Geoffrey Irving wrote: >>> On Fri, Oct 1, 2010 at 9:38 AM, Robert Kern wrote: On Thu, Sep 30, 2010 at 15:30, Geoffrey Irving wrote: > Hello, >>

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Geoffrey Irving
On Fri, Oct 1, 2010 at 10:18 AM, Robert Kern wrote: > On Thu, Sep 30, 2010 at 16:00, Geoffrey Irving wrote: >> On Fri, Oct 1, 2010 at 9:38 AM, Robert Kern wrote: >>> On Thu, Sep 30, 2010 at 15:30, Geoffrey Irving wrote: Hello, I'm not sure where the correct place to ask questions

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Robert Kern
On Thu, Sep 30, 2010 at 16:00, Geoffrey Irving wrote: > On Fri, Oct 1, 2010 at 9:38 AM, Robert Kern wrote: >> On Thu, Sep 30, 2010 at 15:30, Geoffrey Irving wrote: >>> Hello, >>> >>> I'm not sure where the correct place to ask questions about Mayavi, so >>> feel free to redirect me elsewhere. >>

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Geoffrey Irving
On Fri, Oct 1, 2010 at 9:38 AM, Robert Kern wrote: > On Thu, Sep 30, 2010 at 15:30, Geoffrey Irving wrote: >> Hello, >> >> I'm not sure where the correct place to ask questions about Mayavi, so >> feel free to redirect me elsewhere. > > https://mail.enthought.com/mailman/listinfo/enthought-dev >

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Robert Kern
On Thu, Sep 30, 2010 at 15:30, Geoffrey Irving wrote: > Hello, > > I'm not sure where the correct place to ask questions about Mayavi, so > feel free to redirect me elsewhere. https://mail.enthought.com/mailman/listinfo/enthought-dev > I have a triangle mesh with a bunch of data on each face.  T

[Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-09-30 Thread Geoffrey Irving
Hello, I'm not sure where the correct place to ask questions about Mayavi, so feel free to redirect me elsewhere. I have a triangle mesh with a bunch of data on each face. The only color-relevant argument to triangular_mesh I know about is scalars, which is one value per vertex. Is there a way