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; WriteVector(VF_Packer.PackPosition(ref v)); } 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(vct); } return(true); }