diff --git a/README.md b/README.md index 847a9d4..d76a397 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Arguments to pass to `adapt_object_mesh`, which does mesh smoothing. Use a larger value if the results are bumpy/voxelated in appearance. ```shell -extract_cp --adapt_object_mesh 1,100,1 /incoming /outgoing +extract_cp --adapt_object_mesh 0,100,0,0 /incoming /outgoing ``` #### `--inflate_to_sphere_implicit` diff --git a/extract_cp/__main__.py b/extract_cp/__main__.py index 03e97c6..17bae66 100644 --- a/extract_cp/__main__.py +++ b/extract_cp/__main__.py @@ -23,7 +23,7 @@ help='Number of mincmorph iterations. Mincmorph is a mask preprocessing step ' 'which repairs disconnected voxels. A larger value may improve results ' 'for messy masks, but at the cost of accuracy.') -parser.add_argument('--adapt_object_mesh', dest='adapt_object_mesh', type=str, default='1,50,1', +parser.add_argument('--adapt_object_mesh', dest='adapt_object_mesh', type=str, default='0,50,0,0', help='Parameters for adapt_object_mesh, which does mesh smoothing.') parser.add_argument('--inflate_to_sphere_implicit', dest='inflate_to_sphere_implicit', type=str, default='200,200', help='Parameters for inflate_to_sphere_implicit. Larger values are necessary ' diff --git a/extract_cp/params.py b/extract_cp/params.py index b4acbdb..44dbbf1 100644 --- a/extract_cp/params.py +++ b/extract_cp/params.py @@ -13,14 +13,14 @@ class Parameters: """ side: SideStr mincmorph_iterations: int - adapt_object_mesh: tuple[int, int, int] + adapt_object_mesh: tuple[int, int, int, int] inflate_to_sphere_implicit: tuple[int, int] keep_mask: bool subsample: bool def __post_init__(self): - if not len(self.adapt_object_mesh) == 3: - raise ValueError('adapt_object_mesh takes 3 parameters') + if not len(self.adapt_object_mesh) == 4: + raise ValueError('adapt_object_mesh takes 4 parameters') if not len(self.inflate_to_sphere_implicit) == 2: raise ValueError('inflate_to_sphere_implicit takes 2 parameters') diff --git a/requirements.txt b/requirements.txt index ce90084..feb5a9d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -chris_plugin==0.0.17 -pycivet==0.0.10 +chris_plugin==0.1.2 +pycivet==0.1.2 loguru==0.6.0