Inkscape.org
Beyond the Basics Gravity point of an inkscape object ?
  1. #1
    bradfield bradfield @bradfield

    Hello,

    I have defined an object in inkscape and I want to find the gravity point so that when I laser cut the object and connect a string to that point, the object is hanging in the same angle as it is visible in inkscape.

    Any idea if that is possible ?

    Best Regards,

    Ralf

  2. #2
    David248 David248 @David248
    *

    Not in front of my pc but of I remember, the extension that calculates the area of a shape also finds gravity center.

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    ^^ this. Extensions>Visualize Path>Measure Path>Center of Mass

    The small crosshairs are CoM, the vertical guideline passes through the center of the bounding box.

  4. #4
    bradfield bradfield @bradfield

    Thanks, but this is not what I am looking for.

    I would like to identify the specific location at the top of the object where I can attach a thread. When the object is hanging vertically using the thread, I want it to hang at the same angle as it appears in Inkscape.

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    Um, yeah, I'd just try putting a hole anywhere directly above the crosshairs.

  6. #6
    bradfield bradfield @bradfield

    Hmmm. For some shapes and positions on the screen this will work, but for sure not generally for all shapes and positions. 

    Looks like there is no easy way to achieve what I am looking for.

  7. #7
    Tyler Durden Tyler Durden @TylerDurden

    You have an example that will for sure not work to share?

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    works for this kind of stuff:

    Cardboardcalder
    Explorer 20240206214634
  9. #9
    bradfield bradfield @bradfield

    Hi Tyler,

    yes, I correct myself and think think your idea is correct. My explanation now is that when holding the object vertically and putting a wire through the center of mass the object can be rotated at any position and is stable. 

    When then connecting a thread at the upper edge of the object directly above the center of mass it also does not change its position. And to find that point is what I wanted.

    Thanks for your suggestion.

        

     

  10. #10
    Tyler Durden Tyler Durden @TylerDurden

    Be advised that I discovered a possible bug in the extension where compound* paths are used. Paths that are a single closed path should not have any issues with the extension.

    Here is the bug report. https://gitlab.com/inkscape/inbox/-/issues/9960

    *Compound paths contain more than one discrete segment. 

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Gravity point of an inkscape object ?