Message Boards Message Boards

0
|
4135 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Get right results using RegionPlot3D command in Spherical Coordinates?

Posted 7 years ago

Hi;

In using the RegionPlot3D command to print a hemisphere of radius 3 using spherical coordinates, I end up with something that looks sort-of like a rectangle (see attached). It seems that if you use rectangular coordinates you can create a hemisphere using the RegionPlot3D command, but it certainly doesn't seem to like spherical coordinates. Do I need to do something special when entering ranges in spherical coordinates into the RegionPlot3D command?

Thanks,

Attachments:
POSTED BY: Mitchell Sandlin

I would use ParametricRegion. In line of principle, I would expect this to give a hemisphere:

DiscretizeRegion@ParametricRegion[
  {FromSphericalCoordinates[{\[Rho], \[Theta], \[Phi]}],
   0 <= \[Rho] <= 3 && 0 <= \[Theta] <= 2 \[Pi] && 
    0 <= \[Phi] <= Pi/2},
  {\[Rho], \[Theta], \[Phi]}]

Instead, I get a cube. The two dimensional analogue works fine:

DiscretizeRegion@
 ParametricRegion[{FromPolarCoordinates[{\[Rho], \[Theta]}],
   0 <= \[Rho] <= 3 && 0 <= \[Theta] <= 2 \[Pi]},
  {\[Rho], \[Theta]}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract