Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Straight_skeleton_builder_2<Gt,Ss,V>::IsPseudoSplitEvent( EventPtr const& aEvent
}

if ( rPseudoSplitEvent )
rPseudoSplitEvent->SetTimeAndPoint(aEvent->time(),aEvent->point());
rPseudoSplitEvent->SetTimeAndPoint(aEvent->exact_time(),aEvent->exact_point());

return rPseudoSplitEvent ;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include<ostream>

#include <CGAL/Straight_skeleton_2/Straight_skeleton_aux.h>
#include <CGAL/Straight_skeleton_2/Straight_skeleton_builder_traits_2_aux.h>

namespace CGAL {

Expand Down Expand Up @@ -74,10 +75,12 @@ class Event_2 : public Ref_counted_base

Triedge const& triedge () const { return mTriedge ; }
Trisegment_2_ptr const& trisegment() const { return mTrisegment; }
Point_2 const& point () const { return mP ; }
FT time () const { return mTime ; }
Point_2 const& point () const { return mP.pt ; } // TODO_INEXACT
CGAL_SS_i::Rational_point<Point_2, FT> const& exact_point() const { return mP; }
FT time () const { return mTime.to_nt() ; } // TODO_INEXACT
CGAL_SS_i::Rational_time<FT> exact_time () const { return mTime; }

void SetTimeAndPoint( FT aTime, Point_2 const& aP ) { mTime = aTime ; mP = aP ; }
void SetTimeAndPoint( CGAL_SS_i::Rational_time<FT> aTime, CGAL_SS_i::Rational_point<Point_2, FT> const& aP ) { mTime = aTime ; mP = aP ; }

friend std::ostream& operator<< ( std::ostream& ss, Self const& e )
{
Expand All @@ -96,8 +99,8 @@ private :

Triedge mTriedge ;
Trisegment_2_ptr mTrisegment ;
Point_2 mP ;
FT mTime ;
CGAL_SS_i::Rational_point<Point_2, FT> mP ;
Rational_time<FT> mTime ;
} ;

template<class SSkel_, class Traits_>
Expand Down
Loading