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
5
votes
3 answers

Boolean geometry subtraction of 3D meshes

I am parsing a 3D mesh from .obj using pywavefront which gives me vertices, faces and normals. I want to calculate the remaining area from subtracting another mesh. Following up on calculating volume I wonder how can I perform operations on the…
high_byte
  • 261
  • 3
  • 7
5
votes
1 answer

Distance based addition of points to vertices (mesh geometry)

I have a THREE.Geometry in my scene that contains over 5,000 vertices. What I want to do is to add THREE.Points to the scene for only 3 vertices of the mesh containing the geometry. I want to achieve something like this: I took the 3 vertices of…
Lju
  • 117
  • 5
5
votes
3 answers

How to use delaunay trianglation in 3d points?

I understand how to use delaunay triangulation in 2d points? But how to use delaunay triangulation in 3d points? I mean I want to generate surface triangle mesh not tetrahedron mesh, so how can I use delaunay triangulation to generate 3d surface…
Damons
  • 153
  • 1
  • 1
  • 7
5
votes
0 answers

pythreejs fails to render large mesh in jupyter notebook (but succeeds at rendering a small one)

I've been attempting to use pythreejs to render 3D objects in my jupyter notebooks. For a first test, I did the following simple example with a tetrahedron: # Plot a mesh with pythreejs import pythreejs as p3js from IPython.display import…
nben
  • 646
  • 5
  • 20
5
votes
3 answers

Mapping a stereographic projection to the inside of a sphere in ThreeJS

When it comes to 3D animation, there are a lot of terms and concepts that I'm not familiar with (maybe a secondary question to append to this one: what are some good books to get familiar with the concepts?). I don't know what a "UV" is (in the…
stevendesu
  • 15,753
  • 22
  • 105
  • 182
5
votes
1 answer

How to convert a colored point cloud into a textured mesh?

I have a .ply file which contains a colored point cloud: I need to convert it as a textured mesh. I can create a blank mesh doing: Filters -> Point Set -> Surface Reconstruction: Poisson But the result is a white mesh It seems that all the…
Simone Colnaghi
  • 123
  • 2
  • 10
5
votes
1 answer

What is "Hermite Data" described in the Dual Contouring algorithm?

I have been reading various sources the past hours and couldn't understand how Dual Contouring works. My problem is that I don't know the meaning of "Hermite Data" and even Google and Wikipedia couldn't help me on that. Could someone explain me what…
QuesterDesura
  • 385
  • 2
  • 18
5
votes
2 answers

Read formatted data from part of a file fast (Gmsh mesh format)

I maintain a little Python package that converts between different formats used for mesh representation à la Those files can grow pretty big, so when reading them with Python it's important to do it efficiently. One of the most used formats is msh…
Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
5
votes
1 answer

Converting a Non-Directional Graph to a Mesh

Statement: I'm creating a program that lets users lay out their own non-directional graph (nodes and edges). Once they press a specific button, I want to create a triangulated mesh out of each 'gap' in the graph. Here are two images that should…
ADaurio
  • 99
  • 7
5
votes
1 answer

Performant GL Triangles Mapbox GL JS

I am working on trying to create a basic, grid-based, but performant weather-arrow visualization system. EDIT 2: Up-to-date version here: ( Mapbox Tracker ) of the system using the workflow which is described below Usage Instructions: - Click on…
swratten
  • 51
  • 3
5
votes
1 answer

Create Wavefront .obj files in C++ (mesh 3D)

I have a vector>, which contains my map (2D array created with my random generator): (source: cjoint.com) I want to display this map in 3D (with Irrlicht graphic 3D library). The big problem: my map is too big (1920x1080), so i can't…
usernameHed
  • 51
  • 1
  • 2
5
votes
1 answer

multi-edge bevel on half-edge structure

I am looking for a sample implementation, or pseudo code, of multi-edge bevel on a half-edge datastructure. Single edge bevel is easy - but multiple-edges at once... I tried now for several hours without success. I'm only struggling with the…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
5
votes
1 answer

How to cut a mesh by plane in Unity3d

I want to cut meshes by plane. try this code, but get only one of parts of cutting mesh. Screenshot 1 Screenshot 2 public void SliceIt() { Vector3[] vertices = mesh.vertices; Transform clone = clone = ((Transform)Instantiate(transform,…
Knaus Irina
  • 789
  • 5
  • 15
  • 35
5
votes
1 answer

Meshes: "Sorting/Reordering" Arrays Referencing Shared Entries of Another for Cache Efficiency

Given a vertex array: {v1, v2, v3, v4, v5, ..., vN} And K polygons indexing it with blocks like so for a sample 4-sided polygon*: {v7, v2, v51, v16} Note that two or more polygons may share the same vertex. In fact, most vertices will be shared by…
user4842163
5
votes
2 answers

Three.js Raycaster not detecting scene mesh

I am using three.js r67 in Chrome Version 35.0.1916.153 m I am attempting to intersect some custom meshes that I have created in my scene. The raycaster does not appear to be registering the meshes although they exist within scene.children . Mesh…
James Milner
  • 879
  • 2
  • 11
  • 16