What I did:
cylinderPlot3D[f_ ,xys_:1] := ParametricPlot3D[{z,f[t,z] Cos[t],f[t,z]
Sin[t]}, {t,-Pi, Pi},{z,-Pi,Pi}, Mesh->None,PlotPoints->50,PlotRange ->
All,Exclusions->None, AxesLabel->{x,y,z},Lighting ->
{{"Directional",RGBColor[1, 1, 1], {-4,0,4}}},PlotStyle ->
Specularity[0]]
f[t_,z_] := Cos[z/2]^0.5 * (0.9+HeavisideTheta[z-0.25 Pi]);cylinderPlot3D[f,0.6]
What I got, after reorientation:
showing dark at the pointer, as opposed to light as is correct, given that the ring is planar (reorient to see), the illumination is directional hence rays to all points on the ring should have the same angle of incidence hence intensity of illumination.
What I want: Correct illumination.
Comments
Post a Comment