You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
CadQuery plugin to create a mesh of an assembly with corresponding data.
4
4
5
-
This plugin makes use of CadQuery tags to collect surfaces into Gmsh physical groups. The
5
+
This plugin makes use of CadQuery tags to collect surfaces into [Gmsh](https://gmsh.info/) physical groups. The
6
6
tagged faces are matched to their corresponding surfaces in the mesh via their position in the CadQuery solid(s) vs the Gmsh surface ID. There are a few challenges with mapping tags to surfaces to be aware of.
7
7
8
8
1. Each tag can select multiple faces/surfaces at once, and this has to be accounted for when mapping tags to surfaces.
@@ -11,7 +11,7 @@ tagged faces are matched to their corresponding surfaces in the mesh via their p
11
11
12
12
## Installation
13
13
14
-
You can do `pip install -e .` locally in the root of this repo to enable development. Alternatively, you can install via `pip install git+git@github.com:cadquery/cadquery-assembly-mesh-plugin.git` if you have access to the repo on Github.
14
+
You can do `pip install -e .` locally in the root of this repo to enable development. Alternatively, you can install via `pip install git+git@github.com:cadquery/assembly-mesh-plugin.git` if you have access to the repo on Github.
15
15
16
16
## Usage
17
17
@@ -20,10 +20,10 @@ You can do `pip install -e .` locally in the root of this repo to enable develop
20
20
The plugin needs to be imported in order to monkey-patch its method into CadQuery:
21
21
22
22
```python
23
-
importcadquery_assembly_mesh_plugin.plugin
23
+
importassembly_mesh_plugin.plugin
24
24
```
25
25
26
-
You can then tag faces in each of the assembly parts and create your asembly. To export the assembly to a mesh file, you do the following.
26
+
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.
These tests are also run in Github Actions, and the meshes which are generated can be viewed as artifacts on the successful `tests` Actions there.
96
96
97
-
*[sample_coils.py](tests/sample_coils.py) contains generators for sample assemlies for use in testing the basic operation of this plugin. This file also contains the code to tag all faces of interest.
97
+
*[sample_coils.py](tests/sample_coils.py) contains generators for sample assemblies for use in testing the basic operation of this plugin. This file also contains the code to tag all faces of interest.
98
98
*[smoke_test.py](tests/smoke_test.py) runs two tests currently. The first is for a simple cross-section of a coil (image below), which makes it easier to verify basic operation. The second is for a planar coil, which forces the use of more advanced selectors, but is not as complex as a coil with a non-planar sweep path. This planar-coil test is not complete yet.
99
99
100
100
Once the test has been run (using the pytest command), two mesh files (.msh extension) be created in the root of the repository.
0 commit comments