marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
1.98k stars 257 forks source link

change assembly obj to mesh #1069

Closed priyabiswas12 closed 3 months ago

priyabiswas12 commented 4 months ago

Hello,

May i know how to change an assemply object to a mesh object and save it? Thank you

marcomusy commented 3 months ago

Try

merge(my_assembly.unpack()).write("mymesh.stl")
JeffreyWardman commented 3 months ago

I'd recommend adding .clean() after merging in case there are overlapping points as well :)

vedo.merge(my_assembly.unpack()).clean().write("mymesh.stl")
priyabiswas12 commented 3 months ago

Ah okay, thank you so much!