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

learn more… | top users | synonyms (1)

6
votes
1answer
1k views

Construct a simple mesh or tetrahedral mesh from 3D image surface

I have a 3D Y-Shape hollow tube, not so good surface. Import["http://dl.dropbox.com/u/68983831/tube02.vtk", "Graphics3D"] I tried to use following vertex data ...
5
votes
2answers
297 views

Is it possible to assign different colors to parts of an .obj file?

There are four different cubes in an .obj file. After loaded into Mathematica, is it possible to assign four random colors to the cubes? ...
5
votes
1answer
554 views
3
votes
2answers
454 views

How do I display the plane of best fit in 3D?

I'm trying to display the plane of best fit in the same 3D-box. Currently, I have the following code which spits out a plot of the points in 3D. I want to have a plane of best fit, can Mathematica do ...
13
votes
3answers
797 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. ...
11
votes
2answers
279 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
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: ...
9
votes
3answers
455 views

Changing the atom color for plotting xyz-files

Mathematica takes the standard color code for atoms when plotting an *.xyz file, but I want to customize the color for the specific atoms. I really become desperate as I did not get it so far. ...
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 ...
8
votes
3answers
698 views

How can I find the vertexes of a Polygon?

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

How to draw a dodecahedron with each face modified to a pentagram?

I'd like to draw a dodecahedron with each face carved on the sides so it becomes a pentagram. I wonder how to start to do this kind of task in the Wolfram Language? Edit: The result should still be ...
7
votes
3answers
3k 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$ ...
6
votes
3answers
384 views

How can i construct a 3D surface pass through a curve defined by formula and some other controllable points?

For example, If a have a curve defined by x^2+y^2=1 and z=0, and some isolated points having z coordinates, Can I construct a 3D surface passed through? It's better if I can change the surface shape ...
5
votes
1answer
327 views

Embedding StreamPlot in Graphics3D

I am trying to visualise the action of the infinitesimal generator of a Lie group on the solution of a 2-ODE system drawn in the 3D space (t,y1,y2): t is time and y1,y2 are the two dependent ...
5
votes
2answers
1k views

What is the default ColorFunction for 3D plots?

This should be a really simple question, but it isn't in the documentation for some perverse reason. I like the default ColorFunction that Mathematica uses for ...
12
votes
2answers
1k 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 ...
5
votes
2answers
684 views

Extrude 2D cross-section to 3D shape with shrinkfactor

