Questions tagged [tikz-3d]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
46 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, ...
user avatar
  • 11.4k
0 votes
0 answers
37 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&...
user avatar
  • 265
4 votes
1 answer
152 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{...
user avatar
  • 147
-2 votes
2 answers
68 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?
user avatar
  • 353
3 votes
2 answers
278 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 ...
user avatar
9 votes
1 answer
180 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=...
user avatar
  • 91
2 votes
1 answer
21 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 ...
user avatar
  • 1,054
10 votes
1 answer
402 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 ...
user avatar
  • 285
0 votes
0 answers
36 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 ...
user avatar
  • 197
5 votes
1 answer
158 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 ...
user avatar
1 vote
1 answer
122 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
0 votes
1 answer
59 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 ...
user avatar
  • 1,237
-1 votes
1 answer
77 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
5 votes
1 answer
148 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{...
user avatar
0 votes
1 answer
50 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 ...
user avatar
2 votes
1 answer
108 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, ...
user avatar
  • 298
3 votes
1 answer
175 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 ...
user avatar
  • 747
0 votes
2 answers
90 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
user avatar
1 vote
2 answers
97 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. \...
user avatar
7 votes
1 answer
220 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 ...
user avatar
4 votes
0 answers
208 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 ...
user avatar
3 votes
1 answer
244 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?
user avatar
0 votes
0 answers
120 views

How to draw a cubic surface in tikz?

How to draw a cubic surface with tikz?
user avatar
  • 575
4 votes
2 answers
195 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).
user avatar
0 votes
0 answers
115 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 ...
user avatar
2 votes
2 answers
291 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-...
user avatar
  • 46.1k
0 votes
0 answers
105 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 ...
user avatar
  • 1,696
0 votes
1 answer
194 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 ...
user avatar
1 vote
1 answer
144 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 ...
user avatar
7 votes
4 answers
501 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 ...
user avatar
  • 883
1 vote
0 answers
95 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 ...
user avatar
13 votes
2 answers
363 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. \...
user avatar
  • 3,742
3 votes
1 answer
372 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 ...
user avatar
  • 447
5 votes
1 answer
258 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 ...
user avatar
  • 191
1 vote
2 answers
242 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-...
user avatar
  • 1,696
0 votes
1 answer
132 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 ...
user avatar
2 votes
1 answer
175 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?
user avatar
4 votes
1 answer
304 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 ...
user avatar
  • 1,054
0 votes
1 answer
146 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 ...
user avatar
  • 4,286
0 votes
1 answer
150 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 ...
user avatar
1 vote
1 answer
130 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}{ ...
user avatar
  • 1,100
2 votes
1 answer
46 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} ...
user avatar
  • 459
1 vote
1 answer
105 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, ...
user avatar
  • 459
1 vote
1 answer
63 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 ...
user avatar
  • 281
3 votes
1 answer
110 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 ...
user avatar
1 vote
1 answer
118 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 ...
user avatar
5 votes
1 answer
221 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 ...
user avatar
  • 46.1k
1 vote
1 answer
234 views

Cylindrical coordinates plot

I wonder how can I plot this 3D object by using only tikz-3dplot:
user avatar
2 votes
1 answer
801 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 ...
user avatar
  • 192
4 votes
1 answer
121 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 ...
user avatar
  • 1,058