The following code(plotting disk in 3D) is very slow in Mathematica, how to optimize the code?
center = {0, 0, 1};
normalAxis = {0, 0, 1};
radius = 1;
region = DiscretizeRegion@ImplicitRegion[
{
Dot[{x, y, z} - center, normalAxis] == 0 &&
Norm[{x, y, z} - center] <= radius
},
{x, y, z}]
ParametricPlot3D[{0, 0, 1} + r {Cos[\[Theta]], Sin[\[Theta]], 0}, {\[Theta], 0, 2 \[Pi]}, {r, 0, 1}]– David G. Stork Jul 05 '21 at 03:35Projecting some shapes onto sphere? – cvgmt Jul 05 '21 at 04:1812.3.0 for Mac OS X x86 (64-bit) (May 10, 2021)– A.G. Jul 05 '21 at 05:0112.3.0 for Win10 (64-bit)– MMA13 Jul 05 '21 at 07:47