This tag is for questions related to the tikz-3dplot package for enhancing TikZ coordinate system to 3D.

learn more… | top users | synonyms

2
votes
0answers
57 views

tikz-3dplot, geodesics and adressing endpoints in polar coordinates

I am trying to draw geodesics on a sphere. While many approaches, like for example this one, i am more interested in another way. If i specify two points, say qand p on the Sphere, i would like to ...
1
vote
1answer
90 views

torus to coffee mug homotopy

Does anyone have a TikZ solution to animate the coffee mug --> donut homotopy?
1
vote
0answers
32 views

Rotated figure moves to the right of the document

I want to rotate a 3d solid using tikz-3dplot within a subfigure environment (I am using IEEEtran document class as well). When I perform the rotation, the figure rotates as expected but moves to the ...
3
votes
1answer
171 views

Draw a circle in a coordinate system of an arrow on a half-sphere

I am trying to draw a half sphere with several arrows on it. Each of those arrows should have a circle positioned on it, drawn in a local coordinate system of the arrow. I managed to draw the sphere ...
6
votes
2answers
214 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 ...
1
vote
1answer
55 views

Drawing direction cosines with tike-3dplot

I am trying to reproduce the following image using tikz-3dplot. I need help with the arrow heads of the vectors, the angles made with vector v and the unit vectors, i, j, and k. Here is what I ...
3
votes
1answer
93 views

\addplot3 in pgfplots plots data beyond axis limits

When using pgfplots for a 3D graph and reading the data from a table, is there a way to truncate the data at the axis limits specified in the axis environment ? Here is a MWE: ...
11
votes
1answer
312 views

How to plot the first n rows of a table using pgfplots?

When using pgfplots, is there a way to plot only the first n rows of a given table ? Considering the following MWE file: \documentclass[tikz]{standalone} \usepackage{tikz} \usepackage{pgfplots} ...
4
votes
2answers
225 views

Import 3D object in LaTeX

Is there any way to import a 3D file of an object (.stl for example) to draw a 2D projection of it into a TeX document ? I have been surprised to don't find any subject about that, I was thinking a ...
3
votes
2answers
150 views

draw direction cosines using tikz

How I can easily draw the direction cosines using TikZ?
1
vote
0answers
46 views

tdplotsetcoord length scale

I'm trying to define that dynamic coordinate which specifies also Xxy,Xxz,Xyz plain coordinates etc. However, such coordinate seems to be with different length scale than my coordinate system is. ...
2
votes
0answers
150 views

Solid of revolution about arbitrary axis

I'd like to rotate the region between y=cos(x) and y=x^2 - 0.25*pi^2 about the line x=pi. How to do this? So far I have only managed to rotate around the x-axis: \documentclass[letterpaper]{article} ...
5
votes
0answers
140 views

Draw background lines dashed in TikZ-3dplot depending on view position

In the graphic the red line is partly covered (in the background) of the 3d-object. Is it possible to draw the background parts of the lines dashed (or calculate the "intersection" points)? After ...
14
votes
2answers
187 views

Path clipping in 3D only works in two out of three planes?

In the following code, I'm trying to draw three clipped circles in three orthogonal planes. I'm using this approach to clip the appropriate sections of the circles. This works nicely in the xy and yz ...
2
votes
0answers
113 views

How to draw an arc greater than 180 deg in tikz-3dplot?

