#include "blobs.h"
#include "params.h"
#include "rect.h"
Go to the source code of this file.
◆ make_edgept()
Definition at line 145 of file split.cpp.
149 this_edgept->
pos.
x = x;
150 this_edgept->
pos.
y = y;
153 if (prev_ol !=
nullptr && prev->
next == next) {
157 double cut_fraction = target_vec.length() / segment_vec.length();
163 ICOORD step_vec = step_end - step_start;
164 double target_length = step_vec.
length() * cut_fraction;
168 double best_dist = target_length;
169 for (
int s = prev->
start_step; s < end_step; ++s) {
170 total_step += prev_ol->
step(s % step_length);
171 double dist = fabs(target_length - total_step.length());
172 if (dist < best_dist) {
179 this_edgept->
step_count = end_step - best_step;
180 this_edgept->
start_step = best_step % step_length;
189 this_edgept->
next = next;
190 this_edgept->
prev = prev;
191 prev->
next = this_edgept;
192 next->
prev = this_edgept;
ICOORD position_at_index(int index) const
int32_t pathlength() const
float length() const
find length
ICOORD step(int index) const
◆ remove_edgept()
void remove_edgept |
( |
EDGEPT * |
point | ) |
|
◆ wordrec_display_splits
bool wordrec_display_splits = 0 |
"Display splits"
Definition at line 47 of file split.cpp.