mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
# IfcSverchok - IFC Sverchok extension
|
|
# Copyright (C) 2020, 2021, 2022 Dion Moult <dion@thinkmoult.com>
|
|
#
|
|
# This file is part of IfcSverchok.
|
|
#
|
|
# IfcSverchok is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# IfcSverchok is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with IfcSverchok. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
import bpy
|
|
from sverchok.data_structure import zip_long_repeat
|
|
|
|
ifc_files = {}
|
|
|
|
|
|
class SvIfcCore:
|
|
def process(self):
|
|
sv_inputs_nested = []
|
|
for name in self.sv_input_names:
|
|
sv_inputs_nested.append(self.inputs[name].sv_get())
|
|
for sv_input_nested in zip_long_repeat(*sv_inputs_nested):
|
|
for sv_input in zip_long_repeat(*sv_input_nested):
|
|
sv_input = list(sv_input)
|
|
self.process_ifc(*sv_input)
|