Skip to content

Commit

Permalink
Small Model API tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhogg committed Feb 20, 2025
1 parent 4b4a6a0 commit 6f952a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/flitter/render/window/models.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ cdef double DefaultSnapAngle
cdef int64_t DefaultSegments


cpdef tuple build_arrays_from_trimesh(trimesh_model)
cpdef tuple build_arrays_from_manifold(manifold)
cpdef void fill_in_normals(vertices_array, faces_array)


Expand Down
2 changes: 1 addition & 1 deletion src/flitter/render/window/models.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cdef uint64_t SDF = HASH_UPDATE(HASH_START, HASH_STRING('sdf'))
cdef uint64_t MIX = HASH_UPDATE(HASH_START, HASH_STRING('mix'))


cdef tuple build_arrays_from_trimesh(trimesh_model):
cpdef tuple build_arrays_from_trimesh(trimesh_model):
if trimesh_model is None:
return None
vertex_data = np.zeros((len(trimesh_model.vertices), 8), dtype='f4')
Expand Down

0 comments on commit 6f952a1

Please sign in to comment.