#include "split.h"
#include "coutln.h"
#include "tprintf.h"
Go to the source code of this file.
◆ make_edgept()
Definition at line 147 of file split.cpp.
151 this_edgept->
pos.
x = x;
152 this_edgept->
pos.
y = y;
155 if (prev_ol != NULL && prev->
next == next) {
159 double cut_fraction = target_vec.length() / segment_vec.length();
165 ICOORD step_vec = step_end - step_start;
166 double target_length = step_vec.
length() * cut_fraction;
170 double best_dist = target_length;
171 for (
int s = prev->
start_step; s < end_step; ++s) {
172 total_step += prev_ol->
step(s % step_length);
173 double dist = fabs(target_length - total_step.length());
174 if (dist < best_dist) {
181 this_edgept->
step_count = end_step - best_step;
182 this_edgept->
start_step = best_step % step_length;
191 this_edgept->
next = next;
192 this_edgept->
prev = prev;
193 prev->
next = this_edgept;
194 next->
prev = this_edgept;
ICOORD position_at_index(int index) const
ICOORD step(int index) const
float length() const
find length
◆ remove_edgept()
void remove_edgept |
( |
EDGEPT * |
point | ) |
|
◆ kBadPriority
const double kBadPriority = 999.0 |
◆ kCenterGradeCap
const int kCenterGradeCap = 25 |
◆ wordrec_display_splits
bool wordrec_display_splits = 0 |
"Display splits"
Definition at line 49 of file split.cpp.