Exemple #1
0
 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"));
 }
Exemple #2
0
 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), "}"));
 }
Exemple #3
0
 public LdrBuilder Triangle(string name, Colour32 colour, IEnumerable <v4> pts, m4x4?o2w = null)
 {
     return(Append("*Triangle ", name, " ", colour, " {", pts, Ldr.Transform(o2w), "}"));
 }
Exemple #4
0
 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"));
 }
Exemple #5
0
 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"));
 }
Exemple #6
0
 public LdrBuilder GroupClose(m4x4 transform)
 {
     return(Append(Ldr.Transform(transform, newline: true), "}\n"));
 }
Exemple #7
0
 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"));
 }
Exemple #8
0
 public void Triangle(string name, Colour32 colour, IEnumerable <v4> pts, m4x4?o2w = null)
 {
     Append("*Triangle ", name, " ", colour, " {", pts, Ldr.Transform(o2w), "}");
 }
Exemple #9
0
 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), "}");
 }
Exemple #10
0
 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");
 }
Exemple #11
0
 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");
 }
Exemple #12
0
 public void GroupClose(m4x4 transform)
 {
     Append(Ldr.Transform(transform, newline: true), "}\n");
 }