Skip to content

Commit

Permalink
reverted bm compound
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfunk committed Dec 17, 2024
1 parent 5934621 commit a82b239
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 241 deletions.
6 changes: 2 additions & 4 deletions bluemira/base/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
)
from bluemira.display.displayer import ComponentDisplayer
from bluemira.display.plotter import ComponentPlotter
from bluemira.geometry.compound import BluemiraCompound
from bluemira.geometry.tools import (
make_compound,
revolve_shape,
save_cad,
serialise_shape,
Expand All @@ -42,7 +42,6 @@

import bluemira.codes._freecadapi as cadapi
from bluemira.base.reactor import ComponentManager
from bluemira.geometry.compound import BluemiraCompound


_T = TypeVar("_T")
Expand Down Expand Up @@ -121,7 +120,6 @@ def wrapper(*args, **kwargs):
def create_compound_from_component(comp: Component) -> BluemiraCompound:
"""
Creates a BluemiraCompound from the children's shapes of a component.
This BluemiraCompound has it's constituents set to the shapes of comp.
Parameters
----------
Expand All @@ -135,7 +133,7 @@ def create_compound_from_component(comp: Component) -> BluemiraCompound:
"""
shapes = get_properties_from_components(comp, ("shape"))
return make_compound(shapes, comp.name, set_constituents=True)
return BluemiraCompound(label=comp.name, boundary=shapes)


def circular_pattern_xyz_components(
Expand Down
Loading

0 comments on commit a82b239

Please sign in to comment.