mesh

Calculate vertex distances of a mesh

Calculate vertex distances of a mesh Question: I am using Numpy arrays to express a triangular mesh. I have two matrices: coordinates is a 3 x n matrix, and connectivity is an n x n matrix that uses 0s and 1s to store vertex connectivity. Now I want to calculate a n x n matrix …

Total answers: 2

Find faces connected to vertex

Find faces connected to vertex Question: Say I have a tetraeder which is built up out of triangles (or faces), each triangle contains three vertices. The tetraeder is represented as follows: vertices = [[0. 0. 0.] [0. 1. 1.] [1. 0. 1.] [1. 1. 0.]] faces = [[0 1 2] [0 2 3] [0 1 …

Total answers: 3

how to make an open stl file watertight

how to make an open stl file watertight Question: Newbie here! I have an STL file which is not watertight and the gap is quite big to repair with the close vertex of the trimesh. I tried with open3d by following this but I have the following error: "ValueError: vector too long".. Is there any …

Total answers: 1

Boolean geometry subtraction of 3D meshes

Boolean geometry subtraction of 3D meshes Question: 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 meshes such as intersect and subtract. …

Total answers: 3

geodesic distance on 3d triangular mesh using scikit-fmm or gdist

geodesic distance on 3d triangular mesh using scikit-fmm or gdist Question: I’m trying to evaluate a geodesic distance matrix on the TOSCA dataset. e.g. the following 3d mesh- I’ve tried using two python implementations. The first one is the scikit-fmm, which does not seems to work on 3d structures at all (am I right?) hence …

Total answers: 1

Intersection 3D meshes python

Intersection 3D meshes python Question: I just started to work with 3D meshes, oriented to be used for finite element analysis. I would like to model inclusions for materials (any shape, but mainly interested in spheres and ellipsoids) in a cube-like matrix. These inclusions shouldn’t be coincident with each other. So I was thinking to …

Total answers: 2

What is the purpose of meshgrid in Python / NumPy?

What is the purpose of meshgrid in Python / NumPy? Question: 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 …

Total answers: 9