brettmorrisonAO5ANNEX / 3D_modeling_animations

0 stars 0 forks source link

Bezier Overextension #5

Closed brettmorrisonAO5ANNEX closed 7 months ago

brettmorrisonAO5ANNEX commented 7 months ago

Currently working on implementing classes for Bezier curves and surfaces, but right now the curves are extending beyond the start and end control points and I'm not exactly sure why:

Screenshot 2024-01-14 at 10 24 00 PM

brettmorrisonAO5ANNEX commented 7 months ago

The issue was I was adding screen-literal coordinates to the ACT_CONTROL_POINTS global array rather than converting them to axes coordinates relative to the ThreeDAxes object I created to represent the coordinate system. Because of this, the resulting curve appears to overextend when in actuality it was just using a different coordinate system.

Result:

Screenshot 2024-01-14 at 11 13 02 PM