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

Open
#79 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia

Research direction

The issue names no files or tests, so first locate the current MeshIO.jl code that depends on GeometryBasics.Mesh and trace its mesh-handling entry points. Compare that usage with the three requested operations—extracting vertices and triangles, computing face normals, and constructing a mesh—and consider the interface design and default normal method; done means those operations work without requiring a specific mesh type.

Written by the indexing model from the issue text.

Description

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:

  • extract vertices and triangles from a mesh,
  • compute the normal for each face of the mesh (this can have a default method),
  • build a mesh from vertices and triangles.
Dominant language
Roff
Stars
88
Forks
40
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaIO/MeshIO.jl

All issues in JuliaIO/MeshIO.jl

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.