Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [geometry]

Data structures and algorithms related to geometry.

-1 votes
0 answers
28 views

When using PlaneGeometry with ShaderMaterila my browser throws "Program Info Log: Fragment shader is not compiled."

I am new to Three.js and running on version 0.167.0 of Three.js. I am trying to create a PlaneGeometry with ShaderMaterial, but I get an error and nothing renders in the scene. Here is my code snippet....
Sumit Dubey's user avatar
2 votes
0 answers
60 views

How to slice a 3D volume at a curved 2D surface using Python?

Consider a closed surface mesh in 3D (mesh1), consisting of two merged blocks as shown in the image. The mesh is given as STL file and is subdivided into different patches. Each patch is saved as a ...
KaeptnBlaubaer's user avatar
2 votes
1 answer
23 views

What does the skimage.measure.find_contours method return?

I have a CSV file containing geometric data of the point type. I would like to obtain the contour lines for this terrain model. The algorithm works well to give me a result, but I don't understand the ...
Maxouch742's user avatar
1 vote
1 answer
46 views

Showing stats of vertices and triangle counts on editor

In the example editor how does Three.js rendering a legend showing the number of Vertices and Triangles and also a 3 axes helper legend, I added screen shot of the scene with these legends. I want to ...
ashemez's user avatar
  • 110
1 vote
0 answers
15 views

Expected number of full neighbors of a Voronoi cell in $\mathbb{R}^3$

Given a Voronoi diagram in three dimensions, what is the expected number of full neighbors E(C) of a Voronoi cell? Two adjacent cells are considered full (or Gabriel) neighbours in R^3 if the line ...
student.a's user avatar
2 votes
1 answer
20 views

How to download a geopackage file from geodataframe in a shiny app?

I have a shiny app that displays a number of layers on a map using folium. I want to give the user the possibility to download one of the layers (a linestring geodataframe) as a geopackage file. Here ...
Faustin Gashakamba's user avatar
1 vote
1 answer
21 views

geopandas testing AttributeError

Has anybody worked with geopandas testing module? I'm getting AttributeError: module 'geopandas' has no attribute 'testing' with following code: geopandas.testing.assert_geodataframe_equal(df1, df2) ...
user26560440's user avatar
0 votes
0 answers
18 views

Remove small corners for polygon

I have polygons with holes where I'd like to remove the small corners. The left part is the original polygon. As shown,the white part are holes. While the corner in the red circle should be removed. ...
hguser's user avatar
  • 35.7k
1 vote
1 answer
60 views

Calculate new X,Y rectangle coords after rotation

How to correctly calculate X1 after the rectangle was rotated 30 degrees? The X point is 164,83 before the rotation. I used this code: void rotate_rectangle(double x, double y, double angle, double* ...
GiuTor's user avatar
  • 71
-2 votes
1 answer
16 views

How do you generate roof geometry from a simple polygon where each edge has a defined slope?

Given: A) a list of points defining a simple (possibly concave) polygon on a 2D plane B) a list of slopes in the range [0, ∞), where each slope corresponds to a segment defined in (A) *a "...
JonnyV's user avatar
  • 17
0 votes
0 answers
11 views

3D geometry morphometrics in R geomorph

I have a set of 3D coordinates and want to identify the test data according to the train data using LDA. However, a large number of my test data are misidentified. Here are the codes that I used. I ...
Azy's user avatar
  • 65
0 votes
0 answers
29 views

Improvement of CV2 shape detection for spot detection on TLC

In my work, I use TLC which give me object like the one on this picture. It is a piece of paper with spot on it at a precise height. I need to detect the plate itself and it measurments. Then I need ...
Juju's user avatar
  • 39
3 votes
2 answers
55 views

Translating latitude/longitude coords to 3D point on the surface of a sphere, problem near poles

Assuming the sphere is at position [0,0] (for now), I made this method to calculate a point on the surface of a sphere with a certain radius, given latitude/longitude coordinates (Vector2 x/y): public ...
smsware's user avatar
  • 479
-1 votes
0 answers
39 views

Python or geopandas to split intersected polygon

I have two spatial file (shp and its friends) with different detail level One is district level and the other one is grid (2x2km) level. One district is of course contains multiple grid, BUT Some grid ...
max01's user avatar
  • 1
0 votes
1 answer
52 views

A way to fit circles on 3D data

What I am trying to do is to fit a circle across all cross-sections of 3D point cloud data that resembles a pipe. The data resembles a cylindrical shape with disconnected parts in between, which can ...
mst-ara's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
879