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
0
votes
0 answers

How can I partially remesh my model or get a similar effect?

I have came back to using blender recently, as my motivation to improve my modeling skills returned to me. So i have modeled this base for a dimetrodon mesh from simply placing UV spheres, and slightly sculpting them. The problem is, I want to…
Barje
  • 1
0
votes
0 answers

pygmsh: how to build ourself mesh?

Now, I need to build myself mesh by pygmsh. The mesh means: points = [ [x0, y0, z0], [x1, y1, z1], ... [xn, yn, zn] ] connections = [ [c11, c12, c13], [c21, c22, c23], ... [cm1, cm2, cm3] ] How can I input this mesh to…
Qiang Zhang
  • 820
  • 8
  • 32
0
votes
1 answer

How can I create a triangle mesh in an .ifc file from scratch in python?

I am new to working with .ifc files in python. What is the best way to create a triangle mesh when I have two arrays - one with vertices and one with faces - in a new .ifc file and how can I do this with python with the ifcopenshell package? I have…
Nils
  • 3
  • 5
0
votes
1 answer

How to plot a mesh3d object in R plotly?

I'm struggling to plot a triangulated mesh in plotly that works in RGL. I prefer to plot this with plotly for the ability to scroll over data and have hover info. I'm open to sticking with RGL if anybody knows how to do this. Reprex data and the…
myfatson
  • 354
  • 2
  • 14
0
votes
0 answers

How to break down a mesh distance minimization problem?

I'm having trouble solving a problem using "Ceres" and I could use some help! To simplify the problem: Imagine I have a mesh "A" that I want to scale and rotate (with scale + rotation represented as variables!) to be as close to a mesh "B" as…
IApp
  • 667
  • 1
  • 6
  • 18
0
votes
0 answers

Draco. I have .obj model. How can I compress it to file with .drc extension?

The main problem is that after decoding file, I get PointCloud while a have to get Mesh. So common instruction from draco repository (https://github.com/google/draco/blob/master/javascript/npm/draco3d/draco_nodejs_example.js) does not suit me…
l4pukh
  • 1
  • 1
0
votes
0 answers

Why does when I remove the triangle it removes the back only not the front?

I am implementing triangle removal of a mesh by using ray cast. It removes the triangles from the moves that the ray cast is hitting it, but the problem is when I am trying to remove the triangles, it removes the back part of the mesh not the front,…
0
votes
0 answers

Unusual Mesh Outline PColorMesh

I am utilizing the pcolormesh function in Matplotlib to plot a series of gridded data (in parallel) across multiple map domains. The code snippet relevant to this question is as follows: im = ax2.pcolormesh(xgrid, ygrid, data.variable.data[0],…
TornadoEric
  • 399
  • 3
  • 16
0
votes
0 answers

How to add a point to the border of a surface in Gmsh?

I need to add a point to the boundary of an existing surface to refine the mesh in Gmsh. The Python IDE has a function "gmsh.model.reparametrizeOnSurface(dim, tag, parametricCoord, surfaceTag, which=0)" which allows you to add points to a border…
0
votes
0 answers

OpenGL Mesh class doesn't draw anything

I'm learning how to code graphics with OpenGL. So far I have created IndexBuffer, VertexBuffer, VertexArray, Camera, Texture and Shader. Now I'm trying to make a Mesh class with vertices, indices and textures. But when I call the "Draw(Shader&…
0
votes
0 answers

Get pixel colors of a meshtriangle from its texture

Using Trimesh library (https://github.com/mikedh/trimesh),I'm trying to get the pixel colors of a mesh triangle from the texture loaded with the 3D mesh (.obj + .png +.mtl). In other words, given a vertex #0, I want to map the incident faces to the…
0
votes
0 answers

Smoothly transitioning one mesh to another

I have two meshes Mesh1 and Mesh2. Mesh1 does not necessarily have the same amount of vertices or faces as Mesh2. What is the best way to "transition" between these two meshes smoothly? Obviously, I could do a linear interpolation of some sort. But…
Tyrcnex
  • 196
  • 12
0
votes
0 answers

GMSH Python API - local mesh refinement with setsizecallback

I would like to perform local mesh refinement depending on physical results obtained with a prior simulation. I am using GMSH and the setSizeCallback(meshSizeCallBack) function to apply the desired mesh size in the refinement region. The obtained…
Martin7
  • 93
  • 8
0
votes
0 answers

Creating a 3D surface with interp2d / RBFInterpolator / griddata

After long time of interested reading, it´s now time for my first question here. I try to create a 3D volatility surface out of single data points. The basic structure looks like…
Ooni1
  • 1
  • 1
0
votes
1 answer

Why is my Index Generation Function not correctly building the triangle primitives?

I am trying to code a function which automatically populates a mesh's index vector container. The function should work without issue in theory as it generates the proper indices in their correct order; however, the triangles do not form! Instead, I…
1 2 3
99
100