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
2
votes
1 answer

Making a 3D surface from time series data in R

I have a large data set which I would like to make a 3D surface from. I would like the x-axis to be the date, the y-axis to be the time (24h) and the z-axis (height) to be a value I have ($). I am a beginner with R, so the simpler the better!…
Mark McMullan
  • 21
  • 1
  • 2
2
votes
0 answers

Inverse sampling from a Lambertian surface

In the book Physically Based Rendering, a Lambertian surface is sampled in the following way (see http://www.pbr-book.org/3ed-2018/Light_Transport_I_Surface_Reflection/Sampling_Reflection_Functions.html#): void Sample_f(Vector3f const& wo, Vector3f*…
0xbadf00d
  • 17,405
  • 15
  • 67
  • 107
2
votes
1 answer

Custom shapes with three.js

I am trying to create a polygon in three.js This is the code that I used. function DeployZone(coordinatesList) { // Create the polygon Shape { var material = new THREE.MeshLambertMaterial({ color: 0x00ffcc }); var faces = [0, 1, 2, 3,…
SAK
  • 65
  • 1
  • 9
2
votes
1 answer

how to draw multiple squares at different heights in plotly 3D

I am trying to draw area 1 squares that are parallel to xy-plane on different heights in plotly 3D. I can do it for points, which is basically scattering, and the code looks like…
Ulgen
  • 93
  • 1
  • 8
2
votes
1 answer

Converting a series of depth maps and x, y, z, theta values into a 3D model

I have a quadrotor which flies around and knows its x, y, z positions and angular displacement along the x, y, z axis. It captures a constant stream of images which are converted into depth maps (we can estimate the distance between each pixel and…
Shrey Joshi
  • 1,066
  • 8
  • 25
2
votes
1 answer

Using golang S2 Geometry library with dynamodb

I'm looking to port a portion of the dynamo-geo.js library to golang, in order to query the closest points (stored in DyanmoDB) to a given point. Querying by radius is ideal, but if querying by rectangle is a more straightforward algorithm I'm cool…
rynop
  • 50,086
  • 26
  • 101
  • 112
2
votes
2 answers

Check if a reuleaux triangle is inside/outside a triangle/pentagon/circle in C

You could check for Definition for Reuleaux Triangles here: https://en.wikipedia.org/wiki/Reuleaux_triangle I had been dealing with geometric 2D shapes and doing checks, set up tests to see if they intersects another, or is inside another…
2
votes
1 answer

Using 2D metaballs to draw an outline with a constant thickness

I'm apply the concept of metaballs to a game I'm making in order to show that the player has selected a few ships, like so http://prntscr.com/klgktf However, my goal is to keep a constant thickness of this outline, and that's not what I'm getting…
Tom
  • 125
  • 10
2
votes
2 answers

Calculating principal curvature directions on discrete mesh without quadratic fitting

I am working with 2d surfaces embedded in 3d, with a discrete triangulation, and would like to calculate to principal curvature directions (eigenvectors of the curvature tensor). What I already know is summarised in the following post: How to get…
ap21
  • 2,372
  • 3
  • 16
  • 32
2
votes
1 answer

Project image onto inside of sphere with Python Numpy

Problem: Let's say I have a large image, 5000x3000 pixels. I want to paste this image onto the inside of a sphere of some arbitrary radius. To do this I will import the image as an array and I will determine the centre of the array. I will loop…
Ari Cooper-Davis
  • 3,374
  • 3
  • 26
  • 43
2
votes
1 answer

modelling 3d cells defined by intersections of surfaces

I'm trying to create an interactive 3d representation of cells that are defined by the intersection of arbitrary surfaces. I'm having a hard time figuring out how to create a mesh from this (or is there something better than a mesh that I should be…
Nick
  • 23
  • 2
2
votes
1 answer

matlab: how to plot multidimensional array

Let's say I have 9 MxN black and white images that are in some way related to one another (i.e. time lapse of some event). What is a way that I can display all of these images on one surface plot? Assume the MxN matrices only contain 0's and 1's.…
Myx
  • 1,792
  • 5
  • 23
  • 37
2
votes
2 answers

Estimate the amount of the area of the hemisphere’s surface which can be seen by the eye?

We suppose that there are one hemisphere and three triangles in a 3D space. The center point of the hemisphere’s bottom is denoted by C. The radius of the hemisphere’s bottom is represented by R. The normal vector to hemisphere’s bottom is denoted…
2
votes
1 answer

Creating a tangram with Three.js

I need to create a tangram-like object, in which a user could be able to manipulate the structure, in order to create configurations as those you can see here. I'm trying to understand which strategy would be best for writing the code with Three.JS,…
Ph1
  • 341
  • 1
  • 4
  • 14
2
votes
1 answer

Insert "cut off" field in R surface plot

I'm using persp() to create a 3d plot (but I'm open to anything that will get the job done). Now I want to add a 2d field to make it clear where the 3d plot is above a specific Z value. Is there a way to achieve this? Ideally it would ideally be…
L Xandor
  • 1,659
  • 4
  • 24
  • 48