11#include <easy3d/core/vec.h>
12#include <easy3d/viewer/viewer.h>
48 void draw(easy3d::Viewer& viewer)
const;
52 std::vector<std::unique_ptr<LineSegment>>
segments;
Represents a sequence of connected path segments (e.g., straight lines, arcs).
Definition path.h:22
void draw(easy3d::Viewer &viewer) const
Renders the full path in the viewer.
Definition path.cpp:53
std::vector< easy3d::vec3 > generateWaypoints(float spacing) const
Generates a list of evenly spaced waypoints along the entire path.
Definition path.cpp:32
std::vector< std::unique_ptr< LineSegment > > segments
The sequence of segments (e.g., lines, arcs) that make up the full path.
Definition path.h:52
void addStraightSegment(const easy3d::vec3 &start, const easy3d::vec3 &end)
Adds a straight line segment to the path.
Definition path.cpp:19
Defines the LineSegment class for a straight path segment.
Vec< 3, float > vec3
Definition common.h:19
Abstract base class for different types of path segments.