How to update Shape3D contents?

My question is: After loading a object from a .obj file, if I didn't change the length (size) of the interesting vertexes, but I will change the vertexes' coordinates (say, float[] coords) with the corresponding textures (float[] cotexts ) over these coordinates, how can I do it directly from the following obtained " Shape3D object3d " ?
     TransformGroup createSceneTransformGroup( ) {
          TransformGroup m_BGFace = new BranchGroup();                             // create a BranchGroup
          m_BGFace.setCapability(BranchGroup.ALLOW_DETACH);
          m_BGFace = myScene.getSceneGroup();                                          // myScene is actually a Scene object loaded from a single ObjectFile
          Shape3D object3d = (Shape3D) m_BGFace.getChild(0);                      // obviously, object3D is the single child in current BranchGroup
          GeometryArray head = (GeometryArray)object3d.getGeometry();          // geometric data of the head
             GeometryInfo gi = new GeometryInfo( head );                                     // GeometryInfo Actually, what I've got is a TriangleStripArray
          Point3f[] coords = gi.getCoordinates();                                               // Get the coordinates, triangle by triangle.
?????????????float[] coords +  float[] cotexts??????????????
????????????? What to do??????????????????????????????
          m_TGFace.addChild(m_BGFace);                                                 //  Add BranchGroup to TransformGroup
          return m_TGFace;                                                                            // return TransformGroup
     }Edited by: jiapei100 on Oct 4, 2008 1:37 PM
Edited by: jiapei100 on Oct 4, 2008 1:49 PM

what i want to do is, i read a file line by line and put it to the textPane, so when a user types a new line in the text pane i want to save the new line to the file
please help
regards

