Jump to content
Sign in to follow this  

Approximate Body Measuring Tape

Recommended Posts

this approximates the circumference of an ellipse (prim cylinder)

// approximate body measuring tape
// rez a cylinder prim
// stick this script in it
// sit on a pose stand to keep still
// size the prim to approximately fit your bust
// touch the prim, and it will say what the approx. measurement of your bust is
// do the same for waist and hips, and any other body parts as you like

    touch_start(integer total_number)
        vector s = llGetScale();
        // approximate the circumference
        float x = s.x / 2.0;
        float y = s.y / 2.0;       
        float c = llSqrt((x * x + y * y) / 2.0) * TWO_PI;
        integer cms = llRound(c * 100.0);        
        integer inches = llRound(c * 39.37);
        llSay(0, "cms = " + (string)cms + " inches = " + (string)inches);


  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...