mirror of https://github.com/CGAL/cgal
Mesh_3
This commit is contained in:
parent
a4c6df514a
commit
f52444425e
|
|
@ -97,9 +97,9 @@ search_for_connected_components_in_labeled_image(const CGAL::Image_3& image,
|
||||||
% (long)static_evaluate<Image_word_type>(image.image(), i, j, k)
|
% (long)static_evaluate<Image_word_type>(image.image(), i, j, k)
|
||||||
% number_of_connected_components
|
% number_of_connected_components
|
||||||
% (int)current_label;
|
% (int)current_label;
|
||||||
#endif // CGAL_MESH_3_SEARCH_FOR_CONNECTED_COMPONENTS_IN_LABELED_IMAGE_VERBOSE
|
|
||||||
|
|
||||||
int nb_voxels = 0;
|
int nb_voxels = 0;
|
||||||
|
#endif // CGAL_MESH_3_SEARCH_FOR_CONNECTED_COMPONENTS_IN_LABELED_IMAGE_VERBOSE
|
||||||
|
|
||||||
Indices_queue queue;
|
Indices_queue queue;
|
||||||
Indices indices(i, j ,k, 0);
|
Indices indices(i, j ,k, 0);
|
||||||
|
|
@ -137,7 +137,9 @@ search_for_connected_components_in_labeled_image(const CGAL::Image_3& image,
|
||||||
{
|
{
|
||||||
visited[offset] = true;
|
visited[offset] = true;
|
||||||
second_pass[offset] = false;
|
second_pass[offset] = false;
|
||||||
|
#if CGAL_MESH_3_SEARCH_FOR_CONNECTED_COMPONENTS_IN_LABELED_IMAGE_VERBOSE > 1
|
||||||
++nb_voxels;
|
++nb_voxels;
|
||||||
|
#endif
|
||||||
boost::get<0>(bbox_min) = (std::min)(i, boost::get<0>(bbox_min));
|
boost::get<0>(bbox_min) = (std::min)(i, boost::get<0>(bbox_min));
|
||||||
boost::get<0>(bbox_max) = (std::max)(i, boost::get<0>(bbox_max));
|
boost::get<0>(bbox_max) = (std::max)(i, boost::get<0>(bbox_max));
|
||||||
boost::get<1>(bbox_min) = (std::min)(j, boost::get<1>(bbox_min));
|
boost::get<1>(bbox_min) = (std::min)(j, boost::get<1>(bbox_min));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue