Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8916

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

From bradc355113@yahoo.com
Newsgroups comp.soft-sys.math.mathematica
Subject Using Throw/Catch in MeshFunctions doesn't work? (8.0.4)
Date 2012-03-08 09:37 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jj9uld$dqp$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Using Throw/Catch in MeshFunctions doesn't work? (8.0.4) bradc355113@yahoo.com - 2012-03-08 09:37 +0000
  Re: Using Throw/Catch in MeshFunctions doesn't work? (8.0.4) bradc355113@yahoo.com - 2012-03-09 11:11 +0000

csiph-web