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
3
votes
2 answers

Contour of 2d point clouds

I have scattered point clouds in 2d. My problem is I would like to get the boundary's point to get the contour of the point clouds. I know about this 'marching square' however this algorithm usually used for pixel in 2d. Any one have idea how to…
stephie
  • 39
  • 1
  • 2
3
votes
1 answer

Calculate the horizon of a curved face?

I need to find the 2 points of the visual horizon, of a curved face. I have: XYZ of the 4 corner points XYZ of the 2 curved edge bezier points And I need to calculate either: XY of the horizon points XYZ of the horizon points
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
3
votes
3 answers

Plotting surface without axes

I want to plot a surface without axes planes.. I think I'll explain better with images: I want to get whis one: Instead, I'm getting this:
nkint
  • 11,513
  • 31
  • 103
  • 174
3
votes
2 answers

Threejs - How to offset all points on a 2d geometry by distance

Using Three.js, (although I believe this is more math related) I have a set of 2D points that can create a 2D geometry. such as square, rectangle, pentagon, or custom 2D shape. Based of the original 2D shape, I would like to create a method to…
blackStrings
  • 63
  • 1
  • 6
3
votes
1 answer

Calculating coordinates of an oblique aerial image

I am using a GoPro HERO 4 on a drone to capture images that need to be georeferenced. Ideally I need coordinates of the captured image's corners relative to the drone. I have the camera's: Altitude Horizontal and vertical field of view Rotation in…
Milan Zelenka
  • 416
  • 1
  • 7
  • 11
3
votes
1 answer

Rectangular Nesting - Convergence to optimal solution using Simulated Annealing

I'm using Simulated Annealing for Rectangular Nesting problem. I'm able to get good results, but the solution i got is DISCRETE. Even global optimum is not always obtained. Problem Description: Objective - To minimize the length of the infinite…
3
votes
1 answer

pcl::MarchingCubesRBF doesn't output mesh

I need to use Marching Cubes based on Radial Basis Function so I looked up this algorithm implemented in PCL. Actually I'm using PCL v1.6 so the function is: pcl::MarchingCubesRBF The problem is that it doesn't work, that is it doesn't create…
3
votes
1 answer

How to get rid of pygame surfaces?

In the following code, there is not just one circle on the screen at any given point in time. I want to fix this to make it so that it looks like there is only one circle, instead of leaving a smudge trail where ever the mouse cursor has…
lotsofsloths
  • 121
  • 1
  • 3
  • 8
3
votes
1 answer

pickle saving pygame Surface (python)

I tried to save a pygame.Surface but it doesn't let me, error TypeError: can't pickle Surface objects I can make it save surfaces? Or maybe there is another module that can save it ? EXPLANATION: a = pygame.Surface( (5,5) ) file = open("hello",…
Ofek .T.
  • 741
  • 3
  • 10
  • 29
3
votes
1 answer

Gnuplot, pm3d and surfaces

I have a question about pm3d and gnuplot. I want to plot two different surfaces with two different pm3d styles. How can i do that? Is it possible? I tried with multiplot but in that case surfaces will overlap and i cannot rotate the graph. Any help…
Paolo Usai
  • 31
  • 1
  • 2
3
votes
1 answer

RGL surface plot from data frame

I've created a nice plot using scatter3d() and Rcmdr. That plot contains two nice surface smooths. Now I'd like to add to this plot one more surface, the truth (i.e. the surface defined by the function generating my observations minus the noise…
user2249626
  • 453
  • 2
  • 6
  • 15
3
votes
3 answers

C# GMap.Net calculate surface of polygon

I am searching for a way to calculate the surface under a polygon. The thing I want to accomplish is that a user that uses my program, can create a polygon to mark out his property. Now I want to know what the surface area is so I can tell the user…
Boeykes
  • 137
  • 2
  • 9
3
votes
1 answer

Plotting a 3D surface with no interpolation?

I have a following data: library(rgl) x <- c(rep(1,6), rep(3,6), rep(6,6), rep(9,6), rep(12,6)) y <- c(1.35,1.39,1.48,1.29,1.35,1.32, NA,1.5,1.44,1.6,1.5,1.41, NA,NA,1.72,1.56,1.6,1.55, …
jangorecki
  • 16,384
  • 4
  • 79
  • 160
3
votes
1 answer

Matlab - customize surface color depending on a parameter

I have a problem in customizing colors of a surface plot (trisurf or trimesh). I would like every face to have a color depending on the relative strain value (calculated for every triangle of the mesh). I was thinking about something like: p =…
Benedetto Roda
  • 45
  • 2
  • 10
3
votes
1 answer

3D surface coloring with 4th dimension marking special values

I want to create a 3D surface graph as shown in the picture. I am using ILNumerics, recent RC from the website. So far I could create the surface (the data are only for testing) using this code: using System; using System.Drawing; using…
user492238
  • 4,094
  • 1
  • 20
  • 26