19 votes

How to create a random zonogon?

We can using Minkowski Sum (RegionDilation) of any Line's from the fixed point ...
cvgmt's user avatar
  • 72.8k
15 votes
Accepted

Visibility Polygon

Edit Test non-convex case. ...
cvgmt's user avatar
  • 72.8k
15 votes

How to find the conformal mapping between two regions

We can use PI algorithm described in the paper Numerical Conformal Mapping with Rational Functions.The function for conformal mapping can be computed as follows ...
Alex Trounev's user avatar
  • 44.5k
12 votes

How to find the conformal mapping between two regions

Updated We use schwarz christoffel formula for triangle. $$ \int_{0}^{z} (\zeta-a_1)^{\alpha_1-1} (\zeta-a_1)^{\alpha_2-1}\,\mathrm{d}\zeta$$ To integrate such ...
cvgmt's user avatar
  • 72.8k
12 votes
Accepted

Visualizing region outlines

3. Inspired by chayong's answer, a direct way to identify the boundary edges using Region`Mesh`MeshCellNormals: ...
kglr's user avatar
  • 395k
12 votes

Find the farthest pairs of two points in 2-dim

upd: fixed the error of farthestPointsDistance case. The final code is so verbose, whereas the result is definitely true. You can implement your own functions ...
138 Aspen's user avatar
  • 1,269
11 votes
Accepted

Vera Molnár's interruptions - erasing graphic elements

We define the rotated lines by RotationTransform in order to keep the lines be the Region. We use ...
cvgmt's user avatar
  • 72.8k
11 votes
Accepted

Borromean rings

Perhaps something you can start with: ...
vindobona's user avatar
  • 3,416
10 votes
Accepted

How to create a random zonogon?

You can get some shapes with AffineTransform and Rotate. Define: ...
Vitaliy Kaurov's user avatar
9 votes

How to create a random zonogon?

You can start with a regular 2n polygon that has 2 sides parallel to the x axis. Then stretch the polygon along the x axis. Afterwards, you rotate the polygon so that the next side is parallel to the ...
Daniel Huber's user avatar
  • 51.8k
9 votes
Accepted

Find the farthest pairs of two points in 2-dim

Let's say you have random points: pts = RandomReal[{-100, 100}, {10000, 2}]; It would be useful to find the ConvexHullRegion ...
Syed's user avatar
  • 53.8k
9 votes
Accepted

Tomographic Reconstruction of a Convex Polyhedron from its Silhouettes

We only need the data of the boundary points of the projections. ...
cvgmt's user avatar
  • 72.8k
9 votes
Accepted

Hat Polykite Shape

"HatPolykite" is also available in LaminaData: ...
kglr's user avatar
  • 395k
9 votes
Accepted

Colouring the "leaves" (self-intersections) of parametric curves

It seems that https://mathematica.stackexchange.com/a/295351/72111 with RegionDisjoint work for all the cases. Here we test the more complex cases ...
cvgmt's user avatar
  • 72.8k
9 votes

Calculating conditional expectation for uniform distribution over a trapezoid

First, you need to set up your trapezoid region. You can use Polygon: Ω = Polygon[{{2, 2}, {1, -2}, {-2, -2}, {-2, 2}}]; Then, ...
Domen's user avatar
  • 24.8k
9 votes
Accepted

What is simpler way to find projection of a point on a plane?

RegionNearest[ImplicitRegion[myP == 0, {x, y, z}]]@pA {16, 5, 10}
cvgmt's user avatar
  • 72.8k
9 votes
Accepted

How can I make an animation when using RevolutionPlot3D?

Edit animate axis is the rotation axis, we can set axis={0,0,1} or axis={1,0,0} etc. ...
cvgmt's user avatar
  • 72.8k
9 votes
Accepted

How to rotate a triangle to get this picture?

A starting point. ...
cvgmt's user avatar
  • 72.8k
8 votes
Accepted

Creating a Domain of Regions Defined by Random, Non-Intersecting Curves

Update: If we extract Polygons (instead of FilledCurves) we can use many Mesh* and ...
kglr's user avatar
  • 395k
8 votes
Accepted

How to get rid of the boundary at the regions merging in the plot?

reg=Vol // BoundaryDiscretizeRegion // Region`Mesh`MergeCells ...
cvgmt's user avatar
  • 72.8k
8 votes
Accepted

Fill data points within the boundary established by the given points

...
Syed's user avatar
  • 53.8k
8 votes

Hat Polykite Shape

This interesting topic can be exposed form various points of view allowing to have a better grasp of the subject. Rewriting vertices cyclically ...
Artes's user avatar
  • 57.3k
8 votes
Accepted

Length of a continental perimeter

The polygon for the African continent has 465 lists of geographic regions. ...
creidhne's user avatar
  • 5,215
8 votes

Colouring the "leaves" (self-intersections) of parametric curves

...
kglr's user avatar
  • 395k
8 votes
Accepted

Get interior of mesh region

...
kglr's user avatar
  • 395k
8 votes
Accepted

Placing a disk of maximum size in a region surrounded by random points

We union the boundary of convex hull chm and random points x as a single region and use ...
cvgmt's user avatar
  • 72.8k
8 votes
Accepted

Combining 3D-text (extruded 2D-font) and a simple solid: RegionProduct produces invalid BoundaryMeshRegion

OpenCascadeLink work for such difference computation. ...
cvgmt's user avatar
  • 72.8k
7 votes

Finding the largest disk within a convex region using Region primitives

In version 13.3, the problem can be solved with InscribedBall ...
chyanog's user avatar
  • 15.5k
7 votes
Accepted

How to separate the regions enclosed by curves

The method by @halmir also work for this case. https://mathematica.stackexchange.com/a/267223/72111 ...
cvgmt's user avatar
  • 72.8k
7 votes

Moment of Inertia for Hexahedron region

For the region: ...
Daniel Huber's user avatar
  • 51.8k

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