| 95 | 
  | 
//                                                                                                                              Kernel::RT s=RT(20), | 
| 96 | 
  | 
//                                                                                                                              Kernel::RT hw = RT(1)); | 
| 97 | 
  | 
 | 
| 98 | 
+ | 
 | 
| 99 | 
+ | 
 | 
| 100 | 
+ | 
 | 
| 101 | 
+ | 
 | 
| 102 | 
  | 
// A modifier creating a triangle with the incremental builder. | 
| 103 | 
  | 
template <class HDS> | 
| 104 | 
< | 
class Build_nanorod : public CGAL::Modifier_base<HDS> { | 
| 104 | 
> | 
class buildSingleCrystal : public CGAL::Modifier_base<HDS> { | 
| 105 | 
  | 
 public: | 
| 106 | 
  | 
  Vertex_handle end1; | 
| 107 | 
  | 
  Vertex_handle neight1; | 
| 109 | 
  | 
  Vertex_handle neight2; | 
| 110 | 
  | 
  Vertex_handle neight3; | 
| 111 | 
  | 
   | 
| 112 | 
< | 
  Build_nanorod() {} | 
| 112 | 
> | 
  buildSingleCrystal() {} | 
| 113 | 
  | 
  void operator()( HDS& hds) { | 
| 114 | 
  | 
    // Postcondition: `hds' is a valid polyhedral surface. | 
| 115 | 
  | 
    CGAL::Polyhedron_incremental_builder_3<HDS> B( hds, true); | 
| 272 | 
  | 
 | 
| 273 | 
  | 
GeometryBuilder::GeometryBuilder(double length,double width) { | 
| 274 | 
  | 
  // Create the geometry for nanorod | 
| 275 | 
< | 
  Build_nanorod<HalfedgeDS> nanorod; | 
| 275 | 
> | 
 buildSingleCrystal<HalfedgeDS> nanorod; | 
| 276 | 
  | 
   | 
| 277 | 
  | 
  nanoRodPolyhedron.delegate( nanorod); | 
| 278 | 
  | 
    |