I would like to create a 3D shape from extrusion and scaling of a 2D contour. The 2D contour that I have looks like this: and it consists of a bunch of points (here plotted with ...
5
votes
2answers
559 views

10bits per rgb / 1024 shades of gray?

Can we display 10 bits per rgb in Mathematica? I'm using a quadro card and 30 bit monitor and can get a smooth gradient using Psychtoolbox in matlab. The following Mathematica should produce a bar ...
4
votes
3answers
179 views

Am I missing the point of ViewCenter?

Based on this description of 3D graphics and the associated Wolfram Training video, I anticipated that using the mouse to rotate the graphic below would rotate around the point where the three ...
0
votes
0answers
89 views

Selecting morphological components of a 3D image

This is a follow up of a previous question : Selecting morphological components by clicking on them? I followed the answer provided by Dr. belisarius. It works fine for 2D images. However, I can't ...
4
votes
2answers
391 views

How to rotate 3D graphics in ListAnimate … without making a mess?

Manipulate is, of course, wonderful … but there are LOTS of examples that are simply far too computationally intensive to use live real-time animations for. In such ...
4
votes
1answer
329 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: ...
3
votes
2answers
157 views

ParametricPlot3D colorfunction for a specific region of an object

I have created a 3D parametric plot of an oblate spheroid, and I want to apply "TemperatureMap" as a colorfunction to its surface as a gradient in the Z direction. However, I only want to apply this ...
3
votes
1answer
106 views

Change position and orientation of 3D object

I was trying to understand how 3D objects work in Mathematica, but I run into a problem I am not able to solve by myself. I have the following 3D plot: ...
3
votes
0answers
53 views
3
votes
1answer
294 views

How can I make a pretzel shape using Bézier curves?

I am trying to make a pretzel shape,but I cannot seem to get the loops even. Eventually, I need to make the pretzel shape loop in 3D so I need to nail the 2D concept first. Here's what I have so ...
2
votes
2answers
2k views

Plot3D region bounded by equations?

I have four equations, $$ z = xy \\ z=0 \\ y=x^2 \\ x=y^2$$ I would like to integrate the region bounded by them. Before this, I would like to plot the region they bound, but I cannot seem to find ...
1
vote
1answer
95 views

Generate $n$ randomly oriented non-intersecting cylinders with fixed radius and length

This post is in reference to the previous question here. How could I adapt the solution given to have the following constraints: fixed radius, fixed length, number of cylinders, and within a ...
1
vote
1answer
324 views

Create hexagonal mesh on 3D Parametric Plot and 3D spheres?

I am looking to put a cool geometric mesh on this object. I came across this question that explained how to put a hexagonal mesh on a parametric equation but I have a series of geometric objects of ...
1
vote
1answer
183 views

How to combine manipulate and eventhandler

I combine manipulate and eventhandler, now I can change the controller when working on eventhandler, but how to change the value in eventhandler when I control the manipulate controller? ...
1
vote
1answer
313 views

Combining solar system planets orbits and positions in Graphics3D and Show

I am building an animated model of the solar system, where I would like to display the OrbitPaths of the planets along with their ...
1
vote
0answers
135 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 ...
0
votes
1answer
128 views

How to draw cylinders inside a cylinder

It can be considered as a sequel to 98724 I adopt the code of ybeltukov (thanks again) and I slightly modify it. ...
0
votes
1answer
183 views

Arbitrary Oriented and Translated Ellipsoid (Euler Angles)

EDIT! This is a recent post updated and with better wording. The title has also changed. Any attempts to find something relevant have failed so far. The closest is this Ellipsoid. First some ...
16
votes
3answers
937 views

3D view of a route shown on a map

You should have already seen such a thing, specially in documentaries about ancient life: the movement of a tribe is shown on an ancient map along a route with a dashed arrow. I want to do the same ...
20
votes
5answers
725 views

Plot a partition of the sphere given vertices of polygons

I saw in this question that Mathematica can draw spherical triangles. I guess something similar can be done to plot a spherical polygon. I am interested in something similar: I have a set of ...
22
votes
3answers
1k views

How to make a 3D topographic globe?

I've made some attempt with this dataset of elevation. But I have some trouble with ListSurfacePlot3D, which can not show the globe correctly: And I've checked that the data is out of problem, ...
18
votes
3answers
2k views

Using Inset[..] to overlay a Graphics3D with its raster version

Preamble First let me explain the why. You can skip this and go directly to the question if want to answer it right away. We had more than one discussion about how to produce nice looking 3d plots ...
16
votes
1answer
353 views

Creating a cloud of blocks that form I ♥ U in different viewpoints

This picture shown bellow has three shapes with different view angle (I ♥ U). How to do this type of model? A few tries: ...
15
votes
1answer
718 views

Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these ...
13
votes
2answers
530 views

Advanced graphics with Mathematica

Ten years ago I bought a book by Tom Wickham-Jones, Mathematica Graphics: Techniques and Applications. I read parts of it but then I forgot its existance. In recent years I read the nice book of ...
22
votes
4answers
1k views

How to make a blob in 3D?

I am trying to make a blob like the one shown below, but in 3D so I can rotate it. I'm trying to use ParametricPlot3D or ...
20
votes
2answers
734 views

How to get shadows in Graphics3D?

It was a shock to me when I found that in Graphics3D a surface is always transparent to the light sources: ...
16
votes
1answer
999 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: ...
22
votes
3answers
2k views

RegionPlot3D in cylindrical or spherical coordinates?

RegionPlot3D is awesome. Unfortunately, it appears to work only for Cartesian coordinates. While there are ways to draw surfaces in spherical or cylindrical coordinates, I can't find a way to draw ...
12
votes
2answers
1k views

OpenSCAD like functionality with Mathematica?

I keep seeing reference to use of Mathematica as a CAD tool (for instance, this). I'd like to use it as such if feasible, but I'm having trouble locating equivalents of the functionality I use in my ...
10
votes
1answer
543 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 ...
8
votes
1answer
760 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 ...
14
votes
6answers
726 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 ...
12
votes
1answer
2k 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 ...