Questions tagged [graphics3d]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
51 views

Geometry3D objects as functions of parameters

I want to make a simulation of a rigid body with mathematica, but I want to use a Geometry3D object instead of a Graphics3D primitive. Mainly I don't know how to rotate the 3D model, I know how to do ...
60
votes
4answers
8k views

Create a torus with a hexagonal mesh for 3D-printing

I am new to Mathematica, and I'm looking for a way to create patterns on the surface of 3D objects. One thing I have not been able to do is to create a hexagonal mesh on a torus. What I would like to ...
2
votes
1answer
77 views

Difficulty Displaying an Untransformed and Transformed Graphics3D Object with Show

Update: This bug has been fixed The bug has been fixed and the code below is working in $Version=12.1.1 for Microsoft Windows (64-bit) (June 19, 2020). Original ...
-2
votes
2answers
112 views

How would I go about creating a tear drop shape of cubes in mathematica?

I am just practicing making some new designs with Mathematica and I thought of this recently. I want to make a tear drop shape (doesn't matter the orientation) constructed of mini cubes. I am ...
2
votes
0answers
36 views

How to get colors at points in Graphics3D?

To get the color at a 2D point in Graphics you can Rasterize it and look up the pixel value, but not for ...
0
votes
1answer
89 views

Create a Venn and/or related diagrams given the eight atoms of a three-set (A,B,C) 256-dimensional Boolean algebra

In my recent answer to How can one expand an arbitrary boolean combination into the $2^n$ atoms of the associated boolean algebra of size $2^{2^n}$?, for the eight atoms {G[0],G[1],G[2],G[3],G[4],G[...
0
votes
0answers
41 views

Intersection Region of two Conic Hull

I have the following semi-infinite conic hull, r1=ConicHullRegion[{{0,0,0}},{{-1,0,0},{0,-1,0},{1,0,1}}]; r2=ConicHullRegion[{{0,0,0}},{{-1,0,0},{0,-1,0},{0,1,1}}]; ...
2
votes
1answer
44 views

Rescale Graphics3D Based on Box Ratios

If I plot a sphere using Graphics3D with BoxRatios->1, then I get a nice looking plot: ...
5
votes
3answers
292 views

Ordered boundary loop of MeshRegion

I have a MeshRegion that defines a 2D surface embedded in 3D. Is there a function that returns all the boundaries of the mesh? More specifically, I need for each ...
6
votes
2answers
165 views

Converting a 2d surface into a 3d volume

I have a 2d surface shown in the image below using ListPlot3D[]: It is generated with one line of code: ...
0
votes
1answer
60 views

How can one get an edge/border on a sphere/point in 3D scatter plots

I want to get a point or the Sphere[] Graphics3D object to have a border or edge in a 3D scatter plot. The EdgeForm[] directives seem to apply only to polygon objects. The effect I am trying to get is ...
1
vote
2answers
71 views
7
votes
2answers
221 views

ListPlot3D weirdly distorts and loses plotting data

Bug introduced in 12.0 or earlier and persisting through 12.0. I was trying to plot a simple $n\times3$-sized $(x_i,y_i,z_i)$ matrix data with ListPlot3D, which is ...
2
votes
1answer
41 views

Should graphics directives and primitives form a 1-dimensional list or a 2-dimensional array?

Both of these inputs seem to give exactly the same output: ...
1
vote
1answer
58 views

Coloring Graphics3D as a Function of Spatial Coordinates

I would like to plot a Graphics3D object colored based on the value of some spatial function. For example to plot a triangle colored by the function ...
1
vote
0answers
45 views

Ridges on Breather surface

BreatherSurface is given in Mathematica code. Taking clue from this view or otherwise how to obtain table of $ (u,v,x,y,z) $ points and its plot of any one single ridge where the cusps have infinite ...
0
votes
0answers
41 views

Coloring of polyhedron faces [duplicate]

I just got a new MacOS laptop, and the following has changed. When I look at a polyhedron, it displays like this: However, when I touch it with the mouse to rotate, or save it to PDF, it looks like ...
2
votes
1answer
65 views

Cannot 3D print prisms and ellipsoids

I get errors if I try to Printout3D[ ] or Export[ ] to an .stl file an object containing ...
1
vote
2answers
68 views

How can I plot Sinc function and avoid their auto-replicas?

The problem is to plot the 3D Sinc function, but I cannot avoid the self-projection. I use the following code: ...
2
votes
3answers
85 views

3D plot of Intersection of sphere with plane (basic)

I should be able to get this from the answer here - but, with apologies, I'm afraid I can't figure it out. I have a sphere and a plane as follows: ...
5
votes
1answer
235 views

How to export a 3D tube model without any error?

I want to export a 3d tube model but I get two errors. I found that I won't get any error if I use a different model. So, how can I solve this problem in a simple way? Thanks. ...
6
votes
1answer
46 views

Ellipsoid in GraphicsComplex

I am trying to use Ellipsoid in a GraphicsComplex and I am stuck. My understanding of ...
3
votes
1answer
55 views

How can I look directly at the center of the TextureCoordinateFunction?

By manually adjusting the coefficients inside TextureCoordinateFunction I can get the numbers on each ball to sort of face the camera: ...
5
votes
1answer
211 views

Building large chemical models such as VANTAblack

I would like to build a (large) molecular model of the nanotubes that make up VANTAblack, which consists of a sheet of hexagonally connected carbon atoms all rolled into a (teeny) tube. I can easily ...
0
votes
1answer
164 views

Opacity or related issue with DensityPlot3D

I'm trying to make use of the function DensityPlot3D with the following specific example ...
0
votes
2answers
53 views

Exporting several prisms (or Polyhedrons) to stl (with filled inner space)

I want to export hundreds of prisms to stl. And for this stl file to be 3D printable, its inner space must be filled. I've tried two approaches to solve this problem. (just two prisms for a brief ...
0
votes
1answer
62 views

RegionIntersection fails with Lines in 3D

I have 2 intersecting Lines emerging from the same point and I want to fined the point of intersection. The function RegionIntersection found the origin point but failed to find the intersection. What ...
1
vote
1answer
118 views

Checking Membership in Boundary of Conical Hull

I want to check whether a given point is also a member of the edges of a given conical hull. For example, I have: ...
0
votes
2answers
43 views

Problem with scaling in ParametricPlot3D

I have an integral given by intS[zs,c] and I want to plot the expression functionS (which contains ...
2
votes
1answer
50 views

Coloring lines as a function of coordinates

I want to colorize lines as a function of coordinates in 3D. Here is my code. In this graphic I used one color. My aim is using a color function based on 3d coordinates. ...
3
votes
2answers
192 views

DensityPlot3D produces weird bubbles

I use DensityPlot3D to plot a 3D function with two minima R1,R2 (roughly the centers of the two blue regions). But as one can ...
10
votes
5answers
609 views

Camera view along the trajectory

I want to create an animation like this one: https://www.youtube.com/watch?v=rvzZmNW2_70 After googling I have found just below informations about this issue: https://twitter.com/bencbartlett/status/...
69
votes
3answers
6k views

An efficient circular arc primitive for Graphics3D

As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment (even in v10.0-v10.4, where ...
5
votes
1answer
106 views

Embed a rose flower image in 3D space with axes labeled in UTF8

I am trying to create an image in which a rose flower image in a 3D space with axes labeled in UTF8! Labels don't render correctly and not sure how to put the image at say the original of XYZ space. <...
1
vote
0answers
27 views

Constant size of graphics within an image (not image size)

I can not imagine, that this has not been asked before, but I can't find anything on this... It is a fast one anyway I guess. I am just looking for the command, which makes the difference in the ...
2
votes
2answers
55 views

Rotate and Show, strange error message

The following code works, but produces an error message that I do not understand. The message reads: "An improperly formatted option head (Rotate) was encountered while reading a Graphics3DBox. ...
0
votes
1answer
51 views

How to combine 2D SmoothDensityHistogram and 3D curve?

I am trying to combine 2D SmoothDensityHistogram and 3D curve. This is my histogram code ...
1
vote
1answer
41 views

Returning (not displaying) graphics from a Module

I want to create a Module which puts several parametric surfaces together as one object. For example, say I want to create a module which returns a cylinder that has a top, bottom, and cylindrical &...
2
votes
1answer
37 views

Common AxesLabel for a Grid of 3D plots

I have the following plots ...
3
votes
1answer
93 views

Graph3D - replace vertices with MoleculePlot3D

How can we replace the vertices in a 3-dim graph with individual Graphics3D objects? In my concrete case I want to visualize a chemical network and replace vertices ...
0
votes
1answer
49 views

How to plot a portion of a 3D surface [closed]

How can I restrict the PlotRange such that the gray patch (above z=1) is not in the following plot ...
0
votes
1answer
73 views

How to write graffiti, i.e., text on a polygon surface in Graphics3D?

Is there a relatively easy way to place Text[] on Polygon[] in Graphics3D? For example, I want my text to appear as if written on the light gray "wall" in the attached image, such that it ...
2
votes
1answer
131 views

How can I use AnatomyPlot3D with DICOM images?

I recently discovered beautiful things that can be achieved with AnatomyPlot3D. How can I apply this function to DICOM images from my local machine? Thanks in anticipation of your suggestions.
2
votes
0answers
49 views

White lines in Plot3D and exclusions in documentation

I am aware that this issue has come up before in a number of posts. However, my question is a little different and as far as I can see not answered previously. If I run the following code taken ...
9
votes
2answers
321 views

Lozenge tilings

I am trying to produce these lozenge tilings as a way of encoding plane partitions. I need to produce something like: but am using demonstration code like this: ...
0
votes
0answers
31 views

Dump Curvature Information for 3d Models

Is anyone aware of any utility to generate and dump Principal, Gaussian and Mean Curvatures for a 3D Model or a set of points? I have reserched following tools - meshlab cloudcompare They are able to ...
2
votes
1answer
59 views

How to label Graphics3D objects?

Suppose I have Graphics3D objects like Arrows that I'd like to label, such as ...
1
vote
1answer
139 views

How do I reflect changes to the intensity values in the 3D Shepp Logan data visualization?

I have been doing a self study on the 3D Logan Phantom developed by CG Koay and research group. A mathematica notebook from this group is available here. The codes present a 3D visualization of a ...
0
votes
0answers
54 views

Plot3D lighting issue [duplicate]

Plot3D is giving me very weird lighting. If I run the following line of code from the Plot3D documentation. ...
-1
votes
3answers
147 views

Revolution around the x-axis of solution to a nonlinear differential equation

I have the following differential equation: $$\pi\cdot\text{y}(x)^2=\sqrt{1+\text{y}'(x)^2}\tag1$$ With the initial condition $\text{y}(0)=1$. Now, I want to plot the solution in order to obtain the ...

1
2 3 4 5
34