You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CAD segmentator should output proposals for plane origin #184
to fix the pose estimation's slightly undefined behaviour for computing origin of pose when "complex" joints are present, we can compute the transformed plane origin of the DFBeam, using the small ICP transformation computed in the CAD segmentator.
# lines 91 to 96 of the CADSegmentatorfori, df_binenumerate(df_beams):
rh_b_mesh_faces= [df_b_f.to_mesh() fordf_b_findf_b.side_faces]
rh_test_mesh=Rhino.Geometry.Mesh()
plane_origin=df_b.plane.Origin# This is newplane_origin.Transform(transforms[i]) # This is newo_centroids.append(plane_origin) # This is newforjinrange(len(rh_b_mesh_faces)):
sucess=rh_b_mesh_faces[j].Transform(transforms[i])
ifsucess:
rh_test_mesh.Append(rh_b_mesh_faces[j])
rh_meshes.append(rh_test_mesh)
That way we seemingly get more reliable pose origins
Activity