# Questions tagged [mesh]

A polygon mesh or unstructured grid is a collection of vertices, edges and faces that defines the shape of a polyhedral object in 3D computer graphics and solid modeling.

**-1**

votes

**0**answers

14 views

### One sided triangular mesh offset computation

I am trying to "offset" a triangular mesh from one side, you can imagine it as if there is a 2d grid (X-Y) above the mesh and a sphere of a given radius is thrown onto the mesh from each of the grid's ...

**1**

vote

**0**answers

19 views

### Problem with adding multiple triangle meshes to a scene in javafx

I hope someone can help me with this problem.
I am using javafx and triangle mesh to construct a sphere-like object out of triangles (like a football). The different tiles of the shape are ...

**0**

votes

**0**answers

11 views

### Plotting face data on a 2D unstructured quadrilateral mesh in Plotly

I am trying to plot face data on a 2D unstructured quadrilateral mesh in Plotly. So far all I can figure out is this (working, yet very slow when having lots of data) workaround. A Minimal Working ...

**0**

votes

**0**answers

6 views

### Zigbee Network Modeling

I need to make a zigbee mesh network topology to calculate the delay in a smart meter network.
My network has 5000 smart meters (nodes/end devices). I thought of having around 50 smart meters per one ...

**1**

vote

**1**answer

26 views

### Draw mesh using material with different colors

I am making a grid based game. For it I need to debug certain tiles, for example where there is a collision and where the player is aiming. I have made a debugger class that draws a square mesh at a ...

**3**

votes

**2**answers

64 views

### 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. ...

**0**

votes

**0**answers

27 views

### Unity3D outline for canvas component

I have a custom graphics script that display mesh to ui. I use mesh vertices and mesh colors. No textures, if it matters. Meshes can have more than 3 vertices. The problem is I want to show meshes ...

**0**

votes

**1**answer

37 views

### Coloring Rgl 3d mesh faces

I'd like to color faces on an triangular RGL mesh based on proximity to a vertex.
The thing is, it seems that a lot of the times that the vertices are associated with faces that are very far from ...

**-1**

votes

**1**answer

33 views

### Maya Python: “select all vertices below y = 0”

Using maya.cmds, I want to select all vertices below y = 0 so I can delete them. How would I implement this? Also, I'm processing a large number of .obj meshes, so I'll need to iterate through each ...

**2**

votes

**1**answer

54 views

### Create a Mesh from a Wireframe (Lines and Points) in 3D

I have a program that produces a cloud of points along with information on edges, i.e. connection between points. I would like to be able to create faces from this data.
Currently, I am using a simple ...

**0**

votes

**0**answers

10 views

### CGAL: Adding features to control surface patches of a tetrahedral mesh

Having learned how to output surface patch IDs from the answer to my previous question, I would like to guide the subdivision into surface patches by manually adding features.
As a MWE, I take the ...

**0**

votes

**0**answers

23 views

### 3D Mesh: How to detect if a Surface/Mesh is folded according to a Projection plane

I have a piece of program that accepts a Mesh and a plane
and projects the 3D Mesh to the plane.
However, the program only works well when the 3D Mesh is not "folded" ACCORDING to the given plane.
...

**0**

votes

**0**answers

12 views

### Algorithm for removing double (spatially close) vertices in a triangular mesh?

I'm looking for an algorithm that I can use to remove vertices that are close to each other within a margin of error in a triangular mesh. Pretty much similar to Blender's "Remove Doubles" feature, if ...

**0**

votes

**0**answers

17 views

### Meshlabserver error in XML file when export mesh

I'm working with meshlabserver in Ubuntu and the following problem happens to me:
meshlabserver -i mesh.obj -o mesh.ply
The exported mesh removes the decimal part of the vertex coordinates.
...

**0**

votes

**0**answers

24 views

### Create 3D mesh from different cubic depth maps

I managed to create each mesh separately but still having some issues I guess that they are comming from the precission besides I'm using a 32 bit floating point depth map:
Also I have some small ...

**1**

vote

**1**answer

37 views

### Does ordering of mesh element change from run to run for constrained triangulation under CGAL?

I iterate over finie_vertieces, finite_edges and finite_faces after generating constrained delauny triangulation with Loyd optimization. I am on VS2012 using CGAL 4.12 under release mode. I see for a ...

**1**

