Questions tagged [geometry-surface]

The mathematical or computing concept of a 2-dimensional shape.

Surface is a place of a manifold of two-dimensional points (flat surface) or surface is a continuous boundary which divide a three-dimensional space into two sections (curved surface). In general, a hypersurface is a variety of (n-1)-dimension points in n-dimensional space.

249 questions
0
votes
1 answer

how can I generate suface mesh non-uniformly using CGAL?

I want to generate surface mesh(3d triangle mesh) non-uniformly,How can I do it with CGAL? when I use Polygon Mesh Processing package,I got result like this: all the triangle have almostly same size But I want to generate triangle mesh like…
Damons
  • 153
  • 1
  • 1
  • 7
0
votes
0 answers

How to extract the surface mesh from binary mask of 3D images?

I have a binary mask of 3D medical images in nii format which is reconstructed from 2D slices and I need to extract surface mesh from the mask. AFAK, a surface mesh is constructed from the surface points of 3D surface, but I do not have the point…
sc241
  • 189
  • 17
0
votes
1 answer

Define n spheres such that no 2 spheres will overlap each other

I have a matlab/math question, I want to define n spheres (each sphere should be defined by a single 3D point and a radius) such that no two spheres will overlap each other. The spheres should be completely random (as long as they don't overlap each…
David
  • 481
  • 3
  • 13
0
votes
0 answers

Easy way to calculate surface normals on image?

Is there an easy way to calculate the surface normal on a 2d jpg or png image? If so how is this possible could someone write out some pseudo code and explain for me? I have been reading online but haven't found anything that makes sense yet. …
wdlax11
  • 822
  • 3
  • 11
  • 29
0
votes
1 answer

How to account for radian to degrees inaccuracy

I am trying to perform a simple task using simple math in python and I suspect that the inherit error in converting from radians to degrees as a result of an error with floating point math (as garnered from another question on the topic please don't…
Ingwe
  • 146
  • 13
0
votes
4 answers

How to calculate the coordinates of points in a circle using Java?

I found this website where you try drawing a perfect circle. Just for fun I coded this small Java application, that draws a circle from the middle of your screen: // here is my massive array private static int[] circle = {0, -100, 1, -100,…
Milan
  • 63
  • 1
  • 1
  • 9
0
votes
1 answer

threejs look at (sort of)

I have an shape geometry in my scene that looks like an arrow which is pointing from one object to another. It is added looking directly at the camera. Imagine the camera was facing x,y (front for example see first pic). As the user rotates to a…
user2445278
  • 808
  • 1
  • 8
  • 15
0
votes
1 answer

Workflow of the naive surface nets algorithm

I'm currently studying isosurface extraction algorithms. I found a introduction to it here with working Javascript code. I have to notice that I'm not a Javascript coder. I'm mainly Java and F# however I was able to port the code to F#. After all…
realvictorprm
  • 614
  • 6
  • 20
0
votes
1 answer

Calculate offset given distorted ellipse on sphere

I have a circle moving on a spherical surface. If the camera angle is fixed, is there a way to calculate the original circle's offset from the centre given the distorted ellipse formed when the circle moves to the edge of the sphere(as seen from the…
Caife
  • 415
  • 1
  • 5
  • 16
0
votes
2 answers

Finding the intersection of the Circle and Infinite Cylinder in 3D space

Finding the intersection of the Circle and Infinite Cylinder. (all in 3D) • Circle is defined by center, plane in which it lies and radius. • Cylinder is defined by axis and radius. how can i get the intersection of these two?
0
votes
1 answer

Find center of square that a point is in

Currently in my program I defined a square in a square grid by its upper left corner. I want to change the definition so a square is defined by it's center. However, the X and Y values of a square have to be round numbers. A method for finding the…
user1461837
  • 91
  • 2
  • 11
0
votes
1 answer

Kernel smooth set of xyz tuplets (python preferred pseudocode welcome)

I'd like to smooth a set of xyz tuplets into a surface and return the value of the surface(z') at the original set of of coordinates (x,y). Is there a more direct approach then interpolating the original data onto a grid, smoothing it and…
Mark
  • 35
  • 5
0
votes
1 answer

Preforming geometry on a plane

In my current c++ program I am dealing with a plane that is intersected by several other planes. I want to find the polygon formed by the lines that define the intersections of the planes. For simplicity and computation speed, it seems like my best…
0
votes
1 answer

Fit 3D surface with known points in 2D

What is the best method to infer the 3D locations Y of points on a piece of paper that covers an unknown 3D object f (e.g. in principle with zero Gaussian curvature), knowing: the 2D locations of all dots on the 2D paper (X) the 3D locations of a…
kingjr
  • 173
  • 1
  • 7
0
votes
2 answers

Radius of Centroid Centered Circle Encompassing X Percent of Polygon?

I know how to calculate the centroid of a polygon and its area, from this I can calculate the radius of a circle centered on the centroid which encompasses 100% of the polygon: it's the distance from the centroid to the furthest vertex. My question…