Similar Messages

  • How to update resource content (XML Versioning)

    Hi,
    How to update resource content in the resource_view?
    I am trying to use XML Versioning. And not able to update the resource content using PL/SQL. Upon executing update, sql prompt says 1 row updated, but when I extract the same resource, it returns previous values. Is this a bug?
    I tired the following statements:
    --Create Resource
    declare
    bret boolean;
    begin
    bret := dbms_xdb.createresource('/public/test.xml','<Test>Version 1</Test>');
    end;
    --Update Resource
    update resource_view
    set res = updatexml(res, '/Resource/Contents/Test/text()', 'Version 2') where any_path = '/public/test.xml';
    --Extract the resource
    select extract(res, 'Resource/Contents') from resource_view where any_path = '/public/test.xml';
    EXTRACT(RES,'RESOURCE/CONTENTS')
    <Contents xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
    <Test>Version 1</Test>
    </Contents>
    Any help appriciated.
    Thanks

    Hi,
    Update the whole 'Test' element itself with the new element and value.
    example:
    update resource_view
    set res = updatexml(res, '/Resource/Contents/*', '<Test>Version 2</Test>') where any_path = '/public/test.xml';
    Hope that helps.
    Savitha.

  • How to update xml content based on resource_view path?

    I am using resource db to store xml documents. I can ftp xml documents into a specific path within resource db. I have a xml schema registered and setup with a xml table. I would like to update a xml document based on a specific resource_view path.
    For example:
    /some/path/mydocument.xml
    I would like to upddate this document using the path "/some/path/mydocument.xml"
    How can this be done using SQL?

    Typically the best way is if you know the name of the default table that contains your document. You do the update on the default table as follows
    update yourTable  t
         set object_value = updateXML(...)
    where ref(t) = (
                     select extractValue(res,'/Resource/XMLRef')
                       from resource_view
                      where equals_path(res,'/some/path/mydocument.xml') = 1
                          )

  • How to update folder content?

    How do you get LR to recognize new files that are in the library's folders? For example if I open a raw file from LR, LR creates a PSD edit file, which I then edit in PS. There are now two files in the LR library folder, the original raw file that I imported and the new PSD edit file. While in PS, I decide that I need to also save a screen res jpeg version to email to an art director, so I resize and save the jpeg to the same folder. This file does not appear in the folder when viewing the folder in the LR library. I try right clicking on the folder and selecting check for missing folders and photos, but this does not make the file appear.
    How do I get LR to automatically recognize new image files that have been added to the folder in its library? I haven't found anything in the preferences or menus that would appear to enable this capability. Surely I don't have to go through the re-import process just to get LR to see new files in the folder.

    >"Then once the export is accomplished, LR does not automatically recognize that you have added a new file to the current folder. "
    Think of LR as a black box that stores "master" images. "Export"ing means you want to produce a new file and send it *outside* the black box for some external purpose - email, printing, web, whatever. If, for some reason, you want to edit a master file in some way within LR and keep that version in the black box, then you should be creating a virtual copy (don't export it and then try to import it back into LR). Later, when you want to actually *do* something with that copy, then you export it - again for emailing, printing, etc. But that virtual copy is retained inside the black box. You can even use a stack to keep all the versions of a master image together.
    The other objective for getting a file out of LR is to edit it in an external application like PS. For that, use the "edit in PS" or "edit in other application". This performs an export, but brings the edited image back into LR as a new master. And you can have it stacked with the original master.
    However, what if you create some third image in PS from the one sent from LR? This gets us to the crux of the matter (what you ask in your original post). We can't simply assume that any file derived from PS is to be made part of LR. That's up to the user. However, it may be that case that it is the intent of the user to "reimport". So how do we do this?
    The LR team apparently has decided that the user must import the new image. You are suggesting that another approach is for the user to simply store the new image in the same folder as the LR source and have it automatically imported, like a watched folder. That seems like a good approach. If this approach were taken, then Adobe would have to fix the situation where only one file of a given name (w/o extension) in a folder can be in the library.
    I know iViewMedia Pro provides any number of watched folders, so it can be done. I wonder, given that the Adobe engineers switched from the "shoot" concept to folders between Beta 4 and version 1, they didn't have time to add a rich set of features regarding the use of folders. We can hope that they will improve the features as time goes on.
    - Pierre

  • ADF Faces: Update Tree Contents

    Does anyone know how to update the contents of a Tree component.

    To be more specific, I want to be able to refresh the tree contents CRUD (Create, Read, Update, Delete) operations are performed on the tree nodes.
    Currently I provide a tree model by extending ChildPropertyTreeModel.
    On every CRUD operation I create a new model, but the tree does reflect the contents of the new model.
    How do can I make the tree refresh it's contents?

  • When ever i click a picture in photo booth it does not automatically update its content is this a bug or i don't know how to do it?

    when ever i click a picture in photo booth it does not automatically update its content is this a bug or i don't know how to do it?
    whenever you click a picture in photobooth you have to manually insert it one by one in iphoto
    i want to know is there any other option in iphoto which can do this type of thing(adding pictures automatically to iphoto )
    so that i do not have to do it manually

    Once you take the photo with Photo Booth, select the photo in the tray at the bottom and click on the iPhoto button just abouve and to the left:
         Click to view full size
    That will import the photo into iPhoto automatically.  But PB does not import any and all photo taken into iPhoto automatically.  That choice is left to the user.
    OT

  • How to update link and import data of relocated incx file into inca file?

    Subject : <br />how to update link and import data of relocated incx file into inca file.?<br />The incx file was originally part of the inca file and it has been relocated.<br />-------------------<br /><br />Hello All,<br /><br />I am working on InDesignCS2 and InCopyCS2.<br />From indesign I am creating an assignment file as well as incopy files.(.inca and .incx file created through exporing).<br />Now indesign hardcodes the path of the incx files in inca file.So if I put the incx files in different folder then after opening the inca file in InCopy , I am getting the alert stating that " The document doesn't consists of any incopy story" and all the linked story will flag a red question mark icon.<br />So I tried to recreate and update the links.<br />Below is my code for that<br /><br />//code start*****************************<br />//creating kDataLinkHelperBoss<br />InterfacePtr<IDataLinkHelper> dataLinkHelper(static_cast<IDataLinkHelper*><br />(CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)));<br /><br />/**<br />The newFileToBeLinkedPath is the path of the incx file which is relocated.<br />And it was previously part of the inca file.<br />eg. earlier it was c:\\test.incx now it is d:\\test.incx<br />*/<br />IDFile newIDFileToBeLinked(newFileToBeLinkedPath);<br /><br />//create the datelink<br />IDataLink * dlk = dataLinkHelper->CreateDataLink(newIDFileToBeLinked);<br /><br />NameInfo name;<br />PMString type;<br />uint32 fileType;<br /><br />dlk->GetNameInfo(&name,&type,&fileType);<br /><br />//relink the story     <br />InterfacePtr<ICommand> relinkCmd(CmdUtils::CreateCommand(kRestoreLinkCmdBoss)); <br /><br />InterfacePtr<IRestoreLinkCmdData> relinkCmdData(relinkCmd, IID_IRESTORELINKCMDDATA);<br /><br />relinkCmdData->Set(database, dataLinkUID, &name, &type, fileType, IDataLink::kLinkNormal); <br /><br />ErrorCode err = CmdUtils::ProcessCommand(relinkCmd); <br /><br />//Update the link now                         <br />InterfacePtr<IUpdateLink> updateLink(dataLinkHelper, UseDefaultIID()); <br />UID newLinkUID; <br />err = updateLink->DoUpdateLink(dl, &newLinkUID, kFullUI); <br />//code end*********************<br /><br />I am able to create the proper link.But the data which is there in the incx file is not getting imported in the linked story.But if I modify the newlinked story from the inca file,the incx file will be getting update.(all its previous content will be deleted.)<br />I tried using <br />Utils<IInCopyWorkflow>()->ImportStory()<br /> ,But its import the incx file in xml format.<br /><br />What is the solution of this then?<br />Kindly help me as I am terribly stuck since last few days.<br /><br />Thanks and Regards,<br />Yopangjo

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to update weblogic.properties in order to support English & Chinese

    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

    If you are using JSP as your mechanism for content display, you should use
    the contentType parameter to specify the character and coding of the JSP
    page any character encoding of the resulting stream. So far, we have not
    done a good job of documenting how to produce localized content in JSP. I
    have filed an issue for the documentation folks to work on it. For now,
    take a look at section 2.7.4 of the JSP specification version 1.1.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:8ffr11$59d$[email protected]..
    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

  • How to update the sent mail using SO_NEW_DOCUMENT_ATT_SEND_API1

    I have a requirement to update/ append the sent mail like a trail.Since i am sending mails using SO_NEW_DOCUMENT_ATT_SEND_API1, how can i update new contents to sent mails using this RFC???Please help me.

    you may have to store content of each time mail send then only, you can send with history.

  • Iphone 4s coming friday, what is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across.

    What is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across. If I do a restore as I have when previously from one iphone to another it has shown (in settings, usage) the cumulative usage from previous phones so all the hours of calls on all previous iphones will be displayed even though its brand new. Anyone know how I can get my notes (from standard iphone notes app) to my new iphone 4s without restoring from previous iphone 4. Thanks for any help offered.

    First, if you haven't updated to iTunes 10.5, please update now as you will need it for the iPhone 4S and iOS 5.
    Once you're done installing iTunes 10.5, open it. Connect your iPhone to iTunes using the USB cable. Once your iPhone pops up right click on it. For example: an iPhone will appear and it will say "Ryan's iPhone."
    Right click on it and select "Backup" from the dropdown menu. It will start backing up. This should backup your notes.
    Please tell me if you have any problems with backing up.
    Once you backup and get your iPhone 4S, you must follow these steps. If you don't follow these steps, you will not be able to get your notes on your new iPhone 4S.
    Open up iTunes again then right click on your device (iPhone 4S). Once you do you will see a dropdown menu. It will say "Restore from Backup..." Select this and it'll ask for a backup, select it from the dropdown menu. For example "Ryan's iPhone - October 12, 2011." Pick that and it will restore to your backup. Do this when you get your iPhone 4S so you will not lose anything. Even though you're restoring, you're getting back, since you're getting the previous settings, notes, contacts, mail and other settings from your old iPhone. You'll still have Siri though! So, restore when you first get it. Also frequently backup your device, as it will be worth it. You can restore from a backup if something goes wrong or save your data for a future update.
    Once you do that, you should have your notes on your new iPhone 4S and iOS 5.
    Please tell me if you need any help.
    I hoped I answered your questions and solved your problem!

  • How to update whole external table(in ABAP dictionary) from internal table at once

    Hi,
    How can I update the content of the external table (in ABAP dictionary) from the content of internal table data at once. I created the internal tables with out the header line, with the work area. I tried UPDATE TARGET_EXTERNAL_TABLE FROM TABLE INTERNAL_TABLE. But it returns 4 for sy-subrc and did not work.
    Thank you
    Regards.
    CHINTHAKA

    Hi Feiyun Wu,
    Thank you very much. Your code worked. Is there any way to replace the whole content of the external table from internal table data ?
    Regards,
    Chinthaka

  • How to set old content for a field when cancel?

    Hallo,
    i have a jdialog form where i can change the content of a field.
    when i close the form with cancel i will bring the old content back.
    how can i do that?
    thanks in advance. any help is appreciated.

    Huh? Just don't update the content when the dialog is dismissed by pressing 'Cancel'.
    To get better help sooner, post a SSCCE that clearly demonstrates your problem.
    db

  • When ever i click a picture in photo booth it does not automatically update its content is this a bug ?

    when ever i click a picture in photo booth it does not automatically update its content is this a bug or i don't know how to do it?

    Once you take the photo with Photo Booth, select the photo in the tray at the bottom and click on the iPhoto button just abouve and to the left:
         Click to view full size
    That will import the photo into iPhoto automatically.  But PB does not import any and all photo taken into iPhoto automatically.  That choice is left to the user.
    OT

  • HOw to update XML file residing in DAM by component JSP in run-time?

    i have made a component which reads xml file residing in DAM.
    Content Author can fill some values in dialog of this component, as soon as author provide the values,i have to update these values in XML file and component reloadsby reading the updated xml file.
    i am trying to achieve this by making object of XML file and giving it's path., but i ma unable to access the XML file.
    Can anyone help me out to how to update XML file by component JSP in run-time?

    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
    XSLT approach:  check these online tutorial
    http://www.xml.com/pub/a/2000/08/02/xslt/index.html
    http://www.xml.com/pub/a/2000/06/07/transforming/index.html
    ABAP approach:
    for example you have the xml (original) in a string called say xml_out .
    data: l_xml  type ref to cl_xml_document ,
            node type ref to if_ixml_node  .
    create object l_xml.
    call method l_xml->parse_string
      exporting
        stream = xml_out.
    node = l_xml->find_node(
        name   = 'IDENTITY'
       ROOT   = ROOT
    l_xml->set_attribute(
        name    = 'Name'
        value   = 'Charles'
        node    = node
    (the above example reads the element IDENTITY and sets attribute name/value to the same)
    like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
    so how do I access the XML file in order to update it?
    you have already read this XML into a ABAP variable right?
    Sorry couldnt understand your whole process, why do you need to read local XML file?
    Raja

  • How to update the second JComboBox according selection in first JComboBox??

    I am having a hard time to update the second JcomboBox according to the selection of the first JcomboBox. For example, the content of the first JcomboBox is {city, rent}. When "city" is selected, the content of the second JcomboBox should be set to a number of cities. When "rent" is selected, the content of the second JcomboBox should be set to a range of rent.
    Since I have to detect the selection in actionperformed(), where the JcomboBoxes have been added to a Panel, and my JFrame setContentPane() to this Panel, I don't know how to update the JFrame or the Panel. I can make the old JFrame disappear and a new JFrame appear instead, but this is not what I want. I tried method update(Graphics) and removeAll(), and never made it work.
    I would greatly appreciate if anyone could give me any help.

    Thanks for your response. I fixed the problem in the following clumsy way:
    frame.getContentPane().remove(mainPanel);
    mainPanel.remove(box2);
    if(box1.compareTo("city")==0)
    box2 = new JComboBox(cities);
    else if(box1.compareTo("rent")==0)
         box2 = new JComboBox(rents);     
    else if(box1.compareTo("type")==0)
         box2 = new JComboBox(types);
    box2.setBounds(305, 30, 90, 20);
    mainPanel.add(box2);
    frame.getContentPane().add(mainPanel);
    Maybe there is a better way, but I don't know, and I don't understand your suggestion, could you further explain it? Thanks a lot.
    lz22

Maybe you are looking for