david-cattermole / mayaMatchMoveSolver

A Bundle Adjustment solver for MatchMove related tasks.
https://david-cattermole.github.io/mayaMatchMoveSolver/
Other
101 stars 29 forks source link

Maya Tool - Align to XY / YZ / XZ Plane #171

Open david-cattermole opened 3 years ago

david-cattermole commented 3 years ago

Feature

A tool in Maya to use 3 or more vertices or locators to transform an object.

This tool might use similar maths to this (released under "the Unlicense"): https://github.com/zalo/MathUtilities#least-squares-lineplane-fitting-pic https://github.com/zalo/MathUtilities/blob/master/Assets/LeastSquares/LeastSquaresFitting.cs#L24

Usage Steps

  1. Load a photogrammetry scan mesh without any orientation.
  2. Select 3 or more vertices on a flat plane in the mesh
  3. Select the scan mesh last.
  4. Run "align to XZ plane"
    • The scan mesh will be moved so that the vertices selected are aligned along the XZ plane.