bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.89k stars 265 forks source link

Centre of Mass Calculator & Modifier #1606

Open HabeneroJunkie opened 1 year ago

HabeneroJunkie commented 1 year ago

Is your feature request related to a problem? Please describe. 3D printed objects obviously have a different center of mass depending on how it is sliced. Number of top/bottom walls, type and density of infill, print orientation etc. will all affect the real center of mass of the final printed object. Calculating the CoM in CAD can be very different to the final result. When designing parts for an Engineering project, not having an accurate understanding of the true center of mass is often a major limitation of 3D printing the part.

Describe the solution you'd like Add a tool within the Preview section of the slicer that calculates the center of mass coordinates (relative to the origin point of the object) and displays the point in the preview window. To take it to another level, and really enhance the engineering capabilities, enable the tool to modify the center of mass by adjusting the distribution/line width of infill throughout the part (I saw an academic paper outlining an algorithm which might be of interest). The center of mass modifier tool would be particularly useful if the user could manually move the CoM point in the slicer, enter coordinates, snap it to the center of holes, or midpoint between faces.

StoneLiBambulab commented 1 year ago

Hi @HabeneroJunkie , Thanks for your advice. showing the centre of Mass is easy. but adjusting the center of mass automatically will be difficult. we will discuss this feature and let me study this paper.

Thanks! Stone Li

ShaneDelmore commented 7 months ago

Even if it cannot be adjusted, displaying it can be useful alone. I was recently printing a boat that I did not want to flip over when floating and had to adjust the number of bottom layers to move the center of mass low enough for the boat to float upright, it would have been easier if I could see the center of mass.

polklabs commented 2 months ago

I second just having a marker showing the center of mass. Some models can be top heavy when printing so this would be useful to make sure the center of mass is directly over where the model is attached to the build plate. Which would also show the likelihood of the model falling over during the print.

It would be even more helpful to view the center of mass on a layer by layer bases in the preview window. As the final object may be balanced but be unbalanced during the print

r83bvna commented 2 weeks ago

Please, if you implement the feature (which will require integrating material flow over the printing path), don't forget to show also inertia tensor matrix.