How to find the height of .obj Objects?

Okay so here is the deal. I'm trying to create a basic 3D world creator. I'm using .obj files to load the objects I can place in the world. If I'm correct when you load a .obj file it places the center of the object at the orign. I'm trying to make it so all the "buildings" I create from .obj files using the ObjectFile loader supplied by sun all lay on the same plane (All the bases are at the same y coordinate). I need to find the height of the Shape3Ds so I can put them all on one level. I keep on running into complications with deprecated methods and By_Reference. Is there a simple way to find the height? Thanks.

Will a BoundingBox be any help?
You can get a Bounds object from a Shape3D and use it to initialize a BoundingBox. That `s a simple way to give you the extreme upper and lower points of the BoundingBox from which to calculate the height.
regards

Similar Messages

  • How to find the height of growing subform

    Hi Experts,
    I am trying to find the height of growing subform at runtime.  But I could'nt is there any way i can find it.
    I am using the below formcalc script in the event layout read.
    <variable>.Value = Subform.h
    all the time i get the value as 0.
    Regards,
    Krishna

    Hello Otto,
    Thanks for your suggestion, couple of days back I used one of the layout methods to find the height of the growing subform.
    this.RawValue = xfa.layout.h(<subform>, 'mm');
    The above javascript code works in the event "Calculate" and in event "Layout ready" all the other events is returning the height as '-1'.
    Basicaly I have two bodypages as shown below my requirement is to find the height of a subform in first bodypage and if it reaches a particular height I want to insert a page break using conditional break in SUBFORM2.
    PAGE1
          -  SUBFORM1(Bodypage1)-> ContentArea1
          -  SUBFORM2(Bodypage2)-> ContentArea2
    Condtional break code on SUBFORM2.
    Height  > 80
    Break Before "X"    Goto top of Content Area <ContentArea2>
    Unfortunately the conditional page break  is not working now so trying hard to find a solution to it, please let me know if you have any suggestions here.
    Thanks,
    Krishna

  • How to find the mapping between External Object Name and Business Obj.

    Hello Gurus
      Anyone who can help me? I would like to know is there any way to know Business Object is behind object associated to Context Node, it seems that for some cases is easy but for instance for object BuilHeader is not the case, at least for me.  View BP_ADDR/StandardAddress, which belongs to UI Component BP_ADDR, has context node HEADER which is associated to BuilHeader. In case to enhance that object (to add new attributes), using EEWB, I need to know what is the business object behind that external name. Somehow I cannot find the mapping between external name BuilHeader and Business Object. 
      Kind regards
    Aleksandar

    Hi Aleks,
    If you want to enhance Business Partner, the object you are looking at should be "BUPA" in EEWB. To my knowledge, there is no place where this kind of mapping is maintained.
    Note 484597 describes where to find the Cookbook  which describes the enhanceable objects and the enhancement process.
    In case your requirement is to add table attributes, you can also  take a look at the wiki link:
    http://wiki.sdn.sap.com/wiki/display/CRM/EEWB-AddingTableattribute
    Regards,
    Nisha

  • How to find the right customizing adapter object for a R3 table?

    I customized a document type ZCRM in the R/3. Now i want to do the synch load for document types using R3AS to see if it goes to the CRM system.
    When i check TR VOV8 in R/3 customizing,  i see that table TVAK is used in R/3  to store my document type ZCRM
    Then i try to find out, to which customizing adapter object table TVAK belongs. It is described in course TCRM20 Unit 9: I check table SMOFTABLES in the CRM system using TR SE16 and search in the column R3TABNAME for tablename TVAK. But it isn´t there...
    What am i doing wrong? How can i transfer my document type?
    Thank you

    Thanks - you are right - document types/transaction types and item categories cannot be transfered at all
    I just transfered customizing adapter object DNL_CUST_PRICE because R/3 table T052 (payment terms) is included in this adapter object. I customized payment term ZCRM in R/3. A check shows a green light. Now i want to check in which table in CRM my payment terms landed?
    Table T052 does not seem to exist in CRM.
    A detail insight in adapter object DNL_CUST_PRICE  by transaction R3AC3 to check the target table in CRM shows an empty column 'Mapping structure target site'. Where could i look?
    Thank you

  • How to find the Infoobject name by Datasource .

    Hi SAP Gurus
    Can any of you guys suggest how to find the list of Info objects for the Datasources .
    I have a scenario where I have a list of Datasources (400) which are Text and Attr Datasources,
    for which I need find the list Info objects,
    so can you please tell me is there any way that I can find the List of Info objects.
    Thanks

    Hi Rahul,
    You can make use of RSOSFIELMAP for your requirement.
    Go to Se16----->rsosfieldmap.
    You can see several fields as selections among them you could find Info object and Field selections as well.
    If you give infoobject name in selection, it will display all the data sources where it is available.
    If you give Filed also it will display the same.
    If you want to maintian document do Top Down Analysis from Bw stand right from Data target-->update rule--->infosource
    Hope this helps
    SujanR

  • How to find the number of references to an object in a big application

    How to find the number of references created for a given object in a big application environment.
    That means, if i give any object name (of my application) as input, then how can i find the[b] number of references created for that particular object ??

    Please don't post the same question multiple times.
    I've answered your question in the other thread here:
    http://forum.java.sun.com/thread.jspa?messageID=4312939

  • How to find the number of references created for a given  object ??

    How to find the number of references created for a given object in a big application environment.
    That means, if i give any object name (of my application) as input, then how can i find the[b] number of references created for that particular object ??

    Please do not post the same question multiple times.
    As for your original question, there is no direct way to do it.
    Especially not the way you phrased it,
    since objects don't have "names".
    Applications also don't have "names".
    They have classes and instances.
    Also, there are 2 related issues, and I'm not sure which one is the one you asked.
    #1. Finding the number of references to the same object.
    Eg.
    Map<String,String> a = new HashMap<String,String>();
    Map<String,String> b = new HashMap<String,String>();
    Map<String,String> c = a;In this case, there are only 2 objects.
    The first object has (at least) 2 references pointing to it.
    The second object has (at least) 1 reference pointing to it.
    (There may be more, if the HashMap library keeps
    references to these things, or if the HashMap object has
    some internal cyclic references...)
    If you're asking this, then it can't be done.
    It's an active research topic in universities
    and software research labs, called "alias analysis".
    Type it in google, and you'll see people are working hard
    and having little success so far.
    #2. Finding the number of instances created from a class.
    In this case, what you have to do is to add a counter to
    the constructor of the class. Every time an object is constructed,
    you increment the counter. Like this:
       class MyClass
           public static int counter = 0;
           public MyClass( )  { counter++; }
        // Then later in your program, you can do this:
        MyClass a = new MyClass();
        MyClass b = new MyClass();
        System.out.println(MyClass.counter); // It should show 2Note: you won't be able to do this to every class in the system.
    For every class you care about, you have to modify its constructor.
    Also: when an object is deleted, you won't always know it
    (and thus you won't always be able to decrement the counter).
    Finalizers cannot always work (read Joshua Bloch's
    "Effective Java" book if you don't believe me), but basically
    (1) finalizers will not always be called, and
    (2) finalizers can sometimes cause objects to not be deleted,
    and thus the JVM will run out of memory and crash

  • How to find the difference in object definition between two databases

    Hi,
    Can any one suggest me how to find the difference in object definition between two different databases. Is there any tool or by OEM? If so how?
    Regards
    Naveen

    this link may be helpful...
    http://www.dbspecialists.com/scripts.html

  • How to find the WhereUsed List for a Business Object Event?

    How to find the WhereUsed List for a Business Object Event?

    Can anybody let me know how to get which
    Whereused  function will get the data from
    different Werks in multi-level?
    Any sample program please!!!

  • How to find the hidden objects in Webi Rich client  report 4.0 sp 04 ?

    Hi,
    How to find the hidden objects in Webi Rich client  report  at BI 4.0 sp 04 ?
    Best Regards,
    ASR

    Hi Sai,
    Go to Report Element Tab-->There you have a Tab Cell Behaviors.
    When you flip between 'With Data' and 'Structure Only' under 'Design' Tab,you can see the some cells will be hide/Un hide behavior,if hiding of cells applied.
    Select that cell and then Under 'Cell Behaviors'-->'Hide' Tab-->and choose Show Option.
    Regards,
    Venkat P

  • How to find the objects created in last one year

    Hi Experts,
    How to find the objects created in last one year.
    Thanks in Advance,
    Iff

    hi
    just go through this table.
    <b>TADIR</b>  object as 'PROG'
    in this you can also provide the authors name in AUTHOR field
    and
    <b>TRDIRT</b>
    reward points if it helps,
    regards,

  • [How-to] Find the middle point between sides of two distant objects.

    [In reference to my attachment]
    I would like to find the middle point between object A's right-most segment (in green) and object B's left-most segment (in blue), quickly, effectively and reliably.
    Ideally, there's a function i'm not familiar with that exists . I would rather not resort to having to create more objects to "figure out" the middle point manually, so-to speak.

    Dandreu,
    In a more general case than assumed in the first post, if you wish to have an actual key point, you may:
    1) Direct Select each of the path segments in question and Ctrl/Cmd+C+F+X+F,
    2) Select either and rotate it by 180 degrees,
    3) Object>Blend>Blend Options, with 1 Step, then Object>Blend>Make, then Object>Blend>Expand,
    4) Select the line in the middle and Object>Path>Add Anchor Point.
    You may also do a similar way where you add an Anchor Point at the middle of the segments and ClickDrag with the Line Segment Tool between them, but that is a bit destructive.

  • How can we find the obsolete data dictionary objects in ecc 6.0 version

    My Question is How can trace the obsolete data dictionary objects in ecc 6.0 version such that we could
    anticipate the obsolete objects before upgradation.
    Regards,
    Raghunadh Babu.

    Hi Raghunadh,
                        The data dictionary objects will be in the repository itself if activated.If the data dictionary objects was created by user and if it is not activated.In this scenarion the data dictionary object can be seen in object navigator.Please check the transaction SE80 and SE81.
    Hope your query resolves.
    Have a best day ahead.

  • How can find the task bar height of the PC desktop

    Hi all,
    I want to find the height of the task bar of the PC desktop screen. It can be on any OS such as Windows, Linux, Mac..
    I have done something this. Create a JFrame and maximize it by make setVisible to true. Then get the height of it and dispose it. At the same time find the screen height using Toolkit. Then take the difference of it.
    My question is, even in the sudden time that JFrame is appear and dispose, it blink on the screen. I want to avoid it. Anybody can give me a solution for it.
    Here is my code.
            int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
         final JFrame tempFrame = new JFrame();
         tempFrame.addFocusListener(new FocusListener() {
             public void focusGained(FocusEvent e) {
              tempFrame.dispose();
             public void focusLost(FocusEvent e) {
         tempFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
         tempFrame.setVisible(true);
         int frameHeight = tempFrame.getHeight();
         int taskbarHeight = screenHeight - frameHeight;
            tempFrame.dispose();Thanks.

    needs a bucket load of testing (and possibly only works in java 1.6)
        System.out.println("TaskBar height = " + (Toolkit.getDefaultToolkit().getScreenSize().height -
                     GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().height));

  • Nternal ERROR: Can not find the ACL containter for object ...

    We are using OWB 10.2.0.3. We tried to introduce two basic roles to prevent user A from accessing certain parts of our project. Somehow (I cannot really say how) we ended up in the error message below whenever we want to modify the security properties of an object.
    Neither in metalink nor in the oracle forums I could find any hint about that error.
    Can anyone help??
    Thanks in advance, Maren
    Internal ERROR: Can not find the ACL containter for object:CMPMap@1ba11bc/id=2023180/owningFCO=2023180/proxyFor=(CMPMapGen@1a4d5c6/id=2023180/stname=CMPBatchMap/pname=LOAD_XML/lname=LOAD_XML/status=CLEAN/committed=true/persistent=true/propsLoaded=false)
    Internal ERROR: Can not find the ACL containter for object:CMPMap@1ba11bc/id=2023180/owningFCO=2023180/proxyFor=(CMPMapGen@1a4d5c6/id=2023180/stname=CMPBatchMap/pname=LOAD_XML/lname=LOAD_XML/status=CLEAN/committed=true/persistent=true/propsLoaded=false)
         at oracle.wh.repos.pdl.security.SecurityPolicyManager.getAccessCharMapOfPrivilegeOwner(SecurityPolicyManager.java:166)
         at oracle.wh.repos.impl.foundation.CMPElement.getAccessCharMapOfPrivilegeOwner(CMPElement.java:2743)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.hasPrivilege(OWBSecurityImpl.java:820)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.internalSecurityCheck(OWBSecurityImpl.java:1449)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.securityCheck(OWBSecurityImpl.java:649)
         at oracle.wh.repos.pdl.security.SecurityModuleImpl.securityCheck(SecurityModuleImpl.java:660)
         at oracle.wh.repos.pdl.security.SecurityModuleImpl.securityCheck(SecurityModuleImpl.java:623)
         at oracle.wh.ui.common.WhSecurityHelper.securityCheck(WhSecurityHelper.java:112)
         at oracle.wh.ui.console.commands.EditObjectCmd.performAction(EditObjectCmd.java:107)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Hi Maren
    Like you I get this error and do not know what steps caused it.In my scenario I have some mappings that give the error and some that do not - the repository user gets the error but the repository owner does not.
    Thinking back over the last number of months (as this project contains 7-8 months od work - we do have exports of the project) I think the ones giving the error are those that perhaps were copied from another to start the coding but I cannot be sure.
    I have read the metalink note mentioned above as well as the the queries posted by Oleg and yourself. The queries posted are slightly different, one has a where clause
    fco.classname = 'CMPACLContainer' (Maren's)
    and the other
    fco.classname='CMPMap' (Oleg's).
    Was this intentional Maren on your behalf for your problem to be fixed?
    We are using 10.2.0.3.33 OWB client and 10.2.0.3.0 OWB repository.
    Thanks
    Edwin

Maybe you are looking for

  • Interest Calculation on Arrears

    Hello, I have configured interest calculation for A/R and I am using FINT transaction to run an interest calculation by item.  I have 3 problems: 1.- Even I mark "Test run" in transaction FINT, it will do the posting. 2.- Even I select only one item

  • HP DV7-7338ea Windows 8 Unmountable Boot Volume BSOD

    The product concerned here is a HP DV7-7338ea with operating system Windows 8. I have been using it for just under 11 months and bought it with Windows 8 installed. Problem descrpition: I recently installed a new sound update for my laptop. I was pro

  • M4v to vob

    I am making the slide show with iMovie for my wedding playing it with a DVD player. I wonder if the DVD player can play this m4v format. May I ask if any application can convert m4v to vob in iMac?

  • Change document object in SCDO

    Hi, I want to know if there will be any issues if I generate update program for standard object VERKBELEG in tcode SCDO for recording change log. I mean by clicking on Generate Update prgm for VERKBELEG, it will generate and activate new includes and

  • Java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException

    Hello, Can someone please tell me how to fix this error in a standalone application? java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException at com.myco.myapp.applet.AppletConnector.getDAO(AppletConnector.java:82) Basically, AppletConnect