Questions tagged [graphics3d]

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

Filter by
Sorted by
Tagged with
4 votes
1 answer
88 views

How to import and render this OBJ file with correct texture?

Here's the output of a 3D scan of a bike, I need to render it in color with the texture file provided. Here are the files: ...
user avatar
  • 30.6k
0 votes
1 answer
55 views

Graphing and calculating the volume using mathematica (or other)

I posted the following in MSE: (See Here) Consider two cylinders Cs (solid) and Ch (hollow): Cylinder Cs has a radius rs, and has the points (x1,y1,z1) and (x2,y2,z2) as the centers of its bases. ...
user avatar
7 votes
0 answers
137 views
+100

How to reconstruct 3d meshes from 2d images of a scene?

The new ImageStitch was nice functionality added in v13, but is there anything available for constructing meshes (with color textures) from a bag of 2D images (...
user avatar
  • 30.6k
2 votes
2 answers
145 views

How to define the density of random 3D points and plot it?

The following code draws a random distribution of particles in 3D. The Manipulate box allows to change a few parameters (number of particles, size of clusters, ...). I would like to define the local ...
user avatar
  • 3,645
2 votes
1 answer
74 views

Axis Label 3D plot

I want to move the two horizontal axes closer to the axes keeping the same writing style (the label parallel to the axis), and also, the vertical axis should be parallel to the vertical label. Does ...
user avatar
1 vote
2 answers
123 views

How can I improve this code?

The code below is working well, but it's very slow in the Manipulate box. I know that the Do and AppendTo parts aren't very ...
user avatar
  • 3,645
3 votes
2 answers
220 views

Aligning two molecules in XYZ format, before v12.3

I have two molecules in "XYZ" format and I want to align them. As I am using Mathematica version 12.0, which does not have this ...
user avatar
1 vote
0 answers
43 views

Is there "absolute" point size for Graphics3D?

I would like to get points size that vary when the viewer is zooming in/out through the 3D graphic. The point size I want should be defined as "absolute", relative to the coordinates used ...
user avatar
  • 3,645
0 votes
2 answers
58 views

How to add random point size to this distribution of 3d points?

The code below creates a random distribution of points in 3D. Currently, the points have a random size, and the size is the same for all points. I need the points to get individually a random size, ...
user avatar
  • 3,645
4 votes
1 answer
163 views

How to get fuzzy points in a 3D view?

I would like to produce fuzzy random points (sprites like) in a 3D view. Applying a Blur command doesn't do the trick since the view is then frozen and we couldn't rotate the view anymore, and I don'...
user avatar
  • 3,645
1 vote
1 answer
121 views

How to introduce random correlations in a 3D uniform distribution of points?

I would like to build a simple visualization of the distribution of galaxies on a large scale model of the universe. Currently, my galaxies are represented as uniform random black dots in a 3D cube, ...
user avatar
  • 3,645
2 votes
1 answer
66 views

3D-graphing the $E_8$ root system/ $4_{21}$ polytope

I'm trying to recreate on Mathematica the 3D graphs $4_{21}$ polytope as seen here and here. My idea would be to obtain a 3D-graph so that I can then add some thickness to the edges and export it as a ...
user avatar
3 votes
2 answers
146 views

3D Plot - Color function depending of Z value (If statement?)

Consider the well-known peaks function : M1[x_, y_] := 3*(1 - x)^2*Exp[-x^2 - (y + 1)^2] - 10*(x/5 - x^3 - y^5)*Exp[-x^2 - y^2] - 1/3*Exp[-(x + 1)^2 - y^2] and a ...
user avatar
1 vote
1 answer
66 views

Distorted vertical arrows

I had this problem before, but can't find anything about it on the web. I will paste, what looks like a lot of code, but really it's not. On the top are just some parameters: lengths of arrows, their ...
user avatar
8 votes
4 answers
2k views

How can I draw a pyramid of spheres like this?

I want to draw this figure such that the height of the pyramid of spheres is h (this picture with h = 5. I only tried ...
user avatar
4 votes
1 answer
102 views

How to get to ComponentMeasurements[] from orthographic projection of a Graphics3D[] object?

Let's say I have some composite 3D graphics of various shapes. For simplicity, let's say these are just two capsules, like below: ...
user avatar
  • 1,563
4 votes
1 answer
103 views

Trouble plotting particle geodesic trajectory on wormhole embedding

I'm having tremendous trouble plotting geodesic trajectories on wormhole embedding. I'm attaching the article from which I am trying to re-create the trajectories (https://arxiv.org/pdf/1404.7210.pdf)....
user avatar
7 votes
3 answers
221 views

How can I smooth a CapsuleShape[] visualization?

Simple question I can't figure out. Is it possible to smooth the edge faces of a capsule, or is this inherent to the mesh underlying the capsule? This is just for visualization purposes, I don't ...
user avatar
  • 1,563
3 votes
1 answer
113 views

Contour lines on a torus not joining up

I have created a set of contour lines on a torus, but am unable to make some of them join up, even when increasing the number of points dramatically. Is there a sensible way to do this? ...
user avatar
3 votes
1 answer
72 views

Keeping mesh coordinates unchanged for Implict Region [duplicate]

I am trying to generate a 3D mesh for Finite Element simulations. I need to provide some precomputed inputs to the mesh points and will like my mesh to be the same for a given shape. However, ...
user avatar
  • 75
2 votes
1 answer
62 views

Cannot DiscretizeGraphics[] Parallelepiped nor Hexahedron

...
user avatar
  • 23
0 votes
0 answers
56 views

How to fix "Coordinate{\$CellContext`x1, \$CellContext`y1, \$CellContext`z1} should be a triple of numbers, or a Scaled form

I have a program which should show the motion of N particles in an electric field as a function of time and position within the field. I am running into the aforementioned error (listed in title) when ...
user avatar
  • 353
7 votes
2 answers
456 views

2D Polygon in 3D

What is the easiest way to implement a polygon in a Graphics3D? I want to take a regular polygon, the hexagon for example, and be able to easily rotate it in 3D, as ...
user avatar
  • 4,358
4 votes
4 answers
290 views

Create a Manipulate of a nonlinear transformation of R3

The following Manipulate animates a nonlinear transformation of R2: (x,y)->(x+Cos[y],y+Cos[x]) ...
user avatar
  • 4,701
11 votes
1 answer
140 views

protein visualization: display a residue in balls and sticks over the structure

I am trying to visualize a cytochrome c protein and display one of the residues in ball and sticks over it. I am using the PDB file 1AKK for it (https://www.rcsb.org/structure/1akk). The Import ...
user avatar
  • 133
1 vote
0 answers
33 views

Associate colors with points in ListPointPlot3D?

This doesn't work. Should I use slot? ...
user avatar
  • 583
2 votes
1 answer
35 views

Plot a region between two curves that is below another in $R^3$

I am trying to obtain a 3D plot of $z=x^2+2y^2$ that is bound by the region in the $z=0$ plane governed by the equations $y=x$ and $y=x^2$. Is it possible to do this with ...
user avatar
  • 33
3 votes
2 answers
174 views

Remove the white space bounding a 3D plot

The following simple 3D plot always bears a rather wide empty space surrounding the sphere. I only need the sphere and vectors without box or axes. How to remove/control the empty space? A few padding ...
user avatar
  • 4,226
0 votes
0 answers
43 views

3D Cylinder with uniform distribution in volume

I would like to draw a figure in 3D where I have a cylinder (or ellipsoid) and some spheres in volume with fixed distenced between. I understand how to build a cylinder or Random spheres in cube, but ...
user avatar
  • 1
3 votes
1 answer
132 views

Plot planes of 3D vectors without severe scale distortion

I need to visualize a few planes/slices of a 3D vector field. The first plot with only one slice is fine. Now I want to plot three slices of vectors together. And I need to separate the three planes ...
user avatar
  • 4,226
2 votes
4 answers
249 views

Plot3D in Mathematica a function

How I plot the attached function $G(t,s)=s(t-1)$ for $0\leq s\leq t\leq1$ and $G(t,s)=t(s-1)$ for $0\leq t\leq s\leq1$(In Picature in Mathematica and How I change the color from yellow). I have tried ...
user avatar
4 votes
3 answers
177 views

How to build an inscribed circle in a triangle on a sphere?

I want to build an inscribed circle into a triangle on a sphere. To do this, I first build its center - the intersection point of the bisectors. But there were problems with finding it. I build the ...
user avatar
  • 41
1 vote
1 answer
56 views

Adding timeline to ListAnimate

I want to add time in the ListAnimate so that after I exporting the video I can see the graph changes by time. For example I have a graph that is changes by time, ...
user avatar
0 votes
1 answer
80 views

How to plot 3D spherical graph using x y data?

I have a problem in which the temperature is given at different radius for spherical ball. The temperature does not vary in theta and phi direction. The 2D representation is shown below: The radius ...
user avatar
  • 3
1 vote
1 answer
70 views

How to fix vertexnormals to eliminate a little shadow on the sphere?

I am using the method here to draw a sphere, if VertexNormals is set, there will be a little shadow on the top of the ball. I'm not familiar with VertexNormals' ...
user avatar
  • 5,102
5 votes
2 answers
126 views

Lighting a ListPlot3D with a Texture

I want to apply Lighting to some ListPlot3Ds with Texture applied, but it's not taking as it ...
user avatar
  • 18k
10 votes
2 answers
830 views

How can I generate a Swiss-Cheese type region and render it transparent?

I am trying to visualize a percolation model that is equivalent to a swiss-cheese where the holes are conducting. At some point, the size of the holes gets large enough for them to touch and a ...
user avatar
  • 101
0 votes
0 answers
60 views

How to Bring the XY Contour Plot Inside a ListPointPlot3D

The code below nicely takes 10000 pairs of {x,y,z} coordinates generated by a system of recurrence equations and plots them as ListPlot3D and ListPointPlot3D. I would like to incorporate the xy ...
user avatar
  • 1,061
2 votes
1 answer
121 views

Truncated pyramid in Mathematica

Consider a truncated pyramid bounded by two rectangles: Rectangle[{-100, -125}, {100, 125}] Rectangle[{-200, -250}, {200, 250}] The first rectangle is located at z ...
user avatar
  • 4,038
5 votes
3 answers
582 views

How to make a gif of a rotating 3D graph?

I can make a ListAnimation of a rotating Graphics3D object using the following: ...
user avatar
4 votes
2 answers
114 views

Strange behaviour in GeometricTransformation

Bug introduced in 13.0 I came across the following strange behaviour with the GeometricTransformation function. ...
user avatar
  • 3,606
0 votes
1 answer
54 views

How can I outline my figures?

I am currently producing some figures, all using the same colours. This, however makes them impossible to distingis from one another. This is my code ...
user avatar
0 votes
1 answer
32 views

How to import a file with 3 columns of numerical data and visualize it with ListPointPlot3D? [closed]

The file is plain ascii. e.g. 100 rows, each row like "1.23 2.34 3.45". I'm a complete novice with Mathematica, I assume this will be trivial.
user avatar
7 votes
5 answers
492 views

How to graph a solid common to multiple functions

I want to be able to graph the solid that is contained by two functions. I am graphing x^2+z^2=400 and y^2+z^2=400 and this the code I used and the graph I got: ...
user avatar
  • 115
4 votes
0 answers
84 views

Label Arbitrary Edges as Axes for 3D Graphics

In any 3D plot in Mathematica, there are 12 edges that, theoretically, can be labeled as axes. We can use AxesEdge to label some combinations, but not any ...
user avatar
5 votes
1 answer
72 views

StreamPlot4d: How to visualize some two dimensional StreamPlot type projection for a four dimensional system

This question has essentially been asked before How to plot the phase portrait for $4\times 4$ ODE system? Another good description is at https://math.stackexchange.com/questions/1379460/plotting-a-...
user avatar
  • 1,110
1 vote
1 answer
65 views

Making animation with mathematica for sphere [closed]

How to make animation in mathematica for 3D sphere which randomly its radius increase and decreases? Thanks
user avatar
  • 325
0 votes
1 answer
72 views

Plotting a cylinder using ListPlot3d

I have a table of dimensions {$\theta$,$z$}= {20,200} that I want to plot as a cylinder instead of a plane. The code I have is: ...
user avatar
  • 73
0 votes
0 answers
45 views

Preserving Automatic PlotMarker Styles in Plots

I am looking to preserve, or and least find out, the automatic color settings for PlotMarkers in plot-related functions. My problem can be observed by comparing the ...
user avatar
5 votes
1 answer
85 views

Understanding Conflict Between Data Wrappers, Graphics Directives, and Options for Plots

I have two related questions. First, I am trying to find out what ways I can change a single point in a plot using data wrappers that are not overwritten by other plot options (like ...
user avatar

1
2 3 4 5
40