- Join over
**1.5M+ people** - Join over
**100K+ communities** - Free
**without limits** - Create
**your own community**

mesh1 = mesh1 + mesh2

gauss = np.array([discrete_gaussian_curvature_measure(mesh, mesh.vertices, r)/sphere_ball_intersection(1, r) for r in radii])

why is the division of sphere_ball_intersection ?

hey all, I am running into an issue with ray.intersects_location returning much larger distances than expected between two meshes. I first use

`closest_point`

to find points on the lower surface of interest and the indexes for the normals. then use ray.intersects_location with those lower surface points using the closes face normals to those points from the index returned by closest_point. I can tell something is off because if I explicitly set the normals to be [0,0,1], ray.intersects_location return points with different x and y coordinates then the ray origins (the rays should be orthogonal to the xy axis plane). am I missing something?
Hey at all,

i do have a question but i don't know if this is the right place.

I tried the voxel package and voxeled a lot of stuff. But now i wan't to digg deeper but i'm stuck now.

I want to extract the vertex information of every voxel, bacause i need them to manipulate the geometry. So i'm looking for something like: for voxel in allvoxels: give me voxel with his eight vertices. Is this possible?

i do have a question but i don't know if this is the right place.

I tried the voxel package and voxeled a lot of stuff. But now i wan't to digg deeper but i'm stuck now.

I want to extract the vertex information of every voxel, bacause i need them to manipulate the geometry. So i'm looking for something like: for voxel in allvoxels: give me voxel with his eight vertices. Is this possible?

Hi, so I am just getting started with trimesh, is there some documentation I am missing or is it a matter of going through the code?

I am trying the basic example but with a 3mf file and I get "'Scene' object has no attribute 'is_watertight'", how do I import a 3mf as a mesh or how do I split/convert a Scene to a mesh? Thanks

I am trying the basic example but with a 3mf file and I get "'Scene' object has no attribute 'is_watertight'", how do I import a 3mf as a mesh or how do I split/convert a Scene to a mesh? Thanks

@ChrisCarragher If your question is still open, I would export an mesh in STL format from your 3mf file, and then load this STL with Trimesh.

@science-code were you using

`scene.save_image`

?
$ pip show pillow

Version: 7.0.0

Required-by: scikit-image, imageio

Version: 7.0.0

Required-by: scikit-image, imageio

Name: scikit-image

Version: 0.15.0

Version: 0.15.0

Name: imageio

Version: 2.8.0

Version: 2.8.0

they released recently

data = scene.save_image(resolution=[480,480], visible=True) #False)

It works with "visible=True", but does not work with "visible=False".

Moreover, even with "visible=True", the first mesh image is completely black.

Moreover, even with "visible=True", the first mesh image is completely black.

from trimesh import viewer as trimesh_viewer

data = trimesh_viewer.render_scene(mesh.scene(), resolution=[480,480], visible=True)

I suppose it also slows down image generation, due to "visible=True".

@wwwslinger another alternative would be to simplify the mesh while enforcing constraints on its surface. You can use the "Decimate" function of MeshLabServer for this.

@mikedh It used to work with visible=False, but stopped since I installed some python packages. The platform is the same as before, so this isn't the issue. I've tried to identify which python package broke the mesh-image generation, but in vain.

@science-code I can seem to find Decimate in there, just ParaDecimate -- is that the same? Do you have link to an example perhaps?

You need to install meshlab for that work.

To change the number of triangles in the final mesh, edit the value on line 21:

<Param type="RichInt" value="2000" name="TargetFaceNum"/>

Those filters are just for cleaning the mesh.

Hi, I am looking for a simple way to solve this problem in python: I have a mesh of a roof. The real object is composed of planes intersecting at sharp angles. However, the mesh I have has several thousand faces. I am looking for a way to merge all adjacent faces whose normals are within a certain angle. In other words, I want to merge all nearly coplanar faces. Is there a trimesh way of doing this? I was looking at trimesh.grouping.group_vectors, but I don't know how to enforce connectivity and also I don't know how to merge the groups.

Hello all, I want to compute the mean/gaussian curvature over a mesh and I'm looking at the curvature.ipynb example with the following code:

But I don't really understand what the

`discrete_gaussian_curvature_measure(mesh, mesh.vertices, r)/sphere_ball_intersection(1, r)`

But I don't really understand what the

`sphere_ball_intersection(1,r)`

call is about... what exactly is this example showing? Can I use this to calculate curvature at every vertex for an arbitrary mesh? How would I know what value of r to use?
Hello. For my project, I need to measure the distance between two STL files. I wrote a script that allows reading the files, positioning them in relation to each other in the desired position . I saw the module Trimesh.collision because it looks like a mesh - mesh comparer . So I tried to use min_distance_single to "get the minimum distance between any pair of objects, one in each manager" but I receive and error like this

I tried to upload a mesh from a .stl file (ASCII) . I discover this library recently, is there a module that can make me discover the distance between those two objects? I also wrote the question here: https://stackoverflow.com/questions/61159587/measure-distance-between-meshes?noredirect=1#comment108198970_61159587