Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Functions | |
void | toPoly (D2< SBasis > const &f, std::list< Point > &p, double tol, bool include_first=true) |
std::list< Point > | toPoly (std::vector< Piecewise< D2< SBasis > > > f, double tol) |
bool | intersect (Point const &a0, Point const &b0, Point const &a1, Point const &b1, Point &c, double tol=.0001) |
void | uncross (std::list< Point > &loop) |
void | triangulate (std::list< Point > &pts, std::vector< Triangle > &tri, bool clockwise=false, double tol=.001) |
double | my_rand_generator () |
int | main (int argc, char **argv) |
bool intersect | ( | Point const & | a0, |
Point const & | b0, | ||
Point const & | a1, | ||
Point const & | b1, | ||
Point & | c, | ||
double | tol = .0001 |
||
) |
Definition at line 69 of file rdm-area.cpp.
References c, Geom::cross(), and Geom::dot().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 465 of file rdm-area.cpp.
References init().
double my_rand_generator | ( | ) |
Definition at line 228 of file rdm-area.cpp.
void toPoly | ( | D2< SBasis > const & | f, |
std::list< Point > & | p, | ||
double | tol, | ||
bool | include_first = true |
||
) |
Definition at line 26 of file rdm-area.cpp.
References Geom::D2< T >::at0(), bounds, Geom::bounds_local(), Geom::derivative(), Geom::GenericRect< C >::max(), Geom::GenericRect< C >::min(), Geom::unit_vector(), Geom::D2< T >::valueAt(), Geom::X, and Geom::Y.
Referenced by toPoly().
Definition at line 52 of file rdm-area.cpp.
References toPoly().
void triangulate | ( | std::list< Point > & | pts, |
std::vector< Triangle > & | tri, | ||
bool | clockwise = false , |
||
double | tol = .001 |
||
) |
Definition at line 150 of file rdm-area.cpp.
References c, Geom::cross(), Geom::dot(), Geom::intersect(), Geom::sign(), and triangulate().
Referenced by triangulate().
void uncross | ( | std::list< Point > & | loop | ) |
Definition at line 102 of file rdm-area.cpp.
References c, and Geom::intersect().
Referenced by SPText::_buildLayoutInit(), and Inkscape::UI::Tools::TextTool::_updateCursor().