Skip to content

Commit 1f82726

Browse files
authored
Merge pull request #15 from shimwell/concise-import
concise package import
2 parents 76b1f22 + 1664ef0 commit 1f82726

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install assembly-mesh-plugin
2424
The plugin needs to be imported in order to monkey-patch its method into CadQuery:
2525

2626
```python
27-
import assembly_mesh_plugin.plugin
27+
import assembly_mesh_plugin
2828
```
2929

3030
You can then tag faces in each of the assembly parts and create your assembly. To export the assembly to a mesh file, you do the following.
@@ -42,7 +42,7 @@ Below is a simple example.
4242

4343
```python
4444
import cadquery as cq
45-
import assembly_mesh_plugin.plugin
45+
import assembly_mesh_plugin
4646

4747
shell = cq.Workplane("XY").box(50, 50, 50)
4848
shell = shell.faces(">Z").workplane().rect(21, 21).cutThruAll()
@@ -67,7 +67,7 @@ If you want more control over the mesh generation and export, you can use the `g
6767

6868
```python
6969
import cadquery as cq
70-
import assembly_mesh_plugin.plugin
70+
import assembly_mesh_plugin
7171
import gmsh
7272

7373
shell = cq.Workplane("XY").box(50, 50, 50)

assembly_mesh_plugin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .plugin import *

tests/smoke_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import assembly_mesh_plugin.plugin
1+
import assembly_mesh_plugin
22
from tests.sample_assemblies import (
33
generate_nested_boxes,
44
generate_simple_nested_boxes,

tests/test_meshes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gmsh
2-
import assembly_mesh_plugin.plugin
2+
import assembly_mesh_plugin
33
from tests.sample_assemblies import (
44
generate_nested_boxes,
55
generate_simple_nested_boxes,

0 commit comments

Comments
 (0)