For questions specific to the Graphics3D command and related 3D graphics functionality.
16
votes
2answers
974 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.
0
votes
1answer
82 views
Projection of a set of 4D points to the 3D space
Consider the following set of points in the 4D space:
...
2
votes
1answer
99 views
How to draw tiles with different height?
I have a random matrix RandomReal[{1, 2}, {20, 20}], whose elements represent the heights of an array of tiles. The cross sections of each tile are square and ...
3
votes
1answer
55 views
How can I use Manipulate[] to click on a Graphics3D output and generate $(x,y)$ outputs on a projection plane parallel to my screen?
Say I have some Graphics3D object that I'm looking at from a top down perspective, e.g.:
...
0
votes
0answers
21 views
How do I automatically “trim” the bounding box for a Graphics3D output? [duplicate]
I noticed that, provided some Graphics3D output scaled with ImageSize, I can get rid of a lot of the empty space around the graphic by right-clicking and then selecting "Trim Bounding Box". Thinking ...
6
votes
1answer
125 views
Does it make sense to ask for the color of a Graphics3D “voxel”?
Say I generate some Graphics3D object, e.g.:
Graphics3D[{Red, Sphere[{0, 0, 0}, 1], Blue, Sphere[{1, 0, 0}, 1]}]
Does it make sense to ask for the color of a ...
1
vote
0answers
45 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 ...
7
votes
2answers
82 views
How to show wireframes on imported Object / Mesh (.obj file)
I've managed to import a Wavefront (.obj) file and store it in a variable like so:
...
6
votes
6answers
328 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 ...
1
vote
1answer
120 views
No anti-aliasing on BarChart3D?
If I put AA code in BarChart3D, it won't works. Here is the code.
...
9
votes
2answers
163 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.
...
0
votes
1answer
53 views
Outputting a set of graphics 3D objects with positions defined by one array and colors by another? [duplicate]
I have a set of 2- or 3-space coordinates in an array, $(v_1,...,v_N)$, and an array of RGB color values (outputs from ImageValue[]) for each coordinate, $(c_1,...,c_N)$. How can I output a ...
1
vote
1answer
103 views
Exporting as .PDB extension
I am working with the 3-D coordinates of proteins. The file format I import and modify coordinates of is in the .PDB format, and the string to import is also in this same format. Currently, when I try ...
7
votes
3answers
242 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 ...
10
votes
2answers
330 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
3answers
180 views
Representing a Stencil of a Finite Difference Operator with Mathematica's Graphics3D
I have the following finite difference operator:
$$
Lu_{ijk}:=
du_{ijk} +c(u_{i-1,j,k} + u_{i+1,j,k} + u_{i,j-1,k} + u_{i,j+1,k} + u_{i,j,k-1} + u_{i,j,k+1})\\
-u_{i-1,j+1,k}-u_{i-1,j-1,k} - ...
2
votes
1answer
66 views
Find points on the surface of a Graphics3D object
If I have a Graphics3D object that was generated from manipulations to PolyhedronData rather than via an explicit equation, for example the Spikey
(for which the entire code can be found here The ...
4
votes
2answers
77 views
Efficient drawing of convex polyhedron given a set of points [duplicate]
I have a set of points in the 3D space and I want to draw the bounding convex polyhedron of those points. A very naïve solution would be to draw a triangle between every three points:
...
2
votes
2answers
71 views
Arrow pointing upwards in a Graphics3D
I am trying to write a code for an arrow that points upwards from the center of the circle in a Graphics3D.
...
-1
votes
1answer
46 views
How can a 3DBarChart be made to be fixed size and proportions?
I have a 3DBarChart that adds bar graphs as would be required by the dataset, but as it gets wider runs off the page and can not be printed. Is there a way to fix the height & width of the ...
5
votes
3answers
161 views
Combining Image3D and Graphics3D
I want to combine an Image3D and a Graphics3D using Show. Here is the code:
...
7
votes
3answers
224 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 ...
9
votes
4answers
370 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:
...
-1
votes
0answers
139 views
Visualizing the bitcoin code? [closed]
I'm a graphic designer from Switzerland and I'm blown away by some of the graphical results that Mathematica is able to produce. However I have no clue of mathematics or coding myself. But I'm asking ...
7
votes
2answers
228 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 ...
0
votes
0answers
83 views
Determining if a point is inside or outside a 3DS (.3ds) or 3DS MAX (.max) object?
Imagine I import some 3DS (i.e. 3D studio) file (http://reference.wolfram.com/mathematica/ref/format/3DS.html) or a 3DS MAX file. How could I place this model (say, the 747.3ds file in the ...
11
votes
3answers
323 views
How to plot a 3D surface with a simple black and white style?
Mathematica has great plotting capabilities. However, sometimes what is needed is a very basic black and white plot without textures, lighting, glow and other complex features. So, here is my ...
1
vote
2answers
102 views
Why doesn't Translate work with PolyhedronData? [closed]
I am trying to view dodecahedrons distributed around a space, but the above code fails. The expression
...
4
votes
4answers
172 views
How can I fill a curve in ParametricPlot3D?
I'd like to fill a curve in a ParametricPlot3D in the same way as I might with ListPointPlot3D; i.e.,
...
2
votes
1answer
99 views
Including two ListLinePlots in a 3D graphic
I have two lists of data which I am plotting on two ListLinePlots. I would like to have these two plots appear perpendicular to each other on a 3D graphic. I have ...
14
votes
4answers
526 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 ...
5
votes
1answer
258 views
How should a beginner figure out the context to use an expert answer provided on this forum?
J.M.'s answer to Extruding along a path related to custom cross-sections appears to answer a question I have been puzzling over for some time. I am interested in producing a tube with the stadium or ...
13
votes
4answers
833 views
How to draw a great circle on a sphere?
I apologize for the text description, but new users are not allowed to post images.
I want to draw a circle that cuts through the center of a sphere and has an inclination of 15 degrees with the ...
6
votes
2answers
260 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?
...
1
vote
2answers
154 views
Using Chemical Data to make molecule graphics
I would like to take the acetone and chloroform molecules that Mathematica's chemical data provides, and plot them together. I want to show how chloroform can hydrogen bond to acetone. Right now I ...
3
votes
2answers
213 views
Plot 2D Vector function in 3D
I want to plot a 2D vector function such as $F(x,y) = (a(x,y),\,b(x,y))$ in a 3D graph so that the vectors are embedded in the xy plane. I tried to do the following:
First I defined a piecewise ...
2
votes
1answer
68 views
3
votes
1answer
115 views
4
votes
1answer
82 views
OpenGl Z-Order Equivalent in Mathematica?
I am trying to draw the arrows in this picture on top of the two parallel plates. In OpenGL I would just set the 4th coordinate the z-order to be closer. Any ideas how to draw them on top in ...
-3
votes
1answer
109 views
How can you show data in a CDF Animate Graphic?
I want to show (dynamically) the curvature and torsion in a CDF to understand the quantitative measure of any points. Do you know what I have to do to show data in a ...
8
votes
1answer
141 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:
...
0
votes
1answer
125 views
How to rotate Graphics3D into CDF? [closed]
I make Graphics3D with Polygons, before deploying then to CDF; In my notebook, it rotates ...
24
votes
2answers
601 views
How to create blurred Graphics3D objects?
Initially I was interested in renderring a 3D analog of a blurred disk like this
...
5
votes
2answers
228 views
three-dimensional graphic objects that are not simple cuboids
I am trying to draw some graphics with Mathematica. The objects I want to draw are just a little bit more complex than a cuboid -- the difference being that the top and bottom faces are of different ...
16
votes
3answers
864 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 ...
2
votes
2answers
153 views
How to draw Graphics3D items with straight border lines?
I want to make a Polygon with straight border lines. For that purpose I wrote the following code, but it doesn't show straight borders.
...
8
votes
3answers
183 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 ...
1
vote
0answers
113 views
Plotting an array of data onto a sphere [duplicate]
See the link to plot at the bottom of this post, it is a function of the spherical coordinates theta and phi. It is generated by MatrixPlot of an Array of data. I would like to plot this onto a sphere ...
10
votes
0answers
204 views
How do I stop my joystick from rotating a 3D graphic?
I am trying to use Mathematica to illustrate mixed strategies in Game Theory. I want my students to be able to use common joysticks as controllers. What I find, however, is that in addition to doing ...
4
votes
4answers
151 views
How can I randomly color Graphics3D objects?
I have a set of Graphics3D primitives (here, spheres) which I would like to assign either:
(1) One of a subset of colors, e.g. {Green, Red}
(2) A random color over some RGB interval
Writing ...





