Questions tagged [regions]

Questions about functionality that defines or operates on regions (i.e., an open, connected set), including geometric, mesh-based, or data and formula-defined regions.

Filter by
Sorted by
Tagged with
6 votes
1 answer
110 views

RegionIntersection for CountryData polygons

I am using v12.2.0-Win7-x64. ...
  • 18.6k
0 votes
0 answers
40 views

Refine `RegionPlot3D`-result using `DiscretizeRegion` fails

I try to improve the result created by RegionPlot3D: Examplary condition (sorry for the huge size) ...
2 votes
1 answer
36 views

Uneven padding while using AspectRatio in RegionPlot

When I use the AspectRatio option for RegionPlot, the padding on the left and right is wider than it is at the top and bottom. Is there a way to equalize this space ...
  • 871
0 votes
1 answer
58 views

Mesh Split into Cylinder or Cuboid

...
  • 8,267
0 votes
0 answers
53 views

Problem of DiscreteGraphics of the Cylinder [closed]

I'm on Mac with Mathematica 13.1 ...
  • 8,267
4 votes
1 answer
92 views

`RegionIntersection` taking a long time to evaluate

I am trying to find an intersection as per here with ...
  • 8,005
2 votes
0 answers
62 views

Bug of RandomPoint or Bug of Region?

Mathematica 13.1 on Mac In the help page of RandomPoint, it says: RandomPoint can generate random points for any RegionQ region that is also ConstantRegionQ. The data of mesh is here ...
  • 8,267
4 votes
2 answers
89 views

Kernel quits upon computing RegionIntersection

Using 12.1.1.0 on MacOS BigSur I observe quitting Mathematica kernels when evaluating RegionIntersections on two regions that apparently only touch. Example for Regions that cause the Kernel to quit ...
2 votes
1 answer
76 views

Pattern not matching BoundaryMeshRegion

Mathematica 13.1 on Windows 10. Can someone explain why the following does not match: MatchQ[BoundaryMeshRegion[Cube[]], BoundaryMeshRegion[__]] (* False *)
  • 29.2k
2 votes
1 answer
43 views

Allowed range of parameters in an inequality

I have an inequality as following: m2/r + m1/r^0.5 < 0 I need to understand the allowed range of m1 and m2 that satisfies the above inequality for different ...
  • 31
2 votes
0 answers
43 views

BoundaryDiscretizeGraphics for exotic unicode glyphs

This code works BoundaryDiscretizeGraphics[Text@"\[WolframLanguageLogoCircle]\[WolframLanguageLogo]", _Text] But for more exotic characters, it produces ...
  • 3,099
5 votes
0 answers
44 views

DiscretizeRegion on Raspberry Pi

I'm using Mathematica v13.1 on a Raspberry Pi 400. I'm trying discretize a region with a circular hole in it. But instead, the circle gets discretized: ...
's user avatar
6 votes
1 answer
96 views

Create a domain for an Hexahedron with the floor replaced with an Indian Burial Mound

I am trying to create an acoustic model domain for a small park that contains an Indian burial mound. The park is laid out using a 3D cartesian coordinate system in units of meters. A Hexahedron ...
  • 2,147
4 votes
0 answers
87 views

What's the problem of RegionFit in this task of fitting a cylinder

...
  • 8,267
5 votes
0 answers
91 views

Why BoundingRegion so weak in such cases?

Each time, when I use FastCylinder option in BoundingRegion, I'll get this kind result. This problem lasts for many years, since ...
  • 8,267
6 votes
2 answers
220 views

Improving a region plot

I have two surfaces which I plot them using ...
  • 727
3 votes
0 answers
73 views

Area / NIntegrate over a Region fails depending on variable name

I'm trying to plot how the Area of an ImplicitRegion defined by four (ugly) inequalities depends on parameters. It seems I need ...
  • 18.2k
2 votes
3 answers
216 views

How can I draw several diagonal squares?

I'm the beginner in Mathematica Plot, so I recently met many situations that I could not understand. Here is my code for drawing 10 squares across the diagonal line in a square: ...
3 votes
2 answers
150 views

BoundaryMeshRegion Error: Boundary surface is not closed

