Basic python server working including hot-reload

This commit is contained in:
Yeicor
2024-02-05 21:05:50 +01:00
parent 69106abbbd
commit 07334a75f5
5 changed files with 130 additions and 12 deletions

View File

@@ -1,18 +1,19 @@
from OCP.TopoDS import TopoDS_Shape
from build123d import *
from tqdm import tqdm
from tessellate import tessellate, tessellate_count
def logo() -> Compound:
def build_logo() -> TopoDS_Shape:
"""Builds the CAD part of the logo"""
with BuildPart() as logo_obj:
Box(1, 2, 3)
return logo_obj.part
return logo_obj.part.wrapped
if __name__ == "__main__":
obj = logo()
obj = build_logo()
for update in tqdm(tessellate(obj.wrapped), total=tessellate_count(obj.wrapped)):
# print(update.gltf)