-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP-ADD: auto-tables for toolhead and mounts + mount images
- Loading branch information
Showing
25 changed files
with
242 additions
and
23 deletions.
There are no files selected for viewing
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
assets/illustration/meshbit_illustration/meshbit_illustration.3dm.rhl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
andre | ||
LAPTOP-RR341PAC | ||
Saturday, December 21, 2024 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
--- | ||
tags: | ||
- AREngine | ||
- render | ||
--- | ||
|
||
|
||
# AR rendering | ||
|
||
## Main Rendering Pipeline | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
tags: | ||
- AREngine | ||
- layer-stack | ||
- backend | ||
--- | ||
|
||
# Layer stack | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
tags: | ||
- toolheads | ||
--- | ||
|
||
# Toolheads | ||
|
||
Here we give more information about how toolheads are itnegrated in the AC system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import requests | ||
import re | ||
|
||
def list_zenodo_entries(zenodo_record_id): | ||
url = f'https://zenodo.org/api/records/{zenodo_record_id}' | ||
response = requests.get(url) | ||
if response.status_code == 200: | ||
data = response.json() | ||
|
||
mount_kits = {} | ||
|
||
for file in data.get('files', []): | ||
filename = file['key'] | ||
filename = filename.split('.')[0] | ||
download_link = file['links']['self'] | ||
file_size = file['size'] / (1024 * 1024) | ||
|
||
filename_lower = filename.lower() | ||
name_pool = re.split('[_]', filename_lower) | ||
|
||
mount_type = name_pool[0] | ||
mount_brand = name_pool[1] | ||
mount_model = name_pool[2] | ||
try: | ||
mount_part = name_pool[3] | ||
except: | ||
mount_part = "a" | ||
|
||
for key in name_pool: | ||
if 'drill' in name_pool: | ||
mount_type = ":material-screw-machine-flat-top:`drill`" | ||
elif 'chainsaw' in name_pool: | ||
mount_type = ":material-hand-saw:`chain saw`" | ||
elif 'circularsaw' in name_pool: | ||
mount_type = ":material-saw-blade:`circular saw`" | ||
elif 'sabersaw' in name_pool: | ||
mount_type = ":material-hand-saw:`saber saw`" | ||
elif 'mitersaw' in name_pool: | ||
mount_type = ":material-circular-saw:`miter saw`" | ||
|
||
# Group parts by model name | ||
if mount_model not in mount_kits: | ||
mount_kits[mount_model] = [] | ||
mount_kits[mount_model].append({ | ||
'filename': filename, | ||
'type': mount_type, | ||
'brand': mount_brand, | ||
'part': mount_part, | ||
'size': file_size, | ||
'download_link': download_link | ||
}) | ||
else: | ||
print('!!! bug \n\tError fetching data from Zenodo') | ||
|
||
for mount_model, parts in mount_kits.items(): | ||
mount_kits[mount_model] = sorted(parts, key=lambda x: x['part']) | ||
|
||
brands = [] | ||
for mount_model, parts in mount_kits.items(): | ||
for part in parts: | ||
if part['brand'] not in brands: | ||
brands.append(part['brand']) | ||
brands.sort() | ||
|
||
print('| Model name | Mount parts | Brand | type | size (MB) | Download |') | ||
print('|------------|-------------|-------|------|-----------|----------|') | ||
for brand in brands: | ||
for mount_model, parts in mount_kits.items(): | ||
for part in parts: | ||
if part['brand'] == brand: | ||
filename = part['filename'] | ||
mount_type = part['type'] | ||
mount_brand = part['brand'] | ||
mount_part = part['part'] | ||
file_size = part['size'] | ||
download_link = part['download_link'] | ||
print(f'| {mount_model} | {mount_part} | {mount_brand} | {mount_type} | {file_size:.2f} | [:octicons-download-24:]({download_link}) |') | ||
|
||
if __name__ == '__main__': | ||
zenodo_record_id = '14531724' | ||
list_zenodo_entries(zenodo_record_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.