#include "blobs.h"
#include "scrollview.h"
Go to the source code of this file.
Definition at line 142 of file split.cpp.
146 this_edgept->
pos.
x = x;
147 this_edgept->
pos.
y = y;
150 if (prev_ol !=
NULL && prev->
next == next) {
154 double cut_fraction = target_vec.length() / segment_vec.length();
160 ICOORD step_vec = step_end - step_start;
161 double target_length = step_vec.
length() * cut_fraction;
165 double best_dist = target_length;
166 for (
int s = prev->
start_step; s < end_step; ++s) {
167 total_step += prev_ol->
step(s % step_length);
168 double dist = fabs(target_length - total_step.length());
169 if (dist < best_dist) {
176 this_edgept->
step_count = end_step - best_step;
177 this_edgept->
start_step = best_step % step_length;
186 this_edgept->
next = next;
187 this_edgept->
prev = prev;
188 prev->
next = this_edgept;
189 next->
prev = this_edgept;
float length() const
find length
ICOORD step(int index) const
ICOORD position_at_index(int index) const
void remove_edgept |
( |
EDGEPT * |
point | ) |
|
bool wordrec_display_splits = 0 |
"Display splits"
Definition at line 44 of file split.cpp.