I have set of many points .
Is there any concave hull function or plugin instead of manual connection with line tool?
Concave Hull Function?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: Concave Hull Function?
For all support requests, please:
- Indicate the operating system you are using and the version thereof (e.g. Windows 10 32bit, Windows 8.1 64bit, Ubuntu 14.2 64bit, macOS 10.12, etc.)
- Indicate the exact version of QCAD you are using (see "Help" > "About" or "QCAD" > "About QCAD" or indicate the name of the file you have downloaded and installed)
- Attach original drawing files (DXF, DWG, ...) if appropriate
- Attach exported files (SVG, PNG, PDF, G-Code, ...) if appropriate
- Include screenshots if appropriate
- If there is an error message, indicate the exact message or include a screenshot of the message
- Indicate what post processor you are using
- Indicate the operating system you are using and the version thereof (e.g. Windows 10 32bit, Windows 8.1 64bit, Ubuntu 14.2 64bit, macOS 10.12, etc.)
- Indicate the exact version of QCAD you are using (see "Help" > "About" or "QCAD" > "About QCAD" or indicate the name of the file you have downloaded and installed)
- Attach original drawing files (DXF, DWG, ...) if appropriate
- Attach exported files (SVG, PNG, PDF, G-Code, ...) if appropriate
- Include screenshots if appropriate
- If there is an error message, indicate the exact message or include a screenshot of the message
- Indicate what post processor you are using
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Concave Hull Function?
Not as a ready-made tool, but you can do it with a bit of scripting in the script shell (Misc > Development > Script Shell).
First select only the points, then paste this simple code in to the script shell command prompt:
Notes:
- There is no error handling in this code and you will get an exception if you select other entities than points.
- 0.1 is the concavity (smaller is more detailed, larger less detailed or even convex for very large numbers).
- This works in QCAD Professional or QCAD/CAM
First select only the points, then paste this simple code in to the script shell command prompt:
Code: Select all
var doc = getDocument();
var ids = doc.querySelectedEntities();
var points = [];
for (var i=0; i<ids.length; i++) { var e=doc.queryEntity(ids[i]); points.push(e.getPosition()); }
var pl = RPolygonHull.getConcaveHull(points, 0.1);
addShape(pl);
- There is no error handling in this code and you will get an exception if you select other entities than points.
- 0.1 is the concavity (smaller is more detailed, larger less detailed or even convex for very large numbers).
- This works in QCAD Professional or QCAD/CAM