{3d} is about three-dimensional content, e.g., images and drawings.

learn more… | top users | synonyms

11
votes
2answers
1k 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
1k views

How to plot three-dimensional polar functions with pgfplots

I would like to plot the following functions with pgfplots: I know how they are defined: \sqrt{r}\sin\frac{\theta}{2}, \sqrt{r}\sin\frac{\theta}{2}\sin\theta, \sqrt{r}\cos\frac{\theta}{2}, ...
11
votes
1answer
811 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.
11
votes
2answers
963 views

How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics

I have an Asymptote graph of a 3D surface (code below) that I export into 3D PDF file (containing PRC). I include nice axes with LaTeX labels on them, but in addition to these the viewer displays very ...
11
votes
2answers
211 views

Asymptote: when white isn't white

I'm trying to display a white 3D ball with Asymptote (3D PDF), but it always turns up gray: import graph3; import solids; defaultrender.merge=true; size(10cm,0); ...
11
votes
1answer
284 views

Presumed error of pgfplots in the “cutting” of a surface

I'm struggling with a 3D representation through the use of the package pgfplots. I'm faced with an alleged error in pgfplots (from my point of view). Consider the txt file (which is attached here) and ...
11
votes
2answers
572 views

How to cut a surface at the intersection with another surface in Asymptote?

In the code below, I define a cylinder (as a surface of revolution) and a plane (as a cyclic path). From both, I can get a surface that renders in 3D. Now, I would like to hide (or better remove) the ...
10
votes
2answers
586 views

plot 3d graphs of functions defined implicitly

