Questions tagged [tikz-3dplot]

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

Filter by
Sorted by
Tagged with
0 votes
4 answers
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 ...
user avatar
6 votes
3 answers
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 ...
user avatar
2 votes
3 answers
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?
user avatar
  • 344
0 votes
1 answer
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 ...
user avatar
  • 81
1 vote
0 answers
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....
user avatar
  • 185
3 votes
1 answer
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} ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 11.4k
2 votes
1 answer
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{...
user avatar
  • 252
1 vote
1 answer
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 ...
user avatar
  • 23
1 vote
1 answer
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{...
user avatar
2 votes
1 answer
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{...
user avatar
  • 265
0 votes
0 answers
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 ...
user avatar
  • 1
7 votes
1 answer
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 ...
user avatar
4 votes
1 answer
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=...
user avatar
  • 49
4 votes
3 answers
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 ...
user avatar
  • 351
5 votes
2 answers
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]{...
user avatar
8 votes
2 answers
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, ...
user avatar
  • 351
1 vote
1 answer
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} \...
user avatar
  • 669
4 votes
2 answers
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 ...
user avatar
4 votes
1 answer
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]{...
user avatar
1 vote
0 answers
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 ...
user avatar
  • 351
2 votes
2 answers
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} [...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 161
5 votes
2 answers
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}...
user avatar
4 votes
1 answer
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....
user avatar
0 votes
0 answers
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 ...
user avatar
3 votes
2 answers
213 views

Blochsphere Package Shading

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 ...
user avatar
  • 185
6 votes
1 answer
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]{...
user avatar
  • 351
4 votes
3 answers
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} ...
user avatar
0 votes
0 answers
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}[...
user avatar
6 votes
3 answers
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{...
user avatar
9 votes
4 answers
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}[...
user avatar
1 vote
0 answers
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 ...
user avatar
  • 11
1 vote
1 answer
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: \...
user avatar
5 votes
3 answers
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 \...
user avatar
3 votes
1 answer
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/...
user avatar
1 vote
1 answer
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}...
user avatar
6 votes
4 answers
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-...
user avatar
0 votes
2 answers
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-...
user avatar
  • 945
1 vote
1 answer
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 ...
user avatar
  • 13
1 vote
2 answers
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} \...
user avatar
  • 537
2 votes
4 answers
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}...
user avatar
  • 359
-1 votes
1 answer
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?
user avatar
  • 353
2 votes
1 answer
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 ...
user avatar
  • 21
11 votes
2 answers
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 ...
user avatar
  • 337
0 votes
1 answer
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, ...
user avatar
  • 487
2 votes
1 answer
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 ...
user avatar
  • 487
1 vote
1 answer
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,...
user avatar
  • 337
5 votes
3 answers
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} \...
user avatar
  • 337
-1 votes
1 answer
220 views

Adding the surface to a Riemann Sum

The @user240002 in the post in Riemman Sum built a Riemann Sum of a two variables function: \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \tikzset{pics/3d bar/.style={code={% \...
user avatar

1
2 3 4 5
9