mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
Allow import of invalid grids coming from Revit. See #911.
This commit is contained in:
@@ -600,6 +600,8 @@ class IfcImporter():
|
|||||||
self.create_grid_axes(grid.VAxes, collection, element_matrix)
|
self.create_grid_axes(grid.VAxes, collection, element_matrix)
|
||||||
|
|
||||||
def create_grid_axes(self, axes, grid, matrix_world):
|
def create_grid_axes(self, axes, grid, matrix_world):
|
||||||
|
if not axes:
|
||||||
|
return
|
||||||
for axis in axes:
|
for axis in axes:
|
||||||
shape = ifcopenshell.geom.create_shape(self.settings_2d, axis.AxisCurve)
|
shape = ifcopenshell.geom.create_shape(self.settings_2d, axis.AxisCurve)
|
||||||
mesh = self.create_mesh(axis, shape)
|
mesh = self.create_mesh(axis, shape)
|
||||||
|
|||||||
Reference in New Issue
Block a user