mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
b19b2ac7cd
Top-level array-domain service extracted out of tool.Blender.Modifier.Array. Owns the BBIM_Array pset graph navigation (constrain_children_to_parent, remove_constraints, get_modifiers_data, get_children_objects, get_all_children_objects, get_child_layer_index, bake_children_transform), plus the Blender-side CHILD_OF constraint lifecycle that ties each child replica to its parent's transform. Array's own module gives the parent/child semantics a clean home — array behaviour was previously scattered between tool.Blender.Modifier and ad-hoc helpers in bim/module/model/array.py. The relocation eliminates the inline duplication and gives Bonsai callers a single import surface. Generated with the assistance of an AI coding tool.
79 lines
2.9 KiB
Python
79 lines
2.9 KiB
Python
# Bonsai - OpenBIM Blender Add-on
|
|
# Copyright (C) 2021 Dion Moult <dion@thinkmoult.com>
|
|
#
|
|
# This file is part of Bonsai.
|
|
#
|
|
# Bonsai 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.
|
|
#
|
|
# Bonsai 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
# Ignore unused imports.
|
|
# ruff: noqa: F401
|
|
|
|
from bonsai.tool.aggregate import Aggregate
|
|
from bonsai.tool.array import Array
|
|
from bonsai.tool.attribute import Attribute
|
|
from bonsai.tool.bcf import Bcf
|
|
from bonsai.tool.blender import Blender
|
|
from bonsai.tool.boundary import Boundary
|
|
from bonsai.tool.brick import Brick
|
|
from bonsai.tool.bsdd import Bsdd
|
|
from bonsai.tool.cad import Cad
|
|
from bonsai.tool.clash import Clash
|
|
from bonsai.tool.classification import Classification
|
|
from bonsai.tool.collector import Collector
|
|
from bonsai.tool.context import Context
|
|
from bonsai.tool.cost import Cost
|
|
from bonsai.tool.covering import Covering
|
|
from bonsai.tool.debug import Debug
|
|
from bonsai.tool.demo import Demo
|
|
from bonsai.tool.document import Document
|
|
from bonsai.tool.drawing import Drawing
|
|
from bonsai.tool.feature import Feature
|
|
from bonsai.tool.geometry import Geometry
|
|
from bonsai.tool.georeference import Georeference
|
|
from bonsai.tool.group import Group
|
|
from bonsai.tool.ifc import Ifc
|
|
from bonsai.tool.ifcgit import IfcGit, IfcGitRepo
|
|
from bonsai.tool.layer import Layer
|
|
from bonsai.tool.library import Library
|
|
from bonsai.tool.loader import Loader
|
|
from bonsai.tool.material import Material
|
|
from bonsai.tool.misc import Misc
|
|
from bonsai.tool.model import Model
|
|
from bonsai.tool.nest import Nest
|
|
from bonsai.tool.owner import Owner
|
|
from bonsai.tool.parametric import Parametric
|
|
from bonsai.tool.patch import Patch
|
|
from bonsai.tool.polyline import Polyline
|
|
from bonsai.tool.profile import Profile
|
|
from bonsai.tool.project import Project
|
|
from bonsai.tool.pset import Pset
|
|
from bonsai.tool.pset_template import PsetTemplate
|
|
from bonsai.tool.qto import Qto
|
|
from bonsai.tool.raycast import Raycast
|
|
from bonsai.tool.resource import Resource
|
|
from bonsai.tool.root import Root
|
|
from bonsai.tool.search import Search
|
|
from bonsai.tool.sequence import Sequence
|
|
from bonsai.tool.snap import Snap
|
|
from bonsai.tool.spatial import Spatial
|
|
from bonsai.tool.structural import Structural
|
|
from bonsai.tool.style import Style
|
|
from bonsai.tool.surveyor import Surveyor
|
|
from bonsai.tool.system import System
|
|
from bonsai.tool.tester import Tester
|
|
from bonsai.tool.type import Type
|
|
from bonsai.tool.unit import Unit
|
|
from bonsai.tool.wall import Wall
|
|
from bonsai.tool.web import Web
|