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

learn more… | top users | synonyms

5
votes
2answers
358 views

Making mesh grid lines transparent in surface plot with pgfplots

I need to make a partly transparent, one color, surface plot. Additionally I want to control the transparency of mesh lines. Running this code: \documentclass{standalone} \usepackage{tikz,pgfplots} ...
5
votes
2answers
2k views

Changing axes in tikz-3dplot picture

As is, the axes in the following picture \documentclass{article} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture}[scale=3] \draw[thick,->,black] (0,0,0) -- (2,0,0) ...
5
votes
2answers
147 views

Unwanted Line Drawn Between Ends of Curves in 3D

Okay, this was about one of the technical pitfalls and how to avoid it, which was solved quite easily by adding samples y=0 as recommended by Francis. Initial Question The following does two turns ...
5
votes
2answers
492 views

Drawing molecules with tikz

I have to draw a molecule in 3D with a little pore represented by a 3D sphere inside of it with the same center. I have never used TikZ but I know that it's useful for drawing in LaTeX and I hope ...
5
votes
1answer
397 views

Stereographic Projections

Take the unit sphere in the three dimensional space. A plane through the half of the sphere perpendicular to the vertical axis. Pick a point in the plane and draw the line which joins it with the ...
5
votes
1answer
321 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
2answers
105 views

Sketching conic sections as intersections of cone and plane?

I would have thought this would be trivial, but I still haven't found an easy method. All I want to do is draw a cone, a plane, and their intersection (which will be a conic section). Something ...
5
votes
1answer
311 views

How to produce a 3d surface plot by rotating the 2d plot of a function

What I want to do is to produce a 3d plot of a surface of revolution. So far I have achieved the following code... \documentclass[border= 5mm]{standalone} \usepackage{pgfplots} ...
5
votes
1answer
477 views

How to draw this picture in 3D (TikZ)

How to draw this picture in 3D (TikZ)? \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc,3d} \begin{document} %%%%%%%%%%%%%%%%% \begin{tikzpicture} ...
5
votes
1answer
830 views

Is there any way to remove mesh lines completely in a pgfplots faceted 3d plot?

I can not seem to find the way to remove the lines in the surface mesh in a 3d faceted plot. I need a solution that does not use the "shader=interp" (i.e. gradient filling) so that the faces are ...
5
votes
1answer
689 views

Some extensions to pst-solides3d

I asked this set of questions (actually 2 of the 3 below) on the PSTricks mailing list a couple of days ago, but have since heard that Herbert's "to do" list is quite lengthy. So, I'm distributing ...
5
votes
1answer
202 views

Drawing a surface over a nonrectangular domain in asymptote

I use asymptote because of its amazing 3D capabilities. However, when I tried to plot a surface over a nonrectangular domain, I could not do it without getting jagged edges. As far as I know, other ...
5
votes
2answers
906 views

How can i import a 3D SolidWorks Model into my PDF using LaTeX

Acrobat Adobe supports 3D PDFs to be included into LaTeX. I could use another tool to create a PDF and import that PDF into my build, but i would rather use a package o include a solid works model ...
5
votes
2answers
529 views

Disable movie15 movies and U3D graphics for printing

I am using the movie15 package to include movies and U3D graphics into my document. I have it setup so that a PDF reader not supporting U3D will display a static image which I have chosen instead. ...
5
votes
0answers
97 views

Cross in particular plane in 3D

