WaelTheNoble 0 Newbie Poster

Hi guys,

I want to construct 2D shapes in C++ program. I want to get as output an array of 2D points representing the 2D shape, while the input is the 2D shape parameters. For example, I want to pass to the function the center and radius for a circle, and get in return the array of points coordinates representing the circle. This array of point could then be drawn on screen or something. In my project currently, I'm using Boost (Boost.Geometry) and CGAL libraries. Could these libraries return the array of points for a certain 2D shape? If not is there a good free C++ library that can do such thing?

Thanks a lot,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.