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

learn more… | top users | synonyms

5
votes
2answers
374 views

Making mesh grid lines transparent in surface plot with pgfplots

I need to make a partly transparent, one color, surface plot. Additionally I want to control the transparency of mesh lines. Running this code: \documentclass{standalone} \usepackage{tikz,pgfplots} ...
1
vote
0answers
138 views

Setting a rotation matrix instead of Euler angles in tikz-3dplot

In tikz-3dplot, I would like to use rotated coordinates by setting the according rotation matrix directly, instead of implicitly by Euler Z-Y-Z angles. I already tried to modifiy the internal matrix ...
5
votes
0answers
161 views

Help creating 3D solids of revolution in pgfplots? [duplicate]

I have done a lot of plotting in 2D using pgfplots but I am new to the 3D portion. I am attempting to illustrate a solid of revolution. For example, I have the area under the curve y = x^2 + 1 on the ...
4
votes
2answers
175 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
1
vote
0answers
172 views

Drawing a mesh heart in TikZ

I would like to reproduce the figure created with Matlab here, using TikZ. However, I'm very inexperienced with TikZ, and anything more than just drawing lines is beyond my abilities. Could anyone ...
3
votes
1answer
146 views

Converting node coordinates in tikz 3d?

Consider this MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{3d} ...
4
votes
1answer
91 views

Correct clipping of 3D tikz for adjustbox?

Consider the following MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} ...
9
votes
2answers
208 views

pgfplots 3d cylindrical coordinate system

I am trying to plot a cylindrical coordinate system using pgfplots. The idea would be to plot the r,theta plane similar to what polaraxis provides, see here. I don't know how to translate something ...
4
votes
1answer
489 views

Plotting 3D graphs in specified axial direction in tikz

I am a complete tikz noob and just taking snippets of examples to draw my first diagram. To get my head around orientations I am starting with the polarizing microscope example ...
11
votes
2answers
234 views

Asymptote: when white isn't white

I'm trying to display a white 3D ball with Asymptote (3D PDF), but it always turns up gray: import graph3; import solids; defaultrender.merge=true; size(10cm,0); ...
4
votes
1answer
142 views

Opacity for pst-3dplot object

How can the opacity of a pst-3dplot object be set to be transparent? I have an example where using opacity or strokeopacity options do not work. I am trying to make an image similar to the following: ...
3
votes
2answers
172 views

