2
$\begingroup$

A Cylinder does not seem to have an option to make it oblique. A Tube has an oblique center but does not seem to have an option to make the end caps oblique. One could plot a cylinder or tube that extends outside the plot region, to make it look oblique, but then the ends would not be closed and within the plot region. I searched StackExchange and found no mention of "oblique cylinder" or "slanted cylinder". Does anyone know how to do this? Thanks.

$\endgroup$

1 Answer 1

5
$\begingroup$

You can transform the Cylinder.

Graphics3D[
 GeometricTransformation[Cylinder[], 
  ShearingTransform[0.4, {1, 0, 0}, {0, 0, 1}]]
 ]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.