-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhomog2d_test_rtp_2.cpp
44 lines (31 loc) · 1.13 KB
/
homog2d_test_rtp_2.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**************************************************************************
This file is part of the C++ library "homog2d", dedicated to
handle 2D lines and points, see https://github.com/skramm/homog2d
Author & Copyright 2019-2025 Sebastien Kramm
Contact: [email protected]
Licence: MPL v2
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
**************************************************************************/
/**
\file
\brief This program will demonstrate the variant-based runtime polymorphism capabilities.
Is included in test suite.
Build and run with <code>$ make test-rtp</code>
*/
#define HOMOG2D_ENABLE_VRTP
#include "../../homog2d.hpp"
using namespace h2d;
#include "rtp_v.hpp"
/// see homog2d_test_rtp_2.cpp
int main( int, char** argv )
{
std::cout << "START " << argv[0] << '\n';
auto vecpts = std::vector<Point2d>(
{ {0,0},{3,2},{1,4} }
);
img::Image<img::SvgImage> im;
do_vrtp( vecpts, im );
im.write( "BUILD/dummy_rtp_2.svg" );
}