Questions tagged [tikz-3d]
For questions about projections using {tikz-pgf} including PGF's `3d` library.
95
questions
4
votes
0answers
77 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 ...
3
votes
1answer
130 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?
0
votes
0answers
25 views
3D diagram showing principal normal, binormal, etc
I want to convert the following diagram to a TiKZ picture:
I am totally new to drawing things in 3D so any suggestions are welcome.
0
votes
0answers
89 views
4
votes
2answers
159 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).
0
votes
0answers
54 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 ...
2
votes
2answers
254 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-...
0
votes
0answers
86 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 ...
0
votes
1answer
58 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 ...
0
votes
0answers
50 views
file-1.pdf not found and Wrong __data_start/_end pair Aborted (core dumped) Error
I am trying to compile asymptote code using TexStudio. The code is from the Drawing 3D crystal lattice with tikz/pstricks . But it is not compiling.Another code that is not compiling is from Draw ...
0
votes
0answers
39 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 ...
6
votes
4answers
287 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 ...
1
vote
0answers
66 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 ...
13
votes
2answers
316 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
votes
1answer
145 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 ...
4
votes
1answer
186 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 ...
0
votes
0answers
45 views
Spherical Solids using tikz-3d?
I've been trying to draw solids using spherical coordinates using tikz-3d for a while now. Specifically, I'm trying to draw this:
So far, all I've been able to do is draw the top curved portion of ...
1
vote
2answers
120 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-...
0
votes
1answer
89 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 ...
2
votes
1answer
136 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?
4
votes
1answer
128 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 ...
0
votes
1answer
61 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 ...
0
votes
1answer
73 views
How can I draw two spheres and a cone between them with TikZ?
I would like to get an image like this:
with two spheres, intersecting a cone,the points on the intersections should also be highlighted in the way showed in figure.
I've tried to get this work with ...
0
votes
1answer
86 views
Dimension too large in 3D geometry in tikz
I am facing a compilation error in a weird way. I have trimmed my code to the maximum but still my MWE is not too small, so I'll focus first on the weird part :
\foreach \j in {0,1,...,5}{
...
2
votes
1answer
41 views
How to project solid on a tracing plane?
I would like to project one of the 2D surfaces or faces of the 3D cuboid on to a plane, as indicated in the diagram follows. Kindly help me.
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
...
1
vote
1answer
49 views
How to get unique color with opacity (color mix in the union set region/overlapping region) for each of the faces/surfaces of the cuboid?
How to get unique color with opacity (color mix in the union set region/overlapping region) for each of the faces/surfaces of the cuboid?
The screen shot below does not depict the outcome of my code, ...
1
vote
1answer
18 views
How to hide not visible parts behind an addplot3 in a beamer presentation with overlays
I use a beamer presentation with overlays to show a 3D plot with addplot3 (see MWE). In the second slide a dashed line with marks is plotted. In the third slide a surface is plotted and the part of ...
3
votes
1answer
85 views
Drawing western hemisphere in tikz-3d
I asked how to draw a methane with correct dashes and wedges. All was fine till I realized the plane I added should cut through the carbon atom in the middle. lt doesn't.
The solution I see is to ...
1
vote
1answer
102 views
Modify stacked 3D disc example
I saw the TIkZ example of Mark Wibrow (http://www.texample.net/tikz/examples/disc/). The original answer is here: tikz stacked disks 3D. I need just one disc and I can modify the height of the disc ...
5
votes
1answer
168 views
Arrows with spherical (conical) tips
To pag. 81 of the asymptote tutorial there are spherical arrows tips:
I like the tips of the first image and of the 2nd image arrow=Arrow3() that it can be used also in 2D. Do this tips exists only ...
0
votes
1answer
98 views
1
vote
1answer
164 views
Difference between \usetikzlibrary{3d} and \usepackage{tikz-3dplot}
Is there any difference between those two tikz libraries for 3D plots?
I have found the documentation for tikz-3dplot on CTAN, but nothing for the \usetikzlibrary{3d}.
Might be related to ...
4
votes
1answer
94 views
Curving the cylinder in a periodic fashion
I have to implement an array made up of cylindrical like elements. However, below code can only provide a straight cylinder (code credit goes to this link), instead I need to bend it like in the ...
7
votes
1answer
129 views
3D normal diffusion with a drift
Based on 3D normal diffusion I want to draw the idea the normal distribution is flattening over time, but with a drift.
1 - As you can see in MWE below, the orange normal distribution seems to be cut ...
2
votes
1answer
240 views
Surface Integral in 3D
I need a example picture for surface integrals of any function in a three-dimensional space. Wich function it is is not important. I need help getting this job started. The image is not that good, but ...
2
votes
1answer
54 views
tikz-3d shifting rectangle
Consider the following code:
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{amsmath}
\newcommand{\ptsize}{1.5pt}
\usepackage{xcolor}
\definecolor{MyColor1}{rgb}{0.24,...
3
votes
2answers
510 views
3D isometric coordinate system with TikZ
I wish to create the following two graphs with TikZ. Preferably, I would like a simple variable to control the rotation of the graph along the three axes (although, the vertical axis would probably ...
1
vote
1answer
109 views
Plotting 3D waves with parametric equations
I'm trying to plot these curves.
I tried this using the code below. But, the output wasn't exactly what I wanted. I couldn't extend it to the negative X-values and couldn't mark those ticks on the ...
0
votes
1answer
157 views
Plotting a 3D vector
I want to plot this 3D vector using tikz3D .Since I'm new to Latex, I find this task a bit difficult. I saw a couple of similar sort of questions in this forum but their pictorial representations are ...
2
votes
2answers
271 views
Plotting the graph of a 3D cylinder
I'm trying to plot this 3D graph of the cylinder,
Initially, I used the code,
\usepackage{pgfplots}
\pgfplotsset{}
\begin{document}
\tdplotsetmaincoords{70}{30}
\begin{tikzpicture}[...
5
votes
1answer
322 views
How can I correct line of the circle on sphere by using 3dtools?
I am trying to draw the circle A'BD on sphere by using 3dtools. I tried
\documentclass[tikz,border=2mm, 12 pt]{standalone}
\usepackage{tikz-3dplot-circleofsphere}
\usetikzlibrary{3dtools}
\...
2
votes
1answer
120 views
Draw 3D cube with additional rectangles
I'd like to draw a cube with additional rectangles in it (see pic below). The colors are secundary, as I will have to change them anyway. I've tried it in 2D just by meassuring the distances of the ...
4
votes
1answer
133 views
Create projection inside matrix - tikz 3dplot
I can create two nodes in tikz-3dplot, and create a projection like view, like this :
But how to create view like this(the right one- only those projection lines) ?
I have created the basic, I just ...
2
votes
1answer
77 views
How can I improve a truncated conical picture by using tikz?
I want to draw a 3-dimensional truncated conical picture. Only work that I could do is:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{...
0
votes
1answer
64 views
Height function for 3D drawing
I've been drawing 2D features in 3D space using code like the following:
\begin{tikzpicture}[x={(-0.2cm,-0.4cm)}, y={(1cm,0cm)}, z={(0cm,1cm)}]{
\begin{scope}[canvas is yx plane at z=1]
\draw[...
1
vote
1answer
61 views
plots-3d not applying transformation properly
I'm trying to plot a rectangle in 3D, but the following code I've written is giving unexpected results:
\documentclass{minimal}
\usepackage{tikz,tikz-3dplot}
\begin{document}
\begin{tikzpicture}[...
0
votes
1answer
186 views
Surf plot with tikz
I am trying to regenerate a surf plot from Matlab using 3-d-plot of tikz.
The graph should look like this:
But with my code:
\documentclass[]{article}
\usepackage{pgfplots}
\usepackage{pgfgantt}
\...
3
votes
3answers
193 views
Illustrating Seebeck effect in TikZ
I'm trying to reproduce this image (source) in TikZ.
I have these humble beginnings but I'm a little bit daunted by the 3d objects that would be coming next. Could a TikZ wizard advise me on how to ...
20
votes
1answer
611 views
Symbolic 3d coordinates in TikZ
Warning: answering this question may require some efforts. The purpose of question is to "teach TikZ 3d coordinates". What does that mean? If we define a coordinate in TikZ,
\path (<x>,<y&...
4
votes
1answer
64 views
tikz: curley brace in a non-parallel plane
I am trying to denote some lengthes in a three dimensional tikz figure.
But the result looks weird because the curley braces are not properly transformed.
The transform shape option (which does the ...