#include "blobs.h"
#include "params.h"
#include "rect.h"
Go to the source code of this file.
◆ make_edgept()
Definition at line 136 of file split.cpp.
142 this_edgept->
pos.
x = x;
143 this_edgept->
pos.
y = y;
146 if (prev_ol !=
nullptr && prev->
next == next) {
150 double cut_fraction = target_vec.length() / segment_vec.length();
156 ICOORD step_vec = step_end - step_start;
157 double target_length = step_vec.
length() * cut_fraction;
161 double best_dist = target_length;
162 for (
int s = prev->
start_step; s < end_step; ++s) {
163 total_step += prev_ol->
step(s % step_length);
164 double dist = fabs(target_length - total_step.length());
165 if (dist < best_dist) {
172 this_edgept->
step_count = end_step - best_step;
173 this_edgept->
start_step = best_step % step_length;
182 this_edgept->
next = next;
183 this_edgept->
prev = prev;
184 prev->
next = this_edgept;
185 next->
prev = this_edgept;
◆ remove_edgept()
void remove_edgept |
( |
EDGEPT * |
point | ) |
|
◆ wordrec_display_splits
bool wordrec_display_splits = 0 |
"Display splits"
Definition at line 39 of file split.cpp.