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

How to draw a squircle in R

This is the code for a rounded square, I wonder if it could get the one for a squircle, which is a very similar figure. The Wikipedia states that: Although constructing a rounded square may be conceptually and physically simpler, the squircle…
Ferroao
  • 3,042
  • 28
  • 53
4
votes
1 answer

Slicing a NURBS surface

I have a NURBS surface which has 4 curved edges. (I have the 4 bezier points for the curves) I'd like to slice the NURBS surface with a slicing-plane thats on-axis (not as advanced as 3DSMAX!), and calculate a curve where the slicing-plane and NURBS…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
4
votes
2 answers

How to find out if a set of point3D are in the same plane?

I have a set of point3D (X, Y, Z). I need to check if they are coplanar with some sort of tolerances. My way of doing it is that: I convert all points from the Global Coordinate System to Local one, where local x,y is in the same plane of the plane…
N.T.C
  • 658
  • 2
  • 9
  • 20
4
votes
1 answer

c# Point Cloud to Mesh

Is it possible to reconstruct a 2.5D surface from X,Y,Z points (unstructured point cloud) to triangle mesh? Is there a library available that can do this for me that I can use with C#? I can't find anything open source out of the box that has this…
user3478586
  • 307
  • 4
  • 15
4
votes
2 answers

How do I draw a texture-mapped triangle in MATLAB?

I have a triangle in (u,v) coordinates in an image. I would like to draw this triangle at 3D coordinates (X,Y,Z) texture-mapped with the triangle in the image. Here, u,v,X,Y,Z are all vectors with three elements representing the three corners of the…
Petter
  • 37,121
  • 7
  • 47
  • 62
4
votes
3 answers

How to plot a surface with a texture map

I want to plot a surface with a texture map on it, but the conditions are not the "ideal" ones. first lets explain what I have. I have a set of points (~7000) that are image coordinates, in a grid. This points do NOT define perfect squares. IT IS…
Ander Biguri
  • 35,140
  • 11
  • 74
  • 120
4
votes
2 answers

How can I create a triangulated sphere using 'isosurface' function of MATLAB

How can I create a Triangulated sphere with faces of triangles with the same area each one. I want something like this, http://imageshack.us/a/img198/5041/71183923.png and I searched and saw I could use the function isosurfaceof MATLAB, but the…
DianaSXM
  • 43
  • 1
  • 5
4
votes
3 answers

How to plot a 3D surface of a 3D matrix with R

I have 3D matrix of floating point numbers and I would like to produce a smoothed 3D surface of this matrix using R. Any suggestions are welcome. Thanks Now I am using scatterplot3d ... But this function did not produce a smoothed…
4
votes
2 answers

Load image in tkinter from pygame surface in python 3

I would like to load an image in tkinter from a pygame surface and I am having a problem. This is what I am currently trying: image= pygame.image.tostring(surf, 'RGB') tkimage= tkinter.PhotoImage(data= image) canvas.create_image(0, 0, tkimage) but…
Parker Hoyes
  • 2,118
  • 1
  • 23
  • 38
4
votes
1 answer

Colouring specific points in a MATLAB surface plot

I have a 3 dimensional data set which I intend to analyse. After analysing the data set, basically running an algorithm to find a range of points, I this range of points to have a specific colour so that when someone sees the surface plot, they know…
thedorkknight
  • 183
  • 3
  • 12
4
votes
2 answers

[MATLAB]: How would I mathematically and visually reproduce the 3D surface of the new King's Cross 'Western Concourse'?

Anyone have any starting tips for me? I want to learn from this (ie Don't want to be lazy and have someone answer this for me). I would like to develop my understanding of mathematical 3D surfaces. My own personal project is to produce a 3D…
dnk8n
  • 675
  • 8
  • 21
4
votes
2 answers

How to emphase some region on a spherical surface

Introduction I'm trying to emphase some region on a spherical surface saying that this region should be colored as not transparent (alpha = 1.0) and other parts of the sphere should be colored as semi-transparent (alpha = 0.5). Problem Considering…
CitizenInsane
  • 4,755
  • 1
  • 25
  • 56
3
votes
1 answer

How to make a slice contour from vtkpolydata

I have managed to make a surface from a set point points in vtk. Now I need to cut a plane through the surface and make a 2D contour that I can output as vtkImageData. I have made code that only makes a projection onto a plane. Can anyone tell me…
ochensati
  • 349
  • 1
  • 5
  • 13
3
votes
1 answer

Draw a circle on each edge of an n-polygon

Given a list of n circles, each of diameter d, I want to generate an n-gon (polygon of n lengths), with side lengths d, and draw a circle on each of its edges. I encountered this problem while developing an application. The formula for the radius…
hexaquark
  • 883
  • 4
  • 16
3
votes
0 answers

Compute the B-spline basis of a Bivariate spline

I need to compute uv queries on a bivariate spline in the B-spline basis. With this answer I have a good function (copied below) that leverages scipy.dfitpack.bispeu to get the results I need. import numpy as np import scipy.interpolate as si def…
Fnord
  • 5,365
  • 4
  • 31
  • 48
1 2
3
16 17