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

C++ OpenGL mesh rendering

I know there are a lot of resources about this on the internet but they didn't quite seem to help me. What I want to achieve: I am baking a mesh from data which stores the vertices inside a vector. (Vector3 is a sctruct containg float x, y,…
Sheldon
  • 117
  • 1
  • 1
  • 9
7
votes
5 answers

How to compute locations of mesh points when resolution is increased?

Suppose we have some mesh (see the illustrating picture from CorelDraw, which uses the same technique in "Mesh fill" instrument). (source: sonic.net) Obviously this kind of mesh is represented by a set of points and lines between them are actually…
Yippie-Ki-Yay
  • 22,026
  • 26
  • 90
  • 148
7
votes
3 answers

Mesh triangulation and simplification C++ library

I am looking for a C++ library to triangulate and simplify 3D mesh. My 3D meshes are potentially huge (around 3 millions vertices). It should ideally be open source. Any idea?
Korchkidu
  • 4,908
  • 8
  • 49
  • 69
7
votes
2 answers

Coloring individual triangles in a triangle mesh on javafx

I have a triangle mesh object in JAVAFX and would like to either color individual triangles of the triangle mesh or color individual vertices of each triangle and have the triangle be colored according to an interpolation of the colors of each…
7
votes
1 answer

Algorithm for smoothing edges of an open 3D mesh

I have a 3D mesh which represents a surface with some rough boundaries which I would like to smooth: I am using a half edge data structure for storing the geometry so I can easily iterate over the boundary edges, vertices and faces. I can also…
jaho
  • 4,852
  • 6
  • 40
  • 66
7
votes
1 answer

Fastest triangulation algorithm with holes?

I'm working on path finding for an RTS game, where I am building a navigation mesh from the game's grid. I have written an algorithm similar to Marching Squares which creates and simplifies the borders between the walkable and unwalkable regions of…
Janz Dott
  • 325
  • 4
  • 13
7
votes
2 answers

Cutting mesh in realtime

I want to slice a mesh object into at least five parts. I've done some research and some people on here have cloned objects when sliced and just instantiate two objects from a single slice? I'm pretty new to Unity and C#. So any beginner tutorials…
Kala J
  • 2,040
  • 4
  • 45
  • 85
7
votes
1 answer

Texture on a mesh doesn't render correctly Libgdx

I am trying to put a texture on a mesh, but failing. I am trying to render something like this, where texture can be seen but I get this, where I can barely see the triangle. I am running the following code: public class Game implements…
user1506630
  • 375
  • 1
  • 6
  • 14
7
votes
2 answers

What are appropriate starting points for converting video on canvas to a 3d mesh

Is there currently a library in JavaScript for converting a video stream in Canvas into a 3D mesh? An example situation is to point a camera at a cup and to capture the raw imagery, comparing previous data with new data to generate an edge outline…
MyStream
  • 2,533
  • 1
  • 16
  • 33
7
votes
1 answer

colliding with a loci mesh

I want to avoid my player being able to stand inside walls. Each game tick my player moves some small distance and/or rotates. TL;DR please provide a variant of the classic line-segment->-triangle intersection algorithm which returns near-misses…
Will
  • 73,905
  • 40
  • 169
  • 246
6
votes
3 answers

Distribute points on mesh according to density

Given a (possibly open) mesh with a density texture and a number of points I need to distribute these points according to the density on the mesh. So far I have made up several solutions some of which worked and others did not. One of the algorithms…
6
votes
1 answer

Generating quadrilateral mesh from Mathematica surface mesh

I am trying to make a quadrilateral mesh from a surface mesh (which is mostly triangular) generated by Mathematica. I am not looking for high quality mesher but a simple work around algorithm. I use GMSH for doing it externally. We can make use of…
PlatoManiac
  • 1,442
  • 11
  • 31
6
votes
2 answers

c# XNA low frame rate

Ok, I have 80,000 "Box" Mesh with simple textures I have set a view distance and only draw the ones you can see which leave 600 to 1000 for the DrawModel function belowe The problume is I only get 10 frame per second and my view distance is…
codegreen
  • 71
  • 4
6
votes
1 answer

Change font size in curved text with PIXI JS

Is there an easy way to change font size in PIXI JS curved text? Text is created through new PIXI.mesh.Rope(pixiText.texture, points). With resize button (check image below) you can change size of object. I could use scale but it decreases…
Martin Bokša
  • 188
  • 1
  • 1
  • 11
6
votes
2 answers

What are the corresponding fields to set in libtiff or libgeotiff, given a minimal ESRI ASCII file?

I have an ESRI ASCII file of the form: ncols 5 nrows 4 xllcorner 0 yllcorner 0 cellsize 10 NODATA_value -9999 25.4 26.1 27 28.6 27.7 25 26 26.4 27.9 27.4 25.1 25.8 26.8 28.6 27.6 27.5 28 27.7 30.6 28.3 And I need…
Graviton
  • 81,782
  • 146
  • 424
  • 602