\tdplotdrawarc command draws an inferior arc by default, but how to draw an superior arc? I know that there is a way to draw an superior arc in tikz: \tikz \draw (0,0) arc [start angle=0, end ...
17
votes
4answers
1k views

Drawing intersecting 3D surface plots

I'm attempting to draw six semi-transparent intersecting spheres of different colors---two on each axis x, y, z and all joining at the origin---as shown in the figure below. Note how all the spheres ...
4
votes
1answer
224 views

2D Bar Chart in 3D Space

I have a graph in 3D space and I'd like to add a histogram along the vertical axis. The bars are supposed to be spaced equally along the vertical axis. I am, however, unable to get the positions of ...
28
votes
2answers
853 views

3D solids with Tikz - or an alternative?

I want to draw 3D shapes in latex. I have tried out different strategies, but nothing has led me to a good solution yet. First what I want to do, then what I have done so far. In prioritized order, ...
1
vote
0answers
115 views

Cartesian Coordinate Rotations - Better looking code? [closed]

This is one of my first attempts with TiKZ-3D, so my knowledge is limited. Is there a better or more organized way to accomplish the following?... \documentclass[letterpaper]{article} ...
2
votes
0answers
99 views

How to draw a graph on a sphere using tikz

I'm trying to make some TiKz graphics for a project I am working on and I am a little stuck. What I am looking for is to be able to draw some planar graphs on a sphere's surface? Any help would be ...
8
votes
3answers
412 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 ...
1
vote
0answers
163 views

Setting a rotation matrix instead of Euler angles in tikz-3dplot

In tikz-3dplot, I would like to use rotated coordinates by setting the according rotation matrix directly, instead of implicitly by Euler Z-Y-Z angles. I already tried to modifiy the internal matrix ...
5
votes
1answer
116 views

Bounding box is larger than expected when drawing in 3D

This is a semi-duplicate of this question I think, but the answers provided there don't seem to work for me with 3D pictures. I'm inputting a tikz picture into a beamer poster, but I think that part ...
4
votes
2answers
207 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
12
votes
1answer
525 views

How to draw a circular, inclined road in 3D?

I want to draw the road which is similar to the following (but please ignore grass, soil, and the surrounding scenery for the sake of simplicity), to illustrate a physics problem about circular ...
1
vote
1answer
196 views

rectangle in 3d plane

I am trying to plot a 3d axis with a rectangle perpendicular to the x-plane using the following code: \documentclass[tikz]{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{calc} ...
2
votes
2answers
275 views

addplot3 [area plot] filling the wrong area

using some saved data, i use (The data file cane be download from pX.txt where the first column is the x and at each iteration, I plot the other columns with respect to the first column) ...
4
votes
2answers
343 views

HSV shading of cone in pgfplots

How can I shade the surface of a cone according to the HSV color space? I'd like to create a drawing similar to this from Wikipedia: So far, I have this code: \documentclass{standalone} ...
2
votes
0answers
59 views

Draw 3D quadric surfaces [duplicate]

Hi I want to know how i can draw 3D quadric surfaces defined by equations ... I tried using 3d-plot and tikz but was unable to make it work :/
29
votes
2answers
961 views

Draw 3D intersecting surfaces

Problem This is a shameless "just do it for me" graphics question, but honestly I have no idea where to start. I'd like to reproduce this figure The image shows the intersection of two ...
5
votes
1answer
140 views

Why the edges of my rectangle is not parallel to axis?

\documentclass{minimal} \usepackage{tikz} \usepackage{tikz-3dplot} \tdplotsetmaincoords{70}{110} \begin{document} \begin{tikzpicture}[scale=3, axis/.style={->,thick},thick, ...
1
vote
0answers
176 views

Replace \path in Tikz with a 3D tube

Is it possible to define a new command in Tikz, which will use the same arguments as the \path [line] (node1) -- (node2); command, but which draws instead a 3D tube?
3
votes
1answer
806 views

Create 3D heatmap desity plot using TikZ

My question is very similar to "Create heatmap with PSTricks or TikZ", but this time in 3D. So I have tabulary data as follows: x | y | z | value 1.2 | 1.3 | 1.4 | 1.20 0.2 | 0.3 | 0.4 | 3.20 ...
8
votes
3answers
1k 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 ...
4
votes
1answer
306 views

Unordered layers in tikz-3dplot (3d effect)

Short formulation of the question Is there a way to order layers in tikz-3dplot according to their distance to the observer's position? The picture should look realistic in order to give some ...
11
votes
1answer
550 views

Angle between lines in 3D space

In my following codes: How can I create a beautiful mark angle for DCE angle? How can I change position ALPHA in front of BAC angle in space? \documentclass{article} ...
7
votes
0answers
297 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 ...
8
votes
2answers
407 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 ...
12
votes
2answers
1k views

How to draw an Euler angle rotation sequence with TikZ?

For some lecture notes I want to illustrate successive unit axis rotations using Euler angles. I am quite happy with what I came up with so far: However, I am failing at drawing the angles in ...
6
votes
3answers
846 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
1answer
1k views

Setting camera projection angle in tikz to enhance the depth perception when drawing 3D figures

First please see the following example using MATLAB drawing command >>surf(membrane); We can adjust the camera angle using MATLAB's built-in command camproj, the effects are as follows: ...
14
votes
1answer
677 views

How to draw the right ascension and declination of a vector in a rotated coordinate frame in TikZ?

During my research I came across the illustration of two reference frames. In my opinion this illustration is lacking, because the coordinate systems are not drawn. This makes it hard to understand, ...
4
votes
0answers
515 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} ...
2
votes
2answers
560 views

How to draw spherical using 3dplot

I would like do draw some sphericals using the package 3dplot. Does anybody know how to draw spericals with different diameter and postition in a coordinate system like that one? ...
20
votes
3answers
2k 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. ...
2
votes
2answers
634 views

Rotating around axes with tikz-3dplot

I'm a bit confused by the following code. I would think that the following would produce an animation of rotating 90-degrees around the x-, y-, and z-axes, but the first part of the animation looks ...
5
votes
1answer
215 views

Error caused by TikZ/PGF trigonometric functions

I'm a bit confused about a failure I'm seeing with an inline \cos call. In the code below there I perform contortions with \let, \pgfmathparse, and \pgfmathresult However, the commented line should, ...
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 ...
4
votes
1answer
178 views

change the rotation in tikz 3d?

\documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{115} \begin{tikzpicture}[scale=4,tdplot_main_coords] \coordinate (O) at (1,1,1); ...
4
votes
1answer
852 views

Navigation system coordinates in tikz-3dplot

I am using tikz-3dplot and trying to represent navigation system transformations. In navigation systems, the orientation of the vehicle axis is given in terms of Roll, Pitch and Yaw. These are ...