Connecting line calculations with fitting node in 3D tikz?

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{fit} \usetikzlibrary{3d} \makeatletter \tikzset{ ...
7
votes
2answers
470 views

Projection of included 2D graphics to a plane

General purpose I want to project a graphic file from external sources (example.pdf saved on my computer e.g. a chip design) on the bottom of a 3D graphic (which I can draw in LaTeX by using TikZ, ...
6
votes
3answers
920 views

tikz-3dplot rotation around the x-axis

I'm trying to create a simple spherical quadrant grid using the tikz-3dplot package. The longitudinal grid lines look fine but when I try to create the latitudinal lines I get really strange results ...
2
votes
1answer
121 views

Uniform appearance of tick marks in 3d pgfplot?

In the default configuration the tick marks in a 3d plot from pgfplots are looking nicely when using a box but in my opinion not really uniform when the axis lines are in the center. Is there any ...
2
votes
2answers
233 views

addplot3 [area plot] filling the wrong area

using some saved data, i use (The data file cane be download from pX.txt where the first column is the x and at each iteration, I plot the other columns with respect to the first column) ...
7
votes
3answers
565 views

pgfplots: 3D surface plot from data with free format

I want to plot 3D data from a file (data file) using pgfplots. The data represents an ellipsoid. I want to draw the outer shell like in the following picture, just without the background and in ...
1
vote
1answer
167 views

rectangle in 3d plane

I am trying to plot a 3d axis with a rectangle perpendicular to the x-plane using the following code: \documentclass[tikz]{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{calc} ...
4
votes
2answers
99 views

\pgftransformtriangle problem

Why the red square and circle are not set and oriented on the blue points ? \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \def\Azi{30}%30 \def\Alt{20}%20 ...
6
votes
3answers
265 views

indicate a right angle in 3d

The following MWE shows what appears to be a piece of paper folded. I want to indicate that the angle between the dashed lines is right angled by adding a simple square at M, such that the missing ...
9
votes
2answers
307 views

3D font in LaTeX

This is an unusual question regarding rendering of a font with a specific 3D-esque style in LaTeX, XeLaTex, or any other TeX flavor. I was looking at some fonts the other day and I came across one of ...
9
votes
1answer
293 views

TikZ: a cylinder of infinite height

I would like to use the Magenta cylinder from dandelin spheres, but I want to have the illusion that the cylinder goes to infinity in the positive z direction. I am ignoring the rest of the code ...
11
votes
2answers
608 views

How to cut a surface at the intersection with another surface in Asymptote?

In the code below, I define a cylinder (as a surface of revolution) and a plane (as a cyclic path). From both, I can get a surface that renders in 3D. Now, I would like to hide (or better remove) the ...
1
vote
0answers
122 views

Can't zoom on u3d object in pdf

I am trying to make pdfs with u3d objects embedded, however when doing so I note that I cannot zoom in on the object, either by scrolling, or switching to the zoom tool. Interestingly, the pan tool ...
6
votes
1answer
150 views

Is it possible to write text in 3D plots? (And newbie questions on 3d graphics)

I'm making my first steps in 3D graphics in LaTeX. What I got so far is this image In the backgorund one can sense a small D_g; the blue domain should be denoted with that. The red surface should ...
2
votes
0answers
113 views

Making a black hole and information

I would like to make the picture similar to the following to represent information in a black hole horizon and black hole inside the sphere in tex. I can make a sphere but making the discrete bits ...
1
vote
1answer
287 views

Torus with semi-dashed line in TikZ

Is there a simple way to produce in TikZ a two-torus rounded by two circles, each with the non-visible half dashed, as in the sketch?
12
votes
1answer
859 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 ...
35
votes
1answer
2k 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 ...
8
votes
2answers
797 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 ...
7
votes
1answer
319 views

Asymptote: Is there an equivalent to silhouette for surfaces?

Update If there is no equivalent to silhouette could you comment on my following ideas: I can get the projection of my surface using the planeproject transformation. This is still a three dimension ...
4
votes
0answers
363 views

3d arrows in tikz, or arrows that fit perspective

I'm trying to draw a 3d arrow in a 3d box (well lots of them actually). I've got the 3d box sorted, but the arrow doesn't look quite right. I've set up my axes/projection with: ...
4
votes
1answer
288 views

Unordered layers in tikz-3dplot (3d effect)

Short formulation of the question Is there a way to order layers in tikz-3dplot according to their distance to the observer's position? The picture should look realistic in order to give some ...
6
votes
2answers
141 views

Close the corners of a grid (of tubes) on a surface in asymptote

Consider the following simple drawing of a saddle surface using asymptote import graph3; real f (pair p) { real x = p.x; real y = p.y; return 0.5*(x^2-y^2); } surface ...
31
votes
1answer
865 views

How can we draw a 3D Christmas gift box, with TikZ?

In the spirit of How can we draw a Christmas tree with decorations, using TikZ? Can you draw a 3D Christmas gift box with as many details as possible(bow tie, elevated lid/bow, patterned wrapping ...
26
votes
1answer
1k views

TikZ: drawing 3 intersecting circles and shading

How can I draw the three intersection circles/ellipse with that shading paradigm (not necessarily the same colors) effectively? It appears that the original image doesn't have overlapping colors ...
7
votes
2answers
324 views

How to make a 3D Lattice?

How could I create a lattice like this: In 3D, with the ability to change the x,y and z spacing independently of each other? Any solution using any LaTeX program would be great! I have tried to do ...
3
votes
1answer
173 views

Fill a triangle in space using asymptote

I am trying to draw a triangle in space, given its three vertices, using asymptote. A minimal example is import grid3; import graph3; size(12cm,0); currentprojection=orthographic(1,-2,1); ...
4
votes
1answer
194 views

Surfaces rendered using Asymptote won't layer correctly

Question I recently asked a question here: How to plot a lattice of points on the surface of a torus? Where I have two answers, but both render incorrectly on my machine. They are supposed to look ...
7
votes
0answers
176 views

3d graphics/diagrams [closed]

Is there a convenient way to create a 3d graphic/diagram like the following in LaTeX (e.g. with tikz)? I'm aware that convenience is a point of view, however I would describe myself as a newbie to ...
1
vote
0answers
170 views

Replace \path in Tikz with a 3D tube

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?
14
votes
2answers
426 views

quiver plot on hyperboloid surface

Using pgfplots, I'm trying to create a quiver plot on a hyperboloid surface something like this. I was able to generate the hyperboloid surface using parametric equations. I could'nt find out how ...
6
votes
2answers
254 views

Splitting y domain in 3D pgfplots

What I want is to plot my function from y=0-->y=3 and then from y=3,2-->y=6. I want to ommit the space between 3 and 3,2. This is my code: \documentclass[border= 5mm]{standalone} ...
4
votes
0answers
186 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
7
votes
0answers
277 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 ...
11
votes
2answers
998 views

How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics

I have an Asymptote graph of a 3D surface (code below) that I export into 3D PDF file (containing PRC). I include nice axes with LaTeX labels on them, but in addition to these the viewer displays very ...
3
votes
1answer
723 views

Create 3D heatmap desity plot using TikZ

My question is very similar to "Create heatmap with PSTricks or TikZ", but this time in 3D. So I have tabulary data as follows: x | y | z | value 1.2 | 1.3 | 1.4 | 1.20 0.2 | 0.3 | 0.4 | 3.20 ...
5
votes
1answer
324 views

How can I create simple 3D models?

I would like to reproduce the following image, but in addition labelled with "Wheelbase $w$" and "Track $t$". (Wikipedia image source) I've tried my best with pst-solides3d, but the result is much ...
5
votes
1answer
317 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} ...
8
votes
2answers
354 views

Interactive surface plot with pgfplots

I know that it is possible to embed three-dimensional files into PDFs with \LaTeX which can then actively be interacted with by the reader (see here for example). I have a surface plot I made with ...