Skip to content

Commit b8294b7

Browse files
committed
use the long value for the number o
1 parent aaa7658 commit b8294b7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

bindings/java/src/main/java/com/cadoodlecad/manifold/ManifoldBindings.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -546,17 +546,17 @@ public ArrayList<double[][]> slice(MemorySegment m, double height) throws Throwa
546546
}
547547
}
548548

549-
private void deleteMeshGL64(MemorySegment seg) {
550-
if (seg == null)
551-
return;
552-
try {
553-
functions.get("manifold_delete_meshgl64").invoke(seg);
554-
} catch (Throwable ignored) {
555-
}
556-
}
549+
// private void deleteMeshGL64(MemorySegment seg) {
550+
// if (seg == null)
551+
// return;
552+
// try {
553+
// functions.get("manifold_delete_meshgl64").invoke(seg);
554+
// } catch (Throwable ignored) {
555+
// }
556+
// }
557557

558558
// Data structure
559-
public record MeshData64(double[] vertices, long[] triangles, int vertCount, int triCount) {
559+
public record MeshData64(double[] vertices, long[] triangles, long vertCount, long triCount) {
560560
}
561561

562562
public MemorySegment importMeshGL64(double[] vertices, long[] triangles, long nVerts, long nTris) throws Throwable {

bindings/java/src/test/java/com/example/ManifoldBindingsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ public void testMeshGL64() throws Throwable {
146146
MeshData64 meshgl = mb.exportMeshGL64(cube);
147147
double[] verts = meshgl.vertices(); // flat [x0,y0,z0, x1,y1,z1, ...]
148148
long[] tris = meshgl.triangles(); // flat [i0,i1,i2, i3,i4,i5, ...]
149-
int triCount = meshgl.triCount();
149+
long triCount = meshgl.triCount();
150150
loaded = mb.importMeshGL64(verts, tris, triCount, triCount);
151151

152152
MeshData64 meshglLoaded = mb.exportMeshGL64(loaded);
153153
// double[] vertsl = meshglLoaded.vertices(); // flat [x0,y0,z0, x1,y1,z1, ...]
154154
// long[] trisl = meshglLoaded.triangles(); // flat [i0,i1,i2, i3,i4,i5, ...]
155-
int triCountl = meshglLoaded.triCount();
155+
long triCountl = meshglLoaded.triCount();
156156
assertEquals(triCountl, triCount, "Matching trinagle count");
157157
} finally {
158158
mb.safeDelete(cube);

0 commit comments

Comments
 (0)