public void show(Graphics g, Projection pr = 0, Pen pen = null, bool normal = false, Point3d camera = null)
        {
            var figure = new Polyhedron(this);
            figure.Apply(Transformation.ProjectionTransform(pr));
            foreach (Face f in figure.Faces)
            {
                if(normal)
                    if(camera == null)
                        f.find_normal(this.Center);
                    else
                        f.find_normal(this.Center, camera);
                if (f.IsVisible)
                    f.show(g, pr, pen);
            }

        }
Esempio n. 2
0
 public void fiqureApply(Transformation t)
 {
     camera_figure.Apply(t);
 }