Skip to content

Commit f85958c

Browse files
committed
Update ComputeNormal inputs
1 parent dc4ac91 commit f85958c

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

metafold/func.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,24 @@ def __call__(self, eval_: Evaluator) -> TypedResult[Literal[FuncType.VEC3F]]:
138138
return cast(TypedResult[Literal[FuncType.VEC3F]], r)
139139

140140

141+
ComputeNormals_Enum_spacing_type: TypeAlias = Literal["Continuous", "Discrete"]
142+
143+
141144
class ComputeNormals_Parameters(TypedDict, total=False):
142-
volume_offset: Vec3f
145+
spacing_type: ComputeNormals_Enum_spacing_type
146+
step_size: float
143147
volume_size: Vec3f
144-
xform: Mat4f
145148

146149

147150
class ComputeNormals(TypedFunc[Literal[FuncType.VEC3F]]):
148151
def __init__(
149152
self,
150-
points: TypedFunc[Literal[FuncType.VEC3F]],
151-
volume: Func,
153+
samples: Func,
152154
parameters: Optional[ComputeNormals_Parameters] = None,
153155
):
154156
self.inputs: Optional[dict[str, Func]]
155157
self.inputs = {
156-
"Points": points,
157-
"Volume": volume,
158+
"Samples": samples,
158159
}
159160
self.assets: Optional[Assets]
160161
self.assets = None
@@ -761,6 +762,7 @@ def __call__(self, eval_: Evaluator) -> TypedResult[Literal[FuncType.FLOAT]]:
761762

762763

763764
class SampleTriangleMeshBvh_Parameters(TypedDict, total=False):
765+
cw_winding: int
764766
xform: Mat4f
765767

766768

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "metafold"
7-
version = "0.10.0"
7+
version = "0.10.1"
88
authors = [
99
{name = "Metafold 3D", email = "[email protected]"},
1010
]

0 commit comments

Comments
 (0)