Menu

what are model units settings in u3d file ?

Tom White
2007-02-22
2013-05-28
  • Tom White

    Tom White - 2007-02-22

    Where can I find the appropriate values for units in the
    CoreServices Initialization function to set what my model units are ?

    CIFXCoreServices::Initialize ( U32 uProfile, F64 units = 1.0f);

    Thanks,

    - Tom

     
    • Roman Borisov

      Roman Borisov - 2007-02-26

      Hello Tom,

      this is quotation from Universal 3D File Format (ECMA-363):

      "9.4.1.6
      F64: Units Scaling Factor
      Units Scaling Factor defines the units used values of positions and lengths
      Units Scaling Factor can be used by an application to scale objects appropriately when combining files that use different units. For example, if the units in the file are millimetres, the Units Scaling Factor would be 0.001. A value of 5 in the file would be 5 mm.
      Units Scaling Factor shall be present only if the defined units bit in the Profile Identifier is set."

      is it an answer on your question?

      Thanks,
      Roman

       
      • Tom White

        Tom White - 2007-02-26

        Yes.

        My understanding is that if I set the scaling factor to "0.001" as indicated
        above.  Then I input geometry with position values of triangles such as

        (0, 5, 5) then it should be 5 model units w/ model units being "mm".

        However Adobe products (Acrobat U3D Annotations, U3D toolkit) seem to think
        the resulting u3d file has 5000 model units in a length.

        I have sent an inquiry about this, I guess Adobe is screwing up reading u3d
        with non-default units set.

        Thanks,

        - Tom

         
    • user69

      user69 - 2008-01-09

      I also added a U3D to a 3D PDF.
      However, it works, but I cant figure out how to enable Sectioning and Mesurements.

      How Can I do this?

      How did you figured out the model units in Acrobat?

      User69

       
      • Tom White

        Tom White - 2008-01-09

        Acrobat ignores the model units setting in the embedded U3D.
        all units are assumed in model units of "meters".  As of Acrobat 7

        You can see model units via the built in measure tools in Acrobat 3D; or
        more directly in the U3D itself if you install Acrobat 3D toolkit from the
        professional version 3D DVD.

         
        • user69

          user69 - 2008-01-09

          But How can I enable Mesurement button in the PDF? I cant find somtings to display the Button for Mesurements in the PDF reference 1.7.

          Its the same problem for Sectioning Button: How Can I enable it, when I create the PDF with a embedded U3D.

          BTW: I use a modified LibHaru Pdf Creator in c++. But I only need to know what how to do this in a PDF file. To implemnt it in the Library shoud be easy, when I know how to do this.

          User69

           

Log in to post a comment.