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

learn more… | top users | synonyms

2
votes
1answer
22 views

3D PDF : howto convert VRML with colors to U3D or PRC?

I'm using media9 package and it is great! What I'm trying to get is to have a 3D PDF coming from one or more VRML objects. I cannot find anymore the DeepExploration sw ...
4
votes
1answer
188 views

3D Shaded diamond with intersecting plane pt 2

This code is building from the code found here. I am trying to get these plots: Here is what was already done in the previous post: \documentclass[tikz,border=3mm]{standalone} ...
0
votes
0answers
38 views

Set the color to the sides of cylinder and exterior ring/hollow cylinder

I'm a newbee to tikz and from tex.stackexchange.com I tried a lot of resources. But I didn't get the initial help to solve my problem by myself. Maybe you can help me. Here is my problem: I want to ...
0
votes
1answer
29 views

pgfplots: percentage in matrix plot

I'm trying to draw a matrix plot with the shown values in percentage. I already tried: nodes near coords = {\pgfmathprintnumber\pgfplotspointmeta\%} Unfortunately this didn't work out. Here is my ...
17
votes
1answer
594 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
0
votes
0answers
52 views

3d plot with reflected arrows in “planes” using TikZ

I'm trying to reproduce this picture in TikZ, but I don't know how to get those 3D "planes" of arrows shown. Here is my attempt so far, which isn't remotely close to what I want (and mostly ...
0
votes
0answers
25 views

Spherical shell

I'd like to draw a figure like this using Tikz, anyone can help me?
11
votes
1answer
308 views

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

So I am trying to draw an ellipsoid, this is what I have so far: How can I make it more realistic (by improving the shadowing)? \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
30 views

How to embed Asymptote 3D objects in Latex code when using Overleaf?

This is my MWE: \documentclass{minimal} \usepackage[inline]{asymptote} \begin{document} Test. \begin{asydef} usepackage("bm"); texpreamble("\def\V#1{\bm{#1}}"); \end{asydef} 2d figure: ...
5
votes
0answers
211 views

Drawing a plane inside a sphere in TikZ

