public bool ExportDataPackedAsHV4(string tagName, Vector3[] vctArr) { WriteTag(tagName); if (vctArr == null) { m_writer.Write(0); return(true); } m_writer.Write(vctArr.Length); foreach (Vector3 vctVal in vctArr) { Vector3 v = vctVal; HalfVector4 vct = VF_Packer.PackPosition(ref v); WriteHalfVector4(ref vct); } return(true); }
public bool ExportDataPackedAsB4(string tagName, Vector3[] vctArr) { WriteTag(tagName); if (vctArr == null) { m_writer.Write(0); return(true); } m_writer.Write(vctArr.Length); foreach (Vector3 vctVal in vctArr) { Vector3 v = vctVal; Byte4 vct = new Byte4(); vct.PackedValue = VF_Packer.PackNormal(ref v); WriteByte4(ref vct); } return(true); }