Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix C API geometry_is_planar
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Nov 8, 2016
1 parent ec5b86a commit e61c527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capi/sfcgal_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ extern "C" int sfcgal_geometry_is_planar( const sfcgal_geometry_t* ga )
bool r;

try {
r = SFCGAL::algorithm::hasPlane3D< SFCGAL::Kernel >( g->as< const SFCGAL::Polygon >() );
r = SFCGAL::algorithm::isPlane3D< SFCGAL::Kernel >( g->as<const SFCGAL::Polygon >(), 1e-9 );
}
catch ( std::exception& e ) {
SFCGAL_WARNING( "During is_planar(A) :" );
Expand Down

0 comments on commit e61c527

Please sign in to comment.