geometry Questions

39

Solved

I'm going through the ruby koans, I'm on 151 and I just hit a brick wall. Here is the koan: # You need to write the triangle method in the file 'triangle.rb' require 'triangle.rb' class AboutTri...
Untouchable asked 30/9, 2010 at 19:39

1

For a section of a project I'm working on at University I'm trying to recreate the Earth using Python and use that to plot specific locations on the surface and plot circles in various orientations...
Lynlyncean asked 6/2, 2017 at 12:40

15

Solved

How would I "inflate" a polygon? That is, I want to do something similar to this: The requirement is that the new (inflated) polygon's edges/points are all at the same constant distance ...
Bimestrial asked 10/7, 2009 at 13:32

3

Solved

I've got a GeometryDrawing similar like this: <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type wpfhlp:FokusGroupBox},ResourceId=IconTest}"> <DrawingImage.Drawing&g...
Darien asked 12/11, 2010 at 14:21

2

Solved

I'm trying to accurately express an SVG Path as a UIBezierPath however sadly the addArc on UIBezierPath does not account for ellipses, only circles (only 1 value for radius). bezierPath.addArc(wit...
Newspaper asked 11/12, 2019 at 16:33

10

We have a start point (x, y) and a circle radius. There also exists an engine that can create a path from Bézier curve points. How can I create a circle using Bézier curves?
Uniformitarian asked 14/11, 2009 at 16:33

14

I have a line that goes from points A to B; I have (x,y) of both points. I also have a rectangle that's centered at B and the width and height of the rectangle. I need to find the point in the lin...
Menstruation asked 18/10, 2009 at 17:39

25

Solved

Having a list of points, how do I find if they are in clockwise order? For example: point[0] = (5,0) point[1] = (6,4) point[2] = (4,5) point[3] = (1,5) point[4] = (1,0) would say that it is ant...
Cafeteria asked 22/7, 2009 at 14:24

13

Solved

If the major axis of the ellipse is vertical or horizontal, it's easy to calculate the bounding box, but what about when the ellipse is rotated? The only way I can think of so far is to calculate ...
Alabama asked 17/9, 2008 at 21:13

4

As in the title, I want to fit a cylinder to a group of 3D points with Python. This is a nice solution with MATLAB. How can we do it with Python?
Wildon asked 4/5, 2017 at 13:43

9

Solved

In 2D plane, I have a point and a line. How to get the mirror point along this line?
Tracitracie asked 21/1, 2012 at 15:49

9

Solved

I have a convex polygon (typically just a rotated square), and I know all of 4 points. How do I determine if a given point (yellow/green) is inside the polygon? EDIT: For this particular project...
Pigweed asked 4/1, 2012 at 2:41

14

Solved

I am trying to create table with Postgis. I do it by this page. But when I import postgis.sql file, I get a lot of errors: ERROR: type "geometry" does not exist Does anybody know how can I fix i...
Miocene asked 27/7, 2011 at 20:1

4

Solved

Given a line segment, that is two points (x1,y1) and (x2,y2), one point P(x,y) and an angle theta. How do we find if this line segment and the line ray that emanates from P at an angle theta from h...
Trina asked 13/1, 2013 at 19:17

3

Solved

I am parsing a 3D mesh from .obj using pywavefront which gives me vertices, faces and normals. I want to calculate the remaining area from subtracting another mesh. Following up on calculating vol...
Seaman asked 22/4, 2020 at 16:38

10

Solved

I'm trying to create an ordered list in CSS + HTML that looks like this: I can't for the life of me figure out how to do this. I've tried using list-image but then the numerals don't appear. I tr...
Brunhilda asked 20/4, 2011 at 15:28

3

Solved

I am trying to trace quadratic bezier curves, placing "markers" at a given step length distance. Tried to do it a naive way: const p = toPoint(map, points[section + 1]); const p2 = toPo...
Hypermetropia asked 30/11, 2022 at 16:17

23

Solved

There're plenty of different CSS shapes over at CSS Tricks - Shapes of CSS and I'm particularly puzzled with a triangle: #triangle-up { width: 0; height: 0; border-left: 50px solid tra...
Nickelsen asked 16/8, 2011 at 3:54

8

There are a few algorithms around for finding the minimal bounding rectangle containing a given (convex) polygon. Does anybody know about an algorithm for finding the minimal-area bounding quadril...
Huppah asked 12/1, 2010 at 9:58

4

I'm working on a canvas that allows dragging shapes like Figma. I want to draw a guideline (x, y) when shapes intersect each other, just like below. I already handled when shapes are snapped, so we...
Crescantia asked 19/11, 2022 at 16:52

2

I have a geodataframe gdf that looks like this: longitude latitude geometry 8628 4.890683 52.372383 POINT (4.89068 52.37238) 8629 4.890500 52.371433 POINT (4.89050 52.37143) 8630 4.889217 52.36946...
Version asked 5/3, 2021 at 12:41

6

Solved

This is a language-agnostic question. Given a rectangle's dimensions with l,t,w,h (left, top, width, height) and a point x,y, how do I find the nearest point on the perimeter of the rectangle to th...
Droopy asked 8/12, 2013 at 12:43

5

Solved

One obvious method for computing the minimum distance from a point to a 3D triangle is to project the point onto the plane of the triangle, determine the barycentric coordinates of the resulting po...
Dynatron asked 27/5, 2010 at 20:48

3

Solved

Greetings, We have a set of points which represent an intersection of a 3d body and a horizontal plane. We would like to detect the 2D shapes that represent the cross sections of the body. There c...
Klagenfurt asked 10/1, 2011 at 12:19

1

Recently I've faced with one little but majour problem: is point on the edge of polygon be inside polygon? What I mean - currently I am trying to implement 2D geometry library in JS for custom nee...
Antonyantonym asked 29/10, 2017 at 19:11

© 2022 - 2024 — McMap. All rights reserved.