Hot answers tagged

10 votes
Accepted

Finding "middle curve" inside region

Maybe use Pruning and SkeletonTransform as an alternative。 ...
user avatar
  • 32.6k
10 votes
Accepted

STL generation for Ball-in-a-maze puzzle

Using OpenCascadeLink, which comes with Mathematica, will give you excellent results. We start by loading the package and writing a little helper function to convert the annuli to polygons in 3D space ...
user avatar
  • 36.1k
8 votes
Accepted

How to plot the following region with bold ribs?

I don't know how to do this with a Region, but with a BoundaryMeshRegion you can supply different styles to the 1-, 2-, and 3-...
user avatar
  • 63.2k
8 votes

how to make the surface of a 3D region smooth

In order to completeness,here we provide another ways to do this. Thanks @xzczd suggestion。 Related How to graph a solid common to multiple functions MeshFunctions ...
user avatar
  • 32.6k
8 votes

How to get a membership condition for RegionBoundary using RegionMember

cond = CylindricalDecomposition[0 < x < 2 && 0 < y < -2 x + 4, {x, y}, "Boundary" ] // Simplify (x == 0 && y >= 0 &&...
user avatar
  • 13.7k
7 votes
Accepted

Finding Mesh Cell Normals

Here is an approach using the undocumented Region`Mesh`MeshCellNormals function mentioned previously in this answer, from which the vector plotting code I show ...
user avatar
  • 60.1k
7 votes

Finding Mesh Cell Normals

The conventional way to get face normals is to use Newell's method (which I have also used in previous answers): ...
user avatar
7 votes

Finding "middle curve" inside region

We can approximate the medial axis with the interior edges of the mesh coordinate's Voronoi diagram. Sort of similar to the answer here, but in 2D. ...
user avatar
7 votes
Accepted

Remove islands from geographic regions

Assuming that the "continental part" of a country is the one with the largest area, you can use ConnectedMeshComponents and ...
user avatar
7 votes

STL generation for Ball-in-a-maze puzzle

You could convert it to BoundaryMeshRegion and do operations: ...
user avatar
  • 13.5k
7 votes

How to plot the following region with bold ribs?

HighlightMesh[DecayVolume, 1, BoxRatios -> 1] ...
user avatar
  • 32.6k
6 votes

STL generation for Ball-in-a-maze puzzle

Although CSGRegion is hard to export to stl upto the 13.0.1 version. ...
user avatar
  • 32.6k
6 votes

Finding "middle curve" inside region

...
user avatar
  • 3,762
5 votes

How to plot smooth region based on data?

I think you are after BoundingRegion: ...
user avatar
  • 60.1k
4 votes

Checking if two line segments intersect

For line segments in 2D, you may try also this one: ...
user avatar
  • 41
4 votes

Surface integral with ImplicitRegion not working as expected?

This is a bug. Integrate[z, {x, y, z} ∈ DiscretizeRegion[myReg2, MaxCellMeasure -> .01]] -25.0531
user avatar
  • 32.6k
4 votes
Accepted

Surface integral with ImplicitRegion not working as expected?

This is a bug, but just wanted to post an answer to share what I found. Maybe it'll help someone at Wolfram figure out what's up. Here's a plot of the region with the $z = 0$ plane shown. Weird ...
user avatar
  • 8,188
4 votes

Finding "middle curve" inside region

...
user avatar
  • 13.5k
4 votes

How to plot smooth region based on data?

Another way will be to use alpha shapes. This is available as ConcaveHullMesh in MMA. Using your points pt we can get the ...
user avatar
  • 14.4k
3 votes

How to plot smooth region based on data?

A possible solution using ConvexHullMesh: chm = ConvexHullMesh[pt] Length /@ {pt, MeshPrimitives[chm, 0]} {10000, 122} ...
user avatar
  • 16.2k
3 votes

Plot swiped domain when varying parameters

...
user avatar
  • 32.6k
3 votes

Compute area enclosed in a curve on a surface

As long as I've transcribed h correctly, I think this might be a case of just tidying up your integrand before putting it into ...
user avatar
  • 8,188
2 votes

How to graph a solid common to multiple functions

...
user avatar
  • 13.7k
2 votes

how to make the surface of a 3D region smooth

...
user avatar
  • 13.7k
2 votes

Plot swiped domain when varying parameters

You could use ParametricRegion: ...
user avatar
  • 124k
2 votes
Accepted

Polygon for "Provence-Alpes-Cote-D'Azur, France"

Provence-Alpes-Côte-d'Azur is made up of 18694 coordinates in 9 polygons. A trial and error approach showed that removing polygon #4, which contains 4 points covering the island of Sainte-Marguerite, ...
user avatar
  • 3,762
2 votes

Remove islands from geographic regions

A country is divided into AdministrativeDivisions for which Entity data is available. ...
user avatar
  • 16.2k
2 votes

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

This should work, if I understood your question correctly: Plot3D[ x^2 + 2 y^2, {x, y} ∈ ImplicitRegion[x^2 <= y <= x, {x, y}] ]
user avatar
  • 60.1k
2 votes

How to plot smooth region based on data?

Use GradientFittedMesh. ...
user avatar
  • 32.6k
1 vote

Solving system of equations including numerical integrals over region

We can solve this problem as optimization problem as follows ...
user avatar
  • 34.1k

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