diff --git a/example/SFCGAL-offset/main.cpp b/example/SFCGAL-offset/main.cpp index 84f4da98..65de52c6 100644 --- a/example/SFCGAL-offset/main.cpp +++ b/example/SFCGAL-offset/main.cpp @@ -1,6 +1,3 @@ -#include - -#include #include #include diff --git a/include/SFCGAL/algorithm/volume.h b/include/SFCGAL/algorithm/volume.h index 22dda2b1..8014b256 100644 --- a/include/SFCGAL/algorithm/volume.h +++ b/include/SFCGAL/algorithm/volume.h @@ -21,6 +21,7 @@ #ifndef _SFCGAL_ALGORITHM_VOLUME_H_ #define _SFCGAL_ALGORITHM_VOLUME_H_ +#include #include #include @@ -34,14 +35,14 @@ struct NoValidityCheck; * @pre g is a valid Geometry * @ingroup public_api */ -const Kernel::FT volume( const Geometry& g ); +SFCGAL_API const Kernel::FT volume( const Geometry& g ); /** * Computes the volume of a Solid * @pre (not checked) volume is closed and consistently oriented * @ingroup detail */ -const Kernel::FT volume( const Solid& g, NoValidityCheck ); +SFCGAL_API const Kernel::FT volume( const Solid& g, NoValidityCheck ); } } diff --git a/include/SFCGAL/detail/transform/AffineTransform2.h b/include/SFCGAL/detail/transform/AffineTransform2.h index 3027c4ba..ba3a4fe0 100644 --- a/include/SFCGAL/detail/transform/AffineTransform2.h +++ b/include/SFCGAL/detail/transform/AffineTransform2.h @@ -21,6 +21,7 @@ #ifndef _SFCGAL_TRANSFORM_AFFINETRANSFORM2_H_ #define _SFCGAL_TRANSFORM_AFFINETRANSFORM2_H_ +#include #include #include @@ -34,7 +35,7 @@ namespace transform { * Wrapper for CGAL::Aff_transform_2 * @todo unittest */ -class AffineTransform2 : public Transform { +class SFCGAL_API AffineTransform2 : public Transform { public: /** * Constructor with a transform diff --git a/include/SFCGAL/detail/transform/AffineTransform3.h b/include/SFCGAL/detail/transform/AffineTransform3.h index 70f138f8..5649bd42 100644 --- a/include/SFCGAL/detail/transform/AffineTransform3.h +++ b/include/SFCGAL/detail/transform/AffineTransform3.h @@ -21,6 +21,7 @@ #ifndef _SFCGAL_TRANSFORM_AFFINETRANSFORM3_H_ #define _SFCGAL_TRANSFORM_AFFINETRANSFORM3_H_ +#include #include #include @@ -33,7 +34,7 @@ namespace transform { * Wrapper for CGAL::Aff_transform_3 * @todo unittest */ -class AffineTransform3 : public Transform { +class SFCGAL_API AffineTransform3 : public Transform { public: /** * Constructor with a transform diff --git a/src/SFCGAL/detail/transform/AffineTransform2.cpp b/src/SFCGAL/detail/transform/AffineTransform2.cpp index a196734b..b95c154c 100644 --- a/src/SFCGAL/detail/transform/AffineTransform2.cpp +++ b/src/SFCGAL/detail/transform/AffineTransform2.cpp @@ -29,17 +29,19 @@ namespace transform { /// /// AffineTransform2::AffineTransform2( CGAL::Aff_transformation_2< Kernel > transform ): - _transform( transform ) { + _transform( transform ) +{ } /* * [SFCGAL::Transform] */ -void AffineTransform2::transform( Point& p ) { - if ( ! p.isEmpty() ){ - p = Point( p.toPoint_2().transform( _transform ) ); - } +void AffineTransform2::transform( Point& p ) +{ + if ( ! p.isEmpty() ) { + p = Point( p.toPoint_2().transform( _transform ) ); + } } diff --git a/src/SFCGAL/detail/transform/AffineTransform3.cpp b/src/SFCGAL/detail/transform/AffineTransform3.cpp index 1147e2a9..5d491110 100644 --- a/src/SFCGAL/detail/transform/AffineTransform3.cpp +++ b/src/SFCGAL/detail/transform/AffineTransform3.cpp @@ -43,80 +43,88 @@ namespace transform { /// /// AffineTransform3::AffineTransform3( CGAL::Aff_transformation_3< Kernel > transform ): - _transform( transform ) { + _transform( transform ) +{ } /// /// /// -void AffineTransform3::transform( Point& p ) { - if ( ! p.isEmpty() ) { - p = Point( p.toPoint_3().transform( _transform ) ) ; - } +void AffineTransform3::transform( Point& p ) +{ + if ( ! p.isEmpty() ) { + p = Point( p.toPoint_3().transform( _transform ) ) ; + } } /// /// /// -void AffineTransform3::transform( LineString& ls ) { - for ( size_t i = 0; i < ls.numPoints(); ++i ) { - transform( ls.pointN( i ) ); - } +void AffineTransform3::transform( LineString& ls ) +{ + for ( size_t i = 0; i < ls.numPoints(); ++i ) { + transform( ls.pointN( i ) ); + } } /// /// /// -void AffineTransform3::transform( Triangle& tri ) { - transform( tri.vertex( 0 ) ); - transform( tri.vertex( 1 ) ); - transform( tri.vertex( 2 ) ); +void AffineTransform3::transform( Triangle& tri ) +{ + transform( tri.vertex( 0 ) ); + transform( tri.vertex( 1 ) ); + transform( tri.vertex( 2 ) ); } /// /// /// -void AffineTransform3::transform( Polygon& poly ) { - transform( poly.exteriorRing() ); +void AffineTransform3::transform( Polygon& poly ) +{ + transform( poly.exteriorRing() ); - for ( size_t i = 0; i < poly.numInteriorRings(); ++i ) { - transform( poly.interiorRingN( i ) ); - } + for ( size_t i = 0; i < poly.numInteriorRings(); ++i ) { + transform( poly.interiorRingN( i ) ); + } } /// /// /// -void AffineTransform3::transform( PolyhedralSurface& surf ) { - for ( size_t i = 0; i < surf.numPolygons(); ++i ) { - transform( surf.polygonN( i ) ); - } +void AffineTransform3::transform( PolyhedralSurface& surf ) +{ + for ( size_t i = 0; i < surf.numPolygons(); ++i ) { + transform( surf.polygonN( i ) ); + } } /// /// /// -void AffineTransform3::transform( TriangulatedSurface& surf ) { - for ( size_t i = 0; i < surf.numGeometries(); ++i ) { - transform( surf.geometryN( i ) ); - } +void AffineTransform3::transform( TriangulatedSurface& surf ) +{ + for ( size_t i = 0; i < surf.numGeometries(); ++i ) { + transform( surf.geometryN( i ) ); + } } /// /// /// -void AffineTransform3::transform( Solid& solid ) { - transform( solid.exteriorShell() ); +void AffineTransform3::transform( Solid& solid ) +{ + transform( solid.exteriorShell() ); - for ( size_t i = 0; i < solid.numInteriorShells(); ++i ) { - transform( solid.interiorShellN( i ) ); - } + for ( size_t i = 0; i < solid.numInteriorShells(); ++i ) { + transform( solid.interiorShellN( i ) ); + } }