This is a work in progress patch for {T57210}, this isn't ready for review yet.
What works:
- Interactively adding primitives with two clicks.
- Scene orientation used for new objects.
- Position enum [ view-plane / axis-plane / surface ]
- Origin enum [ base / center ]
- Primitive object types [ cube / cylinder / cone / uv-sphere / ico-sphere ]
- Settings for object types in the top-bar.
TODO:
- Add "Cone" icon.
- Handle "Error" cases (when the cursor-plane intersection is behind the view for example).
- Constrain 1:1 aspect (using modifier key).
- Toggle center (using modifier key).
- Snapping.
- Improve layout of the UI //(currently spacing is poor).//
- Show a preview plane before adding the object.
- Gizmos to adjust the dimensions after adding the object.