Questions tagged [tikz-3dplot]
This tag is for questions related to the tikz-3dplot package for enhancing the TikZ coordinate system to 3D.
507
questions
74
votes
3
answers
27k
views
Drawing simple 3D cylinders in TikZ
I'm trying to draw some simple 3D objects in TikZ. I can do spheres and cuboids okay, but I'm struggling with circular cylinders: When rotating the scene (I use tikz-3dplot for this), the end faces ...
39
votes
2
answers
6k
views
3D solids with Tikz - or an alternative?
I want to draw 3D shapes in latex. I have tried out different strategies, but nothing has led me to a good solution yet. First what I want to do, then what I have done so far.
In prioritized order, ...
38
votes
2
answers
6k
views
Draw 3D intersecting surfaces
Problem
This is a shameless "just do it for me" graphics question, but honestly I have no idea where to start. I'd like to reproduce this figure
The image shows the intersection of two surfaces ...
30
votes
3
answers
6k
views
Projection of Circle onto Spherical Surface
I want to draw shapes looks like 15 degrees tilted-semi-sphere and there are circles, placed in a triangular shaped array, on the base area. Then these circles are projected onto surface of sphere.
I ...
25
votes
1
answer
1k
views
water inside 3D tube
How can I generate the above image using TikZ. The oval inside tube represents water and arrows indicates the dipole orientation of water.
What I was able to get so far is pasted below.
\...
23
votes
3
answers
6k
views
How to draw an Euler angle rotation sequence with TikZ?
For some lecture notes I want to illustrate successive unit axis rotations using Euler angles. I am quite happy with what I came up with so far:
However, I am failing at drawing the angles in between ...
21
votes
2
answers
795
views
Plot Dini's surface
According to Wikipedia, the Dini's surface is described by the following parametric equations:
x = a \cos u \sin v
y = a \sin u \sin v
z = a (\cos v + \ln\tan v/2) + bu
So, I'd like to plot the ...
21
votes
3
answers
2k
views
How to draw a double napped cone with TikZ
I would like to reproduce something like this in black and white using TikZ (just the figure not the writing) :
Here is the code I have so far, but I don't know how to draw the three planes properly :...
21
votes
1
answer
1k
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&...
21
votes
1
answer
981
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 ...
19
votes
5
answers
4k
views
Draw incline in 3D with TikZ
I need to draw an incline in 3D (triangle in 3D), I have tried to modify this example but it ends up looking wrong. Can anyone suggest how to get started with this or provide an example that's closer ...
19
votes
3
answers
2k
views
How can I draw dashed lines of this picture?
I am trying to draw this picture
I tried
\documentclass[border=2mm,tikz]{standalone}
\usepackage{tikz-3dplot}
\usetikzlibrary{3dtools}
\tikzset{intersection of line trough/.code args={#1 and #2 ...
18
votes
4
answers
3k
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 ...
17
votes
1
answer
2k
views
How to draw the right ascension and declination of a vector in a rotated coordinate frame in TikZ?
During my research I came across the illustration of two reference frames. In my opinion this illustration is lacking, because the coordinate systems are not drawn. This makes it hard to understand, ...
15
votes
2
answers
1k
views
Path clipping in 3D only works in two out of three planes?
In the following code, I'm trying to draw three clipped circles in three orthogonal planes. I'm using this approach to clip the appropriate sections of the circles. This works nicely in the xy and yz ...
15
votes
0
answers
1k
views
How to draw topological surfaces? [duplicate]
I am making some notes on differential geometry and topology lecture. As I know in LaTeX we can draw some very nice images. But I was not able to find any examples on surfaces, which I could use. Is ...
13
votes
1
answer
636
views
How to draw an arc for a bullet
My apologies in advance if you feel that this question is more about drawing instead of being technical.
The following diagram is what I want to replicate in Latex:
I believe I have done most of the ...
13
votes
1
answer
1k
views
How to draw a circular, inclined road in 3D?
I want to draw the road which is similar to the following (but please ignore grass, soil, and the surrounding scenery for the sake of simplicity),
to illustrate a physics problem about circular ...
12
votes
1
answer
621
views
How to draw a 3D sphere and a 3D cone for Spherical coordinates
I'm trying to replicate this figure:
Right know, I have this code:
\begin{figure}[H]
\centering
\begin{tikzpicture}[yzx, scale = 0.9]
\draw[->] (0,0,0) -- (5.5,0,0) node(x)[left]{$...
12
votes
2
answers
1k
views
Sphere packing in a sphere diagrams
Inspired by How to create nice-looking nuclei in TikZ?, I am trying to draw arrangements of spheres, in particular the sphere packing in a sphere problem.
From Wikipedia - "Sphere packing in a sphere ...
12
votes
3
answers
7k
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 ...
12
votes
4
answers
6k
views
Is it possible to draw a 3d cylinder using TikZ-3dplot?
I want to draw a clyinder between two planes. I want to specify the distance between the planes and position and radius of the cylinder.
I would like to use tikz-3dplot, because it allows a free ...
12
votes
3
answers
5k
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 ...
12
votes
2
answers
3k
views
tikz-3dplot: Rotate arc around specific axis
\documentclass[tikz]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\begin{tikzpicture}[scale=2]
% draw arcs
\draw[canvas is zx plane at y = 1, line width = 1pt] (2,...
11
votes
2
answers
15k
views
2D and 3D vectors in Tikz
I would like to draw some 2D and 3D vectors in Tikz with certain properties. The following primitive graph sums what I desire:
I just need the first quadrant of the Cartesian coordinate system for my ...
11
votes
2
answers
1k
views
Draw a solid with circular base & square cross-sections in TikZ
I want to draw a solid with these specifications in TikZ. The base of the solid is the disk x^2+y^2\leq 4. The cross-sections by planes perpendicular to the y-axis between y=-2 and y=2 are squares ...
11
votes
1
answer
972
views
How to draw the following diagram (a wedge of cheese) using pgfplots or tikz?
I would like to draw the diagram below using either pgfplots or tikz.
I am able to draw a cylinder, using the pgfplots manual, but I don't know how to draw a fraction of a cylinder.
11
votes
2
answers
1k
views
Vertical sliced cylinder
I want to explain how the shape of a cylinder is made. Therefore I want te make this picture.
My code is this:
\documentclass{article}
\usepackage{siunitx}
\usepackage{tkz-euclide}
\begin{document}...
11
votes
1
answer
489
views
Low Quality of TikZ grid
When I create a rotated 3D coordinate system in TikZ with a grid, it looks kind of bad and pixelated. The slanted x-axis looks fine, so it's not due to the rotation. I've also varied the line ...
11
votes
1
answer
1k
views
Drawing a 3D molecule in TikZ
I'm trying to make a methane molecule in tikz-3d. All that's left is to make the "chemically correct" wedges and dashes. I tried with chemfig, but that only allows for a 2D molecule that pretends to ...
11
votes
1
answer
4k
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}
\usepackage{pgfplots,tikz-...
11
votes
1
answer
1k
views
Inserting an origin tangential to a sphere
I am trying to draw a picture like the one attached. I have not used much of the tikz package. My code so far is a follows. I what to include a set of angles in the image. Any help would be great and ...
11
votes
1
answer
2k
views
Angle between lines in 3D space
In my following codes:
How can I create a beautiful mark angle for DCE angle?
How can I change position ALPHA in front of BAC angle in space?
\documentclass{article}
\usepackage{tikz,tikz-3dplot}
\...
10
votes
3
answers
1k
views
How can I draw the triangle tangent to sphere?
I am trying to draw figure of the Problem 21 https://artofproblemsolving.com/wiki/index.php/2019_AMC_10A_Problems/Problem_21
A sphere with center $O$ has radius 6. A triangle with sides of length $...
10
votes
2
answers
2k
views
how to draw pitch, yaw and roll with 3d plot
I am looking to visualize the angles of pitch, yaw and roll with Tikz-3Dplot
here is my code
\documentclass[margin=1cm]{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{subfig}
\...
10
votes
4
answers
1k
views
How to change \foreach to omit a certain multiple
I hope the solution to my problem is not too complicated or tedious. I am drawing a diagram which has one nuisance in it:
Every time the sine curve touches the axis TiKz tries to draw a line of 0 ...
10
votes
1
answer
1k
views
Brownian motion, normal distribution (3D)
Following a previous question, this representation that might be even more pedagogic in 3D. Based on this working example extracted from This post
\documentclass[border=5mm]{standalone}
\usepackage{...
10
votes
1
answer
1k
views
How to make a thermodynamics conduction diagram in pstricks or tikz with shading?
I am attempting to make the following picture
But I would like some elements modified which I have done in the following pstricks image. I do not know how to center text, do multiline text for "...
10
votes
2
answers
2k
views
How can I draw two intersecting spheres with highlighted intersection?
I would like to get an image like the this:
with two intersecting spheres, marked centers , one point on the intersection should also be marked and a highlighted intersection.
I've tried to get this ...
10
votes
3
answers
608
views
How can I draw the circle is inscribed in triangle in 3D?
I am trying to draw an inscribed circle of a triangle in 3D. If the vertices lie on the plane Oxy, I tried
\documentclass[12pt, border = 1mm,tikz]{standalone}
\usepackage{tikz-3dplot}
\begin{document}...
10
votes
1
answer
5k
views
How to create consistent 3D images in Tikz
I would like to create images similar to these ones:
However I would like to be able to do so in a coordinate system specific way so that I don't have to think about how the 2D projection of the ...
10
votes
1
answer
1k
views
How can I draw sphere cut by plane by using `tikz-3dplot`?
Based on the equation at here, I use another way to draw. My code
\documentclass[border=2mm,12pt,tikz]{standalone}
\usepackage{tikz-3dplot-circleofsphere}
\usepackage{fouriernc}
\makeatletter
\...
10
votes
1
answer
3k
views
Drawing an intersection of two equations in 3D
I'm trying to draw the intersection of the following two equations: x^2+y^2=4 (a circle of radius 2) and z=x+4. I got kind of close with tikz-3dplot (which has preferrable output in my opinion), but ...
10
votes
4
answers
2k
views
How to make right angle mark in geometry 3D like this picture?
I want to mark right angle. I tried in Geogebra
\documentclass{standalone}
\usepackage{pstricks-add}
\begin{document}
\psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt 0,linewidth=...
10
votes
1
answer
267
views
How can I make a cone from a cube and view the cube with different angles?
I am trying to draw a cone with vertex C and base is circle BDG and want to view the cube with different angles like some following pictures.
I tried
\documentclass[border=2mm,12pt,tikz]{standalone} ...
10
votes
1
answer
913
views
Fill complex 3d shapes with TikZ
I am trying to reproduce a picture so I can modify some aspects of it. This is the picture:
How can I fill between 3d shapes in order to form the shell?
This is what I have so far:
\documentclass{...
9
votes
4
answers
3k
views
How to draw this cube with holes?
I am trying to draw this cube
I tried
\documentclass[tikz,border=3mm]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{60}{120}
\begin{tikzpicture}[...
9
votes
2
answers
3k
views
Are there any tools that convert Mathematica code into LaTeX code?
My roommate knows Mathematica. He draw 3-d graph for each term of (a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3. He doesn't know LaTeX. I want to write his thesis document in LaTeX. So, If there is a tool that ...
9
votes
2
answers
4k
views
Import 3D object in LaTeX
Is there any way to import a 3D file of an object (.stl for example) to draw a 2D projection of it into a TeX document ?
I have been surprised to don't find any subject about that, I was thinking a ...
9
votes
1
answer
2k
views
How to draw torsion prismatic beams in tikz?
I'm new in Tikz but I want to draw this objects:
Can anyone give some good advice, or help?