3

I use 3dtools to draw this cones enter image description here

shaded cone

enter image description here

I see difficult when I use Mathematica

Graphics3D[Cone[{{0, 0, 0}, {0, 0, 3}}, 2], Boxed -> False]

enter image description here

How can I draw dashed line behind of a cone?

UPDATE

I tried

    basegraph = 
     Graphics3D[Cone[{{0, 0, 0}, {0, 0, 1}}, 1.2], Boxed -> False]
ResourceFunction["Graphics3DSketch"][basegraph]

I get

enter image description here

How can I get shaded cone like my picture?

minhthien_2016
  • 3,347
  • 14
  • 22

1 Answers1

5

Use the excellent answer of @LukasLang, we complete the animation。

Animate[DynamicModule[{point = 10 {Cos[t], Sin[t], .5}, 
   vertical = {0, 0, 1}, angle = 8 Degree}, 
  Overlay[Graphics3D[#, Boxed -> False, 
      Lighting -> DirectionalLight[White, {{1, 0, 1}, {0, 0, 0}}], 
      ViewPoint -> Dynamic@point, ViewVertical -> Dynamic@vertical, 
      ViewAngle -> Dynamic@angle] & /@ {{EdgeForm[
       AbsoluteThickness[3]], 
      Cone[{{0, 0, 0}, {0, 0, 3}}, 2]}, {EdgeForm[
       Directive@{AbsoluteThickness[2], 
         AbsoluteDashing[{2, 6}, 0, "Round"]}], FaceForm[], 
      Cone[{{0, 0, 0}, {0, 0, 3}}, 2]}}, All, 1]], {t, 0, 
  2 π, .1}, AnimationRate -> 5]

enter image description here

cvgmt
  • 72,231
  • 4
  • 75
  • 133