header_b.setAttributesInOrder(this.attributes_list); header_b.setTriangles(SMFTriangles.of( this.triangle_count,
/** * Fill a builder with attribute values from the provided {@code SMFHeaderType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(SMFHeaderType instance) { Objects.requireNonNull(instance, "instance"); setTriangles(instance.triangles()); setVertexCount(instance.vertexCount()); Optional<SMFSchemaIdentifier> schemaIdentifierOptional = instance.schemaIdentifier(); if (schemaIdentifierOptional.isPresent()) { setSchemaIdentifier(schemaIdentifierOptional); } setCoordinateSystem(instance.coordinateSystem()); setAttributesInOrder(instance.attributesInOrder()); return this; }
/** * Fill a builder with attribute values from the provided {@code SMFHeaderType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(SMFHeaderType instance) { Objects.requireNonNull(instance, "instance"); setTriangles(instance.triangles()); setVertexCount(instance.vertexCount()); setSchemaIdentifier(instance.schemaIdentifier()); setCoordinateSystem(instance.coordinateSystem()); setAttributesInOrder(instance.attributesInOrder()); setMetaCount(instance.metaCount()); return this; }