How can I plot 3d graphs of functions defined implicitly (quadratic forms, for Linear Algebra course notes -- I'd like to include lots of examples)? As far as I can see it is not possible with ...
10
votes
2answers
466 views

TikZ: two ellipses in different planes

How can show that two ellipses are in different planes? \documentclass[convert = false, border = 1cm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} ...
10
votes
2answers
1k 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 ...
10
votes
1answer
3k views

How to change label and ticks of a pgfplots colorbar?

I have a 3d plot with colored surface and a colorbar made with pgfplots. My probably related questions are: How can I set the label of the colorbar? What are the equivalents of zticks (positions of ...
10
votes
1answer
910 views

How can one plot in 3D a matrix with LaTeX?

I have a problem with drawing a 3d plot in TikZ. I have a matrix of size (n*m) n is the number of points in the x-direction and m is the number of points in the y-direction and the values in the ...
10
votes
1answer
543 views

Contour partially hidden by a surface in pgfplots

Thank's to SE (and particularly these two questions: Draw a bivariate normal distribution in TikZ and How to fix a contour plot at top of a 3D box), I've been able to draw what I was looking for with ...
9
votes
2answers
2k 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
1answer
300 views

Bend 3D cylindrical object

I am trying to draw the following image with TIKZ. My question is that, is it possible to bend 3D objects in TIKZ. I would like to bend the cylinder object in the code that I have given below and ...
9
votes
2answers
686 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
811 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 ...
9
votes
2answers
688 views

Specifying the transformation matrix TikZ uses manually?

I'm creating some 3D graphics using TikZ, and I need to apply a transformation matrix to some coordinates I'm specifying in 2D so they end up in 3D. I am going to draw graphics on all three visible ...
9
votes
1answer
593 views

Drawing a ring around a torus (doughnut) using TikZ

I was trying to draw a 2-torus (a doughnut) using TikZ, based on the answer to my previous question Moebius Strip using Tikz, and got the following The result is impressive! However, the vertical ...
9
votes
2answers
873 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 ...
9
votes
1answer
354 views

How to achieve a perspective where two axes of a 3D scene coincide with the x and y axes of the 2D projection?

How should the corresponding camera line look like? currentprojection = orthographic(camera=(x,y,z),up=Y,target=O); In particular, I need a formula for the triple (x,y,z) depending on the angle ...
9
votes
1answer
100 views

Function rotated about the x-axis

I try to reproduce some figure from that file: http://tug.org/TUGboat/tb33-1/tb103wolcott.pdf I exactly need Figure 7: f(x) = sin x rotated about the x-axis. The code for Figure 7 is in appendix B. ...
9
votes
2answers
168 views

pgfplots 3d cylindrical coordinate system

I am trying to plot a cylindrical coordinate system using pgfplots. The idea would be to plot the r,theta plane similar to what polaraxis provides, see here. I don't know how to translate something ...
9
votes
2answers
269 views

3D font in LaTeX

This is an unusual question regarding rendering of a font with a specific 3D-esque style in LaTeX, XeLaTex, or any other TeX flavor. I was looking at some fonts the other day and I came across one of ...
9
votes
1answer
987 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 ...
9
votes
1answer
1k 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 ...
9
votes
1answer
272 views

TikZ: a cylinder of infinite height

I would like to use the Magenta cylinder from dandelin spheres, but I want to have the illusion that the cylinder goes to infinity in the positive z direction. I am ignoring the rest of the code ...
9
votes
2answers
747 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

Cut-off cone in TikZ

How would I draw the following cone using TikZ? I have no clue how to incorporate the "cut-off". I want to draw a picture of the cone given by the points (y, t) for y in R^d and t in (0, infty) such ...
8
votes
3answers
2k views

Surface plot with coordinates in pgf

Is it possible to draw a three dimensional surface using coordinates instead of formulas? MWE so far: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
8
votes
3answers
2k 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
2answers
391 views

Drawing Solids with LaTeX

I want to know if there is a package that automatically draw solids (spheres, cylinders, cubes, prisms). I know I can do this kind of drawing using TikZ or PSTricks. But what about a package where ...
8
votes
3answers
946 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
370 views

How can I draw two intersecting spheres with highlighted intersection?

I would like to get an image like the this: with two intersecting spheres, marked centers , one point on the intersection should also be marked and a highlighted intersection. I've tried to get ...
8
votes
2answers
316 views

Interactive surface plot with pgfplots

I know that it is possible to embed three-dimensional files into PDFs with \LaTeX which can then actively be interacted with by the reader (see here for example). I have a surface plot I made with ...
8
votes
2answers
142 views

3D data plot with PSTricks

Consider the following example: \documentclass{article} \usepackage{pst-3dplot} \begin{filecontents*}{plotting-of-3d-surface.data} 2.17 0.001 0.82044815 2.17 0.002 0.82345825 2.17 ...
8
votes
2answers
758 views

Drawing the contour of a 3d torus

I would like to draw a torus, like the one on the question How to draw a torus, with a 3d package. I would like to avoid drawing the torus in 2d with inkscape (or directly with tikz) because I will ...
8
votes
2answers
1k views

3d Image using tikz?

I have attempted to draw a sphere between two planes that are defined as follows. a:= 2x - 2y + z + 2 = 0 and b:= 4x - 4y + 2z - 4 = 0 I know that the line is perpendicular to the two planes are ...
8
votes
2answers
660 views

Helix on a cylinder

I want to plot geodesics on a cylinder. These are straight lines, circles or helices. I can plot the first two, but I don't know how to draw the helices. To be precise, I would like to know how to ...
8
votes
9answers
3k views

For movie15-based 3D embeds, how to get u3d files?

The movie15 package (an interface to embed movies, sounds and 3D objects into PDF documents for use with LaTeX as well as pdfLaTeX) requires 3D files to be in u3d format for embedding into pdf. This ...
8
votes
3answers
877 views

Is it possible to draw a 3d cylinder using TikZ-3dplot?

I want to draw a clyinder between two planes. I want to specify the distance between the planes and position and radius of the cylinder. I would like to use tikz-3dplot, because it allows a free ...
8
votes
1answer
289 views

3D arc in Asymptote

I constructed the technical figure embedded below. I wonder how to draw red arc to denote angle $\alpha$ between two blue vectors. (Actually, I add the desired output using Inkscape.) The Asymptote ...
8
votes
1answer
684 views

How to project a function over a 3D plane

When I looked up the method to express two variable functions as a sequence of intersecting horizontal planes, I thought to use PGFplots to construct a simple set of "slices" of a generic function ...
8
votes
1answer
425 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 ...
7
votes
2answers
1k views

3D-plotting sine integral (PSTRICKS)

I'd like to build up a 3D-Plot (based on pst-solides3d), where the function looks like x=u, y=v and z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} ...
7
votes
2answers
512 views

Shading of cubes in 3D picture

The example here is just great (and even better with the implementation in the comment). I would, however, like to have all the sides on a cube in the same color but have the color change in each ...
7
votes
3answers
2k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, ...
7
votes
3answers
216 views

Creating a labeled tetrahedron with tikzpicture

I am wanting to draw a tetrahedron with labeled points on each corner. I attempted to edit the example of a cone that I found here: A cone with tikzpicture I have made it look partially like a ...
7
votes
2answers
279 views

How to make a 3D Lattice?

How could I create a lattice like this: In 3D, with the ability to change the x,y and z spacing independently of each other? Any solution using any LaTeX program would be great! I have tried to do ...
7
votes
3answers
241 views

PGFplots 3d: Creating a filled solid of revolution

I have searched through the internet for a solution, but since I'm not that skilled with pgfplots, I need your help. For several examples I want to draw solids of revolution, but filled ones. I ...