diff --git a/brep2sdf/networks/patch_graph.py b/brep2sdf/networks/patch_graph.py index 5518389..249d586 100644 --- a/brep2sdf/networks/patch_graph.py +++ b/brep2sdf/networks/patch_graph.py @@ -100,7 +100,7 @@ class PatchGraph(nn.Module): if num_faces == 1: # 这里设置凸边是因为 后续会补一个 f2 = inf, h = min(f1, f2) # 因为 f2 = inf, 所以 h = f1 - return 1 # 只有一个面 + return 0 # 只有一个面 if num_faces > 2: #logger.warning("get_operator 输入数量为{} > 2,将只取前两个面片进行处理".format(num_faces)) node_faces = node_faces[:2]