Cleaning up typedefs

This commit is contained in:
Nico Kruithof 2011-01-09 11:47:58 +00:00
parent 41fa1f6b48
commit a389c224a5
2 changed files with 5 additions and 6 deletions

View File

@ -20,7 +20,6 @@
#ifndef CGAL_MAKE_SKIN_SURFACE_MESH_3_H
#define CGAL_MAKE_SKIN_SURFACE_MESH_3_H
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Skin_surface_traits_3.h>
#include <CGAL/Skin_surface_3.h>
#include <CGAL/mesh_skin_surface_3.h>
@ -42,11 +41,10 @@ void make_skin_surface_mesh_3(Polyhedron_3 &p,
make_union_of_balls_mesh_3(p,begin,end,nSubdivisions);
}
typedef typename WP_iterator::value_type Weighted_point;
typedef typename Weighted_point::Point Point;
typedef typename Point::R K;
// typedef Exact_predicates_inexact_constructions_kernel K;
typedef typename WP_iterator::value_type Weighted_point;
typedef typename Kernel_traits<Weighted_point>::Kernel K;
typedef Skin_surface_traits_3<K> Traits;
typedef Skin_surface_3<Traits> Skin_surface;

View File

@ -20,7 +20,6 @@
#ifndef CGAL_MAKE_UNION_OF_BALLS_MESH_3_H
#define CGAL_MAKE_UNION_OF_BALLS_MESH_3_H
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Skin_surface_traits_3.h>
#include <CGAL/Union_of_balls_3.h>
#include <CGAL/mesh_union_of_balls_3.h>
@ -36,7 +35,9 @@ void make_union_of_balls_mesh_3(Polyhedron_3 &p,
WP_iterator begin, WP_iterator end,
int nSubdivisions=0)
{
typedef Exact_predicates_inexact_constructions_kernel K;
typedef typename WP_iterator::value_type Weighted_point;
typedef typename Kernel_traits<Weighted_point>::Kernel K;
typedef Skin_surface_traits_3<K> Traits;
typedef Union_of_balls_3<Traits> Union_of_balls;