int cur_insert_id = -1;
PolyhedralMesh* cur_volume_obj = 0;
emit addEmptyObject(DATA_POLYHEDRAL_MESH,cur_insert_id);
BaseObjectData *obj;
PluginFunctions::getObject(cur_insert_id, obj);
obj->target(false);
PolyhedralMesh* cur_polyhedral_mesh = PluginFunctions::polyhedralMesh(obj);
OpenVolumeMesh::EdgePropertyT<double> angle = cur_polyhedral_mesh->request_edge_property<double>("Edge Angles");
for(OpenVolumeMesh::EdgeIter e_it = cur_polyhedral_mesh->edges_begin();
e_it != cur_polyhedral_mesh->edges_end(); ++e_it)
{
double ang = 0;
…
angle[*e_it] = std::abs(ang);
}
emit updatedObject(obj->id(),UPDATE_ALL);