How can find the 2D Voronoi cell area distribution?How can Mathematica be used to detect an area surrounded...
Can you say "leftside right"?
What's the winning box for the King in a Queen against 7th rank Bishop-pawn endgame?
Is Screenshot Time-tracking Common?
What would be some possible ways of escaping higher gravity planets?
Why do neural networks need so many examples to perform?
Why is it that Bernie Sanders is always called a "socialist"?
Is the percentage symbol a constant?
Is it really OK to use "because of"?
Calculating the strength of an ionic bond that contains poly-atomic ions
How to get a 2D Plot from a 3D Listplot?
How do I avoid the "chosen hero" feeling?
"I showed the monkey himself in the mirror". Why is this sentence grammatical?
Why write a book when there's a movie in my head?
Does Plato's "Ring of Gyges" have a corrupting influence on its wearer?
What can I do to encourage my players to use their consumables?
In the Lost in Space intro why was Dr. Smith actor listed as a special guest star?
Other than edits for international editions, did Harry Potter and the Philosopher's Stone receive errata?
Is it possible to map from a parameter to a trajectory?
Crack the bank account's password!
How can I differentiate duration vs starting time
Why do objects rebound after hitting the ground?
What's the reason that we have a different number of days each month?
Was there a pre-determined arrangement for the division of Germany in case it surrendered before any Soviet forces entered its territory?
Explicit Riemann Hilbert correspondence
How can find the 2D Voronoi cell area distribution?
How can Mathematica be used to detect an area surrounded by the most lines?Find area of polygon on a sphere from a set of latitude-longitude pointsMeshRegion: How to take out a subregionColor code Voronoi cell areas depending on number of verticesRemoving cells from Voronoi mesh if they exceed a certain area or circumferenceHyperbolic Voronoi diagram for the Poincaré model, using RegionPlotHow to find the Convex Hullcolor voronoi cell based on areaHow can I efficiently generate regions from long lists of conditions?How to get size of each polygon of a Voronoi diagram using Shoelace formula?
$begingroup$
I need to find the area distribution function of the 2D Voronoi cells in Mathematica version 11 and later. My old instructions for Mathematica 9 don't work anymore. How can I do it?
computational-geometry
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
I need to find the area distribution function of the 2D Voronoi cells in Mathematica version 11 and later. My old instructions for Mathematica 9 don't work anymore. How can I do it?
computational-geometry
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
$begingroup$
If you were to provide your old instructions, we might be able to fix them.
$endgroup$
– C. E.
34 mins ago
add a comment |
$begingroup$
I need to find the area distribution function of the 2D Voronoi cells in Mathematica version 11 and later. My old instructions for Mathematica 9 don't work anymore. How can I do it?
computational-geometry
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
I need to find the area distribution function of the 2D Voronoi cells in Mathematica version 11 and later. My old instructions for Mathematica 9 don't work anymore. How can I do it?
computational-geometry
computational-geometry
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 34 mins ago
C. E.
50.6k397204
50.6k397204
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 52 mins ago
massimomassimo
61
61
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
massimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$begingroup$
If you were to provide your old instructions, we might be able to fix them.
$endgroup$
– C. E.
34 mins ago
add a comment |
$begingroup$
If you were to provide your old instructions, we might be able to fix them.
$endgroup$
– C. E.
34 mins ago
$begingroup$
If you were to provide your old instructions, we might be able to fix them.
$endgroup$
– C. E.
34 mins ago
$begingroup$
If you were to provide your old instructions, we might be able to fix them.
$endgroup$
– C. E.
34 mins ago
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
First compute the Voronoi mesh:
pts = RandomReal[{-1, 1}, {25, 2}];
mesh = VoronoiMesh[pts]

Then compute the areas of the mesh primitives (MeshPrimitives yields a polygon for each Voronoi region):
areas = Area /@ MeshPrimitives[mesh, 2];
Histogram[areas]

$endgroup$
1
$begingroup$
We can also query for the cell areas viaPropertyValue[{mesh, 2}, MeshCellMeasure].
$endgroup$
– Chip Hurst
11 mins ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
massimo is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192129%2fhow-can-find-the-2d-voronoi-cell-area-distribution%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
First compute the Voronoi mesh:
pts = RandomReal[{-1, 1}, {25, 2}];
mesh = VoronoiMesh[pts]

Then compute the areas of the mesh primitives (MeshPrimitives yields a polygon for each Voronoi region):
areas = Area /@ MeshPrimitives[mesh, 2];
Histogram[areas]

$endgroup$
1
$begingroup$
We can also query for the cell areas viaPropertyValue[{mesh, 2}, MeshCellMeasure].
$endgroup$
– Chip Hurst
11 mins ago
add a comment |
$begingroup$
First compute the Voronoi mesh:
pts = RandomReal[{-1, 1}, {25, 2}];
mesh = VoronoiMesh[pts]

Then compute the areas of the mesh primitives (MeshPrimitives yields a polygon for each Voronoi region):
areas = Area /@ MeshPrimitives[mesh, 2];
Histogram[areas]

$endgroup$
1
$begingroup$
We can also query for the cell areas viaPropertyValue[{mesh, 2}, MeshCellMeasure].
$endgroup$
– Chip Hurst
11 mins ago
add a comment |
$begingroup$
First compute the Voronoi mesh:
pts = RandomReal[{-1, 1}, {25, 2}];
mesh = VoronoiMesh[pts]

Then compute the areas of the mesh primitives (MeshPrimitives yields a polygon for each Voronoi region):
areas = Area /@ MeshPrimitives[mesh, 2];
Histogram[areas]

$endgroup$
First compute the Voronoi mesh:
pts = RandomReal[{-1, 1}, {25, 2}];
mesh = VoronoiMesh[pts]

Then compute the areas of the mesh primitives (MeshPrimitives yields a polygon for each Voronoi region):
areas = Area /@ MeshPrimitives[mesh, 2];
Histogram[areas]

answered 37 mins ago
C. E.C. E.
50.6k397204
50.6k397204
1
$begingroup$
We can also query for the cell areas viaPropertyValue[{mesh, 2}, MeshCellMeasure].
$endgroup$
– Chip Hurst
11 mins ago
add a comment |
1
$begingroup$
We can also query for the cell areas viaPropertyValue[{mesh, 2}, MeshCellMeasure].
$endgroup$
– Chip Hurst
11 mins ago
1
1
$begingroup$
We can also query for the cell areas via
PropertyValue[{mesh, 2}, MeshCellMeasure].$endgroup$
– Chip Hurst
11 mins ago
$begingroup$
We can also query for the cell areas via
PropertyValue[{mesh, 2}, MeshCellMeasure].$endgroup$
– Chip Hurst
11 mins ago
add a comment |
massimo is a new contributor. Be nice, and check out our Code of Conduct.
massimo is a new contributor. Be nice, and check out our Code of Conduct.
massimo is a new contributor. Be nice, and check out our Code of Conduct.
massimo is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192129%2fhow-can-find-the-2d-voronoi-cell-area-distribution%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
If you were to provide your old instructions, we might be able to fix them.
$endgroup$
– C. E.
34 mins ago