again about the missing links: Centroids.
*** EDIT ***
For the latest version v0.32 refer to:
https://qcad.org/rsforum/viewtopic.php?f=30&t=8970
*** EDIT ***
I started a new topic because it are now 3 Addons in one package:
- Area centroid of surfaces with uniform density. (v0.31)
- Wire centroid of infinite small wires with uniform density. (v0.31)
- Summing markers of the above weighted by their individual density. (v0.11)
For snapshots/releases of QCAD Professional later than 3.26.4 only.
In the earlier releases, centroids for shapes with holes were already possible with a hatched area.
Then one has two distinct densities: one apple/unit² or zero apples/unit².
Now it is possible to retrieve the center of mass of e.g. a plywood shape with a lead insert somewhere.
... With a wire sticking out if that would be the case.
Or a paper kite with steel wiring.
To exploit this, one assigns a real world density to the custom property of the markers.
Then one sums these by selection. The tool excludes non markers and the Maths will do the rest.
Remark that a uniform wire centroid can't really replace a bend tube or bar what are in fact 3D shapes.
Still, given the scale, it can be a good approximation.
For more details about the fixes and changes I like to refer to the changelog: Rather proud of the almost exact full ellipse circumference in addition to some closed forms for ellipses.
*** EDIT ***
Updated to v0.32
Version 0.31 was downloaded 33 times.
*** EDIT ***
Following the adoption by Andrew they appear in the Misc .. Information menu.
Really sorry for those who endorsed the placement under the Information menu and toolbars.
Not many will really need them at hand that often. (See downloads)
The Addons are donated to the QCAD project 'as is', Andrew may include it in a next release.
Immediate installation:
Users that have installed earlier versions manually are advised to remove the added folders and files.
Ensure that the next path exists in your installation folder:
... QCAD\scripts\Misc\MiscInformation (QCAD or QCADCAM or whatever path that is used)
Copy over the files from the zip to that path.
The folder structure is mandatory, for reference: the changelog should be located here:
... QCAD\scripts\Misc\MiscInformation\InfoCentroids\ChangeLog.txt
Folder and file naming and the placement are quite logic.
Win users may require admin rights.
The shortcut 'IM' was already taken
aka: Area center of Mass, Wire(s) center of Mass and Combine centers of Mass
Let's say that this release is a more complete work.
More accurate and neater for sure.
Regards,
CVH