mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2026-02-12 16:17:15 +01:00
Basic python server working including hot-reload
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user