public override void WrtieBodyToStream(CTextWriter writer) { base.WrtieBodyToStream(writer); if (Clusters.Count > 0) { writer.WriteKeyVal("num_visible_clusters", Clusters.Count); writer.BeginWriteLine(); writer.Write("visible_clusters"); foreach (var l in Clusters) { writer.Write(string.Format(" {0}", l)); } writer.EndWriteLine(); } if (VisibleLeaves.Count > 0) { writer.WriteKeyVal("num_visible_leaves", VisibleLeaves.Count); writer.BeginWriteLine(); writer.Write("visible_leaves"); foreach (var l in VisibleLeaves) { writer.Write(string.Format(" {0}", l)); } writer.EndWriteLine(); } foreach (var l in Colliders) { ((CIwParseable)l).WrtieToStream(writer); } }
internal void WrtieBodyToStream(CTextWriter writer) { writer.BeginWriteLine(); writer.Write("vertWeights {"); writer.Write(Vertex.ToString()); foreach (var w in Weights) writer.Write(string.Format(CultureInfo.InvariantCulture, ",{0}", w)); writer.Write("}"); writer.EndWriteLine(); }
internal void WrtieBodyToStream(CTextWriter writer) { writer.BeginWriteLine(); writer.Write("useBones { "); if (Bones != null) { foreach (var w in Bones) writer.Write(string.Format(CultureInfo.InvariantCulture, "{0} ", w)); } writer.Write("}"); writer.EndWriteLine(); }