Skip to content

Commit

Permalink
[geom] SDF fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Holl committed Aug 20, 2024
1 parent 5a37b24 commit f82c5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phi/geom/_sdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, sdf: Callable, out_shape=None, bounds: BaseBox = None, center
"""
self._sdf = sdf
if out_shape is not None:
self._out_shape = out_shape
self._out_shape = out_shape or math.EMPTY_SHAPE
else:
dims = channel([bounds, center, bounding_radius])
assert 'vector' in dims, f"If out_shape is not specified, either bounds, center or bounding_radius must be given."
Expand Down Expand Up @@ -114,7 +114,7 @@ def boundary_faces(self) -> Dict[Any, Dict[str, slice]]:

@property
def face_shape(self) -> Shape:
raise NotImplementedError(f"SDF does not support boundaries")
return math.EMPTY_SHAPE

@property
def corners(self) -> Tensor:
Expand Down

0 comments on commit f82c5e0

Please sign in to comment.