diff --git a/ShoulderCase/@Humerus/exportHumeralHeadSphere.m b/ShoulderCase/@Humerus/exportHumeralHeadSphere.m index 9b3c422..d6f7e9a 100644 --- a/ShoulderCase/@Humerus/exportHumeralHeadSphere.m +++ b/ShoulderCase/@Humerus/exportHumeralHeadSphere.m @@ -1,11 +1,9 @@ function exportHumeralHeadSphere(obj) - obj.loadFittingSphereLandmarks(); - exportFilename = fullfile(... obj.shoulder.SCase.dataSlicerPath,... "HH_fitted_sphere_" + obj.shoulder.side + ".ply"); humeralHead = Sphere(); humeralHead.fitTo(struct2array(obj.landmarks.sphere)'); humeralHead.exportPly(exportFilename); end \ No newline at end of file diff --git a/ShoulderCase/@Humerus/exportInsertionsPlane.m b/ShoulderCase/@Humerus/exportInsertionsPlane.m index d84a0cc..c7dafed 100644 --- a/ShoulderCase/@Humerus/exportInsertionsPlane.m +++ b/ShoulderCase/@Humerus/exportInsertionsPlane.m @@ -1,27 +1,25 @@ function exportInsertionsPlane(obj) - obj.loadInsertionsRingLandmarks(); - towardSubscapularis = 2 * Vector(... obj.insertionsRing.center,... - obj.landmarks.insertions.ring.subscapularis'); + obj.landmarks.insertions.subscapularis_inferior'); towardSupraspinatus = 2 * Vector(... obj.insertionsRing.center,... - obj.landmarks.insertions.ring.supraspinatus'); + obj.landmarks.insertions.supraspinatus_anterior'); towardTeresMinor = 2 * Vector(... obj.insertionsRing.center,... - obj.landmarks.insertions.ring.teres_minor'); + obj.landmarks.insertions.teres_minor_inferior'); insertionsPlane = SlicerMarkupsPlane(); insertionsPlane.addControlPoint(SlicerControlPoint(... "near subscapularis", towardSubscapularis.target)); insertionsPlane.addControlPoint(SlicerControlPoint(... "near supraspinatus", towardSupraspinatus.target)); insertionsPlane.addControlPoint(SlicerControlPoint(... - "near seresMinor", towardTeresMinor.target)); + "near teresMinor", towardTeresMinor.target)); exporter = SlicerMarkupsExporter(); exporter.addMarkups(insertionsPlane); exportFilename = fullfile(obj.shoulder.SCase.dataSlicerPath,... "rotator_cuff_insertions_plane_" + obj.shoulder.side + ".mrk.json"); exporter.export(exportFilename); end \ No newline at end of file