Questions tagged [trimesh]
94 questions
10
votes
3 answers
How do I convert a 3D point cloud (.ply) into a mesh (with faces and vertices)?
I have a 3-D point cloud file with 1 million points that I need to convert into a mesh file in trimesh. The ultimate goal here is to take a point cloud and determine if that point cloud is convex or concave (trimesh allows me to do that once i…

Vishal
- 165
- 1
- 1
- 8
5
votes
0 answers
GLException: No GL context; create a Window first
I am trying to read and display a .ply file with Trimesh in Python. I have installed Trimesh using pip install trimesh as well as pyglet to display the file.
import trimesh
mesh = trimesh.load("file.ply")
mesh.show()
However, I keep getting the…

craig-nerd
- 718
- 1
- 12
- 32
4
votes
1 answer
How to apply a rotation to a node in trimesh
I have a .glb glTF file that specifies a character.
The character has 75 nodes, and no animation track.
I wrote the following code to render the character, and now I would like to apply some rotation to specific nodes before I render it.
My…

Amit
- 5,924
- 7
- 46
- 94
4
votes
0 answers
Rotating a mesh in Trimesh
I have a mesh geometry loaded into Python via TriMesh. I want a free floating camera, but I want to change the default view (of a trimesh scene) by rotating the mesh. How do I rotate a mesh or set the default view of the camera without creating a…

Steve Scott
- 1,441
- 3
- 20
- 30
4
votes
2 answers
Open3d Python Issue: No attribute 'estimate_normals'
I am working with open3d for python3 on windows. It was installed through pip via 'pip install open3d-python'. I've checked documentation and everything seems right with my script, which attempts to convert a point cloud file (.ply) to a mesh…

figbar
- 714
- 12
- 35
3
votes
0 answers
Python: Surface Integral over Mesh
Question
How can I compute the surface integral of a specified function of the outer surface of a mesh in python?
Code
I tried to create a minimal workable example. In this example, I try to compute the surface area of a box, which I define using…

henry
- 875
- 1
- 18
- 48
3
votes
2 answers
error using trimesh library on python - " no graph engine available "
I was wondering if you have used the library "trimesh" in python. It looks quite useful, but right now im having some trouble with the method "Trimesh.spli()" on the last line of the code attached. the code was working fine up to that line, which is…

EmanuelMtzV
- 71
- 4
3
votes
2 answers
Complete a partial mesh and make it watetight
I am capturing point clouds from a RealSense camera and converting them into meshes using the Trimesh library. The issue is that I only get a non-watertight mesh from this. How do I "finish" the mesh and make it watertight?
I…

trycatch22
- 307
- 4
- 14
3
votes
1 answer
Plot Trimesh object like with Axes3D.plot_trisurf()
I have a Trimesh object and I can't figure out how to plot it. My goal is something like the Axes3D.plot_trisurf() function from mplot3d would produce (see below). The Trimesh object even has an attribute containing the faces, but I don't know where…

vanessaxenia
- 145
- 1
- 9
3
votes
3 answers
Visualizing 3d models with textures
I have a textured 3d model which has an obj file , mtl file and a png image for textures .
I can visualize them without textures using trimesh and vtkplotter as :
//trimesh//
m = trimesh.load("3dmodel.obj")
//vtkplotter//
m =…

RedBall
- 311
- 4
- 12
3
votes
3 answers
Using pyassimp library in Python
There is too many information out there and I tried most of them. However, I couldn't get assimp working in Python. This is the error that I get :
File "C:\Users\X\AppData\Local\Programs\Python\Python35\lib\site-packages\pyassimp\helper.py", line…

edyvedy13
- 2,156
- 4
- 17
- 39
3
votes
1 answer
Trimesh show method returns AttributeError
I am using the Python trimesh library to manipulate and analyse triangular meshes.
Calling the show() method returns an AttributeError :
import trimesh
mesh = trimesh.load_mesh("myfile.stl")
mesh.show()
Traceback (most recent call last):
File…

Colin
- 43
- 8
2
votes
1 answer
Load the same .obj file by using Open3D and Trimesh respectively leading to different number of vertices
To read the mesh file xxxxx.obj
I use Open3D and Trimesh module respectively by these codes:
import open3d as o3d
import trimesh
mesh = o3d.io.read_triangle_mesh(meshfile)
print(mesh)
mesh_ = trimesh.load_mesh(meshfile)
print(mesh_)
output…

Keddrick Yue
- 21
- 3
2
votes
1 answer
How to get the perimeter of the cross-section between mesh and plane by python?
I use a plane to cut the mesh through meshcut and get a cut surface. The contour of this section is represented by discrete points, how can I get the perimeter of this contour?
The profile of this section is similar to an ellipse but not a regular…

daisy
- 21
- 2
2
votes
2 answers
How to stitch two meshes together along overlapping seams without altering other parts of the meshes?
I'm trying to join two meshes together into one single mesh. The boundary edges of both overlap perfectly, but they do not have the same spacing - thus, all faces touching the seams need to be deleted and then all the points from those faces …

Derek Eden
- 4,403
- 3
- 18
- 31