Skip to content

Commit ca07555

Browse files
ADD: icon and metadata of joint segmentation component
1 parent 8aeba32 commit ca07555

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

src/gh/components/DF_joint_segmentator/code.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
import diffCheck.df_util
66

77
def main():
8-
passS
8+
# assume two inputs: i_cloud and i_joints. i_cloud is the point cloud of the whole object, i_joints is a list of list the meshes of the joints. [[face_1_joint_A, face_2_joint_A, ...], [face_1_joint_B, face_2_joint_B, ...], ...]
9+
# segment the joints from the i_cloud and store them in a list that follows the same structure as i_joints: [joint_A, joint_B, ...]
10+
# for each joint point cloud, perform a registration by populating the corresponding mesh faces of each joint
11+
# apply the registration to the segmented joint point cloud and re-segment the joints
12+
# the result is a list of list of the segmented joints, where each segment is locally registered to the corresponding mesh faces: [[face_1_joint_A_arfter_reg_a, face_2_joint_A_after_reg_a, ...], [face_1_joint_B_after_reg_b, face_2_joint_B_after_reg_b, ...], ...]
13+
# that way we can analyse the joints individually (face 1 of joint A is too much to the left, ...)
14+
pass
915

1016
if __name__ == "__main__":
1117
a = main()
731 Bytes
Loading
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "Extract Joints",
3+
"nickname": "Extract Joints",
4+
"category": "diffCheck",
5+
"subcategory": "Segmentation",
6+
"description": "Extracts the joints from a point cloud.",
7+
"exposure": 4,
8+
"instanceGuid": "fd804928-bf11-43eb-a29f-8afabefa660d",
9+
"ghpython": {
10+
"hideOutput": true,
11+
"hideInput": true,
12+
"isAdvancedMode": true,
13+
"marshalOutGuids": true,
14+
"iconDisplay": 2,
15+
"inputParameters": [
16+
{
17+
"name": "i_recompute",
18+
"nickname": "i_recompute",
19+
"description": "Connect a button to recompute the registration.",
20+
"optional": true,
21+
"allowTreeAccess": true,
22+
"showTypeHints": true,
23+
"scriptParamAccess": "item",
24+
"wireDisplay": "default",
25+
"sourceCount": 0,
26+
"typeHintID": "bool"
27+
},
28+
{
29+
"name": "i_cloud_source",
30+
"nickname": "i_cloud_source",
31+
"description": "The source point cloud.",
32+
"optional": true,
33+
"allowTreeAccess": true,
34+
"showTypeHints": true,
35+
"scriptParamAccess": "item",
36+
"wireDisplay": "default",
37+
"sourceCount": 0,
38+
"typeHintID": "pointcloud"
39+
},
40+
{
41+
"name": "i_joints",
42+
"nickname": "i_joints",
43+
"description": "The joints to extract and analyze",
44+
"optional": true,
45+
"allowTreeAccess": true,
46+
"showTypeHints": true,
47+
"scriptParamAccess": "item",
48+
"wireDisplay": "default",
49+
"sourceCount": 0,
50+
"typeHintID": "mesh"
51+
}
52+
],
53+
"outputParameters": [
54+
{
55+
"name": "o_joints",
56+
"nickname": "o_joints",
57+
"description": "The extracted joints.",
58+
"optional": false,
59+
"sourceCount": 0,
60+
"graft": false
61+
}
62+
]
63+
}
64+
}

0 commit comments

Comments
 (0)