I tried running a piece of code in the examples listed in Scope in https://reference.wolfram.com/language/ref/ParametricRegion.html and it gives an error.

I tried running the below code to get a conical surface:

{h Cos[\[Theta]], h Sin[\[Theta]],h},
{{\[Theta], 0, 2 \[Pi]}, {h, 0, 3}}

and I get the below error:

DiscretizeRegion::drf: "DiscretizeRegion was unable to discretize the region ParametricRegion[<<2>>]

I am running Mathematica on Windows (64-bit)

Could you please help me diagnose the issue here?

  • 1
    $\begingroup$ It is working for me See this $\endgroup$
    – L.K.
    Apr 6 '17 at 17:27
  • 5
    $\begingroup$ It looks like this didn't work in 10.4.1, but it works in 11.1. You're using 11.1 documentation (most recent) if you're looking online. This example was NOT documented in 10.4.1, so it can't necessarily be expected to work there. I'm not sure where the update was, but you should upgrade your version of Mathematica. $\endgroup$
    – ktm
    Apr 6 '17 at 17:34
  • 1
    $\begingroup$ It did not work for me in 11.0.1. $\endgroup$
    – LouisB
    Apr 6 '17 at 18:24
  • 1
    $\begingroup$ Thanks @user6014. It works for me on 11.1. I had put off upgrade, but this version really does much more $\endgroup$
    – Shivanand
    Apr 6 '17 at 19:33
  • $\begingroup$ @Shivanand glad to hear! $\endgroup$
    – ktm
    Apr 6 '17 at 19:34

As @user6014 and @LouisB pointed out, Mathematica 11.1 is able to run it (I have a student license), but Mathematica 11.0 cannot (I have that installed on my lab computer). The documentation indeed seems to have been made for version 11.1 of Mathematica.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.