How to generate 3dSurface plot starting from x,y,z txt file

Hallo guys,
I need to generate a 3Dsurface plot starting from unordered coordinates data available in the following
text file:
xs,   ys,   zs
-20,-70,1500
-30,-55,1500
-30,-79,1500
-40,-70,1500
-10,-70,2000
-30,-42,2000
-30,-90,2000
-53,-70,2000
-5,-70,2500
-30,-30,2500
-70,-70,2500
-30,-100,2500
I tried with 3DMesh using the following VB6 code (without valuable results):
[code]
rsurf.Open "Select * From surf.txt", _
       connCSV, adOpenStatic, adLockReadOnly, adCmdText
l = rsurf.RecordCount
surflbl.Caption = "records" & l
ReDim xs(l), ys(l), zs(l)
For i = 1 To l
            xs(i) = rsurf.Fields(0) 'EW (m)
            ys(i) = rsurf.Fields(1) 'NS (m)
            zs(i) = rsurf.Fields(2) 'DEPTH (m)
            rsurf.MoveNext
Next i
rsurf.Close
connCSV.Close
CWGraph3D1.Plot3DMesh xs, ys, zs
[/code]
When i try to convert 3dmesh into 3dsurface, in order to have a smooth surface, i really don't know how to  build the zs(i,j) matrix
I don't know, further, why data displayed on the plot always start from 0,0,0 coordinates
Any help and example would be very appreciated
Beta66

If your still interested I had some luck doing this....
Dim xs, ys, zs As Variant
Dim j
Dim ArrX(0 To 11) As Double
Dim ArrY(0 To 11) As Double
Dim ArrZ(0 To 11) As Double
xs = Array(-20, , -30, -30, -40, -10, -30, -30, -53, -5, -30, -70, -30)
ys = Array(-70, -55, -79, -70, -70, -42, -90, -70, -70, -30, -70, -100)
zs = Array(1500, 1500, 1500, 1500, 2000, 2000, 2000, 2000, 2500, 2500, 2500, 2500)
For j = 0 To 11
    ArrX(j) = CDbl(xs(j))  'I don't know why but this type cast was required
    ArrY(j) = CDbl(ys(j))
    ArrZ(j) = CDbl(zs(j))
Next j
CWGraph3D1.Plot3DMesh ArrX, ArrY, ArrZ
good luck with your project
Curt

