コード例 #1
0
 public VsPolygon(Polygon3D p, Color c)
 {
     type     = "VsPolygon";
     faceflag = true;
     col      = c;
     pol      = p;
     faceflag = pol.BackfaceCheck();
 }
コード例 #2
0
 public VsPolygon()
 {
     type     = "VsPolygon";
     faceflag = true;
     col      = Color.Black;
     pol      = new Polygon3D();
     faceflag = pol.BackfaceCheck();
 }
コード例 #3
0
 public VsPolygon(int np, double[] x, double[] y, double[] z, Color c)
 {
     type     = "VsPolygon";
     faceflag = true;
     col      = c;
     pol      = new Polygon3D(np, x, y, z);
     faceflag = pol.BackfaceCheck();
 }
コード例 #4
0
 public VsPolygon(int np, double[] x, double[] y, double[] z, int r, int g,
                  int b)
 {
     type     = "VsPolygon";
     faceflag = true;
     col      = Color.FromArgb(r, g, b);
     pol      = new Polygon3D(np, x, y, z);
     faceflag = pol.BackfaceCheck();
 }
コード例 #5
0
 public VsPolygon3(Polygon3D p, Material material)
 {
     type     = "VsPolygon3";
     col      = Color.Black;
     faceflag = true;
     mate     = material;
     pol      = p;
     faceflag = pol.BackfaceCheck();
 }
コード例 #6
0
 public VsPolygon3()
 {
     type     = "VsPolygon3";
     col      = Color.Black;
     faceflag = true;
     mate     = new Material();
     pol      = new Polygon3D();
     faceflag = pol.BackfaceCheck();
 }
コード例 #7
0
 public VsPolygon2(Polygon3D p, Color c, Color cb)
 {
     type     = "VsPolygon2";
     faceflag = true;
     col      = c;
     colB     = cb;
     pol      = p;
     faceflag = pol.BackfaceCheck();
 }
コード例 #8
0
 public VsPolygon2()
 {
     type     = "VsPolygon2";
     faceflag = true;
     col      = Color.Blue;
     colB     = Color.Red;
     pol      = new Polygon3D();
     faceflag = pol.BackfaceCheck();
 }
コード例 #9
0
 public VsPolygon4(int np, double[] x, double[] y, double[] z, Material material, Material materialB)
 {
     type     = "VsPolygon4";
     col      = Color.Black;
     faceflag = true;
     mate     = material;
     mateB    = materialB;
     pol      = new Polygon3D(np, x, y, z);
     faceflag = pol.BackfaceCheck();
 }