# Questions tagged [tikz-3dplot]

This tag is for questions related to the tikz-3dplot package for enhancing TikZ coordinate system to 3D.

443 questions
Filter by
Sorted by
Tagged with
108 views

### How to draw semi cyclinder with tikz

I want to draw below picture. How can we calculate the tangle angle automically. %https://tex.stackexchange.com/questions/564162/drawing-half-cylinder-under-a-pyramid-through-tikz Thank you in ...
• 817
424 views

### How to create triangular pyramid of oranges using tikz

I wish to draw triangular pyramids of oranges. The kth layer has k(k + 1)/2 oranges, the kth triangular number. The number of oranges in the nth stack is n(n + 1)(n + 2)/6, the nth tetrahedral ...
153 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?
• 344
86 views

### Drawing an advanced cube with tikz-3dplot

I want to draw a cube with x,y,z coords. I use the TikZ package for that purpose. However, my wished figure (see below) cannot be accomplished by this package alone (I read the tikz-3dplot manual). I ...
• 81
1 vote
32 views

### Setting the directionality of \tdplotdrawarc in cartesian coordinates

I have an issue with regards to \tdplotdrawarc in TikZ. Consider the following snippet: \documentclass{article} \usepackage{tikz,tikz-3dplot} \usetikzlibrary{intersections,fadings,decorations....
• 185
133 views

### tikz-3dplot filling inner circle with color [closed]

How would I color the inner circle of this hypersphere The code for this figure is the following: \documentclass[tikz,border=5mm]{standalone} % <<< added \usepackage{tikz-3dplot} ...
1 vote
150 views

### how to draw this 3D kinematics diagram

i need some help to complete a 3d kinematic diagram (see attached image) I know how to draw almost everything but I would like to find a clean solution to draw the contact planes on each side of the ...
• 11.4k
177 views

### Plot f(x,y)=2-x^2-y^2, extrema value

It's easy show that f(x,y)=2-x^2-y^2 has a maximun value in (x,y)=(0,0), I need a plot show this result. I tried this: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{...
• 252
1 vote
174 views

### TikZ - 3D surface plot

I want to draw something like this For the moment I just managed to draw a 3D plate and I don't know how to do it with the 3D sinus curves. I managed to draw something like that, but I don't know how ...
• 23
1 vote
88 views

### How to draw dashed lines automatically of a cube when I rotate the cube?

I draw this cube, and dashed lines I have to draw by hand. \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{120} \begin{...
67 views

### Draw 3-dimensional angles

I'm using the following code to generate a sketch of a conic pendulum. \usetikzlibrary{angles, quotes} \pgfdeclarelayer{foreground} \pgfsetlayers{main,foreground} \tdplotsetmaincoords{80}{10} \begin{...
• 265
75 views

### Plotting 3D equation, Wigley ships hull

I want to use Tikz to plot the mesh of a so-called Wigley ships hull, which is described by the following equation: I'm having trouble with constructing the right commands/code for this, especially ...
• 1
368 views

### asymptote 3d plot with contour on top of surface

I'm trying to plot 3D graph with Asymptote. I used a previous post as guidance. I have well structred X and Y and Z values in 2 files. One with x and y variables and the other file with z matrix. All ...
• 135
633 views

### How to delete the sphere that is inside the cylinder?

Please help me, I want to delete the sphere that is inside the cylinder. How can I do this? This is my code. import solids; size(10cm,0); currentprojection=perspective(camera=(5,-4,2)); viewportmargin=...
• 49
386 views

### Gauss mapping image

I am trying to graph this image (where the sphere on the right is the unit sphere x^2+y^2+z^2=1) The image of the hyperboloid by N is {(x,y,z)\in Sphere : -sqrt(2) < z < sqrt(2)}, it is exactly ...
• 351
231 views

### How to draw circumsphere of a tetrahedron unknowing center of sphere?

I am trying to draw a sphere passing through four points A, B, C, D of a tetrahedron ABCD. In this code, I have center of sphere is (0,0,0 and radius of sphere is a*sqrt(3). \documentclass[border=2mm]{...
• 8,817
569 views

### Draw a non-geodesic rectangle

I try to draw this image. where $\alpha_1$ and $\alpha_2$ are circumferences in the unit sphere, passing through C=(1/sqrt(3),1/sqrt(3),1/sqrt(3)) with center at the origin of coordinates, that is, ...
• 351
1 vote
105 views

### How to make this figure better?

I am trying to draw figure shown below: Here is my MWE: \documentclass[tikz, border=2mm]{standalone} \usepackage{cmap} \usepackage{amsmath, amssymb, latexsym, mathtext} \usepackage[T2A]{fontenc} \...
• 669
259 views

### How to plot a 3d solid generated by revolving a curve?

I have this curve (0,0) parabola (1,1) and I would like to generate 3d plots where this curve is revolved around the x-axis, y-axis, x=a, y=b, x=c, and y=d. Is this possible? How can I do it? If it's ...
198 views

### How to draw a cylinder above a cube with dashed lines?

I am trying to draw this figures with dashed lines With Mathematica, It easy to draw. How to draw the second picture with TeX? I only draw the cube. My code \documentclass[tikz,border=3mm]{...
1 vote
60 views

### Some book to learn to graph 2D and 3D

I have been drawing in a fairly basic way for a long time or using alternative programs to generate my graphs, but now I would like to learn how to graph in Latex but I don't know where to learn to ...
• 351
202 views

### How to draw a cone in a cube line this?

I am trying to draw a cone in a cube like this I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{100} \begin{tikzpicture} [...
65 views

### 2 3D plots in one graph: changing colors and z bounds are ignored?

I am trying to plot two 3D plots in one graph, but Latex stops recognizing the zmin and zmax values for some reason, so it doesn't compile because dimensions are too large. Reducing the number of ...
• 161
205 views

### How to draw this pictures from Mathematica?

I see this pictures The second picture is drawn with one line by Mathematica. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}...
156 views

### How to make dashed lines automatic of a sphere when I rotate a sphere?

I copy this code from here settings.render=8; import solids; size(5cm); currentprojection=orthographic(1,0.3,0.3); revolution b=sphere(O,1); draw(surface(b),white+opacity(.5)); skeleton s; b....
55 views

### surf, shader = faceted interp bloats figure

I tried to generate a 3-D figure in Latex using tikzpicture and pgfplots. Here I can vary the shader between shader = interp and shader = faceted interp (see line 74). The resulting filesize of the ...
213 views

I am using the blochsphere package and have a problem with shading of the drawn ball. Using the color white for the ball and opacity=0.7 makes it quite dark greyish. I dont want to turn down the ...
• 185
301 views

### Chebyshev net in the Sphere and Catenary

Hello I have experience writing texts in latex, but I am a beginner in drawing in latex, I have tried to make these graphics with great effort but I have not succeeded. \documentclass[crop,tikz]{...
• 351
419 views

### How to construct the point S of this tetrahedron?

Let be given tetrahedron SABC, where AB= 3, AC=4, BC=5, SA= 6, SB=7,SC=8. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{70} ...
76 views

### How to draw stack of prism in a pyramid?

I am trying to draw this picture I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{100}{70} \begin{tikzpicture}[...
1k views

### How can I draw a frustum like this?

I am trying to draw a frustum with centers of two bases A, C and two radii SA and CD, height of frustum AC. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{...
• 876
2k 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}[...
1 vote
66 views

### Tangent images to icosahedron face

I would like to plot images in a tangent plane to each face of an icosahedron. Something like in the image. I have tried several approaches like: Tikz : texture cube faces using png image and example ...
• 11
1 vote
274 views

### How can I make 3D drawing in tikz

Is there a way to make tikz draw in 3D, I am trying to draw vectors and axis in $\mathbb{R}^3$ (in the space), maybe not one that advanced since I am new at using latex. this is a try for the axis: \...
284 views

### How can I draw the point is intersection of a plane and a line?

Let SOAB be a pypamid with OAB is an equilateral triangle and SO perpendicular to the plane OAB. The plane passing through O and perpendicular to the line SB cuts SB at M and SA at N. I tried \...
189 views

### How to draw circle passing through three points in 3D?

How to draw circle passing through three points A,P, Q in this code. \documentclass[border=3mm,12pt,tikz]{standalone} \usepackage{fouriernc} \usepackage{tikz,tikz-3dplot} \tikzset{projection of point/...
1 vote
92 views

### How to draw insphere of a pyramid?

I am trying to draw insphere of tetrahedron DABC. My code \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{100} \begin{tikzpicture}...
710 views

### How to draw this cone?

Let be a pyramid DABC, where D(0,0,0), A(0,0,3), B(3,0,0) and C(0, 3,0). I am trying to draw this code I cannot draw the cone. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-...
48 views

### Fill between four parametric paths that together are continuous

I have a shape made up of four paths, and I'd like to fill the inside. The four paths are given in parametric form, and each consecutive pair has exactly one point common, so I'd hope this is a well-...
• 945
1 vote
133 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
1 vote
237 views

### How to plot the 3D graph of the following three inequalities in latex (e.g., tikz/pgf)?

How to plot the 3D graph of the following three inequalities in latex (tikz/pgf) ? z <= x+y+1, z <= 4x, z <= 5y. My attempt: \documentclass[12pt,leqno]{amsart} \usepackage{pgfplots} \...
• 537
164 views

### How to plot atan2(x,y) like?

How do i plot atan2(y,x) like the Wikipedia picture https://en.wikipedia.org/wiki/Atan2#/media/File:Atan2_diagram.svg I tried \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10}...
• 359
78 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?
• 353
65 views

### tikz-3dplot : discordance between polar and Cartesian coordinates ? (solved)

Recently I used the package tikz-3dplot to draw a figure until I was confronted to a very strange issue. I finally build a Minimal Working Example to isolate the problem and fully annotated it to ...
• 21
749 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 ...
• 337
62 views

### How can I add a textfield in a Tikz drawing's node?

Given is the following TextField command: \newcommand{\TF}[2][15em]{\TextField[borderwidth=0.1pt, width=#1, height=1.25em, ...
• 487
124 views

### How do I set a Tikz drawing to the background of my page?

I tried to use layers with \usepackage{scrlayer-scrpage} and add a Tikz drawing but it seems to still place the drawing in relation to the other things and not behind anything. I'm not sure what I did ...
• 487
1 vote
187 views

### How to rotate a curve around an specified axis in TikZ?

I want to rotate curves around a line like x-axis. For example, I want to draw below figure. Is it possible to do this work in TikZ? MWE: \documentclass[12pt, border=5mm]{standalone} \usepackage{tikz,...
• 337
342 views

### Draw a wedge with circular base in TikZ

I want to draw the follwing figure in TikZ. Of course, I was able to draw most of its components, but I can not draw the cylindrical part. Here is my effort so far. MWE: \documentclass[14pt]{memoir} \...
• 337