Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
rdm-area.cpp File Reference

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< PointtoPoly (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)
 

Function Documentation

◆ intersect()

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().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 465 of file rdm-area.cpp.

References init().

◆ my_rand_generator()

double my_rand_generator ( )

Definition at line 228 of file rdm-area.cpp.

◆ toPoly() [1/2]

void toPoly ( D2< SBasis > const &  f,
std::list< Point > &  p,
double  tol,
bool  include_first = true 
)

◆ toPoly() [2/2]

std::list< Point > toPoly ( std::vector< Piecewise< D2< SBasis > > >  f,
double  tol 
)

Definition at line 52 of file rdm-area.cpp.

References toPoly().

◆ triangulate()

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().

◆ uncross()

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().