@Override protected org.scijava.java3d.SceneGraphObject createNode() { return new TriangleStripArray( vertexCount, vertexFormat, texCoordSetCount, texCoordSetMap, stripVertexCounts ); }
/** * Output a TriangleStripArray. */ TriangleStripArray toTriangleStripArray() { GeneralizedStrip.StripArray stripArray = GeneralizedStrip.toTriangleStrips(this, frontFace) ; if (stripArray != null) { TriangleStripArray tsa ; tsa = new TriangleStripArray(stripArray.vertices.count, vertexFormat, stripArray.stripCounts.trim()) ; copyVertexData(tsa, stripArray.vertices) ; vertexCount += stripArray.vertices.count ; stripCount += stripArray.stripCounts.count ; return tsa ; } else return null ; }
/** * Output a TriangleStripArray. */ TriangleStripArray toTriangleStripArray() { GeneralizedStrip.StripArray stripArray = GeneralizedStrip.toTriangleStrips(this, frontFace) ; if (stripArray != null) { TriangleStripArray tsa ; tsa = new TriangleStripArray(stripArray.vertices.count, vertexFormat, stripArray.stripCounts.trim()) ; copyVertexData(tsa, stripArray.vertices) ; vertexCount += stripArray.vertices.count ; stripCount += stripArray.stripCounts.count ; return tsa ; } else return null ; }
obj = new TriangleStripArray(totalVerts, tsaFlags, 1, texCoordSetMap, stripCounts);
ga[0] = new TriangleStripArray(stripArray[0].vertices.count, vertexFormat, stripArray[0].stripCounts.trim()) ;
ga[0] = new TriangleStripArray(stripArray[0].vertices.count, vertexFormat, stripArray[0].stripCounts.trim()) ;
/** * Output triangle strip and triangle fan arrays. * @return a 2-element array of GeometryStripArray; element 0 if non-null * will contain a TriangleStripArray, and element 1 if non-null will * contain a TriangleFanArray. */ GeometryStripArray[] toStripAndFanArrays() { GeneralizedStrip.StripArray stripArray[] = GeneralizedStrip.toStripsAndFans(this, frontFace) ; GeometryStripArray gsa[] = new GeometryStripArray[2] ; if (stripArray[0] != null) { gsa[0] = new TriangleStripArray(stripArray[0].vertices.count, vertexFormat, stripArray[0].stripCounts.trim()) ; copyVertexData(gsa[0], stripArray[0].vertices) ; vertexCount += stripArray[0].vertices.count ; stripCount += stripArray[0].stripCounts.count ; } if (stripArray[1] != null) { gsa[1] = new TriangleFanArray(stripArray[1].vertices.count, vertexFormat, stripArray[1].stripCounts.trim()) ; copyVertexData(gsa[1], stripArray[1].vertices) ; vertexCount += stripArray[1].vertices.count ; stripCount += stripArray[1].stripCounts.count ; } return gsa ; }
/** * Output triangle strip and triangle fan arrays. * @return a 2-element array of GeometryStripArray; element 0 if non-null * will contain a TriangleStripArray, and element 1 if non-null will * contain a TriangleFanArray. */ GeometryStripArray[] toStripAndFanArrays() { GeneralizedStrip.StripArray stripArray[] = GeneralizedStrip.toStripsAndFans(this, frontFace) ; GeometryStripArray gsa[] = new GeometryStripArray[2] ; if (stripArray[0] != null) { gsa[0] = new TriangleStripArray(stripArray[0].vertices.count, vertexFormat, stripArray[0].stripCounts.trim()) ; copyVertexData(gsa[0], stripArray[0].vertices) ; vertexCount += stripArray[0].vertices.count ; stripCount += stripArray[0].stripCounts.count ; } if (stripArray[1] != null) { gsa[1] = new TriangleFanArray(stripArray[1].vertices.count, vertexFormat, stripArray[1].stripCounts.trim()) ; copyVertexData(gsa[1], stripArray[1].vertices) ; vertexCount += stripArray[1].vertices.count ; stripCount += stripArray[1].stripCounts.count ; } return gsa ; }
rt.getVertexAttrSizes(vertexAttrSizes); TriangleStripArray t = new TriangleStripArray(rt.getVertexCount(), rt.getVertexFormat(), texSetCount,
TriangleStripArray tsa = new TriangleStripArray(vertexCount, vertexFormat, texCoordSetCount, texCoordSetMap, stripCounts);
new TriangleStripArray(vertexCount, vertexFormat, stripCounts) ;
((TriangleStripArrayRetained)geo).getStripVertexCounts(stripVCount); this.morphedGeometryArray = new TriangleStripArray(geometryArrays[0].validVertexCount, vFormat, texCoordSetCount, texCoordSetMap, stripVCount); break;