We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Get X, Y, Z dimensions of a generated text object

Home Forums General Questions Get X, Y, Z dimensions of a generated text object

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #53713
    kubuz
    Customer

    Hi,
    Is it possible to get the dimensions of a generated Text Mech ?
    I was looking in the custom properties, but I think it is not the right place. Thanks in advance.
    Best Dennis

    #53722
    xeon
    Customer

    This might help.

    https://www.soft8soft.com/docs/api/en/math/Box3.html

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #53763

    Hi, we’re going to support puzzle to calculate object dimensions in the upcoming pre-release. Meanwhile, you can use JavaScript for that as suggested by xeon.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #53812
    kubuz
    Customer

    Thanks Xeon and Alexander.
    Looking forward to the puzzle, and in the meanwhile I try out the javascript.

    #53813
    kdv
    Participant
    var obj = getObjectByName(objName);
    var meshArray = obj.resolveMultiMaterial();
    console.log(meshArray[0].geometry.boundingBox.max.x - meshArray[0].geometry.boundingBox.min.x);
    console.log(meshArray[0].geometry.boundingBox.max.y - meshArray[0].geometry.boundingBox.min.y);
    console.log(meshArray[0].geometry.boundingBox.max.z - meshArray[0].geometry.boundingBox.min.z);

    but XYZ scale before exporting must be 1.0 and YZ coordinates are swaped…

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.