Tagged Questions

Questions on the application of Mathematica to geometric problems. You might also consider adding the [graphics] tag, if appropriate.

learn more… | top users | synonyms

5
votes
1answer
108 views

Obtain polygons describing all intersections of many polygons

I have 6894 polygons describing zones in a state plane (i.e., cartesian) coordinate system. Most are not very complex, and I believe none have holes. A random example is Polygon[{{351633., ...
1
vote
2answers
71 views

Draw Multiple Polygons Given Their Vertices

Hi I have a very simple question but I haven't been able to find a set answer. How would I draw a bunch of polygons on one graph. The following does not work: ...
4
votes
2answers
120 views

Compute the average distance from the base of a rectangular pyramid to its apex

How can I compute the average distance from the base of a rectangular pyramid to its apex? For example, if the base of the pyramid is 30 feet by 8 feet, and the height of the pyramid is 12 feet, then ...
3
votes
2answers
141 views

Equation of a transformed (roatted) ellipsoid

Given an ellipsoid with semi-axis {a,b,c} and cantered at {a,0,0}, how do I use ...
2
votes
1answer
87 views

Mean curvature of Sphere

I am trying to calculate mean curvature of a parametric surface(like sphere), and I wrote this code based on this discussion. Here is my code: ...
3
votes
2answers
192 views

Plane Geometry Diagrams With Labels

I can make some basic diagrams in Mathematica (stolen from their pages, for example see the below: LaminaData["FilledIsoscelesTriangle", "Diagram"] However, I'm ...
2
votes
2answers
98 views

Finding the area bounded by a logspiral curve and two straight lines

I'm facing some trouble with finding the area of a region which is described by x-y coordinates (or line equations) and a curved line represented by logspiral. I tried my best in coming up with the ...
4
votes
3answers
283 views

Finding volume of a segment

I'm still pretty new to Mathematica, so I would like to seek advice regarding a geometrical problem. I am currently trying to define that as an extra condition in the Mathematica code below. ...
4
votes
1answer
97 views

Getting the coordinates of GeoDisk[] and similar Mathematica 10 GeoObjects

I'm a big fan of the new Mathematica 10 geographic capabilities and functions such as GeoDisk[], GeoCircle[] and others. One limitation of these functions, however, is the transformation of the actual ...
0
votes
1answer
128 views

Order contour points in clockwise

I want to describe shape of an object using contour points descriptor. Given a silhouette (image black white of an object), I extrait the contour points using EdgeDetect[] fonction. After that, I need ...
3
votes
2answers
174 views

Constructing a list of Cartesian coordinates of the Icosahedron

I’m learning Mathematica and I need the coordinates of the Icosahedron vertices. This is my attempt at writing a program for it. The vertex coordinates are simply all cyclic permutations and ...
2
votes
2answers
93 views

Controlling PointSize in a RegionPlot

I have a "named" point in Mathematica 10 and am plotting it like this using RegionPlot: ...
-1
votes
1answer
61 views

Labeling named point in Mathematica 10 [closed]

I have a "named" point in Mathematica 10 defined like this: point["camp location"] = Point[{latitude, longitude}]; I assume there is some way to make the name of ...
0
votes
1answer
132 views

How to construct new geometrical shapes in Mathematica?

In this question of mine I asked for how to implement a 2D random walk within a bounded area. In the provided solution one can use Rectangle[{-10, -10}, {10, 10}] ...
13
votes
3answers
617 views

Fitting ellipse to 5 given points on the plane

Five points are required to define a unique ellipse. An ellipse has five degrees of freedom: the $x$ and $y$ coordinates of each focus, and the sum of the distance from each focus to a point on the ...
11
votes
3answers
608 views

Finding the surface area of a 3D convex hull

I have noted several instances here and here where ConvexHullMesh, introduced in v10 has been used to greatly simplify some geometry problems. Determining the ...
29
votes
6answers
1k views

Finding length of intersection of two surfaces

I would like to know how we find the length of the intersection of two surfaces. For instance, in the following example,a surface intersects with a plane: How do we find the length of intersection ...
0
votes
0answers
28 views

DelaunayTriangulation in Mathematica V 7.01.0 [duplicate]

I have a list of 2D point coordinates in the form of {...,{xi,yi},...} and want to make a triangular mesh for it. By using DelaunayTriangulate function in Mathematica V7, it gives me something that ...
10
votes
4answers
727 views

To inscribe a circle in a given triangle

I am trying to to inscribe a circle in a given triangle but it isn't working. I've used GeoGebra with this construction and worked but as I'm new to Mathematica I am missing something. It can't be so ...
18
votes
0answers
476 views

Proving the hairy ball theorem using xAct

I would like to formally prove the hairy ball theorem in Mathematica, initially just for $S^2$, and then see about generalizing. An approach I thought about to use the xAct package to define $S^2$ ...
23
votes
5answers
2k views

2D random walk within a bounded area

I want to simulate a random walk on two dimension in a bounded area such as a square or circle. I am thinking of using If statement to define a boundary. Is there a ...
1
vote
1answer
134 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
1answer
126 views

xCoba: evaluate tensor quantities, given an explicit metric

I am new to xAct packages and I'm having some problems to compute tensor quantities with xCoba. I defined a manifold and a metric. I computed All quantities of ...
7
votes
1answer
203 views

How to generate nonperiodic tilings?

I need to generate nonperiodic tilings which are similar to the attached figure (kite-domino tiling). I was thinking the code is similar to the code for the Penrose tiling. However, that code is too ...
5
votes
1answer
149 views

Construct a function that can generate a geometry by extruding a section

Toady I want to construct a geometry shown as below: I know the Mathematica has the functions like Cylinder, Sphere and so ...
1
vote
1answer
141 views

Generating and plotting hypocycloids [closed]

Hypocycloids are curves generated by following a fixed point on a smaller circle rolling around the inside of a larger circle. The following code is from the recent book of P. Wellin (with modified ...
2
votes
0answers
79 views

VoronoiMesh for 3D points

I believe that this is a doc error in V10 (this was programmed to be but not implemented). The new VoronoiMesh should work for 3D set of points. The ...
2
votes
0answers
97 views

Death of parallel sub-kernels

EDIT : Finally, the new Mathematica 10.0 seems to fix it. I have a little parallelization problem. I wrote a code to generate a quasicrystal by dynamical generation. Here the code: ...
3
votes
1answer
76 views

Symbolic Output after numerical computation

I have a small question about the symbolic output. I started to write a program that generates the coordinates of n-dimensional polytopes by Wythoff construction. For crystallographic groups, all is ...
2
votes
1answer
100 views

how to find iso-cost contours on a 2d plot efficiently

Consider a 2D plot in which dimension 1 and 2 represent quantity 1 and 2 respectively ranging over 0 to 100. Each point in the space corresponding to (x,y) represent cost of choosing quantity 1 as x ...
3
votes
1answer
247 views

How to map vertex points from the surface of a straight pipe onto 2D plane

How to map vertex points from the surface of a straight pipe onto 2D plane. The 3D surface points of the straight pipe can be found here: data Working code: ...
0
votes
1answer
79 views

How do I show cross sections of a basic shape using calculus? [closed]

Assume I have an object whose radius is modeled by the function $x^2$. Using calculus and circular cross-sections, the object's volume is given by $\pi\int_a^b(x^2)^2dx$. But given an arbitrary ...
1
vote
1answer
164 views

Generate a set of 3D coordinates subject to constraints

Generating a set of random 3D coordinates is ok, e.g. ...
11
votes
2answers
661 views

Rebuild a polygon so it doesn't self intersect

If you consider the following Polygon: ...
0
votes
1answer
118 views

Height average between 4 points

I have a $3D$ space, if I had a square in this space: square = {{ 0, 0, 100}, { 100, 100, 50}, { 0, 100, 22}, { 100, 0, 86}}; how could I get the average height ...
6
votes
2answers
640 views

Distribution of 10 points within a unit square

Related to some packing problems, following problem arose: Distribute 10 points within a square of sides 1, so that minimal distance between them is maximized. With the help of random simulation, or ...
0
votes
0answers
111 views
17
votes
3answers
590 views

Creating sculptural forms using graphics primitives

This is a question based on this answer by halirutan. Some amazing images can be created with this code, and I was wondering whether it was possible to extend the principle to different shapes. I ...
3
votes
2answers
433 views

Intersection of surface with parallel planes

Consider the code (adapted from here) ...
0
votes
1answer
230 views

Area of a convex polygon with a set of points [duplicate]

I have a set of points Pts[a_,b_,c_]:={{a, b}, {b, a}, {c, a}, {a, c}, {b, c}, {c, b}} which define a convex polygon and I would like to find its area. There is ...
6
votes
6answers
394 views

Choosing $n$ equidistant points on a circle with given radius and center

I would like to have a function circle which takes two inputs: a tuple {x,y} and a real number ...
1
vote
1answer
145 views

How to get the dimensions of a rectangle?

Suppose I create a Rectangle of dimensions 1 and 3. Is there any function in Mathematica that I can use to recover the dimensions of the original rectangle? If there is no such a function, is there a ...
2
votes
0answers
263 views

Visualising Special Relativity

Mathematica newbie learning by doing (or not so far, in this case). Problem: Special Relativity - consider two inertial frames $A$ & $A'$ in relative motion. At a time $t0$ as measured in $S$, ...
1
vote
0answers
113 views

Extract coefficients of differential form in package RGTC

I am using the Package RGTC to do some calculations in Supergravity. It allows to define differential forms after specifying a co-frame. I am working in with the 10d coordinates ...
9
votes
2answers
287 views

Counting and extracting hit circles/triangles for randomly chosen points

Below, you see a triangle in which the incircle was inscribed. As we know, the center of this circle is the intersection of the angle bisectors. At this point, one could go further and find the ...
1
vote
1answer
390 views

Plot in a 2-dimensional simplex

I have a row vector as $P=(p_1,p_2,p_3)$ which should be obtained from the following constraints: $a_1p_1 + a_2p_2 + a_3p_3 = b_1p_1 + b_2p_2 + b_3p_3$ ($a_i$'s and $b_i$'s are known) $p_1 + p_2 + ...
25
votes
5answers
1k views

How to plot ternary density plots?

How can I get a ternary density plot just like the plots from OriginLab? ContourPlot and DensityPlot seemingly can solve the ...
2
votes
1answer
147 views

Return “true” if point is in Convex Hull [duplicate]

I have a set of points Z: Z = {{x1,y1},{x2,y2},..,} I would like to obtain a function that returns ...
4
votes
1answer
215 views

Plot a cone in spherical co-ordinates

As we all know in spherical coordinates a function phi = π/3 gives us a cone. The cone makes an angle of π/3 with the imagined ...
6
votes
1answer
367 views

Imposing a Periodic Boundary Condition in Nearest Neighbour Search

I am trying to find first nearest neighbour distributions of randomly dispersed point-like objects in an infinite system. To do this I make a finite sized box unit cell with a chosen concentration of ...