Skip to main content
23 votes
Accepted

Why in Mathematica 13 do imported PDFs have lower image quality?

TL;DR Has the default changed for some import option? From the investigation given below we see three important changes: By default FrontEnd of version 13.0.0 applies to the whole Notebook window a ...
Alexey Popkov's user avatar
14 votes

3D graphics rendering artifact with overlapping planes (z-fighting)

In at least this case, Method -> {"RelieveDPZFighting" -> True}, which is useful when you have nearly coplanar polygons in your plot, removes the observed ...
J. M.'s missing motivation's user avatar
14 votes
Accepted

Is it possible to re-mesh, downsample & upsample a DiscretizeRegion object?

Is it possible to re-mesh, downsample & upsample a DiscretizeRegion object? I believe the answer to all of those questions is yes, but just the body of the mesh and not the boundary – with a ...
C. E.'s user avatar
  • 70.8k
10 votes
Accepted

Can I trust area calculations over discrete MeshRegions? Flipped triangles, possible visual bug

Here is the correct way to do it: RegionPlot /@ {EM1, MR2} Plot3D[-Exp[x^2 + y^2], {x, y} \[Element] #] & /@ {EM1, MR2} What you are seeing has to do with ...
user21's user avatar
  • 40k
10 votes
Accepted

Grainy 2D RegionIntersection Plot: How can I make it smoother?

In addtion to Carl's answer, you can also force to rasterize the image with customized resolution. Takes longer but creates higher resolution bitmap images. ...
Henrik Schumacher's user avatar
10 votes

Mottled appearance of ContourPlot3D with transparency

A work-around: (1) Remove the ColorFunction option and (2.a) use ContourStyle to specify the contour styles using the desired ...
kglr's user avatar
  • 398k
9 votes

3D graphics rendering artifact with overlapping planes (z-fighting)

In v10.1 under Windows x64 I experience no "z-fighting" in this example when using the "BSPTree" rendering method. This method may be individually selected using <...
Mr.Wizard's user avatar
  • 272k
9 votes

Grainy 2D RegionIntersection Plot: How can I make it smoother?

You can use BoundaryDiscretizeRegion instead of DiscretizeRegion to avoid the mesh lines when using ...
Carl Woll's user avatar
  • 131k
9 votes
Accepted

Graphics3D rendering artifact (objects that should be obscured are partly visible through a triangle)

This behavior can be turned off through the Graphics3D method option "EdgeDepthOffset" -> False. Some details are ...
Greg Hurst's user avatar
  • 36.4k
8 votes

Overlapping graphic primitives

As the only workaround seems to be to turn it to a Polygon, here is a way. The idea is to merge the graphics objects and to extract its boundary coordinates using existing tools: Your rod can be ...
SquareOne's user avatar
  • 7,585
8 votes
Accepted

What is the cause of the weird output in the plot?

This seems to be a consequence of the adaptive plotting routines. On v. 12.0 (Win10-64) you can prevent that at the cost of the convenient adaptive features of Plot by preventing recursive adjustments ...
MarcoB's user avatar
  • 67.4k
8 votes
Accepted

Edges for the union (overlaped) of multiple 3d objects. Using EdgeForm and RegionUnion

Region`Mesh`MergeCells ...
cvgmt's user avatar
  • 77.2k
7 votes

Grainy 2D RegionIntersection Plot: How can I make it smoother?

...
chyanog's user avatar
  • 15.6k
7 votes

Edges for the union (overlaped) of multiple 3d objects. Using EdgeForm and RegionUnion

One way by using the RegionPlot3D after converting the polyhedron(RegionUnion[..]) to Region....
vindobona's user avatar
  • 4,961
6 votes
Accepted

3D graphics rendering artifact with overlapping planes (z-fighting)

This is not entirely the same, as it changes coloring and z-scaling, but perhaps something similar may be of help. Essentially, the zero values are lifted by a small increment, while the original z-...
Yves Klett's user avatar
  • 15.4k
6 votes

Overlapping graphic primitives

In practice, there isn't much you can do to stitch together multiple transparent graphics primitives with no artefacts. The better solution is to have a single object. Looking at the coordinates, ...
Szabolcs's user avatar
  • 236k
6 votes
Accepted

Overlapping graphic primitives

In versions 10.2+, you can use StadiumShape to get a single primitive that gives the same shape as your rod: ...
kglr's user avatar
  • 398k
6 votes

Graphics resolution issue

It's difficult to tell from your screenshots (which might have been scaled onto the website)...are you saying that there's no antialiasing, or different antialiasing? It is certainly true that the ...
John Fultz's user avatar
  • 12.6k
6 votes

Set pixel aspect ratio?

UPDATE In version 12.1 they implemented correct handling of the ImageResolution option for Image (but for ...
Alexey Popkov's user avatar
6 votes
Accepted

How can I generate the image without the diagonal line in an efficient way

What about skipping the ImageMultiply and apply the texture simultaneously to two polygons? ...
lericr's user avatar
  • 30.3k
6 votes
Accepted

Multiple opaque objects occlude lines when they shouldn't

I received the following response from Wolfram technical support, which solves the issue: "Thank you for this information, I have forwarded this question to our developers. They suggest two ...
user34722's user avatar
  • 291
6 votes

How to speed up this small 2D graphics code?

Based on @Syed: In 0.264381 seconds on a Mac laptop: ...
David G. Stork's user avatar
5 votes
Accepted

Why BoundingRegion does not work well?

Here is an answer to your first question: Using Norm[] you'll get Abs[]-terms in the functional, which are sometimes problematical. Using the sum of squares ...
Ulrich Neumann's user avatar
5 votes

Why BoundingRegion does not work well?

About your second question. It is a manifestation of an old bug in rendering of Disk and Circle primitives after applying ...
Alexey Popkov's user avatar
5 votes
Accepted

Set pixel aspect ratio?

Alexey suggested that the following undocumented (but not going away) ImageSize syntax could be used: ...
Carl Woll's user avatar
  • 131k
5 votes
Accepted

reduced image quality / sharpness when texture has opacity / alpha / transparency

Consider upgrading to version 12.1 which uses Direct3D 11 for 3D graphics rendering on Windows (version 12.0 used Direct3D 9): Windows 3D graphics rendering updated from Direct3D 9 to Direct3D 11 ...
Alexey Popkov's user avatar
5 votes
Accepted

Running out of memory when exporting at high ImageResolution

This has nothing to do with system memory. System textures have limits, both in pixel dimensions and overall video memory used. On Windows, at least, the FrontEnd's threshold is set a little lower ...
ihojnicki's user avatar
  • 3,181
5 votes
Accepted

Dealing with RegionPlot artifacts when enabling antialiasing

Apply Antialiasing -> False to Polygons: ...
Alexey Popkov's user avatar
5 votes
Accepted

How to display PNG image in notebook with best quality

As I understand, you have these issues with version 13.x on Windows. The reasons for such behavior were previuosly discussed in the following questions: Mathematica 13: everything is magnified Why ...
Alexey Popkov's user avatar
5 votes
Accepted

How to speed up this small 2D graphics code?

IMHO, InterpolationOrder->0 should use Voronoi cells. So you can do it this way: ...
Henrik Schumacher's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible