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); } } } } }
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); } } }