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
6 answers

How do I calculate a normal vector based on multiple triangles sharing a vertex?

If I have a mesh of triangles, how does one go about calculating the normals at each given vertex? I understand how to find the normal of a single triangle. If I have triangles sharing vertices, I can partially find the answer by finding each…
TheBuzzSaw
  • 8,648
  • 5
  • 39
  • 58
6
votes
2 answers

How to deal with the (undesired) triangles that form between the edges of my geometry when using Triangulation in matplotlib

I have a geometry that is defined with a list of (x,y) points in space. I would like to create a triangular mesh out of this data, so I tried the Triangulation function in matplotlib for this purpose. However, since my geometry has some curves, the…
user190081
  • 222
  • 2
  • 7
6
votes
1 answer

Understanding the mesh created by Qt3D

I create a Qt3D mesh like this: Qt3DCore::QEntity *newEntity = new Qt3DCore::QEntity(); Qt3DExtras::QConeMesh *mesh =new Qt3DExtras::QConeMesh(); mesh->setTopRadius(0.2); mesh->setBottomRadius(1.0); mesh->setLength(2.0); for(int i = 0; i <…
Megidd
  • 7,089
  • 6
  • 65
  • 142
6
votes
1 answer

Python: interpolating in a triangular mesh

Is there any decent Pythonic way to interpolate in a triangular mesh, or would I need to implement that myself? That is to say, given a (X,Y) point we'll call P, and a mesh (vertices at (X,Y) with value Z, forming triangular facets), estimate the…
KarenRei
  • 589
  • 6
  • 13
6
votes
2 answers

Making grid triangular mesh quickly with Numpy

Consider a regular matrix that represents nodes numbered as shown in the figure: I want to make a list with all the triangles represented in the figure. Which would result in the following 2 dimensional…
Miguel
  • 1,293
  • 1
  • 13
  • 30
6
votes
2 answers

How to draw (semi-)logarithmic 3d plots? (Matlab)

I know semilogx and semilogy for 2D plots. There is any equivalent for SURF and MESH?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
6
votes
1 answer

FBX Import At Runtime

I did many tests to import FBX at runtime in unity and I'm testing more. The FBX file has to be in ASCII format when imported. It needs to export to ASCII from 3dsMax or Maya. ASCII FBX file has bigger size depending on the file. On the other hand,…
Milot25
  • 335
  • 1
  • 6
  • 14
6
votes
3 answers

Algorithm to calculate the shortest path between two points on the surface of a 3D mesh

I am looking for an algorithm to calculate the following: I have: A 3D triangle mesh. The triangles do not necessarily lie in one plane. The angle between the norm vectors of two neighbouring triangles is less then 90 degrees. Two points. The two…
user3384674
  • 759
  • 8
  • 28
6
votes
1 answer

How To Extrude a Flat 2D Mesh, Giving it Depth

I have a set of co-planar, connected triangles, i.e., a 2D mesh. Now I need to extrude it out a few units in the z-axis. The mesh is defined by a set of vertices which the renderer makes sense of by matching up against an array of triangles. Example…
Liquid
  • 177
  • 3
  • 6
6
votes
2 answers

Unity 5: Automatically specifying the triangle list for the vertices of a mesh

Is there a way or algorithm for automatically specifying how a list of vertices should be connected? For example lets say I have this (in 2D for simplicity): *(0,0) *(2,0) *(-1,-1) *(1,-1) So I add the vertices in the order…
Amposter
  • 787
  • 2
  • 8
  • 27
6
votes
0 answers

Libgdx meshbuilder manually create 3d object

I'm using Libgdx (Java) and trying to build a 3D model. Currently, I can create a model using already-defined methods, such as modelBuilder.createBox() or modelBuilder.createSphere(). However, I want to build my own sphere using a custom mesh (with…
Jammo
  • 1,838
  • 4
  • 25
  • 39
6
votes
1 answer

Generating indexes for triangular mesh for sphere object in openGL Java

Can someone please explain how the indices are generated for triangular mesh? The programme generated array of vertices for sphere object, and indices are generated to be drawn using glDrawElements method. I don't understand how those indices…
user2070333
  • 335
  • 2
  • 11
6
votes
1 answer

Set mesh transparency Meshlab

I have a problem using MeshLab. I have three meshes one inside the other and I want to set transparency of the meshes so that I can see the three layers of meshes. Is there any way in Meshlab to set the transparency of a mesh? Thank you very much…
Marco Solbiati
  • 123
  • 2
  • 9
6
votes
2 answers

Use multiple materials for merged geometries in Three.js

I want to create a Pine using 2 meshes, 1 for the trunk and another one for the bush, this what I've done: var pine_geometry = new THREE.Geometry(); var pine_texture_1 = THREE.ImageUtils.loadTexture('./res/textures/4.jpg'); var pine_geometry_1 =…
Edgar Alexander
  • 364
  • 4
  • 11
6
votes
2 answers

How to triangulate/tesselate some shape in Java?

I want to tessellate country shape from GeoTools to display it in 3D on Earth surface. GeoTools use JTS topology suite inside which looks feature rich. Does it contain utility to tessellate some shape? I see there is triangulation package, but…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385