: How can I calculate the center of mass/gravity for vector objects? I'm making a mobile (in the Calder sense) by laser-cutting from a vector file (Corel Draw). I have a set of outlines that
I'm making a mobile (in the Calder sense) by laser-cutting from a vector file (Corel Draw). I have a set of outlines that will be the individual pieces.
Is there a way in Corel (or some other program) to calculate the center of mass so I place the holes to suspend the pieces?
More posts by @Tiffany317
3 Comments
Sorted by latest first Latest Oldest Best
I was stuck with the same dilemma and using Adobe Illustrator wrote a script that places a small hole at the center of gravity of an irregular polygon. It worked great! After this iteration, I also added a few snippets to create the hole just above the center of gravity to ensure that the part balanced well when suspended from just that one point.
Downloadable script: CentroidFinder.js
Blog Post: Finding the Center of Gravity (Centroid) of a Polygon in Adobe Illustrator
I export to a very large PNG file of 3000 pixels. Then I drag and drop into Algodoo (which is now free). Put the axle where you want and play the simulation and it will show you where it's off balance. You can then adjust your drawing until it's balanced where you want.
This answer may not count if you require a strictly programmatic solution, but I found it interesting so I thought I'd share. :)
The math way would be to break the shape into a collection of triangles and do a weighted average of their individual centers of gravity. I don't think any of the popular drawing programs will automate that for you. It can be done manually but it may not be worth your time.
This site has a breakdown of a physical approach that may be a faster yield on your time: www.scn.org/~bh162/center_of_mass.pdf
The basic premise is that objects with uniform thickness can be determined using 2-3 plumb lines from random points at or near the edges of your shape.
Print & cut out a copy of your shape.
Select 3 points somewhat close to different edges on your object.
Use a pin or nail to poke holes in your 3 points. The holes should end up slightly larger than the diameter of the implement so that the cutout can swing freely.
Hang your object using the pin through one of the holes.
While your object is hanging, use a string and weight to make a plumb line and trace the line.
Repeat the hang & plumb line for the other holes.
The point where all your lines intersect is the center of gravity for your shape.
If your lines are precise, you should be able to determine an accurate center with 2 lines and the 3rd line is just for additional verification.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.