From 5a7413faac74f0edcae5ec156ceb04c18b5d85a6 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Sun, 14 Apr 2024 00:38:08 +0100 Subject: [PATCH] assembly --- examples/surface_mesh/cadquery_assembly.py | 3 +-- examples/surface_mesh/from_gmsh_mesh_file.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/surface_mesh/cadquery_assembly.py b/examples/surface_mesh/cadquery_assembly.py index 5b5dbf9..b0204e7 100644 --- a/examples/surface_mesh/cadquery_assembly.py +++ b/examples/surface_mesh/cadquery_assembly.py @@ -1,11 +1,10 @@ import cadquery as cq -from cadquery import Assembly from cad_to_dagmc import CadToDagmc result = cq.Workplane().sphere(5) result2 = cq.Workplane().moveTo(10, 0).sphere(2) -assembly = Assembly() +assembly = cq.Assembly() assembly.add(result) assembly.add(result2) diff --git a/examples/surface_mesh/from_gmsh_mesh_file.py b/examples/surface_mesh/from_gmsh_mesh_file.py index 5ae40d1..c15dcab 100644 --- a/examples/surface_mesh/from_gmsh_mesh_file.py +++ b/examples/surface_mesh/from_gmsh_mesh_file.py @@ -8,7 +8,7 @@ result1 = cq.Workplane("XY").box(10.0, 10.0, 5.0) result2 = cq.Workplane("XY").moveTo(10, 0).box(10.0, 10.0, 5.0) -assembly = Assembly() +assembly = cq.Assembly() assembly.add(result1) assembly.add(result2) assembly.save("two_connected_cubes.stp", exportType="STEP")