i need a help please
Trimesh has a
invert method that inverts faces: https://trimsh.org/trimesh.base.html#trimesh.base.Trimesh.invert
I have a 3D shape loaded from an
.off file, and I have an image load as a
I want to add this image as a texture to the mesh but I can't figure out how to do it. I did the following manipulation, but when I show the mesh, the texture is not applied.
import trimesh from PIL import Image im = Image.open("image.png") m = trimesh.load("mesh.off", process=False) tex = trimesh.visual.TextureVisuals(image=im) m.visual.texture = tex m.show()
How can I do this?
Thank you in advance.
facetsproperty, but I don't know if that problem has a well defined solution, as the resulting planar surface may not be a single triangle so there may be multiple solutions as to how to merge them I guess.
hi there, I'm a complete noob to
trimesh but I really like this library from the first impression and usage.
As a newbie, I'm going to explain my problem in my own word, which probably can be better described with trimesh-idiom. Please feel free to point it out.
Given a mesh, I want to get the vertices coordinates from different views, e.g. the file above represents a "Fence" object, I want to have the vertices coordinates under the six views, respectively.
Is there a API in
trimesh for it?
Trimesh offers Boolean operations for meshes using either Blender or SCAD as the computation engine. I'm finding that the results of the Boolean operations are a great deal faster on the Blender engine compared to SCAD. The results of Blender's engine are yielding inconsistent results (SCAD is taking way too long, so I'm not sure if it would result in similar issues). I've found that Blender's Python API allows a great deal of additional customization within their Boolean engine that may address the inconsistencies (https://docs.blender.org/api/current/bpy.types.BooleanModifier.html). Are there any plans for the additional arguments that Blender accepts to be added to Trimesh or should I just use bpy for this additional functionality?
I'm no expert on these sorts of things, so maybe you all might have some advice?
Broadly, I have two meshes that I would like to intersect. The result I am getting is a strange interpretation of an intersection. Small perturbations to my file's position in space make it such that it works some times, but not always. Any recommendations are welcome. Thanks.
vt) from an .obj-file when loading it as a
trimeshobject. Is it possible to get the texture coordinates directly through
trimeshor do I need to read them separately?