This C++ project implements support for a hierarchy of 3D curves, including circles, ellipses, and 3D helixes. The program performs the following tasks:
-
Support for Multiple 3D Geometric Curves:
- Circles
- Ellipses
- 3D Helixes
-
Random Generation of Curves:
- A container (e.g., vector or list) is populated with randomly generated objects of different curve types. The curves are created with random parameters.
-
Printing Coordinates and Derivatives:
- Coordinates of points and derivatives of all curves in the container are printed at t=PI/4.
-
Creating a Container of Circles:
- A second container is populated with circles from the first container. The second container shares circles from the first one through pointers.
-
Sorting Circles by Radius:
- The second container, containing circles, is sorted in ascending order based on the circles' radii.
-
Computing Total Sum of Radii:
- The program computes the total sum of radii of all curves in the second container.
To use this project, follow these steps:
-
Clone the repository:
git clone https://github.com/MrSteelRat/CAD_Exchanger_Test.git
-
Build the project:
cd CAD_Exchanger_Test mkdir build cd build cmake .. make
-
Run the executable:
./CAD_Exchanger_Test
-
Clone the repository:
git clone https://github.com/MrSteelRat/CAD_Exchanger_Test.git
-
Open the project in Visual Studio:
- Launch Visual Studio.
- Open the project located in the
CAD_Exchanger_Test
directory.
-
Build the project:
- Build the project using the Visual Studio IDE.
-
Run the executable:
- Run the generated executable from the Visual Studio output directory.
Feel free to explore the code for more details on the implementation.