I'm creating tikz graphics in (x,y,z) Cartesian coordinate system. I'm defining objects (circle in my WE) in some plane using \tikzset{xyplane/.style={canvas is yx plane at z=#1}}. I noticed it ...
5
votes
0answers
160 views

Help creating 3D solids of revolution in pgfplots? [duplicate]

I have done a lot of plotting in 2D using pgfplots but I am new to the 3D portion. I am attempting to illustrate a solid of revolution. For example, I have the area under the curve y = x^2 + 1 on the ...
5
votes
0answers
149 views

How can I create a 3D Manhattan bar chart? [duplicate]

I have some data which I would like to visualize. This data are 3-tuples of integers: (Threads,Sum,# of occurences) (1,2,20) (1,7,18) (1,100,25) (2,7,15) (4,103,24) I would like to visualize this ...
4
votes
2answers
985 views

Drawing conic projection with TikZ

I struggle with drawing a sphere that has a cone set on top of it. What I'm trying to get is something like this: The left cone touches the sphere on one latitude and the right one intersects the ...
4
votes
2answers
146 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 ...
4
votes
1answer
1k views

PDF file containing 3D object is not included correctly with \includegraphics

I have a PDF file, containing a 3D object in PRC format. I try to include this into a LaTeX document to be compiled with pdflatex, with the simple source below: \documentclass{minimal} ...
4
votes
2answers
171 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} ...
4
votes
1answer
90 views

Correct clipping of 3D tikz for adjustbox?

Consider the following MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} ...
4
votes
2answers
467 views

Drawing a central composite design

Please I would like to draw a central composite design using PSTricks, or possibly tikz. This is the cube with the axes showed below. I have tried pst-3d but this is not easy. If you had an example of ...
4
votes
2answers
99 views

\pgftransformtriangle problem

Why the red square and circle are not set and oriented on the blue points ? \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \def\Azi{30}%30 \def\Alt{20}%20 ...
4
votes
1answer
371 views

Controlling visibility of 3D axes in \addplot3

In trying to use \addplot3 to draw a paraboloid, the domain of which is [-4, 4] for both x and y, originally, the z-axis was sitting behind the surface. I discovered axis on top, but can you get the ...
4
votes
1answer
793 views

How to remove coordinates in a 3d plot using pgfplots

I would like to know how to remove coordinates in an addplot3 surf plot. Here is a simplified example: \begin{tikzpicture} \begin{axis}[clip=false,view={45}{45},grid=major] ...
4
votes
1answer
490 views

Relative positioning in 3D

I am trying to position a node in 3D according to the (x, y) coordinates of a node previously defined on another z level. However, I can't figure out how to make it work: \documentclass{article} ...
4
votes
1answer
78 views

parametric plot 3D, helix and astroidal sphere

Can somebody help me and write code for this 2 picture in WinEdt (latex) (this is from Mathematica, I write in Mathematica, but I don't know write this code in WinEdt). I tried with ...
4
votes
1answer
80 views

3d plot of a surface with nonrectangular domain

I need to make a 3D plot of a step function For example, suppose that I want to plot the function f:[0,1]x[0,1]->[0,1] given by: f(x,y) = 1 if x < y^2 and f(x,y) = 0 otherwise I would like to ...
4
votes
1answer
466 views

Plotting 3D graphs in specified axial direction in tikz

I am a complete tikz noob and just taking snippets of examples to draw my first diagram. To get my head around orientations I am starting with the polarizing microscope example ...
4
votes
1answer
193 views

Surfaces rendered using Asymptote won't layer correctly

Question I recently asked a question here: How to plot a lattice of points on the surface of a torus? Where I have two answers, but both render incorrectly on my machine. They are supposed to look ...
4
votes
1answer
125 views

Asymptote takes too long to render images

I need to include several 3d graphics in a LaTeX document, and decided to use asymptote. However, it seems that rendering takes too long. A document with 20 images takes more than 15 minutes to finish ...
4
votes
1answer
813 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 ...
4
votes
1answer
140 views

Opacity for pst-3dplot object

How can the opacity of a pst-3dplot object be set to be transparent? I have an example where using opacity or strokeopacity options do not work. I am trying to make an image similar to the following: ...
4
votes
1answer
210 views

Controlling Orientation in 3D PGF Plots

Question Why does x-axis pointing right and y-axis pointing into the page appear to be the default? When I found the page in the following link, the answer coincidentally presented the axes exactly ...
4
votes
1answer
286 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 ...
4
votes
1answer
358 views

Scale Axis in PGFPlots without changing orientation

I'm trying to plot a data matrix using pgfplots and a surface plot. The method described in this question worked well for me: Using pgfplots, how do I arrange my data matrix for a surface plot so ...
4
votes
1answer
551 views

Naming 3D axes in pgfplots

I want to label the axes in a 3D plot with pgfplots. Using the anchors .right of origin and .above origin, I can label the axes as "x" and "y" in 2D with ease. In 3D, the labels must be tweaked to ...
4
votes
1answer
231 views

Axis label placement in 3d plot far out but why?

I want to plot a dataset in a 3D pgfplots graph. It looks like a good start but somehow the label placement is far out. Boiling it down to a MWE did not give me any hints how to get the labels back in ...
4
votes
1answer
1k views

Easy way to do several line styles on one path using TikZ?

I'm drawing a lot of 3D pictures for school using 3D-plot for TikZ. I like it when the lines that are inside or behind an object, eg. the ones that shouldn't be visible to be thinner than the lines ...
4
votes
1answer
355 views

Pgfplots: How to fill area under a curve in a 3d plot similar to \closedcycle in 2d

How can I fill the area under a curve in a 3d plot, similar to the \closedcycle command in ordinary 2d plots? Applying this command does a filling which is not rotated. Minimal working example: ...
4
votes
1answer
118 views

How to do a surface with pstricks using data from a surveying?

For each point of the grid a have the coordinates (X,Y) and height (Z), like: X 1 2 3 1 2 3 1 2 3 Y 1 1 1 2 2 2 3 3 3 Z 2 1 0 4 5 1 8 4 3
4
votes
1answer
597 views

How to rotate around arbitrary axis in XYZ coordinate system

I am drawing the cartesian coordinate system in XYZ coordinate system and would like to illustrate a point in the 3d space by drawing the projections on each plane. A simple version would be as ...
4
votes
1answer
110 views

Setting camera view within Sketch

I'm using sketch to generate 3D tikz graphics, but the sketch documentation is not helpful. For example, here is some sketch code: def v1 ( 0.000, 0.000, 1.000 ) def v2 ( 0.894, 0.000, 0.447 ...
4
votes
1answer
210 views

Make lines disappear, pst-solides3D

I'm drawing the following cylinder which represents a water flowing and cooling down \documentclass[a4paper,10pt]{article} \usepackage{pstricks} \usepackage{auto-pst-pdf} \usepackage{pst-solides3d} ...
4
votes
1answer
351 views

PGFPLOTS 3d box line for Z axis not being drawn

The vertical 3d box line for Z axis is not being drawn. If I make the grid lines dashed, the line is drawn, but also appears dashed, as the grid lines. To me, it looks that the line is in fact drawn, ...
4
votes
0answers
361 views

3d arrows in tikz, or arrows that fit perspective

I'm trying to draw a 3d arrow in a 3d box (well lots of them actually). I've got the 3d box sorted, but the arrow doesn't look quite right. I've set up my axes/projection with: ...
4
votes
0answers
186 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
4
votes
0answers
170 views

Is it possible to create red/blue 3d color in LaTeX?

Is it possible to create a red/blue 3d effect in LaTeX using a preexisting package? If not, would anybody have any insight into how to go about this? I am planning to make a beamer presentation on 3d ...
4
votes
0answers
509 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} ...