vote

**1**answer

35 views

### how to vectorize this function

The following code works, but I would like to create Z by vectorization. How to achieve that?
import numpy as np
from numpy import sqrt
from math import fsum
points = np.array([[0,0],\
...

**0**

votes

**0**answers

28 views

### Is there any photo mesh with initial points?

I'm developing an application for photo correction. One of the tools should change the waist.
so the tool looks
To do this, I need to change the image grid, but because the person can rotate the ...

**0**

votes

**1**answer

26 views

### Static lightning is not calculated: “Objects have different materials”

I have 4 meshes in my scene as such
These GameObjects are essentially 4 cubes and a plane like so
For testing purposes, I wanted to see if I understood static batching by trying it out on these ...

**3**

votes

**1**answer

70 views

### Get Contiguous Faces In a Mesh

I am looking for an algorithm to find all (or maximum no of) contiguous faces of a continuous mesh. The faces should be ordered in an array in such a way that each face is preceded by a face linked to ...

**1**

vote

**1**answer

30 views

### Keep patch numbers during tetrahedral meshing with CGAL

Input
I have several meshes in the .off format that together enclose a volume. For instance, take patch-01.off, patch-20.off and patch-30.off that are available with CGAL-4.11 in examples/Mesh_3/data/...

**0**

votes

**1**answer

33 views

### How to access the mesh when the 3D object is loaded during runtime in Aframe?

When 3D object is loaded during runtime in Aframe, how to access the mesh information?
I have loaded the 3d Model with:
targetObj = document.createElement('a-obj-model');
targetObj.setAttribute('...

**0**

votes

**1**answer

23 views

### 1D spherical grid in FiPy

I would like to solve the diffusion equation in FiPy in spherical coordinates on a 1D grid. I would also like the left boundary to be at r=0.1, not r=0.
I can't find a module for 1D spherical ...

**2**

votes

**2**answers

53 views

### How can I plot 2d FEM results using matplotlib?

I'm developing a 2D plane finite element tool. One of the features is the ability to visualize the stresses on a particular object.
This tool creates a quadrilateral mesh using the following data:
...

**0**

votes

**1**answer

33 views

### WebGL - Use a mesh as inverted mask

I need to color my canvas completely in black except for a spinning cube that must remain transparent to show the content of the page positioned below the canvas. The canvas should work as a mask for ...

**0**

votes

**3**answers

63 views

### 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 ...

**0**

votes

**0**answers

28 views

### Detecting horizontal and vertical surfaces on a 3D mesh

I have an application using Qt3D to show 3D objects. I'm looking for a way to detect 3D surfaces on my 3D objects which are more vertical versus surfaces which are more horizontal, like this:
I don't ...

**0**

votes

**0**answers

11 views

### How to apply quantization to vertex coordinates?

Question title is pretty self explanatory.
I couldn't find any option to quantize vertex coordinates.
I think Meshlab determines itself but I want to determine it myself. (32bit 16bit 10bit etc.)
...

**1**

vote

**2**answers

98 views

### Unity Mesh Deformation with Collisions

How to access the 2D mesh of a sprite by code then change the shape of the sprite by code can this be coded?
I want to make a game similar to Agario
I just was wondering how to achieve this jelly ...

**2**

votes

**1**answer

84 views

### 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(...

**-2**

votes

**0**answers

30 views

### how to convert image volume to surface mesh (.obj file)

i would like to convert a volume of binary values, lets say it represents a brain image, to a surface mesh (preferably of .obj format). (see below)
does anyone know of software that can accomplish ...

**2**

votes

**3**answers

58 views

### Numpy unique triangles in mesh

I have a mesh of triangles stored in numpy. Some triangles are duplicates and I want to remove them.
An example of my numpy array:
# Some points
a=(-2,-2,0)
b=(1,-2,0)
c=(1, 1,0)
d=(-2,1,0)
e=(-2,-2,...

**2**

votes

**1**answer

41 views

### How to apply transformations to mesh geometry

On Qt3D, an entity can have these two components:
Qt3DRender::QGeometryRenderer component which contains the mesh geometry data like vertex positions and normals.
Qt3DCore::QTransform component which ...

**0**

votes

**1**answer

37 views

### Axisymmetric blockMeshDict: FOAM FATAL ERROR: wedge … centre plane does not align with a coordinate plane by

I'm trying to follow this tutorial to create the axisymmetric model below:
Following the discussions over here, my blockMeshDict file is:
FoamFile
{
version 2.0;
format ascii;
...

**4**

votes

**0**answers

91 views

### 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 ...

**1**

vote

**1**answer

29 views

### Giving attributes to physical domains in gmsh

Based on my previous question physical entities for gmsh I am moving forward trying to understand if it is possible to give domain characteristics to the physical entities defined in the *.geo file.
...

**0**

votes

**0**answers

19 views

### Can Meshlab determine whether a point is inside a mesh

Meshlab uses vcglib c++ library at its core. I was wondering if Meshlab can check if a point is inside a 3D mesh (polyhedron). I found an article which explains a possible way to determine an internal ...

**0**

votes

**0**answers

23 views

### Python shapely: How to triangulate just the inner area of the shape

I wanna convert this shape to triangles mesh using shapely in order to be used later as a 3d surface in unity3d, but the result seems is not good, because the triangles mesh cover areas outside this ...

**2**

votes

**1**answer

37 views

### distorted Mesh with threejs

Hi I am trying to draw a model in threejs.
I tried drawing it with lines resulting in a correct representation of the bim model.
Drawing it with a mesh results in a distorted model
My approach to ...

**0**

votes

**1**answer

18 views

### Internal structure of .obj files and calculation of vertices in relation to conditional statements.

Being new to .obj and 3D rendering please excuse my ignorance, I will formulate the question as clearly as I can.
My program will accept .obj files formatted like this:
g Cube.006
v 2.016505 -3....

**3**

votes

**3**answers

62 views

### Accessing mesh vertices performance issue

I am having trouble with this code running slow (around 250ms to execute the loop)
The mesh.triangles.Length is 8700.
I am using c# on the latest Unity platform (version 2018.2.3).
I suspect this ...

**0**

votes

**0**answers

55 views

### Plotting irregular rectangular mesh/grid with Mayavi in Python

How does one plot an irregular rectangular mesh with Mayavi in Python (mayavi.mlab)?
from mayavi import mlab
import numpy as np
x = np.array([1, 2, 4])
y = np.array([1, 2, 4])
z = np.array([[3, 3, ...

**0**

votes

**1**answer

30 views

### how can I generate suface mesh non-uniformly using CGAL?

I want to generate surface mesh(3d triangle mesh) non-uniformly,How can I do it with CGAL?
when I use Polygon Mesh Processing package,I got result like this:
all the triangle have almostly same size
...

**0**

votes

**0**answers

45 views

### UE4 C++ Static Mesh of actor not spawning in

I have made a pickup actor and a spawner actor. After 2 DAYS of debugging and researching I've managed to actually spawn the actor but the static mesh does not spawn it with it. Please help!
...

**0**

votes

**0**answers

36 views

### Masking part of objects out of field of view in Unity

I'm working on a 2D Unity project where people can only see objects in their field of view. I have successfully created a quad overlay that masks out any ground outside of your field of view. What is ...

**1**

vote

**1**answer

33 views

### Gmsh issue with physical entities

I have a *.geo file that I have written with a python script. The main use of this *.geo file is to construct and save a triangular mesh. In gmsh you can label interest entities with the command ...

**1**

vote

**3**answers

60 views

### No module named 'meshpy._triangle'

I installed meshpy (using python 2.7) following the instructions here on my ubuntu 16.04 LTS and trying to run examples from here after browsing into the directory of meshpy. Part of the example that ...

**0**

votes

**0**answers

38 views

### Combine meshes in Unity at runtime

I'm trying to combine "seats prefabs" into a single mesh at runtime to save some draw calls.
My seat contains 2 MeshFilter, a base and a top (= the seat, red on the picture) with 2 different ...

**0**

votes

**0**answers

35 views

### How to improve triangulation of mesh [meshlab]

Improved triangulation 1:
Poor triangulation 2:
Hey, so I am using meshlab and want to improve the triangulation of my mesh from 2 to 1 without changing the surface/volume of the object. How can I ...

**0**

votes

**0**answers

23 views

### Offset x and y coordinates before mesh generation

I'm currently in the process of creating roads based on x and y coordinates in Unity.
My source data is an array consisting of nested arrays containing {x,y} pairs.
I then render a mesh with the ...