mirror of https://github.com/CGAL/cgal
Fix warnings
This commit is contained in:
parent
ff54473e63
commit
a0ed8938d6
|
|
@ -60,8 +60,6 @@ struct Construct_offset_point_2 : Functor_base_2<K>
|
||||||
, Trisegment_2_ptr const& aNode
|
, Trisegment_2_ptr const& aNode
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
typedef boost::optional< typename K::Line_2 > Optional_line;
|
|
||||||
|
|
||||||
No_caches<K> no_caches;
|
No_caches<K> no_caches;
|
||||||
|
|
||||||
result_type p = construct_offset_pointC2(aT,aE0,aWeight0,aE1,aWeight1,aNode, no_caches);
|
result_type p = construct_offset_pointC2(aT,aE0,aWeight0,aE1,aWeight1,aNode, no_caches);
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,10 @@ Straight_skeleton_builder_2<Gt,Ss,V>::Straight_skeleton_builder_2 ( boost::optio
|
||||||
,mSSkel( new SSkel() )
|
,mSSkel( new SSkel() )
|
||||||
{
|
{
|
||||||
if( mMaxTime )
|
if( mMaxTime )
|
||||||
|
{
|
||||||
CGAL_STSKEL_BUILDER_TRACE(4, "Init with mMaxTime = " << *mMaxTime);
|
CGAL_STSKEL_BUILDER_TRACE(4, "Init with mMaxTime = " << *mMaxTime);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
template<class Gt, class Ss, class V>
|
template<class Gt, class Ss, class V>
|
||||||
typename Straight_skeleton_builder_2<Gt,Ss,V>::Halfedge_handle
|
typename Straight_skeleton_builder_2<Gt,Ss,V>::Halfedge_handle
|
||||||
|
|
@ -2247,7 +2249,7 @@ extreme_h / \ extreme_h / \
|
||||||
Halfedge_handle extreme_h = e.first;
|
Halfedge_handle extreme_h = e.first;
|
||||||
EventPtr artificial_event = e.second;
|
EventPtr artificial_event = e.second;
|
||||||
|
|
||||||
Halfedge_handle contour_h = artificial_event->triedge().e0() ;
|
// Halfedge_handle contour_h = artificial_event->triedge().e0() ;
|
||||||
|
|
||||||
Halfedge_handle split_h = artificial_event->triedge().e2() ;
|
Halfedge_handle split_h = artificial_event->triedge().e2() ;
|
||||||
Halfedge_handle split_h_prev = split_h->prev() ;
|
Halfedge_handle split_h_prev = split_h->prev() ;
|
||||||
|
|
|
||||||
|
|
@ -1447,7 +1447,7 @@ public:
|
||||||
WeightIterator aWeightsEnd,
|
WeightIterator aWeightsEnd,
|
||||||
const Converter& cvt)
|
const Converter& cvt)
|
||||||
{
|
{
|
||||||
auto lWeightsN = std::distance(aWeightsBegin, aWeightsEnd);
|
const std::size_t lWeightsN = std::distance(aWeightsBegin, aWeightsEnd);
|
||||||
CGAL_assertion(lWeightsN <= mSSkel->SSkel::Base::size_of_faces());
|
CGAL_assertion(lWeightsN <= mSSkel->SSkel::Base::size_of_faces());
|
||||||
|
|
||||||
Face_iterator fit = std::next(mSSkel->SSkel::Base::faces_end(), -lWeightsN);
|
Face_iterator fit = std::next(mSSkel->SSkel::Base::faces_end(), -lWeightsN);
|
||||||
|
|
|
||||||
|
|
@ -756,9 +756,6 @@ public:
|
||||||
|
|
||||||
typedef decltype(aNode->halfedge()) Halfedge_handle;
|
typedef decltype(aNode->halfedge()) Halfedge_handle;
|
||||||
typedef CGAL_SS_i::Segment_2_with_ID<FK> Target_Segment_with_ID_2;
|
typedef CGAL_SS_i::Segment_2_with_ID<FK> Target_Segment_with_ID_2;
|
||||||
typedef CGAL_SS_i::Triedge<Halfedge_handle> Triedge;
|
|
||||||
typedef CGAL::Trisegment_2<FK, Target_Segment_with_ID_2> Target_Trisegment_2;
|
|
||||||
typedef Trisegment_2_ptr<Target_Trisegment_2> Target_Trisegment_2_ptr;
|
|
||||||
|
|
||||||
CGAL_STSKEL_TRAITS_TRACE("Computing approximate filtering bound of V" << aNode->id() << " [" << typeid(Target_FT).name() << "]" );
|
CGAL_STSKEL_TRAITS_TRACE("Computing approximate filtering bound of V" << aNode->id() << " [" << typeid(Target_FT).name() << "]" );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ boost::optional< typename Traits::FT > compute_outer_frame_margin ( ForwardPoint
|
||||||
typedef typename Traits::FT FT ;
|
typedef typename Traits::FT FT ;
|
||||||
typedef typename Traits::Point_2 Point_2 ;
|
typedef typename Traits::Point_2 Point_2 ;
|
||||||
typedef typename Traits::Segment_2 Segment_2 ;
|
typedef typename Traits::Segment_2 Segment_2 ;
|
||||||
typedef typename Traits::Trisegment_2_ptr Trisegment_2_ptr ;
|
|
||||||
|
|
||||||
Kernel kernel ;
|
Kernel kernel ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,6 @@ boost::optional< typename K::Line_2 >
|
||||||
compute_normalized_line_coeffC2( Segment_2_with_ID<K> const& e,
|
compute_normalized_line_coeffC2( Segment_2_with_ID<K> const& e,
|
||||||
Caches& aCaches )
|
Caches& aCaches )
|
||||||
{
|
{
|
||||||
typedef typename K::Segment_2 Segment_2 ;
|
|
||||||
typedef typename K::Line_2 Line_2 ;
|
typedef typename K::Line_2 Line_2 ;
|
||||||
|
|
||||||
if(aCaches.mCoeff_cache.IsCached(e.mID) )
|
if(aCaches.mCoeff_cache.IsCached(e.mID) )
|
||||||
|
|
@ -430,11 +429,11 @@ compute_oriented_midpoint ( Segment_2_with_ID<K> const& e0,
|
||||||
|
|
||||||
FT delta01 = CGAL::squared_distance(e0.target(),e1.source());
|
FT delta01 = CGAL::squared_distance(e0.target(),e1.source());
|
||||||
if( CGAL_NTS is_finite(delta01) && CGAL_NTS is_zero(delta01))
|
if( CGAL_NTS is_finite(delta01) && CGAL_NTS is_zero(delta01))
|
||||||
return (true /*ok*/, e0.target());
|
return cgal_make_optional(e0.target());
|
||||||
|
|
||||||
FT delta10 = CGAL::squared_distance(e1.target(),e0.source());
|
FT delta10 = CGAL::squared_distance(e1.target(),e0.source());
|
||||||
if( CGAL_NTS is_finite(delta10) && CGAL_NTS is_zero(delta10))
|
if( CGAL_NTS is_finite(delta10) && CGAL_NTS is_zero(delta10))
|
||||||
return (true /*ok*/, e1.target());
|
return cgal_make_optional(e1.target());
|
||||||
|
|
||||||
bool ok = false ;
|
bool ok = false ;
|
||||||
typename K::Point_2 mp ;
|
typename K::Point_2 mp ;
|
||||||
|
|
@ -542,7 +541,6 @@ compute_artifical_isec_timeC2 ( Trisegment_2_ptr< Trisegment_2<K, Segment_2_with
|
||||||
typedef typename K::Direction_2 Direction_2 ;
|
typedef typename K::Direction_2 Direction_2 ;
|
||||||
typedef typename K::Ray_2 Ray_2 ;
|
typedef typename K::Ray_2 Ray_2 ;
|
||||||
|
|
||||||
typedef boost::optional<Point_2> Optional_point_2 ;
|
|
||||||
typedef boost::optional<Line_2> Optional_line_2 ;
|
typedef boost::optional<Line_2> Optional_line_2 ;
|
||||||
|
|
||||||
CGAL_STSKEL_TRAITS_TRACE("\n~~ Computing artificial isec time [" << typeid(FT).name() << "]");
|
CGAL_STSKEL_TRAITS_TRACE("\n~~ Computing artificial isec time [" << typeid(FT).name() << "]");
|
||||||
|
|
@ -778,7 +776,7 @@ compute_offset_lines_isec_timeC2 ( Trisegment_2_ptr< Trisegment_2<K, Segment_2_w
|
||||||
|
|
||||||
CGAL_precondition ( tri->collinearity() != TRISEGMENT_COLLINEARITY_ALL ) ;
|
CGAL_precondition ( tri->collinearity() != TRISEGMENT_COLLINEARITY_ALL ) ;
|
||||||
|
|
||||||
boost::optional< Rational< typename K::FT > > rRes =
|
boost::optional< Rational<FT> > rRes =
|
||||||
tri->collinearity() == TRISEGMENT_COLLINEARITY_NONE ? compute_normal_offset_lines_isec_timeC2 (tri, aCaches)
|
tri->collinearity() == TRISEGMENT_COLLINEARITY_NONE ? compute_normal_offset_lines_isec_timeC2 (tri, aCaches)
|
||||||
: compute_degenerate_offset_lines_isec_timeC2(tri, aCaches);
|
: compute_degenerate_offset_lines_isec_timeC2(tri, aCaches);
|
||||||
|
|
||||||
|
|
@ -857,14 +855,12 @@ boost::optional< typename K::Point_2 >
|
||||||
construct_artifical_isecC2 ( Trisegment_2_ptr< Trisegment_2<K, Segment_2_with_ID<K> > > const& tri,
|
construct_artifical_isecC2 ( Trisegment_2_ptr< Trisegment_2<K, Segment_2_with_ID<K> > > const& tri,
|
||||||
Caches& aCaches )
|
Caches& aCaches )
|
||||||
{
|
{
|
||||||
typedef typename K::FT FT ;
|
|
||||||
typedef typename K::Boolean Boolean ;
|
|
||||||
typedef typename K::Point_2 Point_2 ;
|
typedef typename K::Point_2 Point_2 ;
|
||||||
typedef typename K::Segment_2 Segment_2 ;
|
typedef typename K::Segment_2 Segment_2 ;
|
||||||
typedef typename K::Ray_2 Ray_2 ;
|
typedef typename K::Ray_2 Ray_2 ;
|
||||||
typedef typename K::Direction_2 Direction_2 ;
|
typedef typename K::Direction_2 Direction_2 ;
|
||||||
|
|
||||||
CGAL_STSKEL_TRAITS_TRACE("\n~~ Computing artificial isec point [" << typeid(FT).name() << "]");
|
CGAL_STSKEL_TRAITS_TRACE("\n~~ Computing artificial isec point [" << typeid(typename K::FT).name() << "]");
|
||||||
CGAL_STSKEL_TRAITS_TRACE("Event:\n" << tri);
|
CGAL_STSKEL_TRAITS_TRACE("Event:\n" << tri);
|
||||||
|
|
||||||
CGAL_precondition(tri->e0() == tri->e1());
|
CGAL_precondition(tri->e0() == tri->e1());
|
||||||
|
|
@ -1008,7 +1004,7 @@ construct_degenerate_offset_lines_isecC2 ( Trisegment_2_ptr< Trisegment_2<K, Seg
|
||||||
// l2a*x + l2b*y + l2c - t = 0
|
// l2a*x + l2b*y + l2c - t = 0
|
||||||
// l0a*x + l0b*y + lambda = 0
|
// l0a*x + l0b*y + lambda = 0
|
||||||
|
|
||||||
const FT t = l0c - lambda ; // (3) - (1)
|
// const FT t = l0c - lambda ; // (3) - (1)
|
||||||
const FT den = l2a*l0b - l0a*l2b;
|
const FT den = l2a*l0b - l0a*l2b;
|
||||||
|
|
||||||
if ( ! CGAL_NTS certified_is_zero(den) && CGAL_NTS is_finite(den) )
|
if ( ! CGAL_NTS certified_is_zero(den) && CGAL_NTS is_finite(den) )
|
||||||
|
|
@ -1029,10 +1025,9 @@ boost::optional< typename K::Point_2 >
|
||||||
construct_offset_lines_isecC2 ( Trisegment_2_ptr< Trisegment_2<K, Segment_2_with_ID<K> > > const& tri,
|
construct_offset_lines_isecC2 ( Trisegment_2_ptr< Trisegment_2<K, Segment_2_with_ID<K> > > const& tri,
|
||||||
Caches& aCaches )
|
Caches& aCaches )
|
||||||
{
|
{
|
||||||
typedef typename K::FT FT ;
|
|
||||||
typedef typename K::Point_2 Point_2 ;
|
typedef typename K::Point_2 Point_2 ;
|
||||||
|
|
||||||
CGAL_STSKEL_TRAITS_TRACE("construct_offset_lines_isecC2(" << tri->id() << ") [" << typeid(FT).name() << "]" );
|
CGAL_STSKEL_TRAITS_TRACE("construct_offset_lines_isecC2(" << tri->id() << ") [" << typeid(typename K::FT).name() << "]" );
|
||||||
|
|
||||||
if(aCaches.mPoint_cache.IsCached(tri->id()) )
|
if(aCaches.mPoint_cache.IsCached(tri->id()) )
|
||||||
return aCaches.mPoint_cache.Get(tri->id()) ;
|
return aCaches.mPoint_cache.Get(tri->id()) ;
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ create_partial_interior_weighted_straight_skeleton_2 ( const FT& aMaxTime,
|
||||||
ssb.enter_contour ( aOuterContour_VerticesBegin, aOuterContour_VerticesEnd, conv ) ;
|
ssb.enter_contour ( aOuterContour_VerticesBegin, aOuterContour_VerticesEnd, conv ) ;
|
||||||
ssb.enter_contour_weights ( aOuterContour_WeightsBegin, aOuterContour_WeightsEnd, wconv ) ;
|
ssb.enter_contour_weights ( aOuterContour_WeightsBegin, aOuterContour_WeightsEnd, wconv ) ;
|
||||||
|
|
||||||
for ( HoleIterator hi = aHolesBegin ; hi != aHolesEnd ; ++ hi )
|
for(HoleIterator hi = aHolesBegin; hi != aHolesEnd && aHoles_WeightsBegin != aHoles_WeightsEnd; ++ hi, ++aHoles_WeightsBegin)
|
||||||
{
|
{
|
||||||
ssb.enter_contour(CGAL_SS_i::vertices_begin(*hi), CGAL_SS_i::vertices_end(*hi), conv);
|
ssb.enter_contour(CGAL_SS_i::vertices_begin(*hi), CGAL_SS_i::vertices_end(*hi), conv);
|
||||||
ssb.enter_contour_weights(aHoles_WeightsBegin->begin(), aHoles_WeightsBegin->end(), wconv);
|
ssb.enter_contour_weights(aHoles_WeightsBegin->begin(), aHoles_WeightsBegin->end(), wconv);
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ create_interior_weighted_straight_skeleton_2(PointIterator outer_contour_vertice
|
||||||
ssb.enter_contour(outer_contour_vertices_begin, outer_contour_vertices_end, point_converter);
|
ssb.enter_contour(outer_contour_vertices_begin, outer_contour_vertices_end, point_converter);
|
||||||
ssb.enter_contour_weights(outer_contour_weights_begin, outer_contour_weights_end, weight_converter);
|
ssb.enter_contour_weights(outer_contour_weights_begin, outer_contour_weights_end, weight_converter);
|
||||||
|
|
||||||
for(HoleIterator hi = holes_begin; hi != holes_end; ++hi, ++holes_weights_begin)
|
for(HoleIterator hi = holes_begin; hi != holes_end && holes_weights_begin != holes_weights_end; ++hi, ++holes_weights_begin)
|
||||||
{
|
{
|
||||||
ssb.enter_contour(CGAL_SS_i::vertices_begin(*hi), CGAL_SS_i::vertices_end(*hi), point_converter);
|
ssb.enter_contour(CGAL_SS_i::vertices_begin(*hi), CGAL_SS_i::vertices_end(*hi), point_converter);
|
||||||
ssb.enter_contour_weights(holes_weights_begin->begin(), holes_weights_begin->end(), weight_converter);
|
ssb.enter_contour_weights(holes_weights_begin->begin(), holes_weights_begin->end(), weight_converter);
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ compare_offset_against_isec_timeC2 ( typename K::FT const& t,
|
||||||
Trisegment_2_ptr< Trisegment_2<K, Segment_2_with_ID<K> > > const& tri )
|
Trisegment_2_ptr< Trisegment_2<K, Segment_2_with_ID<K> > > const& tri )
|
||||||
{
|
{
|
||||||
typedef typename K::FT FT ;
|
typedef typename K::FT FT ;
|
||||||
typedef typename K::Line_2 Line_2 ;
|
|
||||||
|
|
||||||
typedef Rational<FT> Rational ;
|
typedef Rational<FT> Rational ;
|
||||||
typedef Quotient<FT> Quotient ;
|
typedef Quotient<FT> Quotient ;
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ bool test(const char* poly_filename,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
std::cout.precision(17);
|
std::cout.precision(17);
|
||||||
std::cerr.precision(17);
|
std::cerr.precision(17);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue