Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.11 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.11 KB

Noteplacing task

The task is to implement an algorithm which places hole-notes without overlapping other notes or holes.

How to use it

This is a library implements an algorithm which places notes to wanted positions.

In production: this library is used to perform the calculation. The result is visible in the CAD software (e.g. SolidWorks).

In development: we don't embed it into CAD software but write the result to SVG file where we can evaluate the result. Thus, there are additional projects that are relevant for development:

  • Noteplacing.SvgExporter - this project creates SVG file that shows the result
  • Noteplacing.Exec - this project provides the information about the Notes, Holes and Outlines and starts the execution

Before you start, you should adjust the path where SVG file is saved. You can change it in Program.cs in Noreplacing.Exec project:

    SvgExporterConfiguration config = SvgExporterConfiguration.Builder
            .WithTargetFilePath(new FileInfo(@"c:\change\this\folder\holes.svg"))

Now you can just run it. At this point you can open the SVG file and see the result.