Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 640 Bytes

opclip.rst

File metadata and controls

21 lines (16 loc) · 640 Bytes

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.

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++