Skip to content

Conversation

sshirokov
Copy link
Owner

This work adds mesh_t and assorted methods for having a single type to deal with for CSG interactions. This work is the foundation for additional I/O formats.

Plan

  • mesh_t base and methods
  • stl_mesh_t prototype
  • stl_mesh_t tests
  • Input should produce a mesh_t type instead of stl_object
  • ☝️ Tests
  • Use mesh_t methods to produce BSP trees instead of stl_to_* and *_to_stl methods.
  • mesh_t.write method
  • ☝️ Tests
  • Use mesh_t.write to write results to disk
  • Default write method should be able to break polygons > 3 verts down before writing

Maybe?

  • bsp_node_t backed mesh_t to avoid boilerplate conversions in the caller

AND THEN

  • Update the FFI bindings to hide stl_object and use mesh_t
  • Update csgtool.rb to use new bindings

AND Finally

  • Make sure there are no new leaks

Using the same pattern from commands, a list of
readers that should be tried in order.

Eash "reader" is a pair of functions of a path.

  * a `predicate` which should cheaply determine
    if a file should be read at all.
  * a `loader` which should actually produce a
    fresh-and-valid `mesh_t *`
Copy a polygon list to a triangle list.
@sshirokov
Copy link
Owner Author

> 77000 loops through main said we're fine on leaks.

@sshirokov
Copy link
Owner Author

Gonna do the ruby binding in a new PR.

sshirokov added a commit that referenced this pull request Dec 3, 2013
@sshirokov sshirokov merged commit 23a65a8 into master Dec 3, 2013
@sshirokov sshirokov mentioned this pull request Dec 3, 2013
12 tasks
@sshirokov sshirokov deleted the mesh-type branch October 31, 2014 07:35
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.

1 participant