Plot3D over a triangular domain

*To*: mathgroup at smc.vnet.net*Subject*: [mg58024] Plot3D over a triangular domain*From*: Sergio Miguel Terrazas Porras <sterraza at uacj.mx>*Date*: Thu, 16 Jun 2005 05:37:08 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Tun Myint Aung [TMA at nus.edu.sg] wrote: I would like to plot a function over a isosceles triangular domain. I mean Plot3D[function, {x,-1,1},{y, -0.5+0.5x, 0.5-0.5x}]. But I got message that the limit must be real number. Anyone can help me? I did this using the UnitStep function. Try Plot3D[UnitStep[y-(-.5+.5x),0.5-0.5x-y]*function,{x,-1,1},{y,-1,1}]; If something does not work I can send you the Notebook. Regards, Sergio Terrazas University of Juarez Mexico