Skip to content

Commit

Permalink
assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Apr 13, 2024
1 parent 6ce2cb6 commit 5a7413f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/surface_mesh/cadquery_assembly.py
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion examples/surface_mesh/from_gmsh_mesh_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5a7413f

Please sign in to comment.