Skip to content

Commit

Permalink
add comment about the necessary matrix calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Oekn5w authored and lordofhyphens committed Dec 2, 2019
1 parent 2a476e1 commit f695e6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xs/src/libslic3r/IO/TMF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,9 @@ TMFParserContext::apply_transformation(ModelInstance *instance, const Transforma
instance->offset.x = single_transformations[0];
instance->offset.y = single_transformations[1];

// Complete = Instance * Additional
// -> Instance^-1 * Complete = (Instance^-1 * Instance) * Additional
// -> Instance^-1 * Complete = Additional
instance->additional_trafo = TransformationMatrix::multiply(
instance->get_trafo_matrix().inverse(),
complete_trafo);
Expand Down

0 comments on commit f695e6b

Please sign in to comment.