Add stuff
This commit is contained in:
parent
3f05655d4c
commit
78c25b740d
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "SolidPython"]
|
||||||
|
path = SolidPython
|
||||||
|
url = https://github.com/SolidCode/SolidPython.git
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a6822d518859efe9c3a08074dfa258e8cff1962d
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": null,
|
||||||
"id": "a75c573b",
|
"id": "a75c573b",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"tags": []
|
"tags": []
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 33,
|
"execution_count": null,
|
||||||
"id": "2ae63616-4044-4c6a-bf11-9ebf83f8f22a",
|
"id": "2ae63616-4044-4c6a-bf11-9ebf83f8f22a",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"tags": []
|
"tags": []
|
||||||
|
@ -288,21 +288,22 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 9,
|
"execution_count": 3,
|
||||||
"id": "1810ff24-c0f8-4c80-adc2-6985cd52d7dc",
|
"id": "1810ff24-c0f8-4c80-adc2-6985cd52d7dc",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"ename": "NameError",
|
||||||
"text/plain": [
|
"evalue": "name 'scad_render_to_file' is not defined",
|
||||||
"'/home/jimmy/projects/Solid-Python-Demo/part.scad'"
|
"output_type": "error",
|
||||||
|
"traceback": [
|
||||||
|
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
||||||
|
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
|
||||||
|
"Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mscad_render_to_file\u001b[49m(part, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mpart.scad\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n",
|
||||||
|
"\u001b[0;31mNameError\u001b[0m: name 'scad_render_to_file' is not defined"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"execution_count": 9,
|
|
||||||
"metadata": {},
|
|
||||||
"output_type": "execute_result"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
|
@ -311,13 +312,49 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "51cdff0e",
|
"id": "98302da6-a3ac-4386-9398-2afa67b2856c",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"https://github.com/nickc92/ViewSCAD\n",
|
"## Convert to stl"
|
||||||
"https://solidpython.readthedocs.io/en/latest/\n",
|
|
||||||
"https://openscad.org/"
|
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 26,
|
||||||
|
"id": "44f345ad-417a-4783-b721-847351a13f4b",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"Geometries in cache: 4\n",
|
||||||
|
"Geometry cache size in bytes: 3344\n",
|
||||||
|
"CGAL Polyhedrons in cache: 1\n",
|
||||||
|
"CGAL cache size in bytes: 24912\n",
|
||||||
|
"Total rendering time: 0:00:00.018\n",
|
||||||
|
" Top level object is a 3D object:\n",
|
||||||
|
" Simple: yes\n",
|
||||||
|
" Vertices: 18\n",
|
||||||
|
" Halfedges: 54\n",
|
||||||
|
" Edges: 27\n",
|
||||||
|
" Halffacets: 22\n",
|
||||||
|
" Facets: 11\n",
|
||||||
|
" Volumes: 2\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"! openscad -o part.stl part.scad"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "ddbc58d3-c9e4-4187-908b-57f65658198a",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|
Loading…
Reference in New Issue