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.

learn more… | top users | synonyms

8
votes
0answers
79 views

RegionPlot Failing on my System

I am running Mathematica 10.4.1.0 on a MacBook Pro OSX 10.11.5. I opened the documentation for TransformedRegion, went to this example in Scope, Formula Regions. When I open this particular ...
0
votes
1answer
249 views

Is it necessary to introduce ImplicitRegion and ParametricRegion in version 10?

In version 10.0, Mathematica introduced a new function about region plotting: ImplicitRegion. But I'm wondered that haven't this function been already existed in the older version? That is, ...
3
votes
0answers
43 views

TransformedRegion and RegionPlot

I encountered an issue using RegionPlot together with rotated regions. Notice how as long as one drags a slider in this simple ...
1
vote
1answer
36 views
-2
votes
2answers
121 views

Create a filled ListPlot, where the points in the list come from within the regions rather than from the region boundaries

Is it possible to fill, color, under the points in ListPlot where the points define the area and the boundary? Assuming that the number of points are large enough ...
4
votes
1answer
116 views

Defining a region from combination of data and geometric region

I would like to define a region in (x,y) by combining the region RegionPlot[ ImplicitRegion[ Sqrt[x^2 + y^2] <= 0.99, {{x, 0.01, 0.99}, {y, 0.01, 0.99}}]] ...
7
votes
2answers
194 views

RegionIntersection puzzle

I am using RegionIntersection[] to intersect two rectangles, phrased as Polygon[]s: ...
1
vote
2answers
83 views

Selecting and plotting points belonging to a region from a random sample

I'm facing a problem with RandomReal when using ListPlot to plot some constrained points. I found that at every run of MA kernel ...
5
votes
0answers
70 views

How-to derive conical region in an arbitrary geometry?

Description I have been working with derived geometric regions and ran into a problem when deriving RegionIntersection of a Cone...
2
votes
1answer
57 views

Disobedient RegionPlot3D

I faced a strange behavior of a RegionPlot3D. I am drawing a piece of a plane bounded by a parabola. This works: ...
3
votes
2answers
81 views

How to apply `DiscretizeGraphics` to a tube?

I want to export the numerical solution of the Chan-Lee oscillator as an STL file so that I could print it out. But when I expanded the curve into a tube, ...
3
votes
1answer
119 views

The unexpected behavior of region calculate

In my this answer,I get some overlapped disk like this placed with red arrow point out But actually that function of diskMake is designed to produce ...
6
votes
2answers
338 views

Join Two Element Meshes

Let's say I have two element meshes defined as the following: ...
1
vote
1answer
73 views

Issue formulating RegionPlot3D to visualize RegionIntersection

Description I am looking to visualize gas cloud growth within custom modules. For demonstration purpose, it is assumed gas cloud takes a spherical shape whilst module is defined using a ...
4
votes
1answer
61 views

RegionPlot error

I'm trying to represent the following table using the command regionplot. The rectangle (0,0), (0.5,0), (0,1),(0.5,1) should be covered, however it is not. Does anyone know what the problem is? Thank ...
0
votes
0answers
25 views

Show multiple RegionPlot3D Plots and points

Hi I have the following problem. I have defined several 3D Regions through RegionPlot3D. Now I want to add points. But somehow the points are not displayed correctly. I.e. they are sort of cut by the ...
0
votes
0answers
113 views

Find coordinate {x, y, z} where two functions are minimal

I am trying to find a point in a ListPointPlot where the total RegionDistance is minimal AND the total differences of the <...
3
votes
1answer
261 views

Plotting the 3D region that determines a volume

I need to plot this with Mathematica: Use a triple integral to determine the volume of the region below $z = 4 - x\,y$ and above the region in the xy-plane defined by $0 \leq x \leq2,\ 0 \leq y \...
2
votes
1answer
41 views

An issue evaluating RegionInteresect

Description: I am trying to find a RegionIntersect between a Disk and a Polygon. I have ...
6
votes
2answers
136 views

Voronoi diagram using RegionPlot, using the hyperbolic metric

I want to compute the Voronoi diagram on the unit disk, using the hyperbolic metric. So, I want to input a list of points and obtain a plot of the cells associated with each of the points. I defined ...
3
votes
2answers
107 views

Problems with integrating over a region

Following the example of this answer: Find the volume of the region defined by $|x|+|y|+|z|<4$ I tried to compute the following integral over a region by using ImplicitRegion. However, when I ...
1
vote
1answer
39 views

How do I Maximize over a Cuboid region?

So, I want to, say, find a maximum value of $|x_1x_3+x_1x_4+x_2x_3-x_2x_4|$ in a unit cube in 4D; how do I do that? I've tried ...
1
vote
0answers
58 views

Why is MeshRegion atomic?

I wanted to make some changes inside a MeshRegion today and found that unlike Graphics objects, it can't be done directly ...
1
vote
0answers
51 views
1
vote
0answers
60 views
4
votes
3answers
106 views

1D ImplictRegion can not be plotted with RegionPlot

I am using Mathematica 10.4 In the documantion page of ImplicitRegion, there is an example ...
3
votes
2answers
116 views

