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

learn more… | top users | synonyms (1)

11
votes
2answers
191 views

Boundary effect of Graphics3D object Tube[]

I draw a Graphics3D object of two tubes: Graphics3D[{Tube[{{-0.2, -1, 0}, {-0.2, 1, 0}}, 0.05], Tube[{{0, 0, -1}, {0, 0, 1}}, 0.05]}, Boxed -> False] And ...
11
votes
1answer
438 views

Animating moving surface of torus

I would like to try to recreate something similar to Paolo Čerić's torus animation: I have isolated the moving surface torus section form this Wolfram Demonstration by Kevin Sonnanburg: ...
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 ...
11
votes
1answer
312 views

Facegrids at ticks

I want to plot a 3D graphic and I want facegrids at the ticks that I specify. I've tried several solutions but I cannot get this working. The result with the code provided below is that it does its ...
11
votes
1answer
499 views

ListSurfacePlot3D generates ugly artifacts

I have a list of $\{x,y,z\}$ pairs representing points in $R^3$. For every unique value of $z$ there are many $\{x,y\}$ pairs defining a polygon/contour in that particular $z$-plane. My dataset looks ...
11
votes
2answers
2k 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) ...
11
votes
2answers
649 views

Why is ListDensityPlot unable to plot datasets with extreme ranges

Consider the following dataset: data = Flatten[ Table[{x 10^-9, y 10^-9, x^2 + y^2},{x, -100, 100, 10}, {y, -100,100, 10}] , 1]; If I try to ...
10
votes
4answers
709 views

How to draw a higher-genus surface

NB: By higher-genus surface, I mean a closed orientable surface of genus at least 2. This question has come up before on math.SE, and even MathOverflow, but most posters suggested using either ...
10
votes
3answers
357 views

Showing the empty space in a Graphics3D plot

I would like to be able to visualize the empty space in a Graphics3D plot. For example, if I plot hexagonally close packed spheres using something like: ...
10
votes
4answers
341 views

How to create Line Chart with real third coordinates?

I would like to generate something like 3D Line Chart in Excel. Like the following figure but including third coordinates. Example I have a set of 2D data combied with 1D spatial data. ...
10
votes
1answer
290 views

Poor performance from Graphics3D

I wrote a game -- 2048,Some codes are from http://blog.wolfram.com/. My codes are in notebook downloads I added code so that the game can play in 3D form, but when I play it, I find that it is too ...
10
votes
3answers
451 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. ...
10
votes
1answer
558 views

How do I generate the Mathematica Version 2 Spikey in Mathematica?

As we all know, Mathematica changes its logo design with every new version, while still maintaining the dodecahedral/icosahedral motif. I have been able, through much digging around, to finally ...
10
votes
1answer
233 views

Forming Cone with Tube fails to work in version 9.0.1

I use two different radii in a Tube expression to draw a cone. I know for a fact that this worked in Mathematica 8, but when I reevaluated my code in versio 9.0.1 ...
10
votes
1answer
392 views

How do I place a texture on an irregular 3D model?

I'm trying to reproduce a textured head in Mathematica, and I'm using a kind of 'net' of a head which contains all the features on the face. The texture looks like this: which is supposed to look ...
10
votes
0answers
441 views

Using TetGen in Mathematica to get 3D Voronoi diagram

In this post, the use of TetGen for 3D Voronoi tesselation has been briefly discussed. However there is still no info about the use of TetGen to generate a 3D Voronoi diagram. The TetGen documentation ...
9
votes
4answers
545 views

ParametricPlot3D output without the meshlines

Caveat: Mathematica version 3.0. if (or when) it matters. I define a 3D-object with ParametricPlot3D, say, the following: ...
9
votes
4answers
870 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: ...
9
votes
2answers
237 views

Is there a way to programmatically set global preferences?

Can I set global preferences that are accessible via "Edit"->"Preferences" programmatically from within a notebook? As learned from this question, turning off anti-aliasing can make a huge difference ...
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 ...
9
votes
2answers
337 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 ...
9
votes
2answers
271 views

Drawing Cylindrical Segment with Graphics3D

For a visualization I need a combination of 3 Cylindrical segments to visualize the incident, reflected and refracted beam of light at a surface. I got as far as the following code. ...
9
votes
2answers
732 views

Coloring each face of a Cuboid with a different color

Is there a way to color each face of a Cuboid with a different color? I looked in the help but couldn't find anything. I found this Coloring the faces of a 3D ...
9
votes
3answers
656 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 ...
9
votes
1answer
354 views

Outline around sphere

