brain-slam / slam

Surface anaLysis And Modeling
MIT License
13 stars 24 forks source link

IO module design using oriented object programming #87

Open alexpron opened 2 years ago

alexpron commented 2 years ago

Hello it seems the io module could be reimplemented using object oriented programming either deriving a new class from the Trimesh.trimesh or overloading the load_mesh and export methods. It could be cleaner and easier to use. What do you think ? Alex

gauzias commented 2 years ago

Yes I fully agree. Actually I did not do it directly only because I was not sure of how to derive or overload a class from Trimesh, but we should learn to do it because it is a better solution in many cases. Let us start with IO, which is the simplest one.