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
Geode-SimplexRemesh is an [OpenGeode](https://github.com/Geode-solutions/OpenGeode) module providing simplicial surfacic remeshing and volume algorithms of boundary representation.
35
+
This is a proprietary module from [Geode-solutions](https://geode-solutions.com), you will need a license file to use it.
36
+
Please contact us directly for more information by [slack](https://slackin-opengeode.herokuapp.com) or by [mail](mailto:contact@geode-solutions.com).
37
+
38
+
## Documentation
39
+
40
+
This repository provides Jupyter notebooks used as example usage of the module.
41
+
For more general documentation on OpenGeode, check out our live documentation, visit [docs.geode-solutions.com](https://docs.geode-solutions.com).
42
+
43
+
Installing Geode-Conversion is done by using pip command ```pip install Geode-SimplexRemesh``` and add ```import geode_simplexremesh``` in your Python script.
44
+
45
+
## Questions
46
+
47
+
For questions and support please use the official [slack](https://slackin-opengeode.herokuapp.com) and go to the channel #help. The issue list of this repo is exclusively for bug reports and feature requests.
"# Simplicial surface remeshing of boundary representation\n",
27
+
"\n",
28
+
"The goal is to remesh a surfacic boundary representation as defined here: https://docs.geode-solutions.com/datamodel.\n",
29
+
"The `Lines` and `Surfaces` will be remeshed according the input mesh sizes while keeping the topology (meaning the relationships between the model components) and the conformity (meaning the mesh element boundaries are geometrically identical) of the model.\n"
30
+
],
31
+
"cell_type": "markdown",
32
+
"metadata": {}
33
+
},
34
+
{
35
+
"source": [
36
+
"## Import modules\n",
37
+
"\n",
38
+
"You need to import OpenGeode and Geode-SimplexRemesh modules."
39
+
],
40
+
"cell_type": "markdown",
41
+
"metadata": {}
42
+
},
43
+
{
44
+
"cell_type": "code",
45
+
"execution_count": null,
46
+
"metadata": {},
47
+
"outputs": [],
48
+
"source": [
49
+
"# Fix to better handle import since Python 3.8 on Windows\n",
50
+
"import os, sys, platform\n",
51
+
"if sys.version_info >= (3,8,0) and platform.system() == \"Windows\":\n",
52
+
" for path in [x.strip() for x in os.environ['PATH'].split(';') if x]:\n",
53
+
" os.add_dll_directory(path)\n",
54
+
"\n",
55
+
"import opengeode\n",
56
+
"from geode_simplexremesh import surface # only the \"surface\" part of the package is needed"
57
+
]
58
+
},
59
+
{
60
+
"source": [
61
+
"## Remeshing at constant mesh size\n",
62
+
"\n",
63
+
"In this section, we will see how to remesh a model using a constant mesh size."
"# Simplicial volume meshing of boundary representation\n",
27
+
"\n",
28
+
"The goal is to mesh a boundary representation as defined here: https://docs.geode-solutions.com/datamodel.\n",
29
+
"The `Blocks` will be meshed according the input mesh sizes while keeping the topology (meaning the relationships between the model components) and the conformity (meaning the mesh element boundaries are geometrically identical) of the model. So the mesh of the `Surfaces` will be embedded into the tetrahedral solid mesh boundaries. \n"
30
+
],
31
+
"cell_type": "markdown",
32
+
"metadata": {}
33
+
},
34
+
{
35
+
"source": [
36
+
"## Import modules\n",
37
+
"\n",
38
+
"You need to import OpenGeode and Geode-SimplexRemesh modules."
39
+
],
40
+
"cell_type": "markdown",
41
+
"metadata": {}
42
+
},
43
+
{
44
+
"cell_type": "code",
45
+
"execution_count": null,
46
+
"metadata": {},
47
+
"outputs": [],
48
+
"source": [
49
+
"# Fix to better handle import since Python 3.8 on Windows\n",
50
+
"import os, sys, platform\n",
51
+
"if sys.version_info >= (3,8,0) and platform.system() == \"Windows\":\n",
52
+
" for path in [x.strip() for x in os.environ['PATH'].split(';') if x]:\n",
53
+
" os.add_dll_directory(path)\n",
54
+
"\n",
55
+
"import opengeode\n",
56
+
"from geode_simplexremesh import solid # only the \"solid\" part of the package is needed"
57
+
]
58
+
},
59
+
{
60
+
"source": [
61
+
"## Meshing without mesh size input\n",
62
+
"\n",
63
+
"In this section, we will see how to tetrahedralize a model. The surface meshes will not be affected by this operation."
64
+
],
65
+
"cell_type": "markdown",
66
+
"metadata": {}
67
+
},
68
+
{
69
+
"cell_type": "code",
70
+
"execution_count": null,
71
+
"metadata": {},
72
+
"outputs": [],
73
+
"source": [
74
+
"# Load a model and remesh it\n",
75
+
"brep = opengeode.load_brep(\"brep.og_brep\")\n",
76
+
"solid.tetrahedralize(brep) # the given brep will be filled with tetradra\n",
0 commit comments