private SMFHeader( SMFTriangles triangles, long vertexCount, Optional<SMFSchemaIdentifier> schemaIdentifier, SMFCoordinateSystem coordinateSystem, List<SMFAttribute> attributesInOrder) { this.triangles = Objects.requireNonNull(triangles, "triangles"); this.vertexCount = vertexCount; this.schemaIdentifier = schemaIdentifier.orElse(null); this.coordinateSystem = Objects.requireNonNull(coordinateSystem, "coordinateSystem"); this.attributesInOrder = attributesInOrder_from(attributesInOrder); initShim.setTriangles(this.triangles); initShim.setVertexCount(this.vertexCount); initShim.setCoordinateSystem(this.coordinateSystem); this.attributesByName = initShim.attributesByName(); this.initShim = null; }
private SMFHeader( SMFHeader original, SMFTriangles triangles, long vertexCount, SMFSchemaIdentifier schemaIdentifier, SMFCoordinateSystem coordinateSystem, List<SMFAttribute> attributesInOrder) { this.triangles = triangles; this.vertexCount = vertexCount; this.schemaIdentifier = schemaIdentifier; this.coordinateSystem = coordinateSystem; this.attributesInOrder = attributesInOrder; initShim.setTriangles(this.triangles); initShim.setVertexCount(this.vertexCount); initShim.setCoordinateSystem(this.coordinateSystem); this.attributesByName = initShim.attributesByName(); this.initShim = null; }
private SMFHeader(SMFHeader.Builder builder) { this.schemaIdentifier = builder.schemaIdentifier; this.attributesInOrder = builder.attributesInOrder_build(); if (builder.triangles != null) { initShim.setTriangles(builder.triangles); } if (builder.vertexCountIsSet()) { initShim.setVertexCount(builder.vertexCount); } if (builder.coordinateSystem != null) { initShim.setCoordinateSystem(builder.coordinateSystem); } this.triangles = initShim.triangles(); this.vertexCount = initShim.vertexCount(); this.coordinateSystem = initShim.coordinateSystem(); this.attributesByName = initShim.attributesByName(); this.initShim = null; }