public Prism(String spline_type, float height1, float height2, int numPoints, Point2[] p, Point3 loc = null, bool reactive = false, Signal<float> rh1 = null, Signal<float> rh2 = null, Signal<float> nps = null) { this.reactive = reactive; this.spline_type = spline_type; this.numPoints = nps ?? new Lift0f(numPoints); this.loc = loc ?? new Point3(0, 0, 0, reactive: reactive); this.p = p; this.height1 = rh1 ?? new Lift0f(height1); this.height2 = rh2 ?? new Lift0f(height2); this.texture = new POVColor("Green"); //ints = this.height1+", "+this.height2+", " + this.numPoints; for (int i = 0; i < p.Length - 1; i++) { points += "< " + p[i].x + ", " + p[i].y + "> , "; } points += "< " + p[p.Length - 1].x + ", " + p[p.Length - 1].y + ">"; }
public static Prism prism(String spline_type, float height1, float height2, int numPoints, Point2[] p, Point3 loc = null, bool reactive = false, Signal<float> rh1 = null, Signal<float> rh2 = null, Signal<float> nps = null) { return new Prism(spline_type, height1, height2, numPoints, p, loc, reactive, rh1, rh2, nps); }