Bugfix: internal bridge surfaces were incorrectly merged with other internal solid surfaces, causing suboptimal results

This commit is contained in:
Alessandro Ranellucci 2013-02-27 01:30:32 +01:00
parent 8ce7b13db5
commit bf9fe1b505

View file

@ -93,10 +93,10 @@ sub p {
sub is_solid { sub is_solid {
my $self = shift; my $self = shift;
my $type = $self->surface_type; my $type = $self->surface_type;
# S_TYPE_INTERNALBRIDGE is not solid because we can't merge it with other solid types
return $type == S_TYPE_TOP return $type == S_TYPE_TOP
|| $type == S_TYPE_BOTTOM || $type == S_TYPE_BOTTOM
|| $type == S_TYPE_INTERNALSOLID || $type == S_TYPE_INTERNALSOLID;
|| $type == S_TYPE_INTERNALBRIDGE;
} }
sub is_internal { sub is_internal {