Skip to content

Commit

Permalink
Add slices to java bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
cartesian-theatrics committed May 16, 2024
1 parent 8efc229 commit 5c0d8c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bindings/java/src/main/java/manifold3d/Manifold.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import manifold3d.manifold.MeshGL;
import manifold3d.manifold.ExportOptions;
import manifold3d.manifold.CrossSection;
import manifold3d.manifold.CrossSectionVector;

import manifold3d.pub.DoubleMesh;
import manifold3d.pub.Box;
Expand Down Expand Up @@ -180,6 +181,9 @@ public CrossSection slice() {
return this.slice((float) 0.0);
}

@Name("Slices")
public native @ByVal CrossSectionVector slices(float bottomZ, float topZ, int nSlices);

@Name("CalculateNormals")
public native @ByVal Manifold calculateNormals(int normalIdx, float minSharpAngle);

Expand Down
2 changes: 1 addition & 1 deletion bindings/java/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.82
1.0.83

0 comments on commit 5c0d8c6

Please sign in to comment.