class Clipping
{ /** This class uses the Liang-Biarsky parametric line-clipping algorithm as described in: ComputerGraphics:principlesandpractice,2nded., JamesD.Foleyetal., Section3.12.4onpage117.
*/
public: /** @descr The intersection between an open polygon and a rectangle is calculatedandtheresultinglinesareplacedintothepoly-polygonaResult. @paramrPolygonThepolygonisrequiredtobeopen,ie.itsstartandendpoint havedifferentcoordinatesandthatitiscontinuous,ie.hasnoholes. @paramrRectangleTheclippingarea. @paramaResultTheresultinglinesthatarethepartsofthegivenpolygonlyinginside theclippingareaarestoredintoaResultwhosepriorcontentisdeletedfirst.
*/ staticvoid clipPolygonAtRectangle( const css::drawing::PolyPolygonShape3D& rPolygon
, const ::basegfx::B2DRectangle& rRectangle
, css::drawing::PolyPolygonShape3D& aResult
, bool bSplitPiecesToDifferentPolygons = true ); staticvoid clipPolygonAtRectangle( const std::vector<std::vector<css::drawing::Position3D>>& rPolygon
, const ::basegfx::B2DRectangle& rRectangle
, std::vector<std::vector<css::drawing::Position3D>>& aResult
, bool bSplitPiecesToDifferentPolygons = true );
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.