Questions tagged [mesh]

Do NOT use for questions about mesh-networks. Use [mesh-network] instead. A mesh is a collection of vertices, edges, and faces that defines the shape of a polyhedral object in 3D computer graphics and solid modeling.

From Wikipedia:
A polygon mesh is a collection of vertices, edges and faces that defines the shape of a polyhedral object in 3D computer graphics and solid modeling. The faces usually consist of triangles, quadrilaterals or other simple convex polygons, since this simplifies rendering, but may also be composed of more general concave polygons, or polygons with holes. Check for more Mesh Detail

2641 questions
6
votes
2 answers

Generate a real time 3D (mesh) model in Unity using Kinect

I'm currently developing an application with the initial goal of obtaining, in real time, a 3D model of the environment "seen" by a Kinect device. This information would be later on used for projection mapping but that's not an issue, for the…
user3019217
  • 335
  • 1
  • 5
  • 12
6
votes
1 answer

Mesh visualizing PCL 1.6 using PCLVisualizer

I would visualize mesh resulting from GreedyProjectionTriangulation using PCL 1.6. I found I have to use pcl::visualization::PCLVisualizer.addPolygonMesh() but my problem is how to use PCLVisualizer and not pcl::visualization::CloudViewer to get…
SPS
  • 465
  • 9
  • 23
6
votes
1 answer

OpenMesh Random Access

I thought OpenMesh would support random access to faces edges vertices. All I can find are iterators and circulators: for( auto v : mesh->vertices() ) mesh->point(v).data(); How can I do something like this: mesh->vertices(42);
6
votes
2 answers

How to find out whether a triangle mesh is concave or not?

Given a three dimensional triangle mesh, how can I find out whether it is convex or concave? Is there an algorithm to check that? If so it would be useful to define a tolerance range to ignore small concavities. Image Source:…
danijar
  • 32,406
  • 45
  • 166
  • 297
6
votes
2 answers

saving CGAL alpha shape surface mesh

I have never used CGAL and have got almost no C/C++ experience. But following Google I have however managed to compile the example "Alpha_shapes_3" (\CGAL-4.1-beta1\examples\Alpha_shapes_3) on a Windows 7 64bit machine using visual studio 2010. Now…
PlatoManiac
  • 1,442
  • 11
  • 31
6
votes
4 answers

Volume of a 3D closed mesh car object

I have a 3D closed mesh car object having a surface made up triangles. I want to calculate its volume, center of volume and inertia tensor. Could you help me Regards. George
george
6
votes
1 answer

Plot a grid of Gaussians with Matlab

With the following code I'm able to draw the plot of a single 2D-Gaussian function: x=linspace(-3,3,1000); y=x'; [X,Y]=meshgrid(x,y); z=exp(-(X.^2+Y.^2)/2); surf(x,y,z);shading interp This is the produced plot: However, I'd like to…
Matteo
  • 7,924
  • 24
  • 84
  • 129
6
votes
2 answers

Triangulating non-planar polygons

I would like to triangulate a non-planar polygon (i.e. the vertices do not lie in the same 3D plane). The polygon consists of many points (hundreds). The triangulated surface does not have to be smooth. In fact, the denser it is, the better. My…
Violin Yanev
  • 1,507
  • 2
  • 16
  • 23
6
votes
2 answers

Aspect ratio of a triangle of a meshed surface

I need to calculate the aspect ratio of a triangle. I have the 3 points, and therefore I have the lengths and midpoints. I was attempting to use this tutorial (although its not much of one in my opinion), but it is very vague and doesn't give much…
Drise
  • 4,310
  • 5
  • 41
  • 66
5
votes
2 answers

how to align two meshes

I have a very nice & tricky question for you. I need to align two meshes using a very fast algorithm. Given mesh1 and mesh2 I want to find how I need to traslate and rotate mesh1 to be in the same position of mesh2. Firstly I did this using inertia…
Nicholas
  • 1,915
  • 31
  • 55
5
votes
0 answers

How to geometrically project 3D xyz vectors onto a plane orthogonal to the surface normals of a triangulated surface? R

I'm solving an equation with OLS which returns a timing point on an x/y/z surface mesh. I can solve for speed and directionality per the method outlined below. The problem is, my vectors are not parallel to the surface mesh and I'm uncertain of the…
myfatson
  • 354
  • 2
  • 14
5
votes
1 answer

Question about BSpline

Here is a data file with cluster of 3D points. Now we can form a BSpline surface out of that. dat=Import["C:\\Users\\Andy\\Desktop\\Foil.mat"]; surface=BSplineFunction[dat]; ParametricPlot3D[surface[x,y], {x, 0, 1}, {y, 0, 1}, …
PlatoManiac
  • 1,442
  • 11
  • 31
5
votes
1 answer

How do I triangulate an irregularly shaped lattice?

I have a list of XYZ-points that are arranged in an evenly spaced lattice in the XY-plane like so (for example): I want to 'tile' the space between these points with triangles that connect a point to two of its immmediate (up to) eight neigbors,…
5
votes
1 answer

Matplotlib projection 3d levels issue

I've got quite strange error which comes from contourf(). I want to set specific min and max values for my 3D projection, however when I'm trying to set something bigger than -+max(Z) I get the error message: File "C:\Program…
Gatto Nou
  • 89
  • 1
  • 12
5
votes
2 answers

How can I offset / thicken / solidify a 3D mesh in Python?

I'm looking for a way to offset a TIN (triangulated irregular network) mesh (e.g. of a landscape) by a consistent distance via a Python script. In the past I've called Blender's Solidify modifier via the API, which works well, but I'd like to find…
user2950747
  • 695
  • 1
  • 6
  • 19