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

learn more… | top users | synonyms

4
votes
1answer
123 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} ...
2
votes
0answers
71 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 ...
5
votes
0answers
129 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} ...
1
vote
0answers
45 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
171 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
52 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
28 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):
3
votes
0answers
42 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 ...
2
votes
1answer
191 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) -- ...
1
vote
0answers
62 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
85 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
85 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} ...
4
votes
1answer
148 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
54 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? ...
5
votes
1answer
126 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
189 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} ...
2
votes
0answers
47 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 ...
7
votes
1answer
146 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 ...
6
votes
1answer
95 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
58 views

Calculation of coordinates in 3d with the 3dstructuralanalysis library

The tikz library structuralanalysis provides the pointcommand. %------------------------------------------------ % point %------------------------------------------------ % ...
8
votes
3answers
398 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
36 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
70 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); ...
4
votes
2answers
114 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} ...
2
votes
0answers
152 views

Draw an intersection of two planes

I use this code for producing the intersection of two planes: \begin{figure}[h!] \centering % Generat amb TikZ \begin{tikzpicture}[x={(240:0.8cm)}, y={(-10:1cm)}, z={(0,1cm)}, ...
1
vote
0answers
89 views

Sphere Intersection using Tikz

I found this example here of two intersecting spheres, have reproduced a couple Tikz spheres that I found here which is the code below. I however would like to know how to get these two spheres to ...
2
votes
1answer
76 views

Confusion about the coordination system of 3D

I am drawing a 3d framework. I use something like (xyz cs:x = 12, y = 6, z = -6) to specify a coordination. However, the figure I produced looks ugly. Especially, the coordinations at the corners of ...
4
votes
1answer
84 views

Artificial Line in PGFPlots 3D Parametric Plots?

I just tried to make a 3D parametric plot of the spiraling helix r(t) = {t, cos(2*pi*t), sin(2*pi*t)} using PGFPlots, but there seems to be an extra line connecting the points r(t_min) and r(t_max). ...
5
votes
1answer
94 views

Properly drawing unit normals (orientation and length) in TikZ 3D

I'd like to visualize some points in 3D together with the connecting triangles and the unit normals of these triangles (cross product of the difference vectors between the points) together with the ...
1
vote
0answers
91 views

Asymptote: Intersect Line with Plane, z-order not correct

Hello TeX Stackoverflow! I have a question about 3D plotting in Asymptote. I want to produce a very simple 3D sketch of a line intersecting two planes, but I have trouble making it look "realistic": ...
3
votes
1answer
100 views

Best way to do 3d transluscent planes

I am trying to replace a diagram I made in powerpoint with something that I am making in tikz-3dplot. The diagram should look similar to this The problem that I'm running into is that the lines ...
3
votes
1answer
91 views

Customized axes in tikz-3dplot, \tdplotdefinepoints not working as expected

I am using tikz-3dplot to draw vectors and arcs in 3d space. In the following example I am drawing two pictures. The code to draw the vector and the arc is the same in both pictures. However, picture ...
9
votes
1answer
250 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: ...
5
votes
3answers
375 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 ...
11
votes
2answers
409 views

Tikz weird 3D look

I've got a slight problem with the way TikZ draws my 3D figure. The edges of the top and bottom of the cylinder in the picture don't seem to match correctly even though I don't think I made a mistake. ...
4
votes
1answer
177 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 ...
5
votes
1answer
139 views

Spiral on a truncated cone

I need to plot a spiral around an inverted truncated cone, starting and ending at the centre of both bases. Something like this: I've searched and found a similar solution, but for cylinders only: ...
7
votes
1answer
182 views

Drawing functions on spheres

In a paper, I have a class of functions S1→S2 depending on a real parameter t>0, and I would like to represent some of them on the sphere as curves to illustrate their behavior as t goes to 0, ...
2
votes
1answer
104 views

Asymptote error in plain_Label.asy

I'm trying to compile the Asymptote script fig0090.asy from http://www.piprime.fr/files/asymptote/graph3/index.html by running asy fig0090.asy in the command line but I get the error ...
2
votes
2answers
233 views

Representing general transformations on a 3D grid using TikZ

I have a cuboid made from unit squares which in 2D looks like the following: Considering a 3D version of this (i.e. a cuboid). I wanted to use Tikz to demonstrate some of the possible deformations ...
6
votes
2answers
120 views

Three dimensional Regression Plan with Residuals

In R, I can make three dimensional Regression plane with residuals with the following command scatter3d(prestige ~ income + education, data=Duncan) with scatter3d function from car R package. I ...
4
votes
1answer
279 views

Shaded 3D ellipsoid with pgfplot

I'm trying to display a shaded 3D ellipsoid with axis labels with PGFplots. So far I achieved this. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots,tikz-3dplot} \begin{document} ...
3
votes
1answer
76 views

Edge thickness of the faces in a surface plot

Is it possible to change the drawing thickness of the edges of the faces in a surface plot in PGFplots? For example, in the minimum working example \documentclass[margin=1cm]{standalone} ...
2
votes
1answer
97 views

Draw sphere and add scattered data with color information [closed]

My goal is to plot 3D data (x,y,z coordinates) such that a certain path on/inside a unit ball is illustrated. Since the path will not only be on the surface of the unit ball I have to encode the norm ...
1
vote
1answer
166 views

3dplot viewing angle

I need to choose my view angle in \tdplotsetmaincoords{ }{ } (elevation and azimuth) so that my plot ends up looking like the one below. I wish to do this entirely via the view angle, not relabelling ...
1
vote
1answer
177 views

Draw a 2D functions in tikz

I want to be able to plot in a 3D environment any type of function of two variables z = f(x,y), where x and y are specified within a given range. For instance plot f(x,y) = x^2 + y^2 where x in [-2,2] ...
7
votes
1answer
451 views

Asymptote: Why are objects closer to the camera smaller

In the following example you can see that the atom that is closest to the camera, is acutally smaller than the rest, even though it should be the other way around. Shouldn't it? Here the MWE: ...
1
vote
1answer
112 views

Asymptote: Arrow3 only has 3D arrow head

If I draw a Arrow3, it does not really look 3D-ish because the line is not shaded like a cylinder. How do I change this? Probably drawing the cylinder and arrow head manually together? How? Here is a ...
7
votes
1answer
131 views

tikz-cd: Shade faces of commutative cube

I would like to "shade" the faces of a commutative cube drawn using tikz-cd. \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} & P \ar{dl}[swap, ...
4
votes
3answers
414 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 ...