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

learn more… | top users | synonyms (1)

11
votes
2answers
1k views

Morphing a “sheet of paper” into a torus

How can I visualize the standard topological "rubber-sheet" construction of a torus, that is, morphing a square into a torus? How can I start or are there any examples in the Mathematica ...
11
votes
4answers
843 views

Is there a way to increase the smoothness of a cylinder?

I am using Cylinder to produce wide flat disks (in Mathematica 8). This works just fine except that the circular base of such a cylinder turns out to be really just ...
11
votes
3answers
1k 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: ...
11
votes
5answers
872 views

Randomly assigning color to Graphics3D objects?

I have a set of Graphics3D primitives (here, spheres) which I would like to assign either: One of a subset of colors, e.g. {Green, Red} A random color over some RGB interval Writing something ...
11
votes
6answers
802 views

How do I draw a polygon defined by a list of data points?

I am attempting to make a 3D model of a device defined by a list of {x,y,z} points, digitized from a 2D image. The z coordinate is defined in mma. What I tried so far: ...
11
votes
2answers
451 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 ...
11
votes
4answers
522 views

Is there a Graphics primitive for a cone without a base?

Is there an easy way to get a graphics primitive for a cone without a base without using RevolutionPlot3D? I'm trying to create an "manipulable" animation of the ...
11
votes
2answers
594 views

Map of United States as a 3D histogram

By combining the state data from here and the extrusion code from here I have managed to make prisms of the various US states such as However, the extrusion method looses information about the ...
11
votes
2answers
543 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 ...
11
votes
2answers
1k 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 ...
11
votes
2answers
278 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
3answers
2k 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, ...
11
votes
1answer
129 views

How to make a two letter monogram in 3d like the one on www.mymo.is? [duplicate]

I want to achieve the same effect like the project on http://www.mymo.is/. By taking two letters and combine them in 3d, you can get a complex shape that looks like one letter on the one side and the ...
10
votes
7answers
4k views

How to draw a Circle in 3D on a sphere [duplicate]

The Circle function is strictly a 2D Graphics object, so that we cannot directly combine a ...
10
votes
6answers
4k 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 ...
10
votes
3answers
331 views

Excluding a Region in ParametricPlot3D

Suppose I have a torus and a closed path on said torus: ...
10
votes
3answers
1k views

Make the moon's 3D gif

How do I make the following gif I tried: ...
10
votes
4answers
2k 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: ...
10
votes
2answers
436 views

How to plot a distribution of planes

How can one plot in Mathematica a distribution of planes in $\mathbb R^3$? For some point $p=(x,y,t)\in\mathbb R^3$, I want to attach a plane spanned by $X(p)=\left(1,0,\frac{1}{2}y\right)$ and by ...
10
votes
2answers
999 views

How to create these famous surfaces in topology with the desired color effects?

It was said such real objects of famous topological surfaces were plotted by the cooperation between mathematician Richard Palais and artist Luc Benard, and published as the cover page of Science ...
10
votes
4answers
812 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
2answers
398 views

create an (almost) hexagonal mesh on an ellipsoid

EDIT I edited the question in order to take into @Kuba's comment. I want to create this figure with Mathematica (in particular an almost hexagonal mesh on an ellipsoid; thanks to @Kuba I know this ...
10
votes
1answer
616 views

Moving polygon on path curve to create 3D shape

How can I move some polygon list = {{0, 0}, {0, 15}, {7, 13}, {2, 13}, {2, 5}, {5, 5}, {5, 3}, {2,3}, {2, 0}}; Graphics[{Black, Polygon[list]}] so it follow some ...
10
votes
1answer
815 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
2answers
775 views

How can I access the internal function that plots a molecule from a formatted XYZ file?

Mathematica has the ability to plot a molecule using the data contained in an XYZ file. This is a simple text file, of which this is an example. The molecule is plotted using the ...
10
votes
1answer
383 views

Compose many Geometric Transformations for 3D Graphics

I'm struggling to understand what would be a good way to compose several geometrical transformations to create a single TransformationFunction to be applied to a ...
10
votes
1answer
821 views

Graphics3D from Mathematica to SolidWorks (for 3D-printing)

I have an 3D Graphic generated with Mathematica's Graphics3D, and want to use it later in SolidWorks. SolidWorks files are usually *.stp, *.step, *.stl extentions. google search hasn't given me a ...
10
votes
1answer
499 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 ...
10
votes
1answer
139 views
10
votes
2answers
234 views

How to have one or multiple Boxed graphics, mixed with non Boxed, in the same Graphics3D

In the following example, I would like to Boxed only the RegionPlot3D, and not the Sphere. ...
10
votes
1answer
2k 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: ...
10
votes
1answer
525 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 ...
10
votes
2answers
291 views

How can I decide whether a closed surface is intersected by a triangle?

A closed surface consisted of Polygons or GraphicsComplex and a triangle made by 3 points are in a 3D space. How can I decide ...
10
votes
2answers
283 views

How can I make sure that 3D plots have the exact same orientation and viewpoint?

Edit - I made the example data much smaller, so it's not so much to download. I am trying to make animations of electronic orbitals, using functions like the ones listed here. In order to make an ...
10
votes
1answer
273 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
657 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
138 views

How to make Graphics3D with multiple lighting sources being rendered faster

I have a very "precise"(through setting "SpherePoints") Sphere illuminated by hundreds of random color lighting sources. The ...
9
votes
4answers
1k views

Triangular mesh of random points on a sphere

My employer with a new logo (shown below). I do not have information on how this was created (as it was done by an outside company), though I'm fairly sure it was not done in any formal mathematical ...
9
votes
5answers
2k views

How to render a 3D ellipsoid with Graphics3D?

With Graphics3D[Sphere[{0,0,0},1]] I can render a uniform 3D sphere, but how can I render an ellipsoid? I would need to specify the rotation of the ellipsoid and ...
9
votes
2answers
307 views

Attaching a legend to BallAndStick picture

I am looking for a way to add a legend showing the identity of various atoms (with different colours) to this picture. Any Clues? ...
9
votes
3answers
2k 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? ...
9
votes
4answers
720 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
3answers
496 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: ...
9
votes
3answers
1k 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 ...
9
votes
2answers
211 views

Make further objects blurry?

I have the following function: ...
9
votes
2answers
365 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
5k views

Axes Origin & Labels in 3D Plot

I'm looking for a way to have the axes at the origin in a 3D plot and to label the (x,y,z) axes in the usual way---with x near the end of the drawn portion of the x axis, y near the end of the drawn ...
9
votes
2answers
784 views

How to get UV mapping of 3D tube

Here is cylinder data: file We can mesh the surface, thanks to lalmei, Belisarius and Simon (link) How to achieve uv mapping from a 3d straight and curved tube? Working code: ...
9
votes
1answer
415 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 ...
9
votes
1answer
379 views

How to display MeshRegion without vertices

I'm writing a library for handling very large and complicated (boundary) mesh regions on the order of ~150,000 vertices, ~450,000 edges, and ~300,000 triangles. The regions themselves are the cortical ...