Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Using Throw/Catch in MeshFunctions doesn't work? (8.0.4)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125341] Using Throw/Catch in MeshFunctions doesn't work? (8.0.4)
  • From: bradc355113 at yahoo.com
  • Date: Thu, 8 Mar 2012 04:36:53 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I've written a function that uses Throw/Catch internally, and I'm having trouble using it in the MeshFunctions option in Plot3D. My Catches seem to be disabled in this case -- I get an "Uncaught Throw" error. My function works fine in other scenarios.

Here's a simple example that generates the Throw::nocatch error:

Plot3D[x^2 + y^2, {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {Catch[Throw[#1 #2]]&}]

Is this a bug, or am I not understanding something?

(I've been able to get my function to work as a MeshFunction by modifying it to use Goto/Label instead of Catch/Throw, but bleh goto.)

Any info would be appreciated. :)
Thanks,
Brad C



  • Prev by Date: graph
  • Next by Date: Re: new functional operator
  • Previous by thread: Re: graph
  • Next by thread: Re: Using Throw/Catch in MeshFunctions doesn't work? (8.0.4)