Questions tagged [3d]

{3d} is about three-dimensional content, e.g., images and drawings.

Filter by
Sorted by
Tagged with
20 votes
3 answers
7k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, y={(0.0cm,1....
Peter Grill's user avatar
572 votes
67 answers
193k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
81 votes
3 answers
54k views

3D bodies in TikZ

Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.
azetina's user avatar
  • 28.9k
74 votes
3 answers
27k views

Drawing simple 3D cylinders in TikZ

I'm trying to draw some simple 3D objects in TikZ. I can do spheres and cuboids okay, but I'm struggling with circular cylinders: When rotating the scene (I use tikz-3dplot for this), the end faces ...
Jake's user avatar
  • 232k
57 votes
6 answers
17k views

How can I draw an arc from point A -> B on a 3D sphere in TikZ?

I'm basing myself on http://www.texample.net/tikz/examples/spherical-and-cartesian-grids/ and now I need to add a arc from point P to Q. What I was able to get so far: \begin{tikzpicture}[scale=1,...
mhk's user avatar
  • 673
79 votes
8 answers
89k views

What is the easiest way to draw a 3D cube with TikZ?

I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example? Like this:
yegor256's user avatar
  • 12k
10 votes
8 answers
14k views

Draw an aircraft with Tikz

I want to draw a plane using the Tikz tool. You will find, attached, a screenshot.
physics's user avatar
  • 1,209
31 votes
4 answers
5k views

Parabolic Moebius map on sphere using tikz

There is a discussion here about coding the elliptic Moebius map. I however am interested in how I might do the parabolic one. case [d] The arrow heads are not an issue, but how do I get the lines on ...
sheik yerbouti II's user avatar
59 votes
5 answers
9k views

3D helix torus with hidden lines

How can I generate the above image using TikZ (possibly other methods will work if they produce better looking results)? I would like to have a nicely shaded (not so dark image) without gridlines and ...
Jubao's user avatar
  • 709
41 votes
2 answers
15k views

Draw a bivariate normal distribution in TikZ

For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ?
Thomas Jensen's user avatar
44 votes
1 answer
7k views

Plotting several 2d functions in a 3d graph

I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
maetra's user avatar
  • 4,540
26 votes
3 answers
25k views

How to plot a surface from a set of data?

Disclaimer: I already read questions like 2D surface on a 3D surface plot external data in a file and 3D surface plots in TikZ but these did not solve my problem. I have this set of data: x y ...
Foo Bar's user avatar
  • 13.2k
53 votes
2 answers
7k views

How to draw spherical geometries with TeX?

I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
Ingo's user avatar
  • 20k
44 votes
10 answers
18k views

Drawing polyhedra using TikZ with semi-transparent and shading effect

I would like to draw an Octahedron using TikZ, I found nowhere to start, I tried drawing 6 points and then connecting them properly, but this method gives no 3D feel at all, this is my drawing: \...
Shuhao Cao's user avatar
  • 3,121
16 votes
1 answer
2k views

Placing text on face of 3d cube

How simple/hard would it be to add text to the front face (the red colored face in this example) of the cubes found at http://www.texample.net/tikz/examples/plane-partition/? I have seen examples like ...
jimmy sandusky's user avatar
15 votes
1 answer
6k views

Creating Bezier surfaces using procedural graphics

Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
Hugo's user avatar
  • 907
27 votes
3 answers
8k views

Draw a prism in TikZ or PSTricks

Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
student's user avatar
  • 29k
13 votes
3 answers
4k views

PGFplots 3d: Creating a filled solid of revolution

I have searched throughout the internet for a solution, but since I'm not that skilled with pgfplots, I need your help. For several examples I want to draw solids of revolution, but filled ones. I ...
Cheesey's user avatar
  • 385
23 votes
3 answers
12k views

Draw realistic 3D crystal structures (diamond)

I want to draw a realistic 3D crystal structure, e.g. diamond. The point where I struggle is to draw connecting 3D rods. Desired result In the end it should describe the cubic cell of diamond, e.g. ...
strpeter's user avatar
  • 5,215
15 votes
5 answers
6k views

Helix on a cylinder

I want to plot geodesics on a cylinder. These are straight lines, circles or helices. I can plot the first two, but I don't know how to draw the helices. To be precise, I would like to know how to ...
Grimolatto's user avatar
14 votes
2 answers
5k views

3D arrows with TikZ

Asymptote does give 3D arrows when drawing three dimensional figures (they even have shade!). Could we fake it with TikZ? Here's an example, manually written, with just one arrow worked: \...
Manuel's user avatar
  • 27.1k
5 votes
2 answers
4k views

pgfplots: Color a 3D surf plot based on y-value

I'm not sure if things have changed since version 1.7, but this is the closest thing I could find. I'm wondering if there's an easier way to use the y-value with a colormap to determine the color, or ...
Hanmyo's user avatar
  • 1,203
17 votes
1 answer
3k views

3D Arrow Tips for TikZ/pgfplots

I really like the arrow tips shown in How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics and am wondering how to produce this in pgfplots: I admit I have not tried yet, ...
Peter Grill's user avatar
14 votes
1 answer
24k views

How to draw parallelepiped and cube with LaTeX

How can I draw these solid figures with LaTeX? \begin{tikzpicture} \pgfmathsetmacro{\cubex}{5} \pgfmathsetmacro{\cubey}{1} \pgfmathsetmacro{\cubez}{3} \draw[red,fill=yellow] (0,0,0) -- ++(-\cubex,0,0)...
ryuk's user avatar
  • 2,257
14 votes
1 answer
10k views

2D surface on a 3D surface plot external data in a file

I am drawing a 3D surface from external data. Here they are: 0 0 -0.64 1 0 -0.5 2 0 -0.4 3 0 -0.31 4 0 -0.23 5 0 -0.2 6 0 -0.24 7 0 -0.32 8 0 -0.42 9 0 -0.59 10 0 -0.76 0 1 -0.54 1 1 -0.4 2 1 -0.27 ...
makhlaghi's user avatar
  • 1,882
11 votes
3 answers
12k views

Plotting matrix image data

I have data from infrared measurements in a file with 194 rows and 194 columns, each value representing the temperature at a certain pixel. As the image from the camera does not look nice, I would ...
nmy2015's user avatar
  • 515
8 votes
2 answers
11k views

Drawing 3D cylinder

I need to draw a lot of 3D cylinders with different dimensions. Has anyone maybe already defined a command like \3Dcylinder{x}{y}{z}? I found 3D bodies in TikZ and tried the third answer. But I don't ...
Jana's user avatar
  • 2,254
5 votes
2 answers
2k views

Intersecting planes not shown correctly with TikZ

I made a plot in MATLAB of a deformed and an undeformed model. I converted the figure to TikZ using matlab2tikz and added it to my .tex file. I then noticed that the two configurations, which are ...
George Urvey's user avatar
48 votes
3 answers
6k views

How to project text onto a plane?

I'm trying to create the impression that the text "slice" in the example below is written on the cube slice. What is the best solution? To slant the text? \documentclass{standalone} \usepackage{tikz} ...
Tim N's user avatar
  • 10.2k
38 votes
2 answers
6k views

Draw 3D intersecting surfaces

Problem This is a shameless "just do it for me" graphics question, but honestly I have no idea where to start. I'd like to reproduce this figure The image shows the intersection of two surfaces ...
Henri Menke's user avatar
13 votes
3 answers
5k views

Drawing the contour of a 3d torus

I would like to draw a torus, like the one on the question How to draw a torus, with a 3d package. I would like to avoid drawing the torus in 2d with inkscape (or directly with tikz) because I will ...
Georg Sievelson's user avatar
10 votes
1 answer
1k views

Planes' intersection in Asymptote

I have made a picture: The code: \documentclass{article} \usepackage{asymptote} \begin{document} \begin{asy} //================ Format ================= settings.outformat = "pdf"; settings.prc = ...
Sergey Belyaev's user avatar
9 votes
1 answer
1k views

pgfplots: labels and width issues in non-boxed 3d plot with oblique projection

Update april 2013 The bug has been fixed with pgfplots version 1.8 (requires \pgfplotsset{compat=1.8}). When I try to add the axes labels to this code, I get a division by zero error. I think the ...
Luigi's user avatar
  • 6,315
1 vote
1 answer
329 views

How to create a tikz picture, with a non-infinite distance viewpoint

Hi I am trying to create a planar tikzfigure, but would like to tilt the plane. Most advice I could find gives a perspective that has the viewpoint in infinite distance. \documentclass[final]{beamer} ...
Sandermatt's user avatar
33 votes
1 answer
5k views

Perspective transform

The following piece of eye candy: was produced using the following code: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{shapes.arrows} \usetikzlibrary{shadows.blur} \...
mabartibin's user avatar
  • 1,826
30 votes
3 answers
6k views

Projection of Circle onto Spherical Surface

I want to draw shapes looks like 15 degrees tilted-semi-sphere and there are circles, placed in a triangular shaped array, on the base area. Then these circles are projected onto surface of sphere. I ...
Omer Cayir's user avatar
24 votes
5 answers
8k views

Intersection of 2 surface plots in pgfplots

My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the ...
meep.meep's user avatar
  • 16.9k
23 votes
3 answers
6k views

How to draw an Euler angle rotation sequence with TikZ?

For some lecture notes I want to illustrate successive unit axis rotations using Euler angles. I am quite happy with what I came up with so far: However, I am failing at drawing the angles in between ...
Ingo's user avatar
  • 20k
22 votes
1 answer
5k views

Drawing 3D crystal lattice with tikz/pstricks

I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones. Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
Iohann's user avatar
  • 697
15 votes
1 answer
5k views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
shane's user avatar
  • 153
13 votes
1 answer
3k views

Render stl files in asymptote

I want to draw a propeller in 3D for my fluid dynamics lecture. I found a 3D model of a propeller that can be downloaded as a stl file. I found a python library numpy-stl that can read and draw, with ...
cjorssen's user avatar
  • 10k
12 votes
2 answers
6k views

spherical coordinates in tikz 3d

Can we specify direction in spherical coordinates? I know we can do polar (angle:radius) but what is we are using tikz-3d and want to specify (r, theta, phi) where theta is the azimuthal angle?
dustin's user avatar
  • 18.6k
12 votes
3 answers
7k views

TiKz. Angle between two vectors and a projection

I'm having trouble to draw something with TiKz. What I want to draw I think is simple: SIM is a vector in the YZ-plane with a Beta = 38º, source is just a random vector with positive x and y ...
JUAN G R's user avatar
  • 123
9 votes
4 answers
4k views

Cut-off cone in TikZ

How would I draw the following cone using TikZ? I have no clue how to incorporate the "cut-off". I want to draw a picture of the cone given by the points (y, t) for y in R^d and t in (0, infty) such ...
JT_NL's user avatar
  • 2,153
5 votes
1 answer
5k views

PDF file containing 3D object is not included correctly with \includegraphics

I have a PDF file, containing a 3D object in PRC format. I try to include this into a LaTeX document to be compiled with pdflatex, with the simple source below: \documentclass{minimal} \usepackage{...
F'x's user avatar
  • 3,011
4 votes
1 answer
1k views

3d sphere style changes coordinates?

i took this one http://www.texample.net/tikz/examples/map-projections and rebuild or changed it for my use. This is a crosspost to: http://latex-community.org/forum/viewtopic.php?f=45&t=25078&...
startrucky's user avatar
3 votes
1 answer
512 views

How draw axes & figure with TikZ using "mathematician's axes"?

Typically when drawing a 3D figure on paper (or a black/white board), a mathematician draws the z-axis to point due north on the page, the y-axis to point due east, and the x-axis to point due ...
murray's user avatar
  • 7,924
30 votes
2 answers
19k views

Drawing a circle on a non xy-plane with TikZ

Say I'm drawing a 3D picture. Now I would like to draw a circle, perspectively correct, on the yz-plane, but TikZ does not seem to be capable of this. All one can do is drawing circles on the xy-plane....
Tom Bombadil's user avatar
  • 40.1k
19 votes
3 answers
6k views

How to draw an Icosahedron?

After going through the pgf manual and also searching the web for some solution or at least a hint on how it can be done (preferably using TikZ), so I came here with my question: How to draw an ...
rtzll's user avatar
  • 5,531
16 votes
3 answers
4k views

Asymptote: draw surface from data points in 3D

In the figure below, you can see 25 curves. Each of these curves was plotted from a list of points in a file mypoints_i.dat. Each of these files contains the exact same number of points. How would ...
anderstood's user avatar
  • 2,196

1
2 3 4 5 6