RegionPlot with LogScale

I would like to have my RegionPlot with logarithmic scale in x and y. My code looks like ...
3
votes
2answers
97 views

How to remove parts of a curve?

I have a curve that have some unwanted parts. How can I remove them ? Or how to constraint the curve to a specific region ? Here's a MWE that shows the problem : ...
8
votes
2answers
138 views

How to assign Element marker at boundary edges

How to assign marker at the boundary edges as 1, 2, 3, 4 respectively and set all of the inside elements of region as 0? for example: Code: ...
1
vote
2answers
48 views

Simplify Expressions used to define Region

For example, RegionPlot[{x + y > 1, x - y > 1, y - x > 1, -x - y > 1}, {x, -2, 2}, {y, -2, 2}] can be somehow written as: ...
16
votes
0answers
174 views

Bug in RegionMember?

Bug persisting through 10.4.1 RegionMember (new in V10) appears to have a bug. For some polygons it finds points that are clearly outside to be "members" of the ...
8
votes
0answers
82 views

Defining a MeshRegion from a list of points and Polygons with duplicate points does not work in 10.4

Bug introduced in 10.4 and persists through 10.4.1 This code produces a MeshRegion in versions 10.0 through 10.3.1, ...
9
votes
0answers
107 views

Is this a bug in DiscretizeRegion in 10.4?

Bug introduced in 10.4 and persists through 10.4.1 Consider the following implicit region: ...
3
votes
2answers
80 views

DiscretizeRegion does not include the boundary specified in ImplicitRegion (10.1)

I am trying to do some 3D PDE solving, and I keep running into problems with boundary conditions because my meshed boundaries are not what I expected. For example, the following code ...
7
votes
1answer
70 views

DiscretizeRegion fails for a triangular region

I define an implicit region like R = ImplicitRegion[ 0 < Sin[u]/Cos[v] < 1 && 0 < Sin[v]/Cos[u] < 1, {{u, 0, 2}, {v, 0, 2}}] But when I ...
5
votes
2answers
163 views

How to create a surface mesh embedded in 3D?

I am working on a problem where I want to optimize current densities on 2D surfaces embedded in 3D to generate magnetic fields. The current density on a surface can be written as a scalar function ...
3
votes
1answer
55 views

Confused about the behavior of the properties of Regions

Actually we can get some information in here.But I'm confuse this phenomenon still: test = ConvexHullMesh[RandomReal[1, {7, 2}]] ...
8
votes
2answers
153 views

How to improve accuracy of NIntegrate over ImplicitRegion

I'm trying to compute the area of a implicit region given as ...
1
vote
0answers
25 views

Problem with unbounded implicit region over integers

I have a region specified implicitly, and want to find the region bounds, however there are some problems when the region is defined over the integers and it is an unbounded region. This unbounded ...
0
votes
0answers
38 views

Can I convert a 2D Region embedded in 3D into a 3D region, filling in the shell? [duplicate]

Here's a simple example, where there are built-in functions to describe both objects. {shell, ball} = DiscretizeGraphics /@ {Sphere[], Ball[]} The first of ...
12
votes
0answers
90 views

What is a robust way to determine if two polygons overlap? Possible bug in RegionIntersection or Area

When trying to determine if two polygon objects overlap, I think the intuitive way to do this would be to use the RegionIntersection function to find the ...
7
votes
1answer
151 views

How to convert a graph to a mesh region

As we know,the region is very convenient in Mathematica.And we can convert a MeshRegion into graph like this ...
3
votes
1answer
80 views

How to color the exterior of a region in a `RegionPlot`?

One can color the interior of a region by ColorFunction. But how to color the exterior of a region of a RegionPlot (I want to ...
12
votes
1answer
162 views

RegionNearest and neighborhoods

In this previous question we see that RegionNearest isn't quite as 'capable' as Nearest for some things. Similarly, I need to ...
21
votes
4answers
527 views

Find the volume of Phobos and Deimos

How can we calculate the volume of a 3D object using the new-in-10 computational geometry functions? For simple objects this works: ...
23
votes
5answers
1k views

Rounding the Corners of a Shape

I was wondering whether there is an option in Mathematica that enables me to smooth the corners of a shape. The example I want to start with is the pentagon. This can be crudely specified as ...
2
votes
1answer
85 views

How to do a ParametricPlot within a subregion

I currently have the following parametric plot. ParametricPlot[{(b - a) x/b + a x/r, (b - a) y/b + a y/r} /. {a -> 2, b -> 3}, {x, -4, 4}, {y, -4, 4}] ...
2
votes
1answer
63 views

Partition a line around intersections

I've got a bunch of lines (ideally in a single Region) as well as a single new line, e.g.: ...
2
votes
2answers
112 views

Generating periodic structure using RegionPlot3D

I am trying to create a periodic structure from a unit cell figure which I created using RegionPlot3D: ...
1
vote
1answer
128 views

Low resolution with RegionPlot3D [duplicate]

To draw a cuboid with RegionPlot3D I can simply specify a function: ...