Skip to content

Lynxtail/CAD-Exchanger-test-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test task to CAD Exchanger

  1. Support a few types of 3D geometric curves – circles, ellipses and 3D helixes. (Simplified definitions are below). Each curve should be able to return a 3D point and a first derivative (3D vector) per parameter t along the curve.

  2. Populate a container (e.g. vector or list) of objects of these types created in random manner with random parameters.

  3. Print coordinates of points and derivatives of all curves in the container at t=PI/4.

  4. Populate a second container that would contain only circles from the first container. Make sure the second container shares (i.e. not clones) circles of the first one, e.g. via pointers.

  5. Sort the second container in the ascending order of circles’ radii. That is, the first element has the smallest radius, the last - the greatest.

  6. Compute the total sum of radii of all curves in the second container.

Additional

  1. Split implementation into a library of curves (.dll or .so) and executable which uses API of this library.

  2. Implement computation of the total sum of radii using parallel computations (e.g. OpenMP or Intel TBB library).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published