Graphics, Figures & TablesCreating 3D figure with TikZ

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
robmlough
Posts: 2
Joined: Thu Mar 13, 2014 12:06 am

Creating 3D figure with TikZ

Post by robmlough »

I have a 3-dimensional compound figure that I would like to create using TikZ. The figure is in the form of a cube sitting inside a sphere, within which is exactly fits, that is, s, the side length of the cube is given by

s = 2*r/sqrt(3), where r is the radius of the sphere.

I would like to annotate the figure and include a 3-d Cartesian grid in which the cube is sitting. I am very much a beginner with TikZ and PGF but have been using LaTeX for almost 10 years. Many thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Creating 3D figure with TikZ

Post by mas »

By any chance, are you the same person who has posted a similar question at
tex.stackexchange?

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Creating 3D figure with TikZ

Post by hugovdberg »

This looks very much like a cross-post of this question on tex.sx. This is usually frowned upon, see also Gimme Pizza!.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
robmlough
Posts: 2
Joined: Thu Mar 13, 2014 12:06 am

Re: Creating 3D figure with TikZ

Post by robmlough »

Yes, this is the same poster. I am very surprised by the fact that nobody has suggested an answer on either forum. Perplexed even!
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Re: Creating 3D figure with TikZ

Post by hugovdberg »

Actually some comments were made on TeX.sx, therefore I think it it's best to continue the discussion over there to prevent people from duplicating effort (see the link in my previous post).
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
Post Reply