Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Scene_c2t3_item

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Scene_c2t3_item


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Scene_c2t3_item
  • Date: Thu, 20 Nov 2014 10:36:01 +0100
  • Organization: GeometryFactory

Le Wednesday 19 November 2014 11:04:46 Omer Ozturk a écrit :
> void addSphere(){
>
> Tr tr;
> C2t3 c2t3 (tr);
>
> Surface_3 surface(sphere_function, Sphere_3(CGAL::ORIGIN, 2.));
>
> CGAL::Surface_mesh_default_criteria_3
> criteria(30.,1.,1.);
>
> CGAL::make_surface_mesh(c2t3, surface, criteria,
> CGAL::Non_manifold_tag());
>
> Scene_item* item = new Scene_c2t3_item(c2t3);
> item->setVisible(true);
>
> scene->addItem(item);
> }
>
> It works with no error but the item is not showing when I add it to scene.
> Can you help me?

Does it appear in the list of items, but not in the 3D view, or is it even
absent from the list of items? In the later case, I would say that probably
the function addSphere() in not called.

I do not see any error in the function addSphere() itself.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page