For questions specific to the Graphics3D command and related 3D graphics functionality.

learn more… | top users | synonyms (1)

41
votes
4answers
4k views

How to make a 3D globe?

There are many ways to create a 3D Earth that is rotatable (see here, here, related here), but most of them have some drawbacks. These issues mainly stem from either ...
19
votes
3answers
963 views

“Covering up” text in Graphics

Consider the following code: ...
18
votes
4answers
1k views

Can 2D and 3D plots be combined so that the 2D plot is the bottom surface of the 3D plot boundary?

I have a ListlinePlot function, that I would like to combine with both a Graphics3D plot and a ...
42
votes
1answer
2k views

Implementing a first person view of 3D objects in a scene

I've created the following scene with a Chinese-style building surrounded by trees, and a horse and a rabbit grazing on the grass in Mathematica (don't ask me why there's a bust of Beethoven in ...
15
votes
3answers
550 views

How to get the real PlotRange using AbsoluteOptions?

The problem in general involves the unreliable behaviour of AbsoluteOptions when option values are implicitly specified (e.g. ...
6
votes
2answers
742 views

Convex hull of a 3D object?

I am trying to find a convex hull command for a Graphics3D object. Does it exist in Mathematica? ...
39
votes
2answers
2k views

How to show solid bodies using volumetric rendering?

Note: This question was asked when Mathematica 8 was latest release. Version 9 has built-in support for volume rendering through Image3D. There's an example on ...
17
votes
2answers
2k views

What are the possible ways of visualizing a 4D function in Mathematica?

I have a function $F$ that maps the xyz space to a set of reals, more clearly: $c = F[x,y,z]$ Where $c$,$x$,$y$ and $z$ are reals. What are the possible ways of visualizing this 3d function in ...
106
votes
1answer
21k views

Mathematica Minecraft

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
15
votes
4answers
917 views

Mathematica for teaching orthographic projection

Edit: All the four answers to this question are great, and if you're interested, you should take a look at all the answers. Nevertheless, belisarius' code was accepted since it was closest to what I ...
20
votes
3answers
1k views

How to extrude a 3D image from a binary 2D image

I'm trying to extrude a nice 3D form from the 2D binary image below using the code posted, but I haven't had any luck in figuring out the error that's keeping ...
20
votes
1answer
2k views

Autorotating 3D plots

These days, I have to produce quite a few 3D surface plots (mostly functions of the type $\rho(\theta,\phi)$ plotted with SphericalPlot3D). To exchange these ...
29
votes
2answers
849 views

How to create blurred Graphics3D objects?

Initially I was interested in renderring a 3D analog of a blurred disk like this ...
9
votes
2answers
304 views

Is there a way to interactively read a point from a Graphics3D?

Suppose I have a tesselation, e.g. the Stanford bunny: bunny = Import["http://graphics.stanford.edu/~mdfisher/Data/Meshes/bunny.obj", "OBJ"] I'd like to be ...
14
votes
5answers
2k views

How to draw an ellipse arc in 3D?

There is no Circle or Disk object in 3D. I quickly found a way to use Cylinder (thin lines, no faces, very flat): ...
11
votes
3answers
416 views

How to get rid of the perspective effect in a 3D graphics

I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect. I obtained the correct position figure ...
13
votes
2answers
952 views

Texture mapping and resizing a sphere primitive in Mathematica

Background Info In Mathematica, it's only possible to texture map a sphere through the use of SphericalPlot3D or ...
1
vote
1answer
415 views

Import Excel sheet into 3D array?

I have an excel spreadsheet that I would like to plot in a 3D graph using mathematica. The X and Y values are the location of the cell, and the Z value is the number of the scale. How can I import ...
25
votes
2answers
3k views

3D heatmap density plot

I have a set of data that looks like {{x1, y1, z1}, {x2, y2, z2}, ...} so it describes points in 3D space. I want to make a heatmap out of this data. So that points ...
54
votes
2answers
42k views

Cutting bagels into linked halves

I recently came across this video: Mathematically correct breakfast, which shows how a bagel can be neatly sliced into two identical linked halves. I'd like to try this with Mathematica. Here's a ...
31
votes
6answers
1k views

How to plot contours in the faces of a cube

I'm trying to plot contours of a function f[x,y,z] on the faces of a cube as the example below, which represents the domain of this function. Is there a way to do ...
9
votes
3answers
3k views

How to convert a 2D image into a 3D graphics?

I have an image I would like to make into a .dxf and to do this I need a Graphics3D object. Is there anyway I can do this? Can ...
16
votes
2answers
1k views

How to calculate volume of convex hull and volume of a 3D object

I have a random 3D data points. How to calculate volume of the convex hull and volume of the object.
11
votes
2answers
1k views

Graphics3D: Finding intersection of 3d objects and lines

I found these two nice links 1) intersecting graphics 2) Implementation of Balaban's Line intersection algorithm in Mathematica which works for 2d. However, I need to find whether a ray(line) ...
15
votes
4answers
737 views

Visualization of Bivariate Distributions

I know it is perfectly possible to show the bivariate probability distributions in MMA. But my question is can we show each dimension of distribution in 2D dimension while we are showing the 3D plot? ...
18
votes
3answers
1k views

How to make hollow polyhedra?

I found a version of the Mathematica spikey in 3D printable format (STL) at the Shapeways site that was hollow. Here it is when viewed in MeshLab: You can see there's a bit cut out of the end, and ...
13
votes
1answer
253 views

