This is an automated email from the ASF dual-hosted git repository.
jsorel pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new 81cee606d9 fix(Geometry): fix mesh primitive normal array larger then
needed
81cee606d9 is described below
commit 81cee606d91d502c9c3cdf42d593f161f81fdcd5
Author: jsorel <[email protected]>
AuthorDate: Mon Feb 16 16:20:55 2026 +0100
fix(Geometry): fix mesh primitive normal array larger then needed
---
.../main/org/apache/sis/geometries/mesh/MeshPrimitive.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/mesh/MeshPrimitive.java
b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/mesh/MeshPrimitive.java
index bdf333ac6b..4a253b90b3 100644
---
a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/mesh/MeshPrimitive.java
+++
b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/mesh/MeshPrimitive.java
@@ -777,7 +777,7 @@ public interface MeshPrimitive extends Geometry {
public void computeSmoothNormals() {
final Array positions = getAttribute(ATT_POSITION);
- final Array normals = NDArrays.of(positions.getSampleSystem(),
DataType.FLOAT, positions.getLength()*3);
+ final Array normals = NDArrays.of(positions.getSampleSystem(),
DataType.FLOAT, positions.getLength());
//compute smooth normals
final Vector pos0 = Vectors.createDouble(3);