def test_get_intersect_volume_exact_overlap(self):
     f3d = self.testdata_dir / "common/BooleanExactOverlap.f3d"
     self.load_f3d(f3d)
     tool_comp = self.get_component("Tool")
     volume = geometry.get_intersect_volume(
         self.design.rootComponent.bRepBodies, tool_comp.bRepBodies)
     self.assertAlmostEqual(volume, 1, places=self.places)
 def test_get_intersect_volume_multi_tool(self):
     f3d = self.testdata_dir / "common/BooleanIntersectMultiTool.f3d"
     self.load_f3d(f3d)
     tool_comp = self.get_component("Tool")
     volume = geometry.get_intersect_volume(
         self.design.rootComponent.bRepBodies, tool_comp.bRepBodies)
     self.assertAlmostEqual(volume, 2, places=self.places)