ga.setCoordinates(0, p3f) ;
ga.setCoordinates(0, p3f) ;
ta.setCoordinates(0, coords); ta.setColors(0, colors);
protected void addVerticesToGeometryArray(final Point3f[] v) { changed = true; mesh.addAll(Arrays.asList(v)); // check maximum vertex count final GeometryArray ga = (GeometryArray) getGeometry(); final int max = ga.getVertexCount(); final int idx = ga.getValidVertexCount(); if (idx + v.length > max) { // enlarge arrays setGeometry(createGeometry()); return; } ga.setValidVertexCount(idx + v.length); ga.setCoordinates(idx, v); // update colors final Color3f[] colors = new Color3f[v.length]; Arrays.fill(colors, this.color); ga.setColors(idx, colors); recalculateNormals(ga); }
ta.setCoordinates(0, coords); ta.setColors(0, colors);
numTris += totalVerts - currPrimCnt * 2; obj.setCoordinates(0, newpts); if ((flags & Primitive.GENERATE_NORMALS) != 0) obj.setNormals(0, newnormals);
obj.setCoordinates(0, newpts);
GeometryArray.NORMALS); ta.setCoordinates(0, coords); ta.setColors(0, colors);
ga.setCoordinates(0, coordinates); if (colors3 != null) ga.setColors(0, colors3); else if (colors4 != null) ga.setColors(0, colors4);
((GeometryArray)node).setCoordinates( 0, points );
GeometryArray.COLOR_4 | GeometryArray.NORMALS); ta.setCoordinates(0, coords); ta.setColors(0, colors);
GeometryArray.COLOR_3 | GeometryArray.NORMALS); ta.setCoordinates(0, coords); ta.setColors(0, colors);
obj.setCoordinates(0, newpts); if ((flags & Primitive.GENERATE_NORMALS) != 0) obj.setNormals(0, newnormals);
obj.setCoordinates(0, newpts); if ((flags & Primitive.GENERATE_NORMALS) != 0) obj.setNormals(0, newnormals);
object.setCoordinates(0, shape.coordsArray); ColoringAttributes colorAtt = new ColoringAttributes(surf.getColor(), object = new org.scijava.java3d.LineArray(vertexCount, vertexFormat); object.setCoordinates(0, shape.coordsArray); ColoringAttributes colorAtt = new ColoringAttributes(surf.getColor(), vertexFormat, shape.facetSizes); object.setCoordinates(0, shape.coordsArray); object.setNormals(0, shape.normalCoords); debugOutputLn(VALUES, "passed in normalCoords, length = " +