#mesh #graphics #truck

truck-meshalgo

Mesh algorigthms, include tessellations of the shape

4 releases (breaking)

0.4.0 Sep 20, 2024
0.3.0 Dec 21, 2022
0.2.0 May 24, 2022
0.1.0 Dec 4, 2021

#577 in Graphics APIs

Download history 3/week @ 2024-07-08 19/week @ 2024-07-15 14/week @ 2024-07-22 18/week @ 2024-07-29 5/week @ 2024-08-05 9/week @ 2024-08-12 20/week @ 2024-08-26 10/week @ 2024-09-09 129/week @ 2024-09-16 54/week @ 2024-09-23 52/week @ 2024-09-30 9/week @ 2024-10-07 32/week @ 2024-10-14

158 downloads per month
Used in 3 crates

Apache-2.0

1MB
15K SLoC

truck-meshalgo

Crates.io Docs.rs

Mesh algorigthms, include tessellations of the shape.

Sample Codes

filleted-cube

An experiment to decompose a mesh into elements for future NURBS-shape approximation of the mesh. Contains doc(hidden) methods.

  • Input: filleted_cube.obj
  • Output: planes.obj, lower.obj, upper.obj

irregular-sphere

Add the normal to the sphere containing the irregular normal generated from the NURBS containing the critical point.

  • Input: irregular_sphere.obj
  • Output: regular_sphere.obj

octahedron-subdivision

Apply loop subdivision to regular octahedron.

  • Input: hardcoded octahedron
  • Output: octahedron.obj, subdivision-octahedron.obj

requadrangulate-buddha

A benchmark that reads in heavy mesh data, applies triangulation and quadrangulation, and writes it out.

  • Input: happy-buddha.obj
  • Output: requadrangulated-buddha.obj

smoothing-bunny

Adds smooth normals to the stanford bunny.

  • Input: bunny.obj
  • Output: smooth_bunny.obj

splitting-sample

An experiment to decompose a mesh into elements for future NURBS-shape approximation of the mesh.

  • Input: sample.obj
  • Output: planes_parts_#.obj, others_parts_#.obj

teapot

Adds smooth normals to and quadrangulate the famous teapot.

  • Input: teapot.obj
  • Output: quaded_pot.obj

tessellate-shape

Tessellate a shape and output an obj file.

usage: tessellate-shape <input json file> <output json file>

The default <output file> is output.obj.

Dependencies

~3.5–10MB
~104K SLoC