Skip to content

Commit 854ec47

Browse files
committed
small fix
1 parent f873e7b commit 854ec47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compas_ifc/brep/ifcbrepobject.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def _read_frontfaces_data(self):
3333

3434
for shell, color in zip(self.shells, self.shellcolors):
3535
shell_positions, shell_elements = shell.to_vertices_and_faces()
36+
if len(shell_elements) == 0:
37+
continue
3638
shell_elements = np.array(shell_elements) + len(positions)
3739
positions += shell_positions
3840
elements = np.vstack((elements, shell_elements))
@@ -49,6 +51,8 @@ def _read_backfaces_data(self):
4951

5052
for shell, color in zip(self.shells, self.shellcolors):
5153
shell_positions, shell_elements = shell.to_vertices_and_faces()
54+
if len(shell_elements) == 0:
55+
continue
5256
for element in shell_elements:
5357
element.reverse()
5458
shell_elements = np.array(shell_elements) + len(positions)

0 commit comments

Comments
 (0)