Clip triangle against bounding box ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The clip operator clips a triangle against a bounding box, returning the resulting polygon. The figure shows the triangle in blue and the polygon resulting from ``clip()`` in grey. .. figure:: figs/showClip.png :figwidth: 300px :alt: A polygon is produced by clipping a triangle. .. literalinclude:: ../../examples/primal_introduction.cpp :start-after: _clip_header_start :end-before: _clip_header_end :language: C++ .. literalinclude:: ../../examples/primal_introduction.cpp :start-after: _clip_start :end-before: _clip_end :language: C++