Skip to content

Update README with feature table and usage examples#44

Merged
nash1111 merged 1 commit intomainfrom
issue-42
Feb 7, 2026
Merged

Update README with feature table and usage examples#44
nash1111 merged 1 commit intomainfrom
issue-42

Conversation

@nash1111
Copy link
Copy Markdown
Owner

@nash1111 nash1111 commented Feb 7, 2026

Summary

  • Replace outdated delaunay_creator references with current meshing crate
  • Add feature tables for all 7 mesh generation algorithms, 4 pipeline compositions, and 6 export formats
  • Document all WASM bindings
  • Add usage examples for 2D/3D meshing, export to GLB, and pipeline API

Test plan

  • README renders correctly on GitHub
  • Code examples match current API

Closes #42

🤖 Generated with Claude Code

- Replace outdated delaunay_creator references with current meshing crate
- Add feature tables for all mesh algorithms, pipeline compositions, and export formats
- Document WASM bindings
- Add usage examples for 2D/3D meshing, export, and pipeline APIs

Closes #42

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 7, 2026 14:21
@nash1111 nash1111 merged commit 0b4bafa into main Feb 7, 2026
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project README to reflect the current meshing crate capabilities (beyond the older delaunay_creator naming) by documenting the available algorithms, pipeline helpers, export formats, WASM bindings, and adding several end-to-end usage examples.

Changes:

  • Replaces outdated repository/crate references and adds a top-level project description.
  • Adds feature tables for mesh generation, pipeline compositions, and export formats.
  • Adds Rust usage examples for 2D/3D meshing, Marching Cubes → GLB export, and the pipeline API, plus a benchmarks section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


| Format | Functions | Description |
|---|---|---|
| STL | `triangles_to_stl`, `faces_to_stl`, `tetrahedra_to_stl` | Binary STL with automatic surface extraction |
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The STL export functions in meshing::export currently generate ASCII STL (they return String), not binary STL. The README description should be updated to avoid misleading users, or the implementation should be changed to actually emit binary STL if that’s the intent.

Suggested change
| STL | `triangles_to_stl`, `faces_to_stl`, `tetrahedra_to_stl` | Binary STL with automatic surface extraction |
| STL | `triangles_to_stl`, `faces_to_stl`, `tetrahedra_to_stl` | ASCII STL text format with automatic surface extraction |

Copilot uses AI. Check for mistakes.
Comment on lines +11 to +15
| Algorithm | Module | Input | Output | Description |
|---|---|---|---|---|
| Bowyer-Watson 2D | `bowyer_watson` | `Vec<Point2D>` | `Vec<Triangle>` | Delaunay triangulation of 2D point sets |
| Bowyer-Watson 3D | `bowyer_watson_3d` | `Vec<Point3D>` | `Vec<Tetrahedron>` | Delaunay tetrahedralization of 3D point sets |
| Advancing Front | `advancing_front` | `Vec<Face>`, `Vec<Point3D>` | `Vec<Tetrahedron>` | Boundary-to-volume tetrahedral meshing |
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mesh generation table column label Module is misleading for bowyer_watson / bowyer_watson_3d, which are crate-root functions (not modules). Consider renaming the column to something like API/Path, or using fully-qualified paths (e.g., meshing::bowyer_watson).

Copilot uses AI. Check for mistakes.
```
delaunay_creator = "0.2.4"
```
Benchmarks cover all algorithms at various input sizes using Criterion.
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The statement that “Benchmarks cover all algorithms” doesn’t match the current Criterion suite (e.g., there’s no benchmark for the 2D bowyer_watson API). Either adjust this wording to reflect what’s actually covered or add the missing benchmarks.

Suggested change
Benchmarks cover all algorithms at various input sizes using Criterion.
Benchmarks cover several core algorithms at various input sizes using Criterion.

Copilot uses AI. Check for mistakes.
Comment on lines +43 to +51
All major algorithms are exposed as WASM bindings via `wasm-bindgen`:

- `triangulate` - 2D Bowyer-Watson
- `triangulate_3d` - 3D Bowyer-Watson
- `advancing_front_mesh` - Advancing Front
- `octree_mesh_generate` - Octree meshing
- `marching_cubes_generate` - Marching Cubes
- `voxel_mesh_generate` - Voxel meshing
- `delaunay_refinement_mesh` - Delaunay Refinement
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WASM bindings live under meshing::wasm and are conditionally compiled for wasm32 only (#[cfg(target_arch = "wasm32")]). It would help to mention this (and any build steps like wasm-pack) so native users don’t look for these APIs in non-wasm builds.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update README with feature table and current usage

2 participants