~ubuntu-branches/debian/stretch/cgal/stretch

« back to all changes in this revision

Viewing changes to examples/Linear_cell_complex/linear_cell_complex_3_with_mypoint.cpp

  • Committer: Package Import Robot
  • Author(s): Joachim Reichel
  • Date: 2014-04-05 10:56:43 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140405105643-jgnrpu2thtx23zfs
Tags: 4.4-1
* New upstream release.
* Remove patches do-not-link-example-with-qt4-support-library.patch and
  fix_jet_fitting_3.patch (applied upstream).

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
  Dart_handle d2 = make_iso_cuboid(lcc, Point(0, 0, 0), 1);
72
72
 
73
73
  // 3-Sew the two cubes along one facet.
74
 
  lcc.sew<3>(d1->beta(1)->beta(1)->beta(2), d2->beta(2));
 
74
  lcc.sew<3>(lcc.beta(d1, 1, 1, 2), lcc.beta(d2, 2));
75
75
 
76
76
  // Barycentric triangulation of the facet between the two cubes.
77
 
  lcc.insert_barycenter_in_cell<2>(d2->beta(2));
 
77
  lcc.insert_barycenter_in_cell<2>(lcc.beta(d2, 2));
78
78
 
79
79
  // Display all the vertices of the map.
80
80
  for (LCC_3::Vertex_attribute_range::iterator 
82
82
         itend=lcc.vertex_attributes().end(); 
83
83
       it!=itend; ++it)
84
84
  {
85
 
    std::cout<<"point: "<<it->point()<<", "<<"type: "<<it->point().type()
 
85
    std::cout<<"point: "<<lcc.point_of_vertex_attribute(it)
 
86
             <<", "<<"type: "<<lcc.point_of_vertex_attribute(it).type()
86
87
             <<std::endl;
87
88
  }
88
89