Skip to content

Commit

Permalink
Merge pull request #97 from untereiner/develop
Browse files Browse the repository at this point in the history
fix function name
  • Loading branch information
Lionel Untereiner authored Dec 6, 2019
2 parents df8bca0 + 7552bb8 commit 5c77908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions schnapps/plugins/volume_render/map_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ struct PLUGIN_VOLUME_RENDER_EXPORT MapParameters
}
#endif

void set_cmap(CMap3Handler* map)
void init_topo_clipping()
{
mh_ = map;

clipping_x_ = 0;
clipping_y_ = 0;
clipping_z_ = 0;
Expand Down
3 changes: 2 additions & 1 deletion schnapps/plugins/volume_render/volume_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ MapParameters& Plugin_VolumeRender::parameters(View* view, CMap3Handler* mh)
if (view_param_set.count(mh) == 0)
{
MapParameters& p = view_param_set[mh];
p.set_cmap(mh);
p.mh_ = mh;
p.set_vertex_base_size(mh->bb_diagonal_size() / (2.0f * std::sqrt(mh->map()->nb_cells<CMap3::Edge>())));
return p;
}
Expand Down Expand Up @@ -519,6 +519,7 @@ void Plugin_VolumeRender::set_position_vbo(View* view, CMap3Handler* mh, cgogn::
{
MapParameters& p = parameters(view, mh);
p.set_position_vbo(vbo);
p.init_topo_clipping();
if (update_dock_tab && view->is_selected_view() && dock_tab_->selected_map() == mh)
dock_tab_->set_position_vbo(vbo);
view->update();
Expand Down

0 comments on commit 5c77908

Please sign in to comment.