Skip to content

Commit

Permalink
Merge pull request #271 from fusion-energy/fixing_DishedVacuumVessel_…
Browse files Browse the repository at this point in the history
…when_rotated

compound instead of union
  • Loading branch information
shimwell authored Oct 12, 2022
2 parents 6d4d78a + d260ce6 commit 1968359
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/paramak/parametric_components/dished_vacuum_vessel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from cadquery import Compound
from paramak import RotateMixedShape, CenterColumnShieldCylinder, ConstantThicknessDome


Expand Down Expand Up @@ -117,5 +118,5 @@ def create_solid(self):
rotation_angle=self.rotation_angle,
)

upper_dome_section.solid = upper_dome_section.solid.union(cylinder_section.solid)
self.solid = lower_dome_section.solid.union(upper_dome_section.solid)
shapes = [lower_dome_section.solid.val(), upper_dome_section.solid.val(), cylinder_section.solid.val()]
self.solid = Compound.makeCompound(shapes)

0 comments on commit 1968359

Please sign in to comment.