Skip to main content

Questions tagged [computational-geometry]

Computer geometry is a branch of computer science devoted to the study of algorithms which can be stated in terms of geometry.

4 votes
1 answer
367 views

Context & Background Please let me remind you that this project may involve original research; it is important to remember that all content on this site is subject to CC BY-SA 4.0. It is a breach ...
Konchog's user avatar
  • 355
7 votes
2 answers
808 views

I have made a quick and basic working demo on calculating the moment of inertia of a 2D convex polygon. This was for the purpose of learning physics engines, more specifically rigid body dynamics (2D) ...
kasjolaman's user avatar
1 vote
2 answers
130 views

I'm writing a pure-python geometry tool for technical drawings / computational geometry (not a solver, as a solver has to work with constraints). I've already mentioned a previous version on code ...
ToAskOrNotToAsk's user avatar
1 vote
0 answers
230 views

So I was in need of a way to draw a patterned line that passes through several points on a 2D space, something that no Python library seems able to do out of the box (at least, the ones I've been ...
pepoluan's user avatar
  • 285
4 votes
1 answer
253 views

The following is my submission for LeetCode's Max Points on a Line: Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane, return the maximum number of points that ...
Matt's user avatar
  • 141
1 vote
1 answer
272 views

The following function is supposed to return the points p1 on line segment a, and p2 line segment b, such that |p1 - p2| is minimized. ...
user877329's user avatar
1 vote
1 answer
533 views

Objective I have a 3D face mesh triangulated. I have computed the midpoint of each triangle in the mesh, and I have the normal vector (n1, n2,n3) for each triangle. The objective is to create a 2D ...
Joker's user avatar
  • 111
1 vote
2 answers
1k views

This is my attempt at creating a Union Algorithm for an arbitrary set of any number of arbitrary simple polygons. It works for both convex and concave polygons. ...
FaffyWaffles's user avatar
3 votes
2 answers
621 views

I have the following VBA code (across three modules) to make UDFs to calculate sun & moon position data. The issue I'm facing is that they are very slow to run as I have over 6000 rows (over 10 ...
hidp123's user avatar
  • 31
2 votes
2 answers
147 views

Description: I would like to sample n_points points from k circles whose radii and centers are given as lists. Note: This is my ...
ThePortakal's user avatar
1 vote
2 answers
120 views

I would like to generate list of vertices and normals (with the correct indices) for rendering a cylinder barrel (I ommited the end caps for brevity). The normals should not be interpolated (flat ...
frankenapps's user avatar
1 vote
2 answers
321 views

I'm trying to create an algorithm that finds the closest pair of points (2D) within a set of points. I'm using a divide and conquer method which is explained here Closest Pair of Points Algorithm. ...
Lamett's user avatar
  • 11
3 votes
0 answers
94 views

AABB: Axis Aligned Bounding Box ALGORITHM: Compare m number of AABB to n number of AABB to find if there is a collision between m and n sets. PROBLEM: Slow implementation for large number of ...
Briofit's user avatar
  • 31
3 votes
3 answers
497 views

In this code the angle between the minute and hour hands of an analog clock are found and calculated and the smaller angle between them returned. This code works perfectly and I am getting back the ...
Conor's user avatar
  • 33
6 votes
3 answers
312 views

Given a rectilinear path, find if it has a loop. A rectilinear path is made up of made up of alternating horizontal and vertical segments. Input => Ordered set of points representing a rectilinear ...
nkvns's user avatar
  • 399

15 30 50 per page
1
2 3 4 5
16