lutraconsulting / MDAL

Mesh Data Abstraction Library
http://www.mdal.xyz/
MIT License
160 stars 50 forks source link

The C API is not complete around Edit Modes #365

Open runette opened 3 years ago

runette commented 3 years ago

The handing of edit modes in the C API needs to be improved:

I will submit a separate PR with proposed changes.

PeterPetrik commented 3 years ago

problem is that none of the existing write drivers has capability to EDIT the existing mesh without recreating it from scratch. Therefore it is quite a big change to both API and drivers to allow new capability ("edit") and implement iit.

runette commented 3 years ago

It feels to me like linking the API too closely to the underlying functions. Opening the mesh in edit mode, edit and then persist may indeed mean that the driver has to recreate the whole file (it does in most cases in life) but I am not sure I can see why that means that we have to reflect that at the MDAL API layer.

But the question is currently moot, since there are no drivers that can save both mesh and data.

vcloarec commented 3 years ago

But the question is currently moot, since there are no drivers that can save both mesh and data.

To be exact, Selafin driver can write mesh and dataset... but it is a very specific format...

runette commented 3 years ago

But the question is currently moot, since there are no drivers that can save both mesh and data.

To be exact, Selafin driver can write mesh and dataset... but it is a very specific format...

True that. sorry.