Skip to content

Commit 8f7b3f4

Browse files
committed
release 2.12
1 parent a07c03f commit 8f7b3f4

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ int main()
4242

4343
### News ###
4444

45+
- 2025-01-26: fresh 2.12 release, see https://github.com/skramm/homog2d/releases
4546
- 2024-04-21: switch to C++17, enable runtime polymorphism using `std::variant`, [see here](docs/homog2d_manual.md#section_rtp)
4647
- 2024-03-23: added SVG "path" element import
47-
- 2023-12-26: fresh 2.11 release, see https://github.com/skramm/homog2d/releases
48+
- 2023-12-26: 2.11 release
4849
- 2023-11-17: added [doc index](docs/index.md)
4950
- 2023-07-11: added online Doxygen-generated reference, through the great https://codedocs.xyz/ [see here](https://codedocs.xyz/skramm/homog2d)
5051
- 2023-02-19: 2.10 release, see https://github.com/skramm/homog2d/releases
@@ -67,7 +68,6 @@ This will copy that file in `/usr/local/include`.
6768
When installed, run `$ make test` (or `$ make testall` for testing with all 3 numerical types).
6869

6970
- **Contributing**: at present, the best you can do is testing and bug/issue reporting.
70-
Don't hesitate, this is still beta but stable release expected soon.
7171

7272
- Rationale:
7373
- Usage simplicity, max flexibility

docs/homog2d_history.md

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ See [Release page](https://github.com/skramm/homog2d/releases).
1717
- polygon minimization
1818

1919
- current master branch
20+
- (nil)
21+
22+
- [v2.12](https://github.com/skramm/homog2d/releases/tag/v2.12), released on 2025-01-26
2023
- **heavy architectural change**: runtime polymorphism is now achieved in a more modern way, using `std::variant`, [see here](homog2d_manual.md#section_rtp).
2124
This was possible by moving to C++17, which is now a requirement.
2225
- removed requirement to pointer-based runtime polymorphism to import SVG file, by using `std::variant`.
@@ -31,6 +34,7 @@ This was possible by moving to C++17, which is now a requirement.
3134
- removed unneeded `HOMOG2D_SVG_CHECK_INIT` macro
3235
- improved behavior of `findNearestPoint()`, added checking, and wont return query point if it is inside the container
3336
- `draw()` free function can now draw container holding variant type
37+
- added some tests
3438

3539
## Previous releases
3640

homog2d.hpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ See https://github.com/skramm/homog2d
227227
#define HOMOG2D_MAXITER_PIP 5
228228
#endif
229229

230-
#define HOMOG2D_VERSION "2.11.2"
230+
#define HOMOG2D_VERSION "2.12.0"
231231

232232
// some MS environments seem to lack Pi definition, even if _USE_MATH_DEFINES is defined
233233
#ifndef M_PI
@@ -10879,12 +10879,9 @@ impl_drawIndexes( img::Image<IMG>&, size_t, const img::DrawParams&, const DUMMY&
1087910879

1088010880
/// Free function, draws a set of primitives
1088110881
/**
10882-
Type \c T can be \c std::array<type> or \c std::vector<type>, with \c type being anything drawable
10883-
10884-
\note: At present, does not handle containers holding std::variant type
10885-
(see https://github.com/skramm/homog2d/blob/master/docs/homog2d_manual.md#section_rtp
10886-
10887-
\todo 20241024: Enable the use variant-base polymorphism here
10882+
- Type \c T can be \c std::array<type> or \c std::vector<type>, with \c type being anything drawable.
10883+
- The types inside the container can be either plain \c h2d types (\c FRect, \c Segment, ...) of variant types,
10884+
using the \c CommonType class (requires HOMOG2D_ENABLE_VRTP symbol).
1088810885
*/
1088910886
template<
1089010887
typename U,
@@ -10918,6 +10915,9 @@ draw( img::Image<U>& img, const T& cont, const img::DrawParams& dp=img::DrawPara
1091810915

1091910916
/// This version holds a \c std::function as 3th parameter. It can be used to pass a function
1092010917
/// that will return a different img::DrawParams for a given index of the container.
10918+
/**
10919+
At present, cannot be used with container holding variants...
10920+
*/
1092110921
template<
1092210922
typename U,
1092310923
typename T,

misc/homog2d.cbp

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
<Unit filename="figures_src/src/get_bb_cont_v.cpp" />
9494
<Unit filename="figures_src/src/get_pts_inside.cpp" />
9595
<Unit filename="figures_src/src/getbb1.cpp" />
96+
<Unit filename="figures_src/src/homog_from_pts.cpp" />
9697
<Unit filename="figures_src/src/polyline1.cpp" />
9798
<Unit filename="figures_src/src/polyline2.cpp" />
9899
<Unit filename="figures_src/src/polyline_rcp_1.cpp" />

0 commit comments

Comments
 (0)