40 votes
Accepted

Draw a 3D sphere with radius with TikZ?

It is always hard to get answers to questions on the form "draw this for me" without showing any effort your self. Next time try to start a solution and add a MWE to your question, then you have much ...
StefanH's user avatar
  • 13.8k
21 votes
Accepted

Are there any tools that convert Mathematica code into LaTeX code?

You can copy-and-paste LaTeX directly from a Mathematica notebook: It is assumed the content is math-related, so non-math functions are set using \text (requires amsmath).
Werner's user avatar
  • 602k
21 votes
Accepted

How to draw this cube with holes?

With TikZ this is easy to draw using pics, styles and the 3d library: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{3d} \tikzset {% front face/.style={fill=gray!20,canvas is xy plane ...
Juan Castaño's user avatar
19 votes
Accepted

How to draw a 3D sphere and a 3D cone for Spherical coordinates

You can draw something like your picture essentially using the canvas is... options from 3d library. For example: \tikzset { xz/.style={canvas is xz plane at y=0}, xz rotated/.style={rotate ...
Juan Castaño's user avatar
16 votes

Plot Dini's surface

\listfiles \documentclass[pstricks]{standalone} \usepackage{pst-solides3d} \begin{document} \def\A{3.0} \def\B{0.5} \begin{pspicture}(-3.5,-3.5)(3.2,13) \psset[pst-solides3d]{viewpoint=20 -20 30 ...
user187802's user avatar
  • 16.7k
16 votes
Accepted

Drawing six hemispheres

Welcome to TeX.SE!! This is another approach, using an isometric view (from perspective TikZ library) and a \foreach loop. This way you only need tho draw two hemispheres and rotate them. For example: ...
Juan Castaño's user avatar
15 votes

How to delete the sphere that is inside the cylinder?

Welcome to TeX.SE!! I know you're looking for an asymptote solution. But, meanwhile I left here a very simple TikZ one: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{perspective} \...
Juan Castaño's user avatar
14 votes
Accepted

Vertical sliced cylinder

Here is one way to do it which adapts the code you were already using to draw the cylinders (i.e. using ellipses). This method uses the intersections library to calculate the intersection point of a ...
Milo's user avatar
  • 9,430
14 votes

How can I draw the triangle tangent to sphere?

With some calculations, I have this code \documentclass[border=2mm,12pt,tikz]{standalone} \usepackage{tikz-3dplot-circleofsphere} \usepackage{fouriernc} \begin{document} \tdplotsetmaincoords{60}{140} ...
minhthien_2016's user avatar
14 votes
Accepted

Draw a solid with circular base & square cross-sections in TikZ

Here is another solution made with plain tikz. We only have to draw lines and ellipses, but we need to do the maths. I use isometric axes and the maths are nearly the same as in the OP, but we need a ...
Juan Castaño's user avatar
13 votes
Accepted

Drawing the 3D curve $z=xy\sin(x^2+y^2)$ with Tikz

\documentclass[10pt,a4paper]{article} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \begin{axis}[ %hide axis, xlabel=$x$,ylabel=$y$, mesh/interior colormap name=...
AboAmmar's user avatar
  • 46.3k
13 votes

how to draw pitch, yaw and roll with 3d plot

I made an alternative to @marmot's answer that keeps track of a rotation matrix. This way one can add an arbitrary number of rotations around any axis, and the \tdplotsetrotatedcoords command is not ...
Max's user avatar
  • 9,723
13 votes

How to draw this cube with holes?

With perspective projection and cosine lightening, in TikZ \documentclass[border=9,tikz]{standalone} \usepackage{tikz-3dplot} \makeatletter \def\camerax{0}\def\cameray{0}\def\cameraz{0} \def\cameras{...
Symbol 1's user avatar
  • 36.8k
12 votes
Accepted

3D Shaded diamond with intersecting plane pt 2

Here are the first and the last. The ball takes some more time: Edit Improved the drawing of the axis, which is not covered and added third sketch Edit 2 Changed the intersection point with the ...
JMP's user avatar
  • 3,218
12 votes
Accepted

How to make this 3D shape (ellipsoid) more realistic?

Here is an approach using tikz-3dplot: \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} % \begin{document} % square of the half axes \newcommand{\asa}{2} \newcommand{\bsa}{0.5} \...
JMP's user avatar
  • 3,218

Only top scored, non community-wiki answers of a minimum length are eligible