Method -> {“AxesInFront” -> False} for Graphics3D

I'm aware of two ways to manage positioning of Axes for Graphics3D: AxesOrigin and ...
9
votes
1answer
1k views

Construct 3D image from multiple 2D images

My goal: How to (1) construct 3D image for visualization. (2) how to write 3D array or image into binary raw file. Is there a way to accomplish this in Mathematica? Alternative_Answer for: ...
8
votes
3answers
555 views

Dashed mesh behind 3D object

I am trying to create a simple, almost transparent 3D sphere with a mesh that is made of solid lines if they are on the front surface (i.e. if they are directly visible) and of dashed lines if those ...
6
votes
2answers
348 views

Plotting All Possible Points Belonging to a Group Orbit

Given that $$X = \{(x,y,z) \in \mathbb{R}^3 |\, x^2 + y^2 + z^2 - 2(xy + xz + yz) = k\}\,,$$ where $k$ is a constant. Also given that a group $G$ is represented by $$\langle g_1,g_2,g_3|\, g_1^2 = ...
5
votes
1answer
354 views

Exporting a 3D plot into a 3D viewing format and axis scaling

I've been trying to export a Plot3D into an X3D (JVX, VRML) file using the Mathematica's Export function. The problem is that when the PlotRange is large compared to the other two dimensions the ...
11
votes
3answers
734 views

How can I visualize 6 square matrices as a cube?

I have six square matrices of the same dimensions in a list, for example: ...
10
votes
3answers
388 views

How to properly project a Graphics object consisting of line primitives

My problem starts from attempts at depicting overlapping lines of different thickness, i.e. ...
9
votes
4answers
774 views

Filling between two 3D surfaces

I know it is possible to create a filling in between two curves on a 2D plot, but is it possible to do the same in 3D? My attempt like this: ...
4
votes
1answer
388 views
4
votes
1answer
957 views

Rotating 3DPlot into animated gif

I'm trying to make an animated gif of a 3D plot by rotating the plot in its middle, around a vertical axis. I used the tricks gave by F'x and Heike in this thread autorotating 3D plot but I ...
7
votes
3answers
379 views

How can I find the vertexes of a Polygon?

I made a polygon with the following vertexes : ...
6
votes
3answers
2k views

Animate ParametricPlot3D for two different parametric equations

I want to write a computer program to generate 3-D plots (with x-y-t axes) to demonstrate the evolution of the two missiles in the following case: i. $x = 100t$, $y = 80t-16t^2$ for $0\leq t\leq 5$ ...
4
votes
1answer
197 views

Synchronizing manual rotations for multiple Graphics3D outputs?

Say I make a set of three Graphics3D images, here of three different cones, by evaluating: ...
7
votes
1answer
596 views

How do I flatten transparency on a graphics, for conversion to eps or similar?

I've got a graphic that I'd like to save as an eps file. Trouble is, the graphic has some transparency to it. Since the eps format doesn't handle transparency, I want to flatten the transparency out, ...
4
votes
1answer
225 views

How can I colorize an imported model?

How can I colorize an imported model from for example 3ds max? I'm trying to find the way to colorize a 3D plot from an imported model with something like this: ...
1
vote
0answers
89 views

Anti-aliasing won't work when there is PlotStyle command

I've found that if there is PlotStyle command in the input, anti-aliasing will not work. However if the Style code is ...
1
vote
3answers
916 views

How to plot a 3D list of points [closed]

I have 3 variables {Eff[i][j], i/15, j/100}. I need to plot them as a 3D figure, the height of the figure is Eff[i][j], which is ...
25
votes
2answers
755 views

Sketch-type graphics with transparency and dashed hidden lines?

I'd like to create transparent graphs like the following from P1095, Calculus 6th Ed, by James Stewart. Can Mathematica accomplish this? By "transparent," I mean the ability to see the interior, ...
21
votes
1answer
469 views

On drilling holes with minimal redundancy (and with colors!)

The old Mathematica package Graphics`Shapes` featured the function PerforatePolygons[], which drilled a hole in any ...
37
votes
2answers
1k views

My donut has holes in it!

More than one hole, I mean… I’m trying to export from Mathematica into the X3D format, with the longer term goal of generating 3D figures for PDF inclusion. But I'm stuck at the first step: ...
27
votes
3answers
856 views

Create a torus with a hexagonal mesh for 3D-printing

I am new to Mathematica, and I'm looking for a way to create patterns on the surface of 3D objects. One thing I have not been able to do is create a hexagonal mesh on a torus. What I would like to ...
8
votes
2answers
437 views

OpenSCAD like functionality with Mathematica?

I keep seeing reference to use of Mathematica as a CAD tool (for instance: http://www.makerbot.com/support/guides/design/). I'd like to use it as such if feasible, but I'm having trouble locating ...
13
votes
5answers
419 views

How can I suppress rotation of 3D graphics?

Given a 3D image built of a combination several Graphics3D objects, is it possible to suppress rotation of the displayed image by the mouse? To be specific, here ...
11
votes
1answer
1k views

3D plots with parallel projection

It is easy to make 3D Plots with Mathematica, e.g. use: Plot3D[Sin[x+y^2],{x,-3,3},{y,-2,2}] But I want to have nice plots in my thesis, so I decided to use ...