public LdrBuilder Ribbon(string name, Colour32 colour, IEnumerable <v4> points, AxisId axis_id, float width, bool smooth, m4x4?o2w = null) { return(Append("*Ribbon ", name, " ", colour, " {", points, " ", axis_id, Ldr.Width(width), Ldr.Smooth(smooth), Ldr.Transform(o2w), "}\n")); }
public LdrBuilder Triangle(string name, Colour32 colour, v4 a, v4 b, v4 c, m4x4?o2w = null) { return(Append("*Triangle ", name, " ", colour, " {", a, " ", b, " ", c, " ", Ldr.Transform(o2w), "}")); }
public LdrBuilder Triangle(string name, Colour32 colour, IEnumerable <v4> pts, m4x4?o2w = null) { return(Append("*Triangle ", name, " ", colour, " {", pts, Ldr.Transform(o2w), "}")); }
public LdrBuilder Box(string name, Colour32 colour, v4 dim, m4x4?o2w = null, v4?pos = null) { return(Append("*Box ", name, " ", colour, " {", dim.x, " ", dim.y, " ", dim.z, " ", Ldr.Transform(o2w, pos), "}\n")); }
public LdrBuilder Cylinder(string name, Colour32 colour, AxisId axis_id, float height, float radius, m4x4?o2w = null, v4?pos = null) { return(Append("*Cylinder ", name, " ", colour, " {", height, " ", radius, " ", axis_id, " ", Ldr.Transform(o2w, pos), "}\n")); }
public LdrBuilder GroupClose(m4x4 transform) { return(Append(Ldr.Transform(transform, newline: true), "}\n")); }
public LdrBuilder Box(string name, Colour32 colour, float sx, float sy, float sz, m4x4?o2w = null, v4?pos = null) { return(Append("*Box ", name, " ", colour, " {", sx, " ", sy, " ", sz, " ", Ldr.Transform(o2w, pos), "}\n")); }
public void Triangle(string name, Colour32 colour, IEnumerable <v4> pts, m4x4?o2w = null) { Append("*Triangle ", name, " ", colour, " {", pts, Ldr.Transform(o2w), "}"); }
public void Triangle(string name, Colour32 colour, v4 a, v4 b, v4 c, m4x4?o2w = null) { Append("*Triangle ", name, " ", colour, " {", a, " ", b, " ", c, " ", Ldr.Transform(o2w), "}"); }
public void Box(string name, Colour32 colour, v4 dim, m4x4?o2w = null, v4?pos = null) { Append("*Box ", name, " ", colour, " {", dim.x, " ", dim.y, " ", dim.z, " ", Ldr.Transform(o2w, pos), "}\n"); }
public void Box(string name, Colour32 colour, float size, m4x4?o2w = null, v4?pos = null) { Append("*Box ", name, " ", colour, " {", size, " ", Ldr.Transform(o2w, pos), "}\n"); }
public void GroupClose(m4x4 transform) { Append(Ldr.Transform(transform, newline: true), "}\n"); }