Exemple #1
0
 public override void DrawBegin(Graphics3D graph)
 {
     foreach (FilmRectangle rectangle in _rectangles)
     {
         if (Vector3D.DotProduct(rectangle.Normal, graph.ViewDirection) > 0)
         {
             // hatching
             if (HasHatching)
             {
                 Segment[] segments = rectangle.Segments;
                 foreach (Segment s in segments)
                 {
                     graph.AddSegmentBackgound(s);
                 }
             }
         }
     }
 }
Exemple #2
0
        public override void DrawBegin(Graphics3D graph)
        {

            foreach (FilmRectangle rectangle in _rectangles)
                if (Vector3D.DotProduct(rectangle.Normal, graph.ViewDirection) > 0)
                {
                    // hatching
                    if (HasHatching)
                    {
                        Segment[] segments = rectangle.Segments;
                        foreach (Segment s in segments)
                            graph.AddSegmentBackgound(s);
                    }
                }
        }