Is there an easy way to draw an outline around a sphere? Is there something like EdgeForm[] that will work? I'm looking for perhaps a thick red line; I'm making a ...
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: ...
9
votes
0answers
360 views

How to improve these WASD + mouse look 3D controls?

Insipred by this question and the corresponding answer I've written a code for full-screen exploration of 3D scenes using standard WASD and mouse look controls. Here it is. ...
8
votes
3answers
333 views

Generating a “flare” effect in Graphics3D?

I'm attempting to indicate that there is a point-source of light at some position in a Graphics3D-generated image. Is there any built-in tool to do this? My patch-work solution thus far has been to ...
8
votes
3answers
509 views

How do I remove a bounding box (i.e. set Boxed -> False) after rendering a 3D graphic?

I have an old notebook with an output from Graphics3D, however, I've lost the data behind the output and recomputing it would take days. I simply want to remove the bounding box Mathematica usually ...
8
votes
1answer
229 views

Add lines to 3D Plot

How can I add lines that demarcate the different regions of the following 3D plot: Plot3D[1/(1 + E^(-a - c)), {a, -8, 8}, {c, -8, 8}] To give you an idea of what ...
8
votes
1answer
215 views

FindClusters for 3D Pancake/Platelet Shapes

I'm looking to properly cluster a dataset of roughly 3 million data points in 3-space. The shapes form closely spaced "clusters" that resemble pancakes. Here is a downsampled dataset: ...
8
votes
2answers
510 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 ...
8
votes
1answer
224 views

How to convert Graphics3D object into an Image3D object?

How does one convert a Graphics3D object into an Image3D object? E.g., start with ...
7
votes
3answers
322 views

Speed up ContourPlot3D

I have two issues with the following code. (1) It executes too slowly. If I use "Speed" instead of "Quality" for PerformanceGoal, I get the speed but an undesirable delay in proper rendering of the ...
7
votes
3answers
397 views

How can I find the vertexes of a Polygon?

I made a polygon with the following vertexes : ...
7
votes
6answers
1k views

How do I draw a hemisphere?

I want to draw a solid or partially transparent hemisphere above a partially transparent cuboid object in Graphics3D. However, I do not know how to do this s.t. only half the sphere is drawn. Here's ...
7
votes
3answers
895 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? ...
7
votes
1answer
612 views

How to render a 3D tubular graphics from a 2D image path

Question: Is it possible to create a tubular 3D image like Extruding along a path using "Tube" function in mathematica for following images? Image (1) Image (2) Thanks I have been ...
7
votes
2answers
274 views

Is it possible to manipulate a graphics object with 3 rotation transforms simultaneously?

The code that I have written has an unintended consequence that I'm not sure how to get around. I want 3 rotation transforms to be applied simultaneously to 1 graphics object. Instead, I get 3 ...
7
votes
2answers
602 views

How can I mesh a solid cylinder with triangular or tetrahedral elements

I need to plot triangular mesh on a cylinder. However the function Cylinder doesn't have a mesh option. By using ...
7
votes
3answers
351 views

Thick polygons in Graphics3D [duplicate]

I have a polygon that I want to thicken with thickness h. How do I do this? FaceForm is evil and says: The directive ...
7
votes
3answers
393 views

Combining Image3D and Graphics3D

I want to combine an Image3D and a Graphics3D using Show. Here is the code: ...
7
votes
2answers
256 views

Draw an arbitrary convex polyhedron without excess diagonals drawn

I want to draw a set of convex polyhedrons whose vertices are defined by spherical coordinates on the surface of a unit sphere. Currently I followed the advice from here: ...
7
votes
1answer
771 views

How does one draw a parallelepiped in Mathematica?

I'm a bit new to the application, and I'm not sure how to draw a parallelepiped in Mathematica.
7
votes
1answer
362 views

Color linear interpolation of ParametricPlot3D

I am looking for any ideas about how to colorize an ellipsoid with a custom gradient style or by a Blend function. I would like to colorize ellipsoid as follows: ...
7
votes
3answers
1k views

How to make a tight crop of a 3d plot?

I like Mathematica, but it's syntax baffles me. I am trying to figure out how to minimize the whitespace around a graphic. For example, ...
7
votes
1answer
874 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, ...
7
votes
1answer
103 views

Explain the difference between ViewPoint and ViewVector?

I've read the documentation, but am still very unclear as to what the difference is between ViewVector and ViewPoint for ...
7
votes
1answer
533 views

How to map rotate, pan, zoom to manipulate controls

I am wondering if there is a way to restrict the motion of the rotate mouse cursor in when moving around a 3d plot. For example, I want the y direction of the cursor to correspond to pulling the z ...
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$ ...