Questions tagged [trimesh]
94 questions
0
votes
0 answers
Issue with loading a 3D mesh with Trimesh
When I load a 3D colored mesh (one RGB color per vertex with the following code :
#include "TriMesh.h"
trimesh::TriMesh mesh_true;
if (mesh_true.read("chien/colored/dog_simp.ply")) {
std::cout << "Number of vertices: " <<…

paul
- 9
- 2
0
votes
1 answer
Calculating the thickness of an stl file
I'm a student and I came upon a project with printing 3d files. Before printing the files have to be checked - for which I am using this trimesh.
stl image I am trying to calculate the thickness of this 3d model and check if it is less than 1mm at…

kokokarakolelo
- 11
- 1
0
votes
3 answers
Python code to check whether a point is inside a given mesh
I am using the trimesh library, to check this. It has mesh.contains for performing these checks. I am trying to truncate an array of lines using the mesh.contains, such that the new lines only contain the points from inside the mesh.
Although this…

Schneider
- 37
- 1
- 8
0
votes
0 answers
Holes or Gaps detection in 3D model
How to detect holes or gaps due to incomplete data in mesh file?
I have tried using several library such as open3d, trimesh, pyvista but unable to fully come with a code that solve problem.

sachine
- 1
0
votes
0 answers
Way to interface with openSCAD with interface_scad() in Python but CalledProcessError
I'm trying to use interface_scad() to run some scripts by openSCAD,but meeting CalledProcessError.
import numpy as np
import…

AuroraHu
- 1
0
votes
0 answers
While running POSA model: Runtime Error in smplx/body_models.py, reset_params function
I was going through the POSA repository to find the contact vertices of SMPL body and scene. Link to POSA GitHub repository
Traceback (most recent call last):
File "src/affordance.py", line 105, in
vertices_org, vertices_can,…

Vidit Agarwal
- 18
- 4
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
Constrain a 3D mesh to not have overlapping triangles when projected in a specific plane
I have a 3D polygon composed of points which are almost coplanar, vertically (which means the offset distances from those points which are not coplanar are orders of magnitude smaller than the distances between the points. They are due to numerical…

swiss_knight
- 5,787
- 8
- 50
- 92
0
votes
0 answers
Trimesh duplicated uv coordinates
It has been several weeks that I am looking for a way to have one UV coordinates (tuple) associated to one vertex while loading a textured 3D mesh (.obj file + .png + .mtl) with Trimesh library. Here is how I am loading :
im =…

James
- 9
- 5
0
votes
1 answer
Importing 3dxml file with trimesh
I try to load a 3dxml file with the python library trimesh, I want to open it and get all the meshes from it.
But I cannot load it.
I tried:
`
import numpy as np
import trimesh
import trimesh.path.exchange
import…

Damocls
- 1
- 1
0
votes
0 answers
Trimesh shows model when loading as mesh but not as scene
I'm trying to display a .glb file with Trimesh library. If I only do trimesh.load("model/path/"), it doesn't show all the elements on the scene, just one and it has 50. But if instead I load the model with trimesh.load("model/path/", force='mesh')…

a.ching
- 1
- 1
0
votes
0 answers
Trimesh .stp File not loading into script
I am trying to use the python package Trimesh to extract data from .stp files, like bounding box, convex hull, etc., and when i try and load any file over 2000 KB the line of code just seems to run for ever until i run out of memeory, when it then…

Bobby Plourde
- 17
- 7
0
votes
0 answers
Calculate real world coordinates given camera intrisinc, extrinsic, trimesh
I am struggling to map pixel coordinates to world coordinates. From what i've found on google, apparently I have to use the camera intrinsic/extrinsic (I have them).
Can you explain me how to use the rotation matrix & the translation vector to map…

Carlos
- 1
- 1
0
votes
1 answer
Access mesh imported with gmsh
I think I have a very common problem. Can you help me out? I want to examine a 3D-mesh with python. I want to use trimesh in order to examine the mesh but the mesh comes with the .STEP Format. I use gmsh to load the mesh but I have no idea how I can…

VeryStoic
- 1
- 3
0
votes
0 answers
Pymeshfix Error while trying to repair a stl file
If i try to repair an input stl file (https://www.file-upload.net/download-14916065/waxup_slm_cad.stl.html) with the library pymeshfix (https://github.com/pyvista/pymeshfix), the following error will follow:
Windows fatal exception: access…

marxcell
- 69
- 6