Beispiel #1
0
Scene_c3t3_item::Scene_c3t3_item()
  : Scene_item(NumberOfBuffers, NumberOfVaos)
  , d(new Scene_c3t3_item_priv())
  , frame(new ManipulatedFrame())
  , last_known_scene(NULL)
  , data_item_(NULL)
  , histogram_()
  , indices_()
{
  positions_lines.resize(0);
  positions_poly.resize(0);
  normals.resize(0);
  s_vertex.resize(0);
  s_normals.resize(0);
  ws_vertex.resize(0);
  need_changed = false;
  startTimer(0);
  connect(frame, SIGNAL(modified()), this, SLOT(changed()));
  c3t3_changed();
  setRenderingMode(FlatPlusEdges);
  compile_shaders();
  spheres_are_shown = false;
  create_flat_and_wire_sphere(1.0f,s_vertex,s_normals, ws_vertex);

}
void
Scene_polylines_item::create_Sphere(double R) const
{
  create_flat_and_wire_sphere(R, positions_spheres, normals_spheres, positions_wire_spheres);
}