{3d} is about three-dimensional content, e.g., images and drawings.
33
votes
2answers
4k 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 ...
32
votes
1answer
525 views
Elliptic Moebius map on sphere using Tikz
I'm trying to adapt this example from texample to produce a sphere with arrows indicating the effect of a elliptic Moebius map.
In fact, I'm trying to redraw the spheres below, but for a while I'm ...
31
votes
2answers
460 views
Draw polarized light
I was trying to draw something like that
Searching through the net to see if it already exists in tikz I came accross in texample.net the following image which looks a lot like what I want to draw.
...
28
votes
1answer
1k views
Plotting several 2d functions in a 3d graph
I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
27
votes
2answers
2k views
How can I draw an arc from point A -> B on a 3D sphere in TikZ?
I'm basing myself on http://www.texample.net/tikz/examples/spherical-and-cartesian-grids/ and now I need to add a arc from point P to Q. What I was able to get so far:
...
26
votes
3answers
2k views
3D helix torus with hidden lines
How can I generate the above image using TikZ (possibly other methods will work if they produce better looking results)?
I would like to have a nicely shaded (not so dark image) without gridlines ...
24
votes
3answers
465 views
How to project text onto a plane?
I'm trying to create the impression that the text "slice" in the example below is written on the cube slice. What is the best solution? To slant the text?
\documentclass{standalone}
...
24
votes
1answer
1k views
How to draw spherical geometries with TeX?
I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
23
votes
1answer
398 views
More elegant way to achieve this same camera perspective projection model?
I just finished a camera perspective projection model using TikZ. Although, while I'm pretty satisfied with the result, it took me a lot of time to do it. It's easy to see from the code below that I'm ...
22
votes
3answers
836 views
How can I draw nucleosomes with wrapped DNA in tikz or pstricks?
The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
21
votes
6answers
5k views
What is the easiest way to draw 3D cube with TikZ?
I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example?
Like this:
21
votes
8answers
4k views
Drawing polyhedra using TikZ with semi-transparent and shading effect
I would like to draw an Octahedron using TikZ, I found nowhere to start, I tried drawing 6 points and then connecting them properly, but this method gives no 3D feel at all, this is my drawing:
...
21
votes
1answer
732 views
Perspective transform
The following piece of eye candy:
was produced using the following code:
\documentclass[a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows}
\usetikzlibrary{shadows.blur}
...
20
votes
2answers
2k views
Draw a bivariate normal distribution in TikZ
For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ?
20
votes
3answers
504 views
Isometric Elevation Grid in TikZ
Is there a (simplistic?) way to draw a 3D elevation grid like this in Tikz or PGFPlots?
The blue line should be able to move up or down and, eventually, submerge the interior blocks.
I've looked ...
18
votes
3answers
4k views
3D bodies in TikZ
Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.
18
votes
2answers
2k views
Making a labeled Klein bottle using TikZ or pgfplots?
I'd like to be able to draw the following cell complex structure on the (three-dimensional embedding of the) Klein bottle using LaTeX. I am pretty pleased with my hand-drawn rendition, but LaTeX is ...
16
votes
4answers
882 views
How can I draw a transparent cube in 3D perspective?
I would like to draw a transparent, `flattened cube' in perspective with dotted lines from both vanishing points to each of the vertices of the 3D solid. Is there a PSTricks package for this?
It is ...
16
votes
2answers
2k views
Drawing a circle on a non xy-plane with TikZ
Say I'm drawing a 3D picture. Now I would like to draw a circle, perspectively correct, on the yz-plane, but TikZ does not seem to be capable of this. All one can do is drawing circles on the ...
16
votes
1answer
718 views
How can I draw a vector field (quiver plot) on a surface in 3D?
I'd like to draw a vector field on a torus using PGFPlots and/or TikZ. I managed to do it using ePiX, based on the file decorate.xp from the example gallery, but then I have to do z-sorting by hand, ...
15
votes
2answers
1k views
Draw a prism in TikZ or PSTricks
Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
15
votes
1answer
410 views
How to draw a “Mexican hat potential” using 3dplot?
I would like to make a Mexican hat potential (like this one from Wikipedia)
drawing through TikZ, and I am sure the function to use is straightforward, but I have not managed to find the right ...
14
votes
4answers
494 views
How to draw a 3D hexagonal structure with TikZ?
What is the best way in TikZ to draw a hexagonal stucture in 3D? For example, graphite crystals, honeycombs or stable racks made of hexagonal aligned stiffeners.
I already found this nice solution: ...
14
votes
4answers
388 views
How to 3D rotate figures in display
I have a bunch of 2D figures which I like to use latex to display them in a row (side by side). Since the number of the figures is a lot I cannot show them all horizontally. For this I would like to ...
13
votes
5answers
3k views
Drawing 3d diagrams
I would like to use a few simple 3d diagrams in my LaTeX document. They primarily consist of polyline segments in 3d, along with an occasional simple surface (e.g. paraboloid). There are two ...
13
votes
1answer
497 views
Drawing 3d circuit diagram
I've started using tikz only few weeks ago and find it utmost useful todraw beautiful picutres.But now i'm a bit stuck on a 3d circuit which should resemble the physical structure and hope the experts ...
12
votes
3answers
392 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.
...
12
votes
2answers
776 views
TikZ: How to draw a sine curve in 3D?
I know how to draw a sine curve in TikZ and I know how to rotate it in the plane of the paper. I would now like to draw a sine curve that oscillates in the depth of the paper - to give the impression ...
12
votes
1answer
433 views
Drawing 3D crystal lattice with tikz/pstricks
I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones.
Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
11
votes
2answers
644 views
3d axis and polyhedron with line segment towards origin
I would like to make a 3d plot containing the 3d axis and a convex polyhedron or better a Dodecahedron
on the positive side for which one of its boundary edge points on its top is annotated e.g. ...
11
votes
2answers
422 views
Text placed in pespective on 3D object
I am experimenting with Tikz to include graphics in my LaTeX documents. I have made a few 2D and 3D diagrams. One of the diagrams contains a 3D pyramid. I want to place text on the front and side of ...
11
votes
1answer
853 views
TikZ, 3d library and circle fading
I'm using the 3d library to put a circle on the z=0 plane, and other things. I'd like to fade this circle radially, but the result isn't as I would expect because the fading is not proportional to the ...
11
votes
1answer
253 views
Isometric paper and drawing on it — with PSTricks
I would like to create a drawing on isometric drawing paper like the following:
N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I ...
11
votes
1answer
342 views
Tikz: intersection of line and plane
I am struggling with drawing a plane and a intersecting line. I would like to have the line C,P',P in the image, disappear if it is "behind" the plane and have it reappear if it is not behind the ...
10
votes
3answers
400 views
Drawing a 3D cone
I want to create some thing like this ,
but instead of a box, I use another object (a dog silhouette). Here is what I have so far
\begin{tikzpicture}
\begin{scope}[scale=0.25, xshift=70, ...
10
votes
3answers
550 views
polytopes as inequalities sistem solutions in R3 (x-y-z) cartesian space
i'm here to ask if there's a TikZ/pgf support to draw areas resulting from a system of linear inequalities, into a xyz cartesian space. i found examples of my needs for xy plan at How to plot polygon ...
10
votes
1answer
575 views
Documentation of the tikz 3d library
Where can I find the documentation of the tikz 3d library? There seems to be no such section in the manual and google didn't help me in this case.
9
votes
2answers
1k views
How to draw an Icosahedron?
After going through the pgf manual and also searching the web for some solution or at least a hint on how it can be done (preferably using TikZ), so I came here with my question:
How to draw an ...
9
votes
2answers
469 views
Is lualatex supposed to be a superset of pdflatex? (regarding production of PDF)
In other words, is it a bug if lualatex cannot compile a document that pdflatex can?
Based on the answers to this question
How to expand TeX's "main memory size"? (pgfplots memory ...
9
votes
2answers
565 views
Intersection of 2 surface plots in pgfplots
My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the ...
9
votes
1answer
567 views
3D Arrow Tips for TikZ/pgfplots
I really like the arrow tips shown in How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics and am wondering how to produce this in pgfplots:
I admit I have not tried ...
9
votes
2answers
485 views
Tikz : how to control length in 3D pictures?
I tried to draw a sphere with tikz with isometric projection or oblique projection (perpective cavalière in french).
For oblique projection you have to put a scaling factor (scal < 1) for distance ...
8
votes
3answers
1k views
How to draw a circular cone
I want to draw the circular cone given by the equation z²=x²+y². (I do not mind using any given package.) I tried to use the pst-solides3d package with the help of its manual to generate the ...
8
votes
1answer
144 views
Creating Bezier surfaces using procedural graphics
Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
8
votes
3answers
624 views
Vector graphics in LaTeX
I need to add some vector graphics to my LaTeX files. I would like to end up with good looking wireframes, such as in Hatcher's book "Algebraic Topology" (for an example take a look here). Which tools ...
8
votes
2answers
459 views
pst-solides3d and hidden lines
I am trying to draw figures with pstricks for the first time. Unfortunately, I am struggling with it. I was trying to draw a pentagon-cone and an octahedron using pst-solides3d, but it draws some ...
8
votes
2answers
506 views
pgfplots: two labelings for a single 3d plot
I am trying to add a second labeling to my 3d plot, but I can not figure out how to do it correctly. The idea is to add a second axis without any grid, ticks, lines and nothing but labels and overlay ...
8
votes
1answer
352 views
Best way to get the unit vector of a given vector in tikz 3d
Suppose I have a coordinate in tikz 3d which I interpret as a vector, for example
\coordinate (v) at (3,2,9);
What's the best way to get the unit vector pointing into the same direction?
My first ...
8
votes
1answer
356 views
Changing view angle distorts sphere with pgfplots
I am trying to learn how to use pgfplots by plotting simple things, like a two-dimensional sphere. However, I find it quite surprising that depending on the view angle, the result sometimes does not ...
8
votes
1answer
181 views
3D line plot in pgfplots
I have the following problem with pgfplots and \addplot3. I have a graph in [0,1]x[0,1] that should display a mesh plot and a line plot that traces a particular line across the mesh. The line plot is ...



