#truck #cad #graphics #mesh

truck-meshalgo

Mesh algorighms, include tessellations of the shape

3 releases (breaking)

0.3.0 Dec 21, 2022
0.2.0 May 24, 2022
0.1.0 Dec 4, 2021

#91 in Graphics APIs

Download history 5/week @ 2022-11-25 6/week @ 2022-12-02 14/week @ 2022-12-09 33/week @ 2022-12-16 21/week @ 2022-12-23 13/week @ 2022-12-30 16/week @ 2023-01-06 12/week @ 2023-01-13 16/week @ 2023-01-20 13/week @ 2023-01-27 23/week @ 2023-02-03 11/week @ 2023-02-10 27/week @ 2023-02-17 12/week @ 2023-02-24 13/week @ 2023-03-03 23/week @ 2023-03-10

75 downloads per month
Used in 3 crates

Apache-2.0

485KB
9K SLoC

truck-meshalgo

Crates.io Docs.rs

Mesh algorighms, 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

~4.5MB
~93K SLoC