Skip to content

Commit

Permalink
fix(lib): indices
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Oct 11, 2024
1 parent 4b4ba80 commit 879bb11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions differt/src/differt/geometry/triangle_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ def sample(
replace=replace,
)

if self.assume_quads:
indices *= 2

if preserve and self.object_bounds is not None:
indices = jnp.sort(indices)
object_bounds = jnp.stack(
Expand Down

0 comments on commit 879bb11

Please sign in to comment.