Linked Questions

12
votes
1answer
2k views

Efficient way to partially fill a cylinder?

I am new to tikz and am using it to draw cylinders. I understand how to invoke cylinder body fill to completely fill one, but I also need some cylinders that are only shaded to a certain height. Is ...
10
votes
1answer
2k views

Drawing a motor shaft in TikZ

I'd like to create a picture like the one with TikZ: I've already created the electrical part using circuitikz. I'd like to add the part on the right (the motor's shaft with arrows), but don't know ...
6
votes
1answer
2k views

How can I create simple 3D models?

I would like to reproduce the following image, but in addition labelled with "Wheelbase $w$" and "Track $t$". (Wikipedia image source) I've tried my best with pst-solides3d, but the result is much ...
5
votes
1answer
1k views

Drawing circles on a 3D Plane

I have this steel plate, and I want to put a circle on it so that the circle lies in the "horizontal" plane of the plate: % vim: ft=tex \RequirePackage{luatex85,shellesc} \documentclass[tikz]{...
4
votes
1answer
476 views

Coordinates unit in pt although default is cm in TikZ

As we know that in TikZ, if unit is not mentioned in the coordinate in TikZ, it takes cm by default. When I extract the coordinates, I was expecting the unit as cm. But TikZ shows the unit in the ...
4
votes
1answer
1k views

drawing a circle in the xy plane when using 3d coordinates

I am trying to make a circle in the xy plane that has walls that slope up. How can I do this? Basically a bucket with a bigger opening then base. \documentclass{article} \usepackage{tikz, tikz-...
3
votes
1answer
51 views

tikz arithmetic with numbers and lengths

Consider this example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \def\starty{3} \def\length{1}; \coordinate(a1) at (1, \starty); \...
2
votes
1answer
153 views

TikZ: Define 3D coordinate axes for the space pyramid (tetrahedron)

How can I specify such coordinate axes? So then, e.g. A(0,0,0) or C(a, a, 0). What is the angle between the x and y axes? Yes, I am frankly just wondering. Probably not simply 30 °; it is something ...
2
votes
1answer
63 views

Making a checkerboard with `foreach`

Why are these two diagrams different? \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{tikz} \usetikzlibrary{calc,intersections} \begin{document} \begin{tikzpicture} \...
1
vote
1answer
36 views

What is the relationship between given coordinates, scale, and obtained coordinates?

I have a pgfshape declared as \pgfdeclareshape{Curve1}{ \inheritsavedanchors[from=coordinate] \inheritanchor[from=coordinate]{center} \backgroundpath{ \begin{pgfscope} \pgftransformshift{\centerpoint}...
1
vote
1answer
60 views

tikz-3dplot accumulates the transformation every time let operator is used

In follow up to my previous question, I now have the following problem with the tikz-3dplot library. Every time I use the "let" operator, the transformation matrix seems to act again on the coordinate ...
0
votes
1answer
106 views

Getting started drawing basic 3D objects with TikZ [closed]

Is it possible to draw this with TikZ (or perhaps a similar package related to postscript, metapost, SVG, etc.)? Sorry, I don't have much to offer this time. I usually like to provide a bunch of code ...
6
votes
0answers
770 views

How to draw a 3d cylinder using TikZ-3dplot? [duplicate]

I'm trying to draw a 3d cylinder using TikZ-3dplot, but the cylinder walls are not aligned properly (as you can see in the image). Does anybody knows what am I doing wrong? \documentclass{article} \...
1
vote
0answers
36 views

Strange scaling issue with circles in tikz/pgfplots [duplicate]

I am suddenly having a strange issue with circles within an axis environment. Any circles drawn inside an axis become weirdly stretched, as in the following example: \documentclass{standalone} \...
0
votes
0answers
255 views

Simple 3d shapes in LaTeX [duplicate]

I want to create simple 3d shapes, cubes, cones, cylinders, etc. Which package is optimal for this operation? I have used tikz before, but I do not know how to use it for 3d images. Any recommended ...

15 30 50 per page