I am trying to create a BoundaryMeshRegion comprised of many cubes with random locations, in a relatively small region. I have had success implementing my technique for a smaller number of cubes (say,...
  • 363
4 votes
1 answer
109 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: ...
  • 30.8k
4 votes
1 answer
102 views

How to speedup evaluation of a random point from an implicit region?

Consider three variables s2,t1,t2, and parameters ma,mb,m1,m2,m3,s. The domain of definition for s2,t1,t2 is given by the region Region3Particle: ...
  • 4,106
0 votes
1 answer
38 views

Change color of overlapping convex hull and original function

I am trying to demonstrate how the convex hull for my function and using the following formula for that (where the first inequality is the original function, and the second one is its convexified ...
  • 81
0 votes
1 answer
60 views

How to plot two regions such that both are visible and also highlight the overlap?

I try to plot the following inequalities f[x,y,z]<=1 and g[x,y,z]<=1 in a single plot such that both the regions are ...
  • 539
0 votes
1 answer
81 views

Problem in highlighting regions in RegionPlot3D

In the following RegionPlot3D ...
  • 539
1 vote
1 answer
47 views

Unexpected quitting of the kernel when discretizing parametric region

I have a region defined parametrically (-actually the union and difference of several ones), and when I try to discretize it Mathematica suddenly quits the kernel, as show in the picture below (I'm ...
2 votes
3 answers
91 views

List for contour region with a function of three variables

I have a function f[t,x,y]= x^2 y^2 t^(-2) Exp[(y/t)]^-1 and I want a data list of the variables x vs. y that satisfy ...
  • 107
2 votes
2 answers
87 views

RegionPlot only shows part of ImplicitRegion?

In this very simple example a region consisting of two lines forming a right angle is defined as ...
3 votes
1 answer
84 views

Error Meshing with ToElementMesh (ToElementMesh: Cannot set region holes.) for certain objects

I have had a problem properly meshing certain .obj files, where others are meshed successfully. Here is an example of a successfully meshed .obj: Whereas, using the code at the bottom which includes ...
  • 363
2 votes
1 answer
64 views

RegionDifference Fails at Two Simple Cubes

Or, maybe, I just dont get it right. I got two simple mesh cubes: ...
  • 303
3 votes
1 answer
73 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, ...
  • 75
2 votes
3 answers
97 views

Placing legend on RegionPlot3D [closed]

I have the following 3D plot ...
4 votes
1 answer
103 views

Finding sub-regions in an STL file for Finite Element

I use an external software (Amira) to segment X-ray tomography images and then create a surface mesh which I can then import into Mathematica as an STL file. This file has two enclosed regions, ...
  • 3,616
0 votes
1 answer
83 views

How to project a 2D region from one plane to another?

I have one of a general set of 2D regions (Disk, Rectangle, Polygon, etc.), as well as 3D origin points and normal vectors defining two reference planes/coordinate systems. I want to find a series of ...
5 votes
4 answers
262 views

How can I plot a smooth region based on data?

Consider some region region, chosen for simplicity as a parallelepiped: ...
  • 4,106
4 votes
2 answers
197 views

Finding Mesh Cell Normals

I need to find a normal pointing outside for every face / cell of a closed Mesh Region. How can I do this? Here's what I have now - mesh + mesh cells centers and I'm stuck and puzzled. There's ...
  • 303
1 vote
0 answers
72 views

Simulating the Response of Charged Particles to Apertures with Inhomogeneous Electric Fields Passing through them

I have produced a simulation which allows me to observe a static electric field produced by a charged plate as it passes through some complex apertures in a different, oppositely charged metal plate. ...
  • 363
1 vote
1 answer
89 views

Solving system of equations including numerical integrals over region

I am dealing with the resolution of a concrete beam. Simply put, it is an equilibrium of horizontal forces and moments. Let's first define some parameters : ...
7 votes
4 answers
333 views

Finding "middle curve" inside region

I have some simply connected region, as shown below. ...
8 votes
1 answer
111 views

How to get a membership condition for RegionBoundary using RegionMember

This is my first question on this forum, but by no means my first problem with Mathematica (which I've been using daily for years). Consider ...
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 ...
  • 33
0 votes
0 answers
45 views

Calculation of SolidAngle not recognizing region?

Basically I'm trying to calculate the solid angle of a square seen from the origin. I defined the region (in two different ways) and tried running the function but it does not give any output. Why is ...
7 votes
3 answers
414 views

STL generation for Ball-in-a-maze puzzle

As a minimal example, consider: ...
  • 18.6k
3 votes
0 answers
42 views

Possible bug when creating arcs using Circle[…] [closed]

The documentation for the Circle function states that the optional third parameter, $\left\{\theta _1,\theta _2\right\}$, "gives a circular or ellipse arc from angle $\theta _1$ to $\theta _2$.&...
  • 181
0 votes
0 answers
29 views

Plot overparametrized domain

I would like to plot the region swiped by varying some parameters, and I've been unable to find a function that does what I want. ParametricPlot works when the region depends on two parameters, but ...
  • 261
4 votes
3 answers
261 views

How to plot the following region with bold ribs?

Consider the following region: ...
  • 4,106
1 vote
2 answers
127 views

Plot swiped domain when varying parameters [closed]

I would like to plot the region swiped by varying some parameters, and I've been unable to find a function that does what I want. ParametricPlot works when the region depends on two parameters, but ...
  • 261
1 vote
0 answers
42 views

Meaning of MeshCells for CantorMesh?

Let cantor2 = CantorMesh[2] As expected: RegionBounds[cantor2] (* {{0., 1.}} *) And as expected: ...
  • 11.5k
0 votes
0 answers
57 views

ParametricRegion in Region produces misshapen result

Prompted by an answer to question 170254, I considered ...
  • 58.9k
1 vote
1 answer
85 views

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

While answering 168996 about "removing islands from geo regions", I made a few observations about the polygon associated with "Provence‐Alpes‐Cote‐d'Azur, France". The ideas was to ...
  • 18.6k
6 votes
2 answers
191 views

Remove islands from geographic regions

I wish to get only the continental parts of countries when using GeoGraphics, for instance in ...

1
2 3 4 5
22