Login  Register

New feature idea: perspective transform

Posted by dxli on Feb 06, 2025; 12:22am
URL: https://forum.librecad.org/New-feature-idea-perspective-transform-tp5726356.html

The math:

1, there's a projection matrix to map a convex quadrilateral to another;
2, this type of projection turns a conic section into another conic section.

The basic description of the feature:

1, select entities to transform;
2, select 4 source points (to form a convex quadrilateral);
3, select 4 target points (also convex).

A transform is created to transform the source points to the targets, and the transform is applied to the selected entities.

Clearly, this new feature contains:

Move,
Rotate,
Scale,
Shear,
Stretch,
And perspective.