Skip to main content
Filter by
Sorted by
Tagged with
2 votes
3 answers
127 views

I'm working on a Python program that calculates images by some function frame by frame to create a video. Sometimes images need to be rotated (without cropping them). First, I rotated images as ...
rare's user avatar
  • 41
Tooling
1 vote
2 replies
135 views

I’m working on calculating the area of irregular shapes (such as polygons with uneven or non-parallel sides) in code. I understand how to calculate areas for regular shapes, but I’m unsure what the ...
M Sissique's user avatar
Advice
1 vote
9 replies
75 views

I'm working on a small Python prototype to model basic Euclidean geometry objects (lines, rays, points). I've intentionally stripped it down to a minimal example to highlight a design issue I'm ...
Jasper's user avatar
  • 101
Tooling
0 votes
4 replies
58 views

I am trying to find a way to calculate sky view factor/PCV in R. I have a large series of .ply meshes (1000+) loaded as mesh3d objects into R. I want to calculate the sky view factor/PCV value for ...
user2352714's user avatar
Advice
2 votes
2 replies
77 views

I'm working on a game with procedural generation for generating dungeons. In a dungeon I have rooms and to put it simply, rooms are basically randomly generated polygons. After the first room is ...
Nameugone's user avatar
0 votes
1 answer
159 views

I am making a drawing application and i have to show the borders of the pencil. To know where to place the pixels I use a list of integer offsets from the cursor that make up a shape, so the cursor is ...
Gabbinetto's user avatar
1 vote
1 answer
187 views

I'll be questioning about a drawing program - flash 8 and how its brush worked. The question is about math, bezier curves, vectors, algoritms, geometry. i'm trying to recreate how Flash 8's brush tool ...
xXxAirSnifferxXx's user avatar
Best practices
1 vote
14 replies
6k views

The problem is: Cover an N × N square room with square tiles (the tiles do not all need to be the same size) without overlapping, where the side length of each tile is integral and less than N. What ...
commonplace-brid's user avatar
4 votes
1 answer
81 views

I'm reading "Functional Differential Geometry" by Sussman and Wisdom. The book uses mit-scheme and the scmutils library to teach differential geometry. On page 48 equations (4.29), (4.30) ...
Stephen Blake's user avatar
4 votes
1 answer
142 views

