Reputation: 53
How to plot a point {x1,y1,z1}
inside a cylinder having end points as A = {x,y,z}
and B = {x',y',z'}
and having radius r
, using Mathematica? An example will be appreciated
with a diagram
Upvotes: 0
Views: 398
Reputation: 25703
You can use something similar to
Graphics3D[
{{PointSize[0.03], Point[{0, 0, 0}]},
{Opacity[0.5], Cylinder[{{-1, -1, -1}, {1, 1, 1}}, 0.5]}}
]
Upvotes: 2