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

2225 questions
385
votes
7 answers

What is the purpose of meshgrid in Python / NumPy?

Can someone explain to me what is the purpose of meshgrid function in Numpy? I know it creates some kind of grid of coordinates for plotting, but I can't really see the direct benefit of it. I am studying "Python Machine Learning" from Sebastian…
HonzaB
  • 5,435
  • 6
  • 23
  • 36
47
votes
1 answer

How to get the width/height/length of a mesh in THREE.js

I been researching various places about trying to get the width and height of a mesh but I have been able to find anything that works. I have a collada model that I imported and all I want to do is get the dimension of it in Webgl/Three.js Units so…
user3213315
36
votes
2 answers

three.js - mesh group example? (THREE.Object3D() advanced)

I'm attempting to understand how to group / link child meshes to a parent. I want to be able to: drag the parent rotate child elements relative to the parent have parent rotation / translation do the right thing for children My only background in…
Daniel Smith
  • 515
  • 1
  • 5
  • 9
33
votes
2 answers

Android OpenGL .OBJ file loader

There seem to be quite a number of OBJ mesh file loaders out there that people have developed for use on the Android platform. I'm wondering if anyone has any experience with these and can offer a recommendation on which one seems to work best for…
Matt Huggins
  • 73,807
  • 32
  • 140
  • 214
27
votes
5 answers

procedurally generate a sphere mesh

i am looking for an algorithm ( in pseudo code) that generates the 3d coordinates of a sphere mesh like this: the number of horizontal and lateral slices should be configurable
clamp
  • 30,396
  • 73
  • 193
  • 291
25
votes
3 answers

Minimal surface solution in Python

I have a set of 3D points defining a 3D contour. What I want to do is to obtain the minimal surface representation corresponding to this contour (see Minimal Surfaces in Wikipedia). Basically this requires to solve a nonlinear partial differential…
22
votes
3 answers

How to change width of CubeGeometry with Three.js?

I have a cube geometry and a mesh, and i don't know how to change the width (or height... i can change x, y and z though). Here's a snippet of what i have right now: geometry = new THREE.CubeGeometry( 200, 200, 200 ); material = new…
Jorge Guberte
  • 8,064
  • 8
  • 33
  • 51
22
votes
7 answers

Alternatives for updating mesh collider in runtime?

I'm working on game where user generating mesh in runtime (all the time) so mesh have many vertices and in the same time there is a GameObject - player that need to trigger event when it is in area of this generated in runtime mesh. Camera in this…
seek
  • 1,023
  • 13
  • 31
21
votes
3 answers

A Good 3D mesh library

I'm looking for a good 3D Mesh library Should be able to read popular formats (OFF, OBJ...) Should support both half-edge structure and a triangle soup Should be tolerant to faults and illegal meshes. Basic geometric operations - intersections,…
shoosh
  • 70,450
  • 50
  • 199
  • 310
21
votes
4 answers

Display wireframe and solid color

Is it possible to display the wireframe of the object and also the solid color of its faces on the same object? I found a way using a clone of the object and assign different materials e.g var geometry = new THREE.PlaneGeometry(plane.width,…
prieston
  • 1,012
  • 2
  • 11
  • 32
20
votes
3 answers

Algorithm for generating a triangular mesh from a cloud of points

In some simulation program we generate object surfaces in terms of points, each point has 3D coordinates and the vector that represents the normal to the surface at that point. For visualization purposes we would like to generate a mesh composed of…
Open the way
  • 21,703
  • 44
  • 131
  • 190
20
votes
3 answers

Algorithm for determining whether a point is inside a 3D mesh

What is a fast algorithm for determining whether or not a point is inside a 3D mesh? For simplicity you can assume the mesh is all triangles and has no holes. What I know so far is that one popular way of determining whether or not a ray has…
Jeff Jenkins
  • 391
  • 1
  • 2
  • 7
17
votes
6 answers

Can I generate Point Cloud from mesh?

I'm trying to generate point cloud data from mesh such as (.obj) file of Maya. But, I could find out only the opposite case, point cloud to mesh on the internet. Is there any way to create "point cloud data from mesh" using 3D tools like MeshLab or…
Youn A Lee
  • 201
  • 1
  • 2
  • 4
17
votes
1 answer

How to animate a 3d model (mesh) in OpenGL?

I want to animate a model (for example a human, walking) in OpenGL. I know there is stuff like skeleton-animation (with tricky math), but what about this.... Create a model in Blender Create a skeleton for that model in Blender Now do a walking…
user2602528
  • 213
  • 1
  • 3
  • 7
17
votes
3 answers

Get border edges of mesh - in winding order

I have a triangulated mesh. Assume it looks like an bumpy surface. I want to be able to find all edges that fall on the surrounding border of the mesh. (forget about inner vertices) I know I have to find edges that are only connected to one…
Ross Oliver
  • 845
  • 1
  • 10
  • 15
1
2 3
99 100