Questions tagged [polygons]

148 questions
2
votes
1 answer

Cutting polygons

The code below was created to get a list with the coordinates of the lower left corners that will serve as a reference for my polygons largura = 1.4; altura = 1; col = 6; lin = 4; p = {{0, 0}, {largura, 0}, {largura, altura}, {0, altura}}; addList =…
LCarvalho
  • 9,233
  • 4
  • 40
  • 96
1
vote
1 answer

Define function to create a RegularPolygon of a particular color and number of sides

Define a function coloredPolygon to create a RegularPolygon of a particular color and number of sides. Use OptionsPattern in the definition to accept two options: color and sides. The first option will be used to specify the color of the polygon and…
1
vote
1 answer

Unit of measurement for the area of the polygon

I have an image. I found the dimensions of the image as the following code: ImageDimensions[img] I found the image dimension as {224, 88}. Now, I run the voronoi mesh by image corners as follows: c = ImageCorners[img, MaxFeatures -> 20]; vm =…
Odrisso
  • 191
  • 6
1
vote
1 answer

How to compare two polygons?

I have these polygon points which are like these: a = {Polygon[{{1504.1, 456.266}, {1539.8, 402.781}, {1588.17, 378.487}, {1528.17, 456.266}}], b= Polygon[{{273.801, 456.266}, {273.801, 306.852}, {545.027, 306.852}, {587.642,…
Odrisso
  • 191
  • 6
0
votes
1 answer

How to generate the set of lines orthogonal to the mid points of a non-intersectional polygon

Given a set of N = 10 points that in a known order form a non-intersecting polygon take the line orthogonal to a mid point of a line segment, using the first segment for example, and extract the section of that line from the mid point up to the…
Nick
  • 403
  • 2
  • 7
0
votes
1 answer

How to find point within polygons and connect them

I have the following figure: Here, I have the following values of 25 image corner-points: a = {{528.5, 563.5}, {282.5, 726.5}, {283.5, 722.5}, {42.5, 607.5}, {264.5, 394.5}, {269.5, 322.5}, {360.5, 334.5}, {366.5, 375.5}, {239.5, 324.5},…
Odrisso
  • 191
  • 6
-2
votes
2 answers

How to change the way representing polygons

Polygon[{{{442.997, 358.128}, {424., 329.}, {436.438, 269.919}, {485.639, 320.816}}, {{572.752, 292.812}, {705.658, 191.098}, {624., 334.}, {609.854, 348.146}, {570.475, 297.83}}, {{464.802, 381.573}, {498.744, 331.34}, {508.086, 332.982},…
JasonX
  • 35
  • 5