JuliaIO / MeshIO.jl

IO for Meshes
Other
79 stars 31 forks source link

This package needs to work with an interface, not with types #79

Open plut opened 2 years ago

plut commented 2 years ago

Right now this package can only work with the Mesh type as defined in GeometryBasics. Which, given how poorly this type is documented, makes it quite unuseable.

Instead of forcing the user to use these classes, the Julian way is to work with interfaces, not with types. As an example, one could look at this wonderful little package called AbstractTrees.jl: this manages to offer a number of useful algorithms for general tree types without forcing the user to use any explicit type (and not even forcing them to derive from a given abstract type).

This would be even more adapted to this package given that the interface used is really simple:

SimonDanisch commented 2 years ago

If you have a PR with the needed changes, I'm happy to review it ;)

plut commented 2 years ago

I am indeed trying to write a proof of concept, although 1) it will start by implementing only a small subset and 2) don't expect it too soon...

sjkelly commented 1 week ago

This should be a bit easier going now with Pkg extensions in 1.9.