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

learn more… | top users | synonyms

8
votes
1answer
379 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
818 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
460 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
578 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
428 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
384 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
2answers
282 views

Asymptote 3D: how to draw a surface with a pattern (e.g. checkerboard)?

In Asymptote, I'd like to draw two intersecting planes, one with a solid color and another with some pattern (e.g. checkerboard), so that it would look okay if printed black and white. However, the ...
7
votes
3answers
738 views

pgfplots: 3D surface plot from data with free format

I want to plot 3D data from a file (data file) using pgfplots. The data represents an ellipsoid. I want to draw the outer shell like in the following picture, just without the background and in ...
7
votes
2answers
536 views

Projection of included 2D graphics to a plane

General purpose I want to project a graphic file from external sources (example.pdf saved on my computer e.g. a chip design) on the bottom of a 3D graphic (which I can draw in LaTeX by using TikZ, ...
7
votes
2answers
3k views

Drawing 3D cylinder

I need to draw a lot of 3D cylinders with different dimensions. Has anyone maybe already defined a command like \3Dcylinder{x}{y}{z}? I found 3D bodies in TikZ and tried the third answer. But I don't ...
7
votes
2answers
636 views

3D TikZ lines on the perimeter of a circle

I'm just learning TikZ, I've done a few 2D images and I wanted to make a 3D wire frame of the Hubble telescope. The body of the telescope is basically a pair of tubes, the front one slightly narrower ...
7
votes
2answers
273 views

Position shift when adding label to 3D asymptote diagram

I have this strange issue with 3d asymptote diagrams. Without labels they act as a normal figure, but when I add label, the diagram moves to the edge off the page... MWE: ...
7
votes
1answer
551 views

A perpendicular line to a plane in 3D

I have two line segments identified by two end points each. Two line segments are in the same plane and intersecting at a point. I would like to draw a line (normal of the plane) passing through the ...
7
votes
1answer
588 views

TikZ: draw objects in transparent objects (3d)

I want to draw a cuboid in another transparent cuboid with TikZ. Therefore I've created a \newcommand to draw a cuboid. \documentclass[11pt, halfparskip]{scrartcl} \usepackage{ucs} ...
7
votes
1answer
95 views

Intersecting boxes in pst-solides3d

I need to make a picture of some 3D boxes (i.e., parallelepipeds) that intersect themselves in some complicated ways, so I tried pst-solides3d. Here's the minimal working example: A long and thin ...
7
votes
1answer
337 views

pgfplots: 2d graphics in 3d axis environment

I would like to stack several external 2d plots into a 3d axis environment like the orange and green planes in my example. As the 2d plots are created externally, I am looking for a way to rotate and ...
7
votes
1answer
382 views

Asymptote: Is there an equivalent to silhouette for surfaces?

Update If there is no equivalent to silhouette could you comment on my following ideas: I can get the projection of my surface using the planeproject transformation. This is still a three dimension ...
7
votes
0answers
187 views

3d graphics/diagrams [closed]

Is there a convenient way to create a 3d graphic/diagram like the following in LaTeX (e.g. with tikz)? I'm aware that convenience is a point of view, however I would describe myself as a newbie to ...
7
votes
0answers
209 views

Asymptote generates different output whether running in interactive mode or from pdflatex

I would like to make 3d pictures and put them side-by-side. I can do that nicely creating a file example.asy: settings.render=1; import graph; import graph3; import contour3; material reds = ...
7
votes
0answers
305 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
7
votes
0answers
421 views

TikZ trapezoid transformation (vanishing point) [closed]

Within a TikZ drawing, I want to distort a 2D rasterimage (from \includegraphics) so that it appears to be rotated by 90° around the vertical axis in 3D (it should look perpendicular to the sheet of ...
6
votes
1answer
443 views

Drawing coaxial cables: TikZ or pstricks

I want to draw this. I don't find any way to do I can draw some things... but it's so bad! and it's not realistic! please HELP... \begin{document} \newcommand\innenleiter[3]{% ...
6
votes
1answer
3k views

3D surface plots in TikZ

I need to plot a surface plot using TikZ. I have the (x,y) coordinate and the corresponding function value in a table form. I have not done 3D plots before in TikZ and hence I would appreciate any ...
6
votes
3answers
339 views

indicate a right angle in 3d

The following MWE shows what appears to be a piece of paper folded. I want to indicate that the angle between the dashed lines is right angled by adding a simple square at M, such that the missing ...
6
votes
3answers
878 views

Circular arrow in 3D to indicate a unit axis rotation

I would like to indicate the directions of rotation and symbols used for the respective Euler angles. This would look nice using small circular arrows around the axes, as shown below: In this ...
6
votes
2answers
1k views

Easiest way to draw a 3d coordinate system with axis labels and ticks in tikz

What's the easiest way to draw a 3d coordinate system in tikz with axis labels and ticks like the following one: Is there any additional package which does this (with adjustable parameters)?
6
votes
1answer
249 views

Draw bivariate normal distribution in x-z plane

In draw-a-bivariate-normal-distribution-in-tikz, the bivariate normal distribution was plotted on the x-y plane. Is it possible to plot this on the x-z plane/y-z plane?
6
votes
2answers
1k views

xyz coordinates rotation

is it possible to set a different orthonormal base for the xyz coordinate space? for example, the default one is x=(1,0,0) y=(0,1,0) and z=(0,0,1). I would want to set this base: x=(1,0,0) y=(0,0,1) ...
6
votes
3answers
1k views

tikz-3dplot rotation around the x-axis

I'm trying to create a simple spherical quadrant grid using the tikz-3dplot package. The longitudinal grid lines look fine but when I try to create the latitudinal lines I get really strange results ...
6
votes
1answer
1k views

Draw 3D rectangle

I've been searching this for hours, but didn't find a reason for this behaviour: Here is my example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{3d} \begin{document} ...
6
votes
1answer
965 views

pgfplots: color a (3D) surf using arbitrary RGB colors

I would like to color a surf using arbitrary RGB colors (unlike this question, which just colors the surf using the colormap). In this minimal example (which plots the x+y function), I would like the ...
6
votes
1answer
1k views

2D colors above 3D surface plot

I would like to draw a 2D, colored plot of a function above its surface plot. I tried copying the surface plot and setting z filter/.code={\def\pgfmathresult{1.4}}, but then everything is the same ...
6
votes
1answer
276 views

Cyclic ring and visibility problem in pst-solides3d

I'm trying to draw two cylindric rings on top of each other with pst-solides3d. Here is what I have: \documentclass{article} \usepackage{pstricks} \usepackage{pst-solides3d} \begin{document} ...
6
votes
2answers
164 views

Close the corners of a grid (of tubes) on a surface in asymptote

Consider the following simple drawing of a saddle surface using asymptote import graph3; real f (pair p) { real x = p.x; real y = p.y; return 0.5*(x^2-y^2); } surface ...
6
votes
1answer
2k views

2D surface on a 3D surface plot external data in a file

I am drawing a 3D surface from external data. Here they are: 0 0 -0.64 1 0 -0.5 2 0 -0.4 3 0 -0.31 4 0 -0.23 5 0 -0.2 6 0 -0.24 7 0 -0.32 8 0 -0.42 9 0 -0.59 10 0 -0.76 0 1 -0.54 1 1 -0.4 2 1 -0.27 ...
6
votes
2answers
309 views

Splitting y domain in 3D pgfplots

What I want is to plot my function from y=0-->y=3 and then from y=3,2-->y=6. I want to ommit the space between 3 and 3,2. This is my code: \documentclass[border= 5mm]{standalone} ...
6
votes
1answer
565 views

pgfplots: labels and width issues in non-boxed 3d plot with oblique projection

Update april 2013 The bug has been fixed with pgfplots version 1.8 (requires \pgfplotsset{compat=1.8}). When I try to add the axes labels to this code, I get a division by zero error. I think the ...
6
votes
1answer
1k views

Asymptote generated 3D raster image

Consider the following minimal Asymptote 3D example: \documentclass{article} \usepackage{filecontents} \usepackage{asymptote} \begin{filecontents*}{testfile.asy} import three; ...
6
votes
1answer
136 views

Adding arrows on 3D curves in Asymptote

I am trying to plot (1D) trajectories in 3D with Asymptote (because I am also plotting surfaces with opacity and do not want to use hacks for hidden surfaces). Each curve is defined by points in an ...
6
votes
1answer
174 views

Fill a region between two coplanar paths in asymptote

I'd like to reproduce in 3D the same thing as can be seen in the manual (section 3.5, Paths) size(0,100); path unitcircle=E..N..W..S..cycle; path g=scale(2)*unitcircle; ...
6
votes
1answer
325 views

TikZ: showing a plane moving in 3 space

I have 2 identical planes a distance of \Delta t apart. I want to show that first plane is being pushed in the direction of the second plane. I was thinking maybe some randomly placed arrows tangent ...
6
votes
1answer
654 views

What packages or tools best support any 3D line, plane, surface intersections?

I have not explored the PSTricks' pst-solides3d, TikZ's equivalent packages, Asymptote as a tool, etc, yet. I have a task to make some simple 3D diagrams that are related to 3D geometry subject we ...
6
votes
1answer
631 views

Extract coordinates from 3D point

How do I extract coordinates from a three-dimensional point defined when using tikz-3dplot? I would like to perform some calculations on these (more specifically a cross-product of two vectors), but ...
6
votes
2answers
230 views

How to plot the four regular star polyhedra with tikz?

I can plot the regular convex polyhedra, for examples \begin{tikzpicture}[scale=1.0] \tikzstyle{every node}=[circle,fill=blue!20,inner sep=0pt,minimum size=0.4cm] \foreach \y[count=\a] in ...
6
votes
1answer
214 views

How to prepare coordinates for 3D surface plot using pgfplots

I'm trying to plot a Pareto front on 3 dimensions, using pgfplots. However, although I expect a nice surface to appear (since it is a Pareto front), pgfplots does not produce the result I want (yet). ...
6
votes
1answer
186 views

Recreating a square with fixed baseline and height (3d)

I am trying to recreate the following image, as close as possible. The point is that the circumference of the bottom, plus the height of the cube needs to be 30. Which gives 30 = 4x + h so I want ...
6
votes
1answer
172 views

Is it possible to write text in 3D plots? (And newbie questions on 3d graphics)

I'm making my first steps in 3D graphics in LaTeX. What I got so far is this image In the backgorund one can sense a small D_g; the blue domain should be denoted with that. The red surface should ...
6
votes
1answer
292 views

Random 3D shape

I created a picture for a random charge distribution and it currently looks like this \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections, decorations,circuits.ee.IEC, calc, ...