# Questions tagged [tikz-3d]

For questions about projections using {tikz-pgf} including PGF's 3d library.

121 questions
Filter by
Sorted by
Tagged with
51 views

### 3D reflection grating in TikZ

Viewed from the 'dark side', the form of the following surface is of the form sin(\x) I'd like to 'generalize' the image above (what is usually called a 'reflection/diffraction grating') to the case ...
• 101
140 views

### Draw Realistic 3D crystal structure of Diamond using Tikz

Can I draw this same exact picture(from Draw realistic 3D crystal structures (diamond)) using tikz in latex? This is what I got till now. from the code: \begin{tikzpicture} \...
328 views

### How to draw 3d cylinder directed in x axis with TikZ?

How to draw cylinder directed in x axis? \documentclass[tikz]{standalone} \usetikzlibrary{3d} \begin{document} \begin{tikzpicture}[x={(1cm,0.4cm)}, y={(8mm, -3mm)}, z={(0cm,1cm)}, line cap=round, ...
• 5,194
198 views

### Cut bar by plane (tikz, 3D)

How to draw a gray strip realistically cut in half with a red plane? My idea is to paint some pieces on another layer. But here the joints turned out ugly. Maybe there is another tricky way? \...
• 5,194
56 views

### Tikzpicture of a Point and Plane

how do I draw the following using tikzpicture: I can draw the axis and vectors, but drawing parallel vectors as depicted, drawing the mesh, drawing the right angle mark, etc., I cannot do. any help ...
• 193
1 vote
125 views

### 3D boxes in perspective

I am trying to draw 3D boxes in perspective, but with no success. The intention is to have several boxes with different sizes on top of each other, like this: This is my MWE: \documentclass{article} \...
• 1,224
1 vote
96 views

### Draw 3D shapes in perspective with tikz

Is it possible to draw a parallelepiped in perspective such as shown in the figure below (with colors, transparency, edges, etc)? Is it easily feasible using tikz or do I need other library? Notes: ...
• 1,224
427 views

### 3d rectangles in TikZ

I need to draw several similar shapes like this: My code: \documentclass[tikz,border=1mm]{standalone} \usetikzlibrary{perspective} \def\r{0.5} \def\ri{\r*0.5} \def\rii{\r*sqrt(2)/2} \def\riii{\r*...
• 836
210 views

### How to draw a circle in 3D such that the plane containing the circle is orthogonal to a given vector?

How do I draw a circle in 3D space such that the plane containing the circle is orthogonal to a given vector?
• 354
1 vote
58 views

### How to draw on any plane with 3dtools

Salvation I am testing the 3Dtools library (https://github.com/marmotghost/tikz-3dtools). I find the idea interesting. It is possible to define a plane either by 3 points, or by a vector and a point, ...
• 11.5k
62 views

### Shaded ellipsoid with curves on it

My final goal is to replicate the following figure (at least the right part) in tikz-3dplot: For now, however, I'd like to ask only about plotting an ellipsoid in tikz-3dplot with "ball color&...
• 297
201 views

### 3D Geometry using Tikz

I use the following code to generate a 2D geometry: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
• 159
77 views

### Drawing 3D perpendicular rectangles in latex

Here is the picture I want to draw: I want to be able to change the yellow color also. also, not that the arrows are reversed on the grey rectangle Could someone help me in doing so please?
• 363
365 views

### How to draw on a curved 3D surface?

I'm trying to reproduce in LaTeX this image, hand-drawn with Mathcha. The thing is, I can't find anything online about how to draw on curved (smooth) 3d surfaces like this sphere. Technically, the ...
264 views

### How do I shade a cone to match ball shading?

How do I shade a cone like this Note that the bright part is wider at the bottom (because the radius is greater there). The intent is that the cone and \tikz \shadedraw[ball color=red] circle[radius=...
• 91
35 views

### Simple way to change azimutal axis with perspective library

I use the great tikz perspective library by Max Snippe and I need to change the axes definition so that the vertical (azimutal) one is not z anymore. I'm pretty sure there is a simple and efficient ...
• 1,066
435 views

### Planes tangent to a cylinder

I am trying to make this graph I have had several advances compared to my original question, but I don't know how to color the part blue, This is the result that I have obtained together with the ...
• 385
43 views

### TIKZ3D - Drawing arc with superimposed label

I would like to receive some help from you. I've been able to add the label for a vector in the middle of the arrow itself in tikz3d by using a command like \tdplotsetcoord{Mp}{\rvm}{\phm}{\thm} \path ...
• 197
225 views

### 3D rotation for portion of tikz

I'm trying to reproduce the Euler angles diagram, here is the first first rotation known as precession rotation And I was successful reproducing this diagram in TikZ+pdfLaTeX Here is the code for ...
1 vote
154 views

### Gradient field of a Function for 2 Variables

Initially I had something that looked like this, where I had something that was supposed to be a hemisphere and below was the gradient field. But I couldn't get the edges to go all the way down and ...
• 13
77 views

### Rotations of 2D object in 3D space tikz

I would like to draw a fully connected graph on a plane, then adjust its inclination with the plane and link to every node in the network another role coming perpendicularly in the z-direction. Since ...
• 1,299
89 views

### How to draw 2 figures that slices the sphere in 2 different ways?

Here is the figure I wanna draw in overleaf: Any advice about how to draw this, please?
• 363
162 views

### How can improve my Tikz scripting? (3D Cube)

I've been learning LaTeX for a while, and today I'm trying to create graphic elements for the first time using Tikz. This is what I'm trying to achieve: And this is what I've made: \documentclass{...
59 views

### Plotting the path left by a vector rotating around the z axis and towards the xy plane with tikz-3dplot

I have a vector along the z axis and I want to show the path traced by the point of this vector while it is spiraling down towards the xy plane. In theory, this path should be traced on the surface of ...
150 views

### Specify Radius for a cylinder, or draw edge for two 3d circles

I want to plot an optical fiber as in the picture below: As you can see, the drawing is composed of three concentric cylinders of different radii. This question is about drawing just one of those, ...
• 416
201 views

### Draw Arcs On Spherical Caps With Fill

I asked this question: Draw Arcs On Spherical Caps and a user was kind to answer. However, I am trying to improve on design by changing some colors, adding fill, and adding coordinate (x,y,z) axis ...
• 767
102 views

### How to 3d plot ax + by + cz = d equation in tex?

How to plot plane from equation rather than using coordinates in a tikz-picture environment like
1 vote
111 views

### Draw a cube under extension and torsion at the same time

I would like to draw a cube under extension and torsion simultaneously as this figure: I have tried with the extension part (attached code), but don’t know how to combine it with the torsion part. \...
265 views

### Dimension Lines in 3D drawings

I am trying to apply Tikz-dimline label position (Dimension lines) to a 3-dimensional drawing. This has worked well for me in 2D, so thought it would do so in 3D. Thus, when in a 2D drawing I would ...
• 216k
273 views

### tikz-3d/pgfplots: How to draw/plot curved spacetime?

Since I try to write a short introduction to tensors for physics students, I mentioned the Einstein's field equations (as a motivation). Therefore, I wanted to create a tikzpicture/pgfplots of curved ...
273 views

### Tikz 3D - Onion layers

Am not acquainted yet with 3D diagrams in TikZ and I would like to draw something like the picture attached. Does anybody have any helpful hints?
128 views

### How to draw a cubic surface in tikz?

How to draw a cubic surface with tikz?
• 575
236 views

### Draw 3D Cube knowing 3 points

I need to draw this figure and I only know the coordinates of points A(11,-1,2), B(13,2,8) and E(8,5,0).
• 39
129 views

### bounding an image by 4 corners and making them set the perspective

Edit new question formulation I wan't to distort an image so it fits within 4 poins defining a plane. @abcdefg suggested an answer and I took a look at it: Text in TikZ with perspective (not just ...
306 views

### A rectangular shaped carpet with the grass

I have a rectangular shaped carpet. Is it possible to create a specific code to simulate a grass carpet, like in a golf field? \documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-...
• 46.9k
107 views

### Drawing cartooned versions of this image

Is there some efficient way to draw something like this? I haven't seen any examples on Texample to use as a basis for this. I would like to generate something similar to a CAD-rendering of this ...
• 1,730
263 views

### How to change coordinate system inside a tikz path

So recently I started getting my feet wet with drawing 3D drawings. I'm trying to draw a 3d drawing with the tikz 3d library. But I'm facing some problems. mainly commands like circle, arc, and ...
1 vote
182 views

### Tikz: how to draw a cone in 3D axis environment

I am trying to define a cone in a 3D environment as a function of the center of its base C(x,y,z), its radius R and the top of the cone T(x,y,z). The idea would be to able to precisely position the ...
588 views

### Truncating singular 3d surface plot with large values

I was wondering how to plot a singular surface such as z=1/(x*y)^2 (the function I'm working on is far more complicated). What I'd like to achieve is shown below: Wolfram Alpha (left) does a great ...
• 923
1 vote
124 views

### Centering multiple canvas layers in tikz 3D

So I am trying to recreate the attached image exactly. But for the upper red ring, I can't seem to have it centered well. I have tried multiple modifications, but it just does not want to center ...
• 67
384 views

### High entropy alloy in TikZ

I'm trying to reproduce this illustration of a high entropy alloy (HEA) in TikZ: What I have so far looks quite bland because I can't find a way to randomly assign one out of a list of colors. \...
• 3,822
440 views

### Rotated half a circle in 3D, lines are slightly off in tikzpicture

In the below image, I wanted to show that some 3D shapes, like the cylinder and the sphere are constructed by rotating a planar shape around an axis. The cylinder looks OK but the outline of the ...
• 447
275 views

### Deforming/projecting text in TikZ(-cd) along a curved surface

This is a continuation of STeX Exchange 552946. I've been trying to get some 3D effects on tikz-cd, and got an amazing answer by @ZhiyuanLck. The only remaining problem is getting text/arrows to be ...
• 191
1 vote
296 views

### Format line properties when it appears behind another object in TikZ

I am using the tikz-3dplot-circleofsphere package to draw circles of a sphere using tikz-3dplot. Consider the following MWE from the documentation: \documentclass{standalone} \usepackage{tikz-3dplot-...
• 1,730
155 views

### Do a solid with disks using Tikz [closed]

I am wanting to do a figure where I provide a function y=f(x), a number n (number of disks) and draw the revolution solid around x, like this: I would like if someone has any idea how can I do this ...
• 1,302
188 views

### How draw three intersecting golden rectangles to create the vertices of an icosahedron?

How create in Tikz the three intersecting golden rectangles as in the image?
351 views

### TikZ angles library incompatible with 3d library?

I recently discovered the angles TikZ library which is very convenient when one needs to annotate angles. I encountered a problem when I tried to use it in with the 3d library, since the arc is drawn ...
• 1,066
174 views

### Draw perspectively on the faces of a cube

I am looking for a solution to draw on the faces of a cube (or similar 3d plane surfaces with perspective) preferably with the means of tikz. The basics are given in Tikz : texture cube faces using ...
• 4,868