Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bezier curves for SDD #140

Closed
wants to merge 1 commit into from
Closed

feat: bezier curves for SDD #140

wants to merge 1 commit into from

Conversation

thenromanov
Copy link
Member

Кривые Безье для отрисовки траектории

@thenromanov thenromanov self-assigned this Mar 24, 2024
Comment on lines +130 to +134
SDD& Add(const geom::Vec2& p0, const geom::Vec2& p1, const geom::Vec2& p2) noexcept;

SDD& Add(
const geom::Vec2& p0, const geom::Vec2& p1, const geom::Vec2& p2,
const geom::Vec2& p3) noexcept;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Из интерфейса никак не следует, что это кривые бизье + нет возможности настройки. Все это выглядит странно...

@@ -118,6 +125,14 @@ class SDD {

SDD& Add(const geom::ComplexPolygon& polygon) noexcept;

SDD& Add(const Bezier& beizer) noexcept;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В целом я не против иметь такой метод, но я хочу пояснить, что мне не нравится... мне кажется, что это подтекания логики построения кривых. Более правильно мыслить полилиниями, которые оцифрованы с какой-то достаточной частотой.

@dasimagin dasimagin closed this Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants