@@ -7475,7 +7475,7 @@ Point2d_<HOMOG2D_INUMTYPE>
74757475base::PolylineBase<PLT,FPT>::centroid() const
74767476{
74777477 if ( !isSimple () )
7478- HOMOG2D_THROW_ERROR_2 ( " PolylineBase::centroid " , " unable, is not a polygon " );
7478+ HOMOG2D_THROW_ERROR_1 ( " unable, Polyline object is not simple " );
74797479
74807480 if ( _attribs._centroid .isBad () )
74817481 {
@@ -10123,11 +10123,24 @@ struct BBFunct
1012310123// SECTION - FREE FUNCTIONS HANDLING VARIANT TYPE
1012410124// ///////////////////////////////////////////////////////////////////////////
1012510125
10126+ /* *
10127+ \addtogroup varff Free functions handling variant type
10128+
10129+
10130+ defgroup
10131+
10132+ These function can be used on a "regular" geometric object or on a `CommonType` object,
10133+ holding a std::variant and allowing run-time polymorphism,
10134+
10135+ See md_docs_homog2d_manual.html#section_rtp
10136+ */
10137+
1012610138// ------------------------------------------------------------------
1012710139// / Free function. Returns the type of object or variant
1012810140/* *
1012910141Can be printed with `getString()`
1013010142\sa CommonType_
10143+ \ingroup varff
1013110144*/
1013210145template <typename T>
1013310146Type
@@ -10145,6 +10158,7 @@ type( const T& elem )
1014510158// / Returns the underlying data type of object or variant
1014610159/* *
1014710160Can be printed with `getString()`
10161+ \ingroup varff
1014810162*/
1014910163template <typename T>
1015010164Dtype
@@ -10160,6 +10174,7 @@ dtype( const T& elem )
1016010174
1016110175// ------------------------------------------------------------------
1016210176// / Returns length of element or variant (free function)
10177+ // / \ingroup varff
1016310178template <typename T>
1016410179HOMOG2D_INUMTYPE
1016510180length ( const T& elem )
@@ -10174,6 +10189,7 @@ length( const T& elem )
1017410189
1017510190// ------------------------------------------------------------------
1017610191// / Returns area of element or variant (free function)
10192+ // / \ingroup varff
1017710193template <typename T>
1017810194HOMOG2D_INUMTYPE
1017910195area ( const T& elem )
@@ -10188,6 +10204,7 @@ area( const T& elem )
1018810204
1018910205// ------------------------------------------------------------------
1019010206// / Returns size of element or variant (free function)
10207+ // / \ingroup varff
1019110208template <typename T>
1019210209HOMOG2D_INUMTYPE
1019310210size ( const T& elem )
@@ -10245,6 +10262,7 @@ getBB_CommonType( const std::vector<CommonType_<FPT>>& v_var )
1024510262// / Return Bounding Box of primitive or container holding primitives (free function)
1024610263/* *
1024710264tests: [BB-cont]
10265+ \ingroup varff
1024810266*/
1024910267template <typename T>
1025010268FRect_<HOMOG2D_INUMTYPE>
@@ -10308,7 +10326,9 @@ getBB( const T& t )
1030810326
1030910327// / Apply homography to primitive
1031010328/* *
10311- \warning The floating-point type of the returned object (variant) will be the one of the homography \c h, NOT the one of the input element.
10329+ \warning The floating-point type of the returned object (variant) will be the one of the homography \c h,
10330+ \b NOT the one of the input element.
10331+ \ingroup varff
1031210332*/
1031310333template <typename T, typename FPT>
1031410334CommonType_<FPT>
@@ -11220,6 +11240,8 @@ impl_drawIndexes( img::Image<IMG>&, size_t, const img::DrawParams&, const DUMMY&
1122011240- Type \c T can be \c std::array<type> or \c std::vector<type>, with \c type being anything drawable.
1122111241- The types inside the container can be either plain \c h2d types (\c FRect, \c Segment, ...) of variant types,
1122211242using the \c CommonType class (requires HOMOG2D_ENABLE_VRTP symbol).
11243+
11244+ \ingroup varff
1122311245*/
1122411246template <
1122511247 typename U,
0 commit comments