I want to compute the 2D area of a 3D mesh surface that results after one of the three dimensions has been discarded. Basically, I want the area of the "shadow" (without any changes in ...
mri's user avatar
  • 702
Advice
1 vote
2 replies
44 views

Is it even guaranteed that such a triangulation even exists for all expected list of normals? (It's easy to think of edge cases where it doesn't, in my case the normals will be composed of a long list ...
Jann Poppinga's user avatar
Advice
3 votes
5 replies
177 views

I need to compute ~2 million coordinates (64-bit float tuples) They're the intersection points of lines that form a trapezoid-shaped grid (see visual below) The shape of the trapezoid is different ...
ReX357's user avatar
  • 1,229
Advice
1 vote
3 replies
70 views

I need to find the x and y axis points of an arbitrary line, knowing the start point, the end point, and the length of the line from the start point. To do this I have been using the equation of a ...
keith969's user avatar
  • 429
Advice
0 votes
5 replies
205 views

To illustrate the ideas behind discriminant analysis, I created the image below containing a scatterplot with two groups and a plot of the densities of the scores, LD1 on the discriminant function. ...
user101089's user avatar
  • 4,083
2 votes
1 answer
196 views

Is it possible to quad mesh a 2D polygon in Python? I only manage to tri mesh using compas_CGAL / triangle.triangulate but I am unable to find a quad mesh solution in Python. Thanks in advance. I have ...
Clifford Tan's user avatar
-3 votes
1 answer
116 views

I am looking for some advice on how to fit a circular segment to a set of 2D points. My dataset looks like this: 2d data to fit segment to For clarity, my definition of an "optimal" segment ...
Ness Dangerfield's user avatar
Advice
0 votes
6 replies
138 views

I have 2 polygons which are very simmular but one has is centroid inside and the other outside. Polygon 1 (inside) with "X: 2590431  Y: 5823888" "X: 2590433  Y: 5823881" "X: ...
Sebastian's user avatar
  • 327
2 votes
1 answer
144 views

I have a room that is a box. There is a single rectangular window on one of the walls of the room. A directional light source is shining into the room through the window. The light source has a ...
nj16's user avatar
  • 133
1 vote
0 answers
94 views

I remember (from around 10 years ago) that in GeoGebra I could save the commands I would normally type into the Input Bar into a textual file, and then open/load/run them all at once, without having ...
Foad S. Farimani's user avatar
1 vote
1 answer
164 views

I have a convexHull given by a list of 3d point coordinate generated by scipy.spatial.ConvexHull. Now the question is, I want to turn this convexhull defined by the list of vertices into a 0-1 binary ...
J ANDY's user avatar
  • 11
0 votes
1 answer
92 views

I am trying to replicate how the Hadamard gate works. I have a system consisting of a sphere with a cylinder attached, and I would like to rotate the whole system by 90 degrees around X and then by ...
albusdemens's user avatar
  • 6,734
3 votes
0 answers
87 views

Suppose I am given n points in the plane, (x_1, y_1), ... , (x_n, y_n). I want to check if there is a subset of k points from these n that make a convex k-gon. For instance, say I am given 25 points ...
extinct_fishfish's user avatar
1 vote
1 answer
73 views

I'm trying to reconstruct a part of a triangulated mesh from a surface I'm acquiring from a higher precision method. The initial mesh is triangulated and watertight, the patch surface is also a ...
Guillaume Besson's user avatar
0 votes
1 answer
195 views

I'd like to use JTS to calculate a simplified (fewer points) convex hull from a collection of points including inner and perimeter points, where the hull is allowed to be a bit larger in area in order ...
Joshua Goldberg's user avatar
0 votes
0 answers
186 views

I’m trying to turn a 3D STL surface (exported from ImageJ/Fiji segmentation) into a volume mesh in Gmsh using the typical workflow given by the official tutorial (t13). I’m running this with the Gmsh ...
nicpi's user avatar
  • 1
-1 votes
1 answer
103 views

I need to compute the sphericity of a 3D object (binary mask) in MATLAB, especially for non-isotropic voxel spacing. To do this, I need an accurate surface area measurement. I compared two methods (...
Ellie's user avatar
  • 303
0 votes
1 answer
106 views

How can I detect whether a circle intersects or crosses a given arc segment? The arc is defined by a center, radius, start angle (angle1), and end angle (angle2). How to detect that arc AB has ...
darkfrei's user avatar
  • 638
-1 votes
1 answer
205 views

I am drawing edges of triangles and quads with rotation and changing camera position, without projection matrices but multiplication and division, however I can not figure out what happens to the ...
randomuser12345's user avatar
4 votes
1 answer
215 views

Essentially what I'm trying to do is moving a point relative to two different scales. The reason is to edit values in a database of a 3d party application. So basically I want to relocate the red ...
IIlllIllIlll's user avatar
1 vote
1 answer
62 views

I looked up calculating the area of triangle given three vertices. func calculate_area_of_triangle(a: Vector2, b: Vector2, c: Vector2) -> float: return abs((a.x * (b.y - c.y) + b.x * (c.y - a.y)...
Night Gaspard's user avatar
0 votes
1 answer
192 views

I want to draw the centerline of a contour I made for the cable in the middle of the video I linked at the bottom. I also want to document the points of the centerline drawn in an array. How do I do ...
turnip's user avatar
  • 11
-3 votes
2 answers
324 views

What software algorithm can be used to approximate an arbitrary superellipse into a bezier path, consisting of multiple Bezier curves, just like an ellipse can? As an example, https://superellipse....
john.williams551's user avatar
0 votes
0 answers
70 views

Has anyone encountered this error when working with NetTopologySuite: System.InvalidCastException: Reading as 'NetTopologySuite.Geometries.Geometry' is not supported for fields having DataTypeName '...
Alexander Kolomiets's user avatar
9 votes
1 answer
158 views

Given an arbitrary-length array of same-length arrays containing 3D points in space (i.e., multi-segment lines) within the same min/max bounds, I'm looking for fast ways to find the nearest multi-...
user4540359's user avatar
0 votes
0 answers
151 views

I am trying to insert data from a couple different tables in 2 different databases using database links. If I run the select query on it's own, it runs without error and returns the expected results. ...
CRayGo's user avatar
  • 21
0 votes
2 answers
168 views

I have this code, which is supposed to make multiple fans which rotate around this circle, however I am unsure what went wrong. Pretty sure it's my bad math, haha. This is what comes out of it: I've ...
eclipse's user avatar
1 vote
1 answer
63 views

I am trying to extract the drawing direction of a DOMMatrix with reflection and rotation applied (using rotate, scale). What I want to know is whether it will draw upwards vs. downwards or leftwards ...
Alice's user avatar
  • 170
3 votes
1 answer
234 views

I was wondering what was the average distance "d" of any point in a ball to its boundary (not specifically the closest point). I made a simple monte carlo computation using Muller's method ...
louis's user avatar
  • 98
2 votes
1 answer
106 views

I have been trying to integrate boost geometry into a project but run into an issue when I return a polygon geometry from my custom class. The following is a minimal example that reproduces what I am ...
Steve's user avatar
  • 21
8 votes
1 answer
215 views

I'm working with a list of rectangles and need to validate whether each one is in the correct position based on a fixed pattern and a set of geometric constraints. In the input list there can be any ...
h_bjergen's user avatar
  • 149
-1 votes
1 answer
63 views

This is the following query : SELECT id, x, date_range_start FROM table_a WHERE ST_DWITHIN(point, shape_polygon, 30) After running some tests, i can confidently say that WHERE ST_DWITHIN(...
Hicham G's user avatar
0 votes
2 answers
259 views

I'm fairly new to javascript, and I've been trying to build a small game to learn new concepts. An issue I'm encountering is that projectiles in the game often have a higher velocity than the width of ...
Blue Artifact's user avatar
8 votes
2 answers
346 views

Given a rotated rectangle, how can I find the largest axis-aligned rectangle of a given aspect ratio that can fit within the original rectangle? For example, I'd want to find the largest rectangle of ...
screwnut's user avatar
  • 1,490
1 vote
0 answers
41 views

I would like to move a geometry line next to another by a distance using PostGIS. The ST_OffsetCurve function allows you to move the geometry, but sometimes the movement is done in the opposite ...
Bak's user avatar
  • 453
0 votes
1 answer
168 views

from pyspark.sql import SparkSession from sedona.spark import SedonaContext from pyspark.sql.functions import expr spark = ( SparkSession.builder .appName("SedonaIcebergApp") ...
kawa li's user avatar
2 votes
1 answer
145 views

I have a GeoDataFrame I want to plot. This works fine, however somehow I cannot easily plot its legend. I have tried a number of alternatives and checked solutions from googling and LLM, but I do not ...
Zorglub29's user avatar
  • 9,427
18 votes
3 answers
238 views

I'm trying to do a form of trilateration, where the distances between the point of interest (POI) and the anchor points are not given, but instead the heading observed from the POI to each of the ...
Hazen's user avatar
  • 429
0 votes
0 answers
57 views

I am trying to write a Python script that will return me all vertice locations (x,y) of inner intersecting edge between a square tile and a closed polygon with n-vertices. I got this far with my code, ...
tomazj's user avatar
  • 313
3 votes
2 answers
233 views

I am currently working on a number of animal teeth stored as surface meshes in R. Some of the variables I am looking at may be influenced by the number of cusps on the tooth and I would like to try ...
user2352714's user avatar
0 votes
1 answer
148 views

I'm developing a spatial analysis tool using a hexagonal grid generated using Turf.js (hexGrid). Although the grid itself is generated correctly, I cannot reliably identify neighbors for a selected ...
Victor's user avatar
  • 11

1
2 3 4 5
266