public List <string> render() { List <string> rend = new List <string>(); rend.Add("blob {"); rend.Add(" threshold " + threshold); foreach (PovObj obj in blob) { List <string> temp = obj.render(); for (int i = 0; i < temp.Count; i++) { if (i == 1) { rend.Add(" " + temp[i] + ", 1"); } else { rend.Add(" " + temp[i]); } } } rend.Add(" rotate " + rot.render()[0]); rend.Add(" translate " + trans.render()[0]); rend.Add("}"); return(rend); }
public override List <string> render() { List <string> l = base.render(); l.Remove(" area_light"); l.Insert(2, " area_light " + vector1.render()[0] + ", " + vector2.render()[0] + "," + widthLight + "," + heightLight); return(l); }