mirror of https://github.com/CGAL/cgal
Fix PR #3987 with "mesh surface only"
This commit is contained in:
parent
cc8bd016fa
commit
1e4ce95f35
|
|
@ -462,7 +462,9 @@ void Mesh_3_plugin::mesh_3(const bool surface_only, const bool use_defaults)
|
||||||
if (!sm_items.empty())
|
if (!sm_items.empty())
|
||||||
{
|
{
|
||||||
QList<const SMesh*> polyhedrons;
|
QList<const SMesh*> polyhedrons;
|
||||||
sm_items.removeAll(bounding_sm_item);
|
if(!surface_only) {
|
||||||
|
sm_items.removeAll(bounding_sm_item);
|
||||||
|
}
|
||||||
std::transform(sm_items.begin(), sm_items.end(),
|
std::transform(sm_items.begin(), sm_items.end(),
|
||||||
std::back_inserter(polyhedrons),
|
std::back_inserter(polyhedrons),
|
||||||
[](Scene_surface_mesh_item* item) {
|
[](Scene_surface_mesh_item* item) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue