Skip to content

Commit

Permalink
added demo_pip figure
Browse files Browse the repository at this point in the history
  • Loading branch information
skramm committed Mar 16, 2024
1 parent 2f43b2f commit 856c7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added docs/img/demo_pip.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions misc/figures_src/src/demo_pip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ void drawFig( const P& poly, const BB& bb, const Point2d& pt, const Point2d* pt2
if( pt2 )
{
auto seg = Segment( pt, *pt2 );
std::cout << seg << "\n";
// std::cout << seg << "\n";
seg.draw( im, DrawParams().setColor(0,0,250) );
auto inter = seg.intersects( poly );
auto color = DrawParams().setColor(0,250,0).setPointStyle(PtStyle::Dot).setThickness(3).setPointSize(15);
auto color = DrawParams().setColor(0,250,0).setPointStyle(PtStyle::Dot).setThickness(2).setPointSize(10);
pt2->draw( im, color );
if( inter() )
{
Expand Down

0 comments on commit 856c7cf

Please sign in to comment.