I have the following code, which is basically a modified version of the sphere example from TeXample.net. \documentclass[crop,tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{calc,fadings} ...
6
votes
1answer
145 views

Cylinder with specific orientation

I realize there are a couple of questions about cylinders in Tikz, but I haven't figured out how to add them to my image. I have something like: \documentclass{standalone} \usepackage{tikz} ...
1
vote
1answer
79 views

3D figures in LaTeX

Can you advise me some good packages for drawing this one stuff: And I'd like to ask for future, what is the most effective method for drawing 3D plot?
3
votes
1answer
106 views

Two windows on a roof

I'd like to use tikz 3d library, if possible, to easily draw this two windows on the roof. I read the posts concerning this library but I didn't understand how to do this. ...
2
votes
0answers
52 views

how to have transparent background in 3d plot of asymptote?

how to have transparent background in 3d plot of asymptote? Any idea? Suppose we save the output in png format, we can have transparent background in 2d plot of asymptote using the following, ...
366
votes
57answers
100k 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 ...
5
votes
1answer
150 views

Complex 3D drawings with tikz

I've already produced the following picture by means of TikZ. To do it, I modified the Sudoku example found here as follows: \documentclass{standalone} \usepackage{xcolor} \usepackage{tikz} ...
4
votes
2answers
660 views

Pgfplots: How to fill area under a curve in a 3d plot similar to \closedcycle in 2d

How can I fill the area under a curve in a 3d plot, similar to the \closedcycle command in ordinary 2d plots? Applying this command does a filling which is not rotated. Minimal working example: ...
2
votes
0answers
92 views

How to make 3D ribbon plots in PGF/TikZ

I'd like to make a bunch of 3D ribbon plots in TikZ or PGF, I've taken a look around and I've found no hints on how this might be accomplished, is there a simple way to do this? I'd settle for a 3D ...
1
vote
0answers
74 views

How to improve the 3d effect of sphere in asymptote?

I try to use asymptote to plot the lattice. But the 3d effect of sphere is not so good. I need to use opacity(0.3) function, since I need to plot inside the sphere other elements. Currently, it looks ...
3
votes
2answers
261 views

Drawing a plane in tikz in 3D with a sine wave

I am trying to draw a plane with the front edge having a sine wave. Using the code from this example I can draw it by something like \documentclass{standalone} \usepackage{tikz} ...
2
votes
1answer
59 views

Save 3D point for later use in TikZ

I want to save a three dimensional point for later use in \sfDefPoint. I am trying to write a command that lets me draw a line (and its projections) between two points using a simple syntax (e.g. ...
0
votes
0answers
47 views

Any code templates to draw 3D field lines inline (no pun intended)?

I'm particularly interested in magnetic and electric field lines such as showed in this picture (from http://www.grasshopper3d.com/forum/topics/creating-a-3d-field):
41
votes
8answers
19k views

What is the easiest way to draw 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:
3
votes
1answer
496 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) -- ...
5
votes
1answer
640 views

How to produce a 3D surface plot by rotating the 2D plot of a function?

What I want to do is to produce a 3d plot of a surface of revolution. So far I have achieved the following code... \documentclass[border= 5mm]{standalone} \usepackage{pgfplots} ...
10
votes
6answers
5k views

Draw an aircraft with Tikz

I want to draw a plane using the Tikz tool. You will find, attached, a screenshot.
3
votes
0answers
50 views

How to fill an area outside spheres?

The problem is the same as explained in my previous question: How to fill an area outside circles?. The only difference that now I need to fill the green area in three-dimensional space, i.e., the ...
4
votes
3answers
645 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 ...
4
votes
1answer
531 views

Parametric Plot 3D, Helix and Astroidal Sphere

Can somebody help me with creating two plots -- a Helix and an Astroidal Sphere -- in LaTeX? The attached pictures are screenshots from Mathematica and show the desired results.
4
votes
1answer
275 views

Change line style of contour lines in pgfplots

I have a problem regarding the contour lines that pgfplots can add to 3D plots. I want the contour lines to be dashed instead of solid. I've attached a small example from the pgfplots manual where I ...
1
vote
0answers
78 views

Drawing 3D surfaces with triangles (to show curvature effects)

I'm looking for a way to draw 3D surfaces in LaTeX with triangles on them to show the sum of angles being >, =, or < 180 degrees, exactly as in this photo . I'd just like to do it myself, but ...
3
votes
1answer
96 views

sphere with waves on the surface

I am working on surface waves on a curved surfaces and I need to draw a 3D sphere with sinusoidal waves on its surface, waves should start from the top and end in bottom, I have no idea how to do it. ...
3
votes
1answer
106 views

problem at drawing 3D square for right angle with tikz, pgfplots

I'm drawing a 3D square for right angle following http://tex.stackexchange.com/a/163384/14423. That works fine, but I try filling that square and the results isn't the spected: \documentclass{memoir} ...
5
votes
1answer
142 views

TikZ — Intersection line of a cone and a helicoid, too many lines

Here is the image I'm working on: it's an archimedean spiral, shown as an orthogonal projection of an intersection line of a cone and a helicoid. \documentclass[12pt, border=0.5mm]{standalone} ...
4
votes
1answer
185 views

Drawing right ascension and declination on the celestial sphere

I am trying to draw the celestial sphere and can't figure out how to draw arcs around the outer surface of my sphere. I want to draw a red arrow starting from the vernal equinox towards right under ...
3
votes
1answer
80 views

tikz, pgfplots, different colors for negative/postive z-values in addplot3

I want to color all points with negative z-values in the plane below red and all with positive z-values cyan!80. I searched for an hour now, but have no clue how to do it. Any suggestions? ...
3
votes
1answer
309 views

Define a \path like command in Tikz to draw 3D tubes

Is it possible to define a new command in TikZ which will use the same arguments as the \path [line] (node1) -- (node2); command, but which draws instead a 3D tube?
4
votes
1answer
216 views

How draw a cylinder with 3 balls?

I need to draw a cylindrical box with three ping-pong balls, as below But I can only do the cylinder. I can't get the balls in: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} ...
4
votes
2answers
145 views

rotate node in 3D

I am trying to draw this 3D shape I draw the 4 arrows and the cylinder, but can't rotate the arrows in 3D to put them on the top. \documentclass{standalone} ...
3
votes
1answer
487 views

How to draw 3d molecules with TikZ?

Is it possible to draw molecules in 3d with TikZ like in this picture?
7
votes
1answer
195 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 ...
2
votes
0answers
57 views

pgfplots 3D plots size versus 2D plots size

I wanted to create a 3D plot but it's not possible for me to set the right size. Should I try out until I find the right values for height and width for the 3D plot or is there an easy way to find ...
6
votes
1answer
154 views

3d PGFPlot with custom mesh and polygon

I am trying to reproduce this figure as closely as possible in PGFPlots (the original was made with a combination of gnuplot and Illustrator): The 3D surface is f(x,y):=x^2 y^2. I am struggling a ...
2
votes
1answer
68 views

Calculation of coordinates in 3d with the 3dstructuralanalysis library

The tikz library structuralanalysis provides the pointcommand. %------------------------------------------------ % point %------------------------------------------------ % ...
9
votes
3answers
482 views

Plotting intersection of a sphere with a plane

I've made the following code: \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} \usepackage[english]{babel} \usetikzlibrary{arrows} \begin{document} ...
2
votes
1answer
41 views

Wrong reference for fill and comb options

I'm trying to draw a sine in xy plan, fill it with some color, and draw some arrows (dirac) to show it can be considered as a vector. I tried this but the reference of the arrows is 0 and not the x ...
3
votes
1answer
105 views

Rotating axes in 3D for better viewing planes

I have this code: \begin{figure}[h!] \centering % Generat amb TikZ \begin{tikzpicture} % Note: the points have coordinates (x,z,y) \coordinate (O) at (0,0,0); ...
11
votes
3answers
2k views

plot 3d graphs of functions defined implicitly

How can I plot 3d graphs of functions defined implicitly (quadratic forms, for Linear Algebra course notes -- I'd like to include lots of examples)? As far as I can see it is not possible with ...
5
votes
1answer
221 views

Setting camera view within Sketch

I'm using sketch to generate 3D tikz graphics, but the sketch documentation is not helpful. For example, here is some sketch code: def v1 ( 0.000, 0.000, 1.000 ) def v2 ( 0.894, 0.000, 0.447 ...
17
votes
4answers
2k views

Drawing intersecting 3D surface plots

I'm attempting to draw six semi-transparent intersecting spheres of different colors---two on each axis x, y, z and all joining at the origin---as shown in the figure below. Note how all the spheres ...