public void CopyPropertiesTo(Polygon3D destanation) { destanation.DoubleSided = DoubleSided; destanation.color[0] = color[0]; destanation.color[1] = color[1]; destanation.Matte[0] = Matte[0]; destanation.Matte[1] = Matte[1]; destanation.FillType = FillType; }
public Polygon3D(Polygon3D source) { PointIndex = new int[3]; color = new Color[2]; LightingColor = new Color[2]; Matte = new float[2]; PointIndex[0] = source.PointIndex[0]; PointIndex[1] = source.PointIndex[1]; PointIndex[2] = source.PointIndex[2]; Normal = new Point3D(); NormalZ = 0; Center = new Point3D(source.Center); DoubleSided = source.DoubleSided; FillType = source.FillType; Matte[0] = source.Matte[0]; Matte[1] = source.Matte[1]; color[0] = source.color[0]; color[1] = source.color[1]; }