Skip to content

Commit

Permalink
trying a poetry install from git method
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdbroughton committed Nov 13, 2023
1 parent 85a73cb commit f765ebd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1,275 deletions.
5 changes: 1 addition & 4 deletions Geometry/clash.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from concurrent.futures import ProcessPoolExecutor, as_completed
from typing import List, Tuple, Any, Optional

try:
import pymesh
except ImportError:
pymesh = None # Or handle it in another appropriate way
import pymesh

from speckle_automate import AutomationContext

Expand Down
18 changes: 13 additions & 5 deletions Geometry/mesh.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
from typing import Union, Type
from typing import Union, Type, TYPE_CHECKING


import pymesh

try:
import pymesh
except ImportError:
pymesh = None

import trimesh


class MockPyMesh:
def __init__(self, vertices, faces):
self.vertices = vertices or []
self.faces = faces or []

def boolean(self, other, operation):
return MockPyMesh([], [])


def trimesh_to_pymesh(mesh: trimesh.Trimesh) -> pymesh.Mesh:
"""
Convert a Trimesh object to a Pymesh object.
Expand Down
Loading

0 comments on commit f765ebd

Please sign in to comment.