Similar Messages

  • How do I stop Apple Script from leaving a Text.txt file with each image downloaded using Photo Downloader in Adobe Photoshop CS4_Bridge???

    I use Adobe Photoshop CS4_Bridge _Photo Downloader to import images from CF Cards into my 11" Mac Book Air.  I have an issue with the Text files
    that seem to accompany each and every image that I do not need.  How do I stop Apple Script (which I assume is the culprit in this case)  from interferring with this process.

    Your iWeb Site is stored not on your iDisk, but on a file named Domain.sites in your ~/Home/Library/Application Support/iWeb/ Folder.
    If , for whatever reason, you wipe your HD and/or lose this file (Get a new computer, Re-Install your OS, Stolen Laptop, Crashed HD, Etc.) without backing-up your Domain.sites file then you will have to re-build your iWeb sites from scratch again.
    Of course you can edit your Published HTML files in a different program such as Dreamweaver or even Text Edit. You just can't edit Published HTML files in iWeb. Not at this time at least.
    Use iWebBackup to backup your Domain file to a Blank CD or DVD. Backing up your Domain file to another folder on your computer is not fully backing it up. If your computer gets stolen you still lost the file but if you have your Domain file burned onto a CD you have a backup!
    Download iWebBackup Here
    You can use iWebExtender to automatically consolidate your files into one folder and delete multiple images.
    http://iWebFAQ.com

  • How to generate an IP core from an available Verilog code ?

    Hi everyone,
    Currently, I would like to test a Active Noise Cancellation (ANC) system on Zedboard. This system consist of a ANC Chip embedded inside FPGA and written by Verilog language and a earphone which includes a microphone and loudspeaker. This means we need to use ADAU1761 Chip for testing on Zedboard. I also have studied and known that in order to use and control this Audio Chip by writing Verilog code is so difficult.I also referred Lab4 on Xilinx website and I understand that my problem can be solved by synthesizing an IP core from Verilog (which I am programming for ANC chip) as FIR filter in Lab4. My biggest problem, I don't know how to generate an IP core from my Verilog code and I also don't know any tools can help me solve this problem.
    Please kindly let me know the way to generate an IP core from my Verilog code or  the tools I can use for this problem. Any your suggestions to solve this problem are  significant with me.
    Thanks in advance !

    h,
    I would start reading the users guides, and reference manuals.  I would work example through the tools.
    An IP block is nothing but a verilog or VHDL block that you decide to use over again.  Once your block is working, the tools (ISE or Vivado) allow you to capture it, and encapsulate it as an IP block that can be re-used later in other projects (it becomes a library function).
    So, first get it to work.  Then worry about making it an IP block, and then, only if you need to use it again and again in other projects.  If not, then there is no need to go to the trouble of making it an IP block -- just use the verilog or VHDL whenever you need it.
     

  • How to get the date starting from 1 to the current date from the system dat

    Dear all,
    Please tell me how to get the date starting from 1 based on the system date
    and it should come with respect of time also.
    example.
    suppose today is 6 Dec, 2006
    so ABAP report should find the 1 dec. 2006.
    Please help me as soon as possible.
    Regards,

    concatenate sy-datum0(2) '01' sy-datum4(4) into v_firstdate.
    or yo ucan use the fm:
    HR_JP_MONTH_BEGIN_END_DATE
    usage:
        call function 'HR_JP_MONTH_BEGIN_END_DATE'
             exporting
                  iv_date             = sy-datum
             importing
                  ev_month_begin_date = gv_begda
                  ev_month_end_date   = gv_endda.
    Regards,
    Ravi
    Message was edited by:
            Ravi Kanth Talagana

  • How to generate the BPEL interface from XSD?

    I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string?
    Thank you

    I made the following change to the xsd file, however when the input type change to emailDataType, it is underline by red color. and the bpm process, activity guide, organization become the unknown project object.
    <?xml version="1.0" encoding="UTF-8"?>
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/SampleBPM/SampleEmailNotification/SendEmail"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="process">
              <complexType>
                   <sequence>
                        <element name="input" type="emailDataType"/>
                   </sequence>
              </complexType>
         </element>
         <element name="processResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="emailDataType" >
    <sequence>
    <element name="toEmailAddress" type="string" />
    <element name="ccEmailAddress" type="string" />
    <element name="emailSubject" type="string" />
    <element name="emailContent" type="string" />
    </sequence>
    </complexType>
    </schema>
    The XSD file is viewed by the design mode is fine on JDeveloper. Please help!

  • How to create a infolettre starting from MUSE?

    How to create a infolettre starting from MUSE?

    Hi,
    in addition to @mac_heibu, check this thread for an explanation, Re: Using Adobe Muse to create a simple html email template

  • How to generate power point slides from web forms?

    Hello,
    Anybody know how to generate power point slides from the web forms. the data will in the database just like how we generate a report, just like that is there any way we can generate power point slides? if so could you please provide information please. Any examples are appreciated...
    Thanks so much....

    Hi,
    i have never tried it but in
    this link you can see the it should be possible with the
    powerpoint viewer.
    Regards,
    Markus

  • How to achieve Vertical Text,start From left to right?

    How to achieve Vertical Text,start From left to right?
    Maybe  it does not make sense for English,but it is Quite useful for Chinese

    @喜狼_edny – hm. Possible, but the result is somehow unsatisfactory.
    See for yourself.
    We could start with some text right aligned in a table with just one single cell:
    We could rotate the cell to 270° like that:
    Code:
    var myCell = app.selection[0].tables[0].cells[0];
    myCell.rotationAngle = 270;
    And now we need the text direction from right to left and all characters rotated to 180°:
    Code:
    var myCell = app.selection[0].tables[0].cells[0];
    myCell.rotationAngle = 270;
    myProperties = {
        composer : "$ID/HL Composer Optyca",
        characterDirection : CharacterDirectionOptions.RIGHT_TO_LEFT_DIRECTION,
        paragraphDirection : ParagraphDirectionOptions.RIGHT_TO_LEFT_DIRECTION,
        characterRotation : 180
    myCell.texts[0].properties = myProperties;
    Result:
    Ugh! Not exactly the result we expected…
    (Tested with InDesign CS5.5 on OSX 10.6.8)
    It's the characterRotation that is not working as expected.
    Uwe
    Message was edited by: Laubender

  • How do I get my photos from Elements 11 into a file folder.

    How do I get my photos from Elemtnts 11 into a file folder.  I am trying to use Blurb to make a travel book but because of the number of photos I have them in groups and want them to stay in groups for the book.  Unfortunately the photos in each grouping are all over the place and will be definitely difficult and time consuming to bring into Blurb.

    Thank you.  I tried this before I wrote the question as the photos had just disappeared!
      I was very nervous to try this again but did with some junk photos and after much trial and error - it worked!  I'm not a real pro as you can tell and appreciate your help.

  • How can I bulk delete songs from the playlist, if original file could not be found.

    I deleted the original files from the Library iTines. The songs are still in the playlist. How can I bulk delete songs from the playlist, if original file could not be found. Thank.

    Take a look at my FindTracks script. Download it and test it out on a few tracks first. Use the No option first time around to manually confirm each path that it wants to fix so you can see how it works. When you're happy it does what you want select a larger group of tracks to process automatically.
    tt2

  • How can I stop my doughter from receiving my iPhone txt on her iPod?

    How can I stop my doughter from receiving my iPhone txt on her iPod?

    You need to go to the Messages settings on her iPod and remove the Apple ID, or at least the email address, you use for iMessages.
    Regards.

  • How to generate PDF using fonts from Extended Font Pack?

    Hello
    Extended Font Pack, available for download contains MyriadPro-Regular.otf font that has cyrillic glyphs.
    I want to generate PDF document with cyrillic unicode data  that can refer to the MyriadPro-Regular font resource without embedding font.
    Are Extended Font Pack resources CID keyed fonts or not?
    Looks like such example of PDF structure allowed me to use it only in ANSI encoding
               'Type':'/Font',
                'Subtype':'/Type1',
                 'Name': '/MyriadPro-Regular' ,
                'BaseFont':  '/MyriadPro-Regular',
                 'Encoding': '/WinAnsiEncoding',
    What values should be for `Subtype` and `Encoding` to render cyrillic unicode (UTF-8 encoded) data and use MyriadPro-Regular Open Type downloaded from adobe and installed into local system without embedding it?
    Thanks

    Sorry for the delay. I admired with investigation of this case.
    My aim is to generate PDF docs on web site that have i18ned content. ALso client does not want to deal with any font licenses (font embedding will raise question about font licensing) and to reduce PDF file size with such approach. So I'm looking for the ability to link fonts in PDF source, that can be easiely downloaded from adobe.com and installed into local desktop. With Latin group (en-us, french, german) we  can use one of the 14 standard fonts, for CJK - Adobe Asian Font pack. I was considering (Myriad Pro or Minion Pro) font resources from Extended Font pack to cover Cyrillic glyphs. I observed that such fonts are usually installed with Adobe Reader installation (MyriadPro-regular.otf). To render cyrillic glyphs I followed such steps like converted into cp1251 encoding range of the cyrillic unicode data (as you told those fonts do not support unicode encodings the same way as CID keyed asian fonts) and pointed to the Type1 MyriadPro-Regular with custom WinAnsiEncoding. One problem I faced with is - that glyphnames are differrent in diferent Extended Font pack versions. I mean that cyrillic glyphnames for the Adobe Reader 8 started from `afii100xx`, when for the Adobe Reader 9 they are named `uni0xx` for the same font named MyriadPro. I used such glyphnames in the /Differences list in PDF source. How can I generate PDF source that can be viewed successfully in both Adobe Readers version 8 and 9?

  • How to generate a pdf form from a webform

    HOW TO GENERATE POPULATED PDF?
    We used to fill out the forms at work longhand (yes, with a pen!)
    Now since we created the form using Acrobat 9 Pro, we just enter the data on computer, and print out the form.
    Acrobat 9 form creator was great - I found it quite easy to use.
    Now, I'd like to automate the process even further.
    Each week we receive response forms from our website (maybe about 20-25).  These response forms have about 10 fields that
    people have completed with their information.Currently I am printing  out the response form and then open up the acrobat form and I enter their information into the pdf (and then print).
    1. Is it possible to automatically populate a pdf from the response form ? (without me having to print out the response form and re-enter the data)
    2. Is it really complicated; is this something I can do with some software/learning or do i need a programmer?
    Thank you kindly for any advice or direction.

    It sounds like you are using the forms in your local shop and that e-mail may work fine. If e-mail submission works fine (not recommended for normal use, but find in a controlled environment where you can be sure each e-mail client is running MAPI), then add a submit button to submit a FDF or XML data file (I like FDF when using forms in Acrobat, Designer only uses XML forms). You can then import the FDF or XML data to the form and print it. You can even manipulate the FDF or XML data and add it to a database of some form, furthering your processing even more.

  • How to generate Top sales report from SAP data ?

    Hello experts,
    I am completely a newbie to SAP BO , can any one guide me how to generate TOP sales of the year report from SAP data ?

    Hi David,
    First Let me know the Source & Tools to involve.
    Let me go with the generic approach:
    If the source is BW, then you can create the logic in query designer designer and then you can incorporate the data into the dashboard or webi or crystal report whatever its.
    If the source is sql or anyother DB then it can also be achievable in crystal or webi to write the logic in top 10 values by ranking then you can incorporate the data into the dashboard, but here you can limit the top or bottom values.
    Hope this helps, please revert for more clarifications on this.
    --SumanT

  • How to generate Pay-in slip from SAP ECC 6.0

    Hi SAP Guru,
    Can u please tell me how to generate pay - in slip for depositing of checks into the bank from SAP ECC 6.0
    Thanks
    Rajeev

    Dushyant,
    Check whether the program is in TRDIR table or not,if it is there then it will be available else you need to talk to basis guys.
    If the program is there and you want to revert to previous version then go to version management and select the version number and then click on the button RETRIEVE.
    Smartforms don't haver the concept of version management and hence it is always advisable to download the smartform and then go ahead with the changes.If in case you want to revert to pervious version then you can upload the downloaded smartform and get  back the previous version.
    K.Kiran.

Maybe you are looking for