1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>simplify (with strategy)</title> 5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../../index.html" title="Chapter 1. Geometry"> 8<link rel="up" href="../simplify.html" title="simplify"> 9<link rel="prev" href="../simplify.html" title="simplify"> 10<link rel="next" href="simplify_3.html" title="simplify"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="../simplify.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../simplify.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="simplify_3.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h5 class="title"> 27<a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy"></a><a class="link" href="simplify_4_with_strategy.html" title="simplify (with strategy)">simplify 28 (with strategy)</a> 29</h5></div></div></div> 30<p> 31 <a class="indexterm" name="idm45635689218848"></a> 32Simplify a geometry using a specified strategy. 33 </p> 34<h6> 35<a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy.h0"></a> 36 <span class="phrase"><a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy.synopsis"></a></span><a class="link" href="simplify_4_with_strategy.html#geometry.reference.algorithms.simplify.simplify_4_with_strategy.synopsis">Synopsis</a> 37 </h6> 38<p> 39</p> 40<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Geometry</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Distance</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Strategy</span><span class="special">></span> 41<span class="keyword">void</span> <span class="identifier">simplify</span><span class="special">(</span><span class="identifier">Geometry</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">geometry</span><span class="special">,</span> <span class="identifier">Geometry</span> <span class="special">&</span> <span class="identifier">out</span><span class="special">,</span> <span class="identifier">Distance</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">max_distance</span><span class="special">,</span> 42 <span class="identifier">Strategy</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">strategy</span><span class="special">)</span></pre> 43<p> 44 </p> 45<h6> 46<a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy.h1"></a> 47 <span class="phrase"><a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy.parameters"></a></span><a class="link" href="simplify_4_with_strategy.html#geometry.reference.algorithms.simplify.simplify_4_with_strategy.parameters">Parameters</a> 48 </h6> 49<div class="informaltable"><table class="table"> 50<colgroup> 51<col> 52<col> 53<col> 54<col> 55</colgroup> 56<thead><tr> 57<th> 58 <p> 59 Type 60 </p> 61 </th> 62<th> 63 <p> 64 Concept 65 </p> 66 </th> 67<th> 68 <p> 69 Name 70 </p> 71 </th> 72<th> 73 <p> 74 Description 75 </p> 76 </th> 77</tr></thead> 78<tbody> 79<tr> 80<td> 81 <p> 82 Geometry const & 83 </p> 84 </td> 85<td> 86 <p> 87 Any type fulfilling a Geometry Concept 88 </p> 89 </td> 90<td> 91 <p> 92 geometry 93 </p> 94 </td> 95<td> 96 <p> 97 input geometry, to be simplified 98 </p> 99 </td> 100</tr> 101<tr> 102<td> 103 <p> 104 Geometry & 105 </p> 106 </td> 107<td> 108 <p> 109 Any type fulfilling a Geometry Concept 110 </p> 111 </td> 112<td> 113 <p> 114 out 115 </p> 116 </td> 117<td> 118 <p> 119 output geometry, simplified version of the input geometry 120 </p> 121 </td> 122</tr> 123<tr> 124<td> 125 <p> 126 Distance const & 127 </p> 128 </td> 129<td> 130 <p> 131 A numerical distance measure 132 </p> 133 </td> 134<td> 135 <p> 136 max_distance 137 </p> 138 </td> 139<td> 140 <p> 141 distance (in units of input coordinates) of a vertex to other 142 segments to be removed 143 </p> 144 </td> 145</tr> 146<tr> 147<td> 148 <p> 149 Strategy const & 150 </p> 151 </td> 152<td> 153 <p> 154 A type fulfilling a SimplifyStrategy concept 155 </p> 156 </td> 157<td> 158 <p> 159 strategy 160 </p> 161 </td> 162<td> 163 <p> 164 simplify strategy to be used for simplification, might include 165 point-distance strategy 166 </p> 167 </td> 168</tr> 169</tbody> 170</table></div> 171<h6> 172<a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy.h2"></a> 173 <span class="phrase"><a name="geometry.reference.algorithms.simplify.simplify_4_with_strategy.header"></a></span><a class="link" href="simplify_4_with_strategy.html#geometry.reference.algorithms.simplify.simplify_4_with_strategy.header">Header</a> 174 </h6> 175<p> 176 Either 177 </p> 178<p> 179 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 180 </p> 181<p> 182 Or 183 </p> 184<p> 185 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">algorithms</span><span class="special">/</span><span class="identifier">simplify</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 186 </p> 187</div> 188<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 189<td align="left"></td> 190<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 191 Wulkiewicz, Oracle and/or its affiliates<p> 192 Distributed under the Boost Software License, Version 1.0. (See accompanying 193 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 194 </p> 195</div></td> 196</tr></table> 197<hr> 198<div class="spirit-nav"> 199<a accesskey="p" href="../simplify.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../simplify.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="simplify_3.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 200</div> 201</body> 202</html> 203