geometry Questions
2
Solved
I have a triangle mesh object in JAVAFX and would like to either
color individual triangles of the triangle mesh
or
color individual vertices of each triangle and have the triangle be colored...
3
Solved
Is there any way to detect if an object with a certain amount of vertices hits a plane? If so, I want to draw it in binary (black/white) onto the plane or create a texture with it.
And I also don'...
Lawson asked 16/2, 2017 at 15:34
6
Seems there is no way to compute line line intersection using boost::geometry, but I wonder what is the most common way to do it in C++?
I need intersection algorithms for two infinite lines in 2D...
6
Solved
I am trying to determine the distance from a point to a polygon in 2D space. The point can be inside or outside the polygon; The polygon can be convex or concave.
If the point is within the polygo...
6
Solved
I am trying to generate a certain amount of random uniform points inside a rectangle (I know the pair of coordinates for each corner).
Let our rectangle be
ABCD
My idea is:
Divide the rectangle...
2
Solved
So I am building a UML drawing tool with KonvaJS and KonvaReact, for that I need to connect shapes with lines. I saw the tutorial on the website on connected objects https://konvajs.org/docs/sandbo...
1
Solved
I'm looking for a way to offset an arbitrary curve defined through xy-coordinates in one direction (in R). I can use the {polyclip} package to offset the curve in two directions.
library(polyclip)
...
8
Solved
I try to make a 20x20 UIImage with a simple blue circle.
I try with this function, but the result is a blue circle in a black square.
How do I remove the black square around the circle?
Function:
...
Hagbut asked 21/11, 2013 at 9:4
1
This question is an extension on some computation details of this question.
Suppose one has a set of (potentially overlapping) circles, and one wishes to compute the area this set of circles covers...
Washington asked 9/11, 2021 at 14:20
5
Solved
I'm using d3 to draw a UML diagram and would like to wrap text within the shapes drawn with d3. I've gotten as far as the code below and can't find a solution to make the text 'fit' within my shape...
Volscian asked 3/1, 2014 at 22:27
13
Solved
I'm a beginner and very confused, as a div tag when I give the same width and height with border-radius: 50% it always becomes circle.
but with the tag a in case I want to make a circle button, It ...
5
Solved
I've googled till I'm blue in the face, and unless I'm missing something really obvious, I can't find any algorithms for calculating the bounding box of a 2D sector.
Given the centre point of the ...
2
Solved
I wonder if anybody come across this specific problem before.
With my basic understanding of how the 3d objects are drawn using webgl and three.js it seems that I cannot find a way to create a par...
Administer asked 21/9, 2012 at 19:40
2
I am using the parallel_offset function of the shapely package to get offset structures to some polygons that are closed rings. I have several polygons at once, many with similar shapes. Around 10-...
10
Solved
I have some earth-centered coordinate points given as latitude and longitude (WGS-84).
How can i convert them to Cartesian coordinates (x,y,z) with the origin at the center of the earth?
Bromoform asked 26/7, 2009 at 20:0
6
Solved
2
Solved
I'm trying to write two functions for converting Cartesian coordinates to spherical coordinates and vice-versa. Here are the equations that I've used for the conversions (also could be found on thi...
Potiche asked 6/10, 2021 at 9:12
2
I need a way to compute the distance beetween a point and the bounding edge of a polygon.
If the point is outside the polygon, the distance will be posivite
If the point is inside the polygon, the...
2
Solved
I have two Line Segments, represented by a 3D point at their beginning/end points.
Line:
class Line
{
public string Name { get; set; }
public Point3D Start { get; set; } = new Point3D();
publ...
2
Solved
I am testing if a ray intersects a triangle. For the time being, I'm using the following code to test if there is an intersection between a triangle, and the ray from origin to the midpoint of the ...
Aldredge asked 27/1, 2015 at 7:47
3
Solved
I am trying to use OpenCV's (Hough)Circle detection to.. detect circles. I created a solid circle on a black background, tried to play with the parameters, used blur and everything, but I am just n...
6
Solved
I found the Computational Geometry Algorithms Library in my search for an algorithm to decompose a concave polygon into the minimum number of convex components. Links off the site and numerous goog...
Underpants asked 5/12, 2008 at 8:36
6
Solved
I want to calculate all the vertices needed and connect them with lines, so I eventually come up with a sphere. How many ways are there to do it? And also the lines between the vertices, will be st...
2
Solved
I want to use ggplot to draw a circle, then scatter points inside it. I have code (adopted from this answer) that gets me pretty close to what I want. However, I want the points to scatter inside t...
Esta asked 2/8, 2021 at 9:16
1
Solved
I want to visualize proportions using points inside a circle. For example, let's say that I have 100 points that I wish to scatter (somewhat randomly jittered) in a circle.
Next, I want to use thi...
Science asked 31/7, 2021 at 20:23
© 2022 - 2024 — McMap. All rights reserved.