Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation Enhancements for DXF Files in Metal Laser Cutting #76

Open
usama-masood-brainx opened this issue Jul 14, 2023 · 1 comment

Comments

@usama-masood-brainx
Copy link

usama-masood-brainx commented Jul 14, 2023

The purpose of this enhancement is to introduce additional calculations for DXF files in the context of Metal Laser Cutting. The proposed calculations include:

Area of Polygon:
Calculating the area of a polygon defined in a DXF file is essential for estimating material usage and costs. By implementing this calculation, users will be able to quickly determine the area enclosed by the polygon, aiding in accurate material selection and cost estimation.

Minimum Cut Count:
Determining the minimum number of cuts required for a given DXF file is crucial for optimizing laser cutting operations. This calculation will analyze the contours and intersections within the polygon and provide insights into the most efficient cutting paths. It will help reduce production time, minimize material waste, and enhance overall efficiency.

Cut Length:
Calculating the total length of cuts required for a DXF file will provide valuable information for scheduling production and estimating laser cutting time. This calculation will sum up the lengths of all individual cuts within the polygon, assisting in workload planning and project management.

By implementing these calculations within the Metal Laser Cutting workflow, users will have access to valuable metrics that can significantly streamline their operations. These enhancements will facilitate precise material estimations, optimize cutting strategies, and improve production planning, ultimately leading to increased efficiency and reduced costs.

@usama-masood-brainx usama-masood-brainx changed the title DXF area, circumference calculations Calculation Enhancements for DXF Files in Metal Laser Cutting Jul 14, 2023
@vagran
Copy link
Owner

vagran commented Jul 14, 2023

This sounds like an application which may be built on top of this library, which is just DXF renderer. Other problem is that currently the library discards all information about initial DXF geometry, when compiling rendering batches, so it is quite impossible to do this by current public API (there is an option to preserve parse result but it is quite low-level information to use it directly), this is a subject for future improvements. So in any case this type of functionality is out of scope of this library, and should be implemented in a particular application on top of it. For now you can proceed with your own fork of the library to gather all necessary data for calculations in your application (as I understand, you already did it). I will consider this use case in next library versions, when new API will be designed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants