Skip to content

Commit

Permalink
Merge pull request #359 from madsendennis/gpafix
Browse files Browse the repository at this point in the history
Deformation fix in GPA function
  • Loading branch information
marcelluethi authored Dec 4, 2020
2 parents 741dd1f + 31dfb4e commit 3f775cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ object TriangleMeshDataCollection {
val transform =
LandmarkRegistration.rigid3DLandmarkRegistration(surface.pointSet.points.toIndexedSeq.zip(meanShapePoints),
referenceCenterOfMass)
val newVecs = dc.reference.pointSet.points.toIndexedSeq.map(p => transform(p) - p)
val newVecs = dc.reference.pointSet.points.toIndexedSeq.map(p => transform(p + field(p)) - p)
new DiscreteField[_3D, TriangleMesh, EuclideanVector[_3D]](dc.reference, newVecs)
}

Expand Down

0 comments on commit 3f775cb

Please sign in to comment.