Tag Info

How to create a random zonogon?

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

Visibility Polygon

Edit Test non-convex case. ...
• 72.8k

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 ...
• 44.5k

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 ...
• 72.8k
Accepted

Visualizing region outlines

3. Inspired by chayong's answer, a direct way to identify the boundary edges using RegionMeshMeshCellNormals: ...
• 395k

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 ...
• 1,269
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 ...
• 72.8k
Accepted

• 3,416
Accepted

How to create a random zonogon?

You can get some shapes with AffineTransform and Rotate. Define: ...
• 73.1k

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 ...
• 51.8k
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 ...
• 53.8k
Accepted

Tomographic Reconstruction of a Convex Polyhedron from its Silhouettes

We only need the data of the boundary points of the projections. ...
• 72.8k
Accepted

Hat Polykite Shape

"HatPolykite" is also available in LaminaData: ...
• 395k
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 ...
• 72.8k

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, ...
• 24.8k
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}
• 72.8k
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. ...
• 72.8k
Accepted

How to rotate a triangle to get this picture?

A starting point. ...
• 72.8k
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 ...
• 395k
Accepted

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

reg=Vol // BoundaryDiscretizeRegion // RegionMeshMergeCells ...
• 72.8k
Accepted

...
• 53.8k

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 ...
• 57.3k
Accepted

Length of a continental perimeter

The polygon for the African continent has 465 lists of geographic regions. ...
• 5,215

...
• 395k
Accepted

...
• 395k
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 ...
• 72.8k
Accepted

• 72.8k

Finding the largest disk within a convex region using Region primitives

In version 13.3, the problem can be solved with InscribedBall ...
• 15.